; LLVM IR from SoloGameDevGitHub/AIEngine :: NeuralNetwork/MLP/MLPMain.ll (Z18TEST_MLP_XOR_2_2_1v)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { 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.std::allocator.0" = type { i8 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.5" = type { i8 }
%"class.NeuralNetwork::MultiLayerPerceptron" = type { %"class.serialization::ISerializable", %"class.std::vector.8", %"class.std::vector.13", ptr }
%"class.serialization::ISerializable" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::unique_ptr<NeuralNetwork::Layer>, std::allocator<std::unique_ptr<NeuralNetwork::Layer>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<NeuralNetwork::Layer>, std::allocator<std::unique_ptr<NeuralNetwork::Layer>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<NeuralNetwork::Layer>, std::allocator<std::unique_ptr<NeuralNetwork::Layer>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<NeuralNetwork::Layer>, std::allocator<std::unique_ptr<NeuralNetwork::Layer>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list.18" = type { ptr, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::initializer_list.19" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }
%"class.std::allocator.15" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@__FUNCTION__._Z18TEST_MLP_XOR_2_2_1v = external hidden unnamed_addr constant [19 x i8], align 1
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6equalsRKSt6vectorIdSaIdEES3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18TEST_MLP_XOR_2_2_1v() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator.0", align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca %"class.std::vector.3", align 8
  %8 = alloca %"class.std::initializer_list", align 8
  %9 = alloca [2 x i32], align 4
  %10 = alloca %"class.std::allocator.5", align 1
  %11 = alloca %"class.NeuralNetwork::MultiLayerPerceptron", align 8
  %12 = alloca %"class.std::vector.13", align 8
  %13 = alloca %"class.std::initializer_list.18", align 8
  %14 = alloca [4 x %"class.std::vector"], align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::initializer_list.19", align 8
  %17 = alloca [2 x double], align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::initializer_list.19", align 8
  %20 = alloca [2 x double], align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca %"class.std::initializer_list.19", align 8
  %23 = alloca [2 x double], align 8
  %24 = alloca %"class.std::allocator", align 1
  %25 = alloca %"class.std::initializer_list.19", align 8
  %26 = alloca [2 x double], align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca i1, align 1
  %29 = alloca %"class.std::allocator.15", align 1
  %30 = alloca %"class.std::vector.13", align 8
  %31 = alloca %"class.std::initializer_list.18", align 8
  %32 = alloca [4 x %"class.std::vector"], align 8
  %33 = alloca ptr, align 8
  %34 = alloca %"class.std::initializer_list.19", align 8
  %35 = alloca [1 x double], align 8
  %36 = alloca %"class.std::allocator", align 1
  %37 = alloca %"class.std::initializer_list.19", align 8
  %38 = alloca [1 x double], align 8
  %39 = alloca %"class.std::allocator", align 1
  %40 = alloca %"class.std::initializer_list.19", align 8
  %41 = alloca [1 x double], align 8
  %42 = alloca %"class.std::allocator", align 1
  %43 = alloca %"class.std::initializer_list.19", align 8
  %44 = alloca [1 x double], align 8
  %45 = alloca %"class.std::allocator", align 1
  %46 = alloca i1, align 1
  %47 = alloca %"class.std::allocator.15", align 1
  %48 = alloca i64, align 8
  %49 = alloca i64, align 8
  %50 = alloca i64, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca %"class.std::vector", align 8
  %54 = alloca %"class.std::vector", align 8
  %55 = alloca %"class.std::vector", align 8
  %56 = alloca %"class.std::vector", align 8
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @__FUNCTION__._Z18TEST_MLP_XOR_2_2_1v)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 32, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef @__FUNCTION__._Z18TEST_MLP_XOR_2_2_1v, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %59 unwind label %187

59:                                               ; preds = %0
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %1, ptr noundef @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %60 unwind label %191

60:                                               ; preds = %59
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store double 0x3FE6666666666666, ptr %6, align 8, !tbaa !5
  invoke void @_ZN13NeuralNetwork10activation12setThresholdEOKd(ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %61 unwind label %196

61:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  invoke void @_ZN11RandomUtils14initRandomSeedEv()
          to label %62 unwind label %200

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i32 2, ptr %9, align 4, !tbaa !9
  %63 = getelementptr inbounds i32, ptr %9, i64 1
  store i32 1, ptr %63, align 4, !tbaa !9
  %64 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 0
  store ptr %9, ptr %64, align 8, !tbaa !11
  %65 = getelementptr inbounds %"class.std::initializer_list", ptr %8, i32 0, i32 1
  store i64 2, ptr %65, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  %66 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8
  %68 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %69 = load i64, ptr %68, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %67, i64 %69, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %70 unwind label %204

70:                                               ; preds = %62
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %11) #6
  invoke void @_ZN13NeuralNetwork20MultiLayerPerceptronC1EiRKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(64) %11, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %71 unwind label %208

71:                                               ; preds = %70
  invoke void @_ZN13NeuralNetwork20MultiLayerPerceptron21setActivationFunctionEPFvRSt6vectorIdSaIdEEE(ptr noundef nonnull align 8 dereferenceable(64) %11, ptr noundef @_ZN13NeuralNetwork10activation9thresholdERSt6vectorIdSaIdEE)
          to label %72 unwind label %212

72:                                               ; preds = %71
  invoke void @_ZNK13NeuralNetwork20MultiLayerPerceptron16randomizeWeightsERS0_(ptr noundef nonnull align 8 dereferenceable(64) %11, ptr noundef nonnull align 8 dereferenceable(64) %11)
          to label %73 unwind label %212

73:                                               ; preds = %72
  %74 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  invoke void @_ZN13serialization19loadWeightsFromFileEPKcRNS_13ISerializableE(ptr noundef %74, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %75 unwind label %212

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr %14) #6
  store i1 true, ptr %28, align 1
  store ptr %14, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  store double 0.000000e+00, ptr %17, align 8, !tbaa !5
  %76 = getelementptr inbounds double, ptr %17, i64 1
  store double 0.000000e+00, ptr %76, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.std::initializer_list.19", ptr %16, i32 0, i32 0
  store ptr %17, ptr %77, align 8, !tbaa !16
  %78 = getelementptr inbounds %"class.std::initializer_list.19", ptr %16, i32 0, i32 1
  store i64 2, ptr %78, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  %79 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %82 = load i64, ptr %81, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr %80, i64 %82, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %83 unwind label %216

83:                                               ; preds = %75
  %84 = getelementptr inbounds %"class.std::vector", ptr %14, i64 1
  store ptr %84, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  store double 0.000000e+00, ptr %20, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %20, i64 1
  store double 1.000000e+00, ptr %85, align 8, !tbaa !5
  %86 = getelementptr inbounds %"class.std::initializer_list.19", ptr %19, i32 0, i32 0
  store ptr %20, ptr %86, align 8, !tbaa !16
  %87 = getelementptr inbounds %"class.std::initializer_list.19", ptr %19, i32 0, i32 1
  store i64 2, ptr %87, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  %88 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %91 = load i64, ptr %90, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr %89, i64 %91, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %92 unwind label %220

92:                                               ; preds = %83
  %93 = getelementptr inbounds %"class.std::vector", ptr %14, i64 2
  store ptr %93, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  store double 1.000000e+00, ptr %23, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %23, i64 1
  store double 0.000000e+00, ptr %94, align 8, !tbaa !5
  %95 = getelementptr inbounds %"class.std::initializer_list.19", ptr %22, i32 0, i32 0
  store ptr %23, ptr %95, align 8, !tbaa !16
  %96 = getelementptr inbounds %"class.std::initializer_list.19", ptr %22, i32 0, i32 1
  store i64 2, ptr %96, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  %97 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8
  %99 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %100 = load i64, ptr %99, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr %98, i64 %100, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %101 unwind label %224

101:                                              ; preds = %92
  %102 = getelementptr inbounds %"class.std::vector", ptr %14, i64 3
  store ptr %102, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  store double 1.000000e+00, ptr %26, align 8, !tbaa !5
  %103 = getelementptr inbounds double, ptr %26, i64 1
  store double 1.000000e+00, ptr %103, align 8, !tbaa !5
  %104 = getelementptr inbounds %"class.std::initializer_list.19", ptr %25, i32 0, i32 0
  store ptr %26, ptr %104, align 8, !tbaa !16
  %105 = getelementptr inbounds %"class.std::initializer_list.19", ptr %25, i32 0, i32 1
  store i64 2, ptr %105, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  %106 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8
  %108 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %109 = load i64, ptr %108, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %102, ptr %107, i64 %109, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %110 unwind label %228

110:                                              ; preds = %101
  store i1 false, ptr %28, align 1
  %111 = getelementptr inbounds %"class.std::initializer_list.18", ptr %13, i32 0, i32 0
  store ptr %14, ptr %111, align 8, !tbaa !19
  %112 = getelementptr inbounds %"class.std::initializer_list.18", ptr %13, i32 0, i32 1
  store i64 4, ptr %112, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  %113 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %116 = load i64, ptr %115, align 8
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr %114, i64 %116, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %117 unwind label %232

117:                                              ; preds = %110
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  %118 = getelementptr inbounds [4 x %"class.std::vector"], ptr %14, i32 0, i32 0
  %119 = getelementptr inbounds %"class.std::vector", ptr %118, i64 4
  br label %120

120:                                              ; preds = %120, %117
  %121 = phi ptr [ %119, %117 ], [ %122, %120 ]
  %122 = getelementptr inbounds %"class.std::vector", ptr %121, i64 -1
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %122) #6
  %123 = icmp eq ptr %122, %118
  br i1 %123, label %124, label %120

124:                                              ; preds = %120
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 96, ptr %32) #6
  store i1 true, ptr %46, align 1
  store ptr %32, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  store double 0.000000e+00, ptr %35, align 8, !tbaa !5
  %125 = getelementptr inbounds %"class.std::initializer_list.19", ptr %34, i32 0, i32 0
  store ptr %35, ptr %125, align 8, !tbaa !16
  %126 = getelementptr inbounds %"class.std::initializer_list.19", ptr %34, i32 0, i32 1
  store i64 1, ptr %126, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  %127 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8
  %129 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %130 = load i64, ptr %129, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr %128, i64 %130, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %131 unwind label %257

131:                                              ; preds = %124
  %132 = getelementptr inbounds %"class.std::vector", ptr %32, i64 1
  store ptr %132, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  store double 1.000000e+00, ptr %38, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.std::initializer_list.19", ptr %37, i32 0, i32 0
  store ptr %38, ptr %133, align 8, !tbaa !16
  %134 = getelementptr inbounds %"class.std::initializer_list.19", ptr %37, i32 0, i32 1
  store i64 1, ptr %134, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  %135 = getelementptr inbounds { ptr, i64 }, ptr %37, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8
  %137 = getelementptr inbounds { ptr, i64 }, ptr %37, i32 0, i32 1
  %138 = load i64, ptr %137, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %132, ptr %136, i64 %138, ptr noundef nonnull align 1 dereferenceable(1) %39)
          to label %139 unwind label %261

139:                                              ; preds = %131
  %140 = getelementptr inbounds %"class.std::vector", ptr %32, i64 2
  store ptr %140, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  store double 1.000000e+00, ptr %41, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.std::initializer_list.19", ptr %40, i32 0, i32 0
  store ptr %41, ptr %141, align 8, !tbaa !16
  %142 = getelementptr inbounds %"class.std::initializer_list.19", ptr %40, i32 0, i32 1
  store i64 1, ptr %142, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  %143 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8
  %145 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 1
  %146 = load i64, ptr %145, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %140, ptr %144, i64 %146, ptr noundef nonnull align 1 dereferenceable(1) %42)
          to label %147 unwind label %265

147:                                              ; preds = %139
  %148 = getelementptr inbounds %"class.std::vector", ptr %32, i64 3
  store ptr %148, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  store double 0.000000e+00, ptr %44, align 8, !tbaa !5
  %149 = getelementptr inbounds %"class.std::initializer_list.19", ptr %43, i32 0, i32 0
  store ptr %44, ptr %149, align 8, !tbaa !16
  %150 = getelementptr inbounds %"class.std::initializer_list.19", ptr %43, i32 0, i32 1
  store i64 1, ptr %150, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  %151 = getelementptr inbounds { ptr, i64 }, ptr %43, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8
  %153 = getelementptr inbounds { ptr, i64 }, ptr %43, i32 0, i32 1
  %154 = load i64, ptr %153, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr %152, i64 %154, ptr noundef nonnull align 1 dereferenceable(1) %45)
          to label %155 unwind label %269

155:                                              ; preds = %147
  store i1 false, ptr %46, align 1
  %156 = getelementptr inbounds %"class.std::initializer_list.18", ptr %31, i32 0, i32 0
  store ptr %32, ptr %156, align 8, !tbaa !19
  %157 = getelementptr inbounds %"class.std::initializer_list.18", ptr %31, i32 0, i32 1
  store i64 4, ptr %157, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #6
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  %158 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  %160 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %161 = load i64, ptr %160, align 8
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr %159, i64 %161, ptr noundef nonnull align 1 dereferenceable(1) %47)
          to label %162 unwind label %273

162:                                              ; preds = %155
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #6
  %163 = getelementptr inbounds [4 x %"class.std::vector"], ptr %32, i32 0, i32 0
  %164 = getelementptr inbounds %"class.std::vector", ptr %163, i64 4
  br label %165

165:                                              ; preds = %165, %162
  %166 = phi ptr [ %164, %162 ], [ %167, %165 ]
  %167 = getelementptr inbounds %"class.std::vector", ptr %166, i64 -1
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %167) #6
  %168 = icmp eq ptr %167, %163
  br i1 %168, label %169, label %165

169:                                              ; preds = %165
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  store i64 0, ptr %48, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  store i64 0, ptr %49, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  store i64 0, ptr %50, align 8, !tbaa !22
  br label %170

170:                                              ; preds = %327, %169
  %171 = load i64, ptr %50, align 8, !tbaa !22
  %172 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %173 = icmp ult i64 %171, %172
  br i1 %173, label %174, label %335

174:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %175 = load i64, ptr %49, align 8, !tbaa !22
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %175) #6
  store ptr %176, ptr %51, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #6
  %177 = load i64, ptr %49, align 8, !tbaa !22
  %178 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %177) #6
  store ptr %178, ptr %52, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 24, ptr %53) #6
  %179 = load ptr, ptr %51, align 8, !tbaa !23
  invoke void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %179)
          to label %180 unwind label %298

180:                                              ; preds = %174
  invoke void @_ZN13NeuralNetwork20MultiLayerPerceptron11feedforwardESt6vectorIdSaIdEE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %53, ptr noundef nonnull align 8 dereferenceable(64) %11, ptr noundef %54)
          to label %181 unwind label %302

181:                                              ; preds = %180
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #6
  %182 = load ptr, ptr %52, align 8, !tbaa !23
  %183 = call noundef zeroext i1 @_Z6equalsRKSt6vectorIdSaIdEES3_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %182)
  br i1 %183, label %184, label %306

184:                                              ; preds = %181
  %185 = load i64, ptr %50, align 8, !tbaa !22
  %186 = add i64 %185, 1
  store i64 %186, ptr %50, align 8, !tbaa !22
  br label %327

187:                                              ; preds = %0
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %4, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %5, align 4
  br label %195

191:                                              ; preds = %59
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %4, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %5, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  br label %195

195:                                              ; preds = %191, %187
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
  br label %352

196:                                              ; preds = %60
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %4, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %351

200:                                              ; preds = %61
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %4, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %5, align 4
  br label %351

204:                                              ; preds = %62
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %4, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %5, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %350

208:                                              ; preds = %70
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %4, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %5, align 4
  br label %349

212:                                              ; preds = %73, %72, %71
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %4, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %5, align 4
  br label %348

216:                                              ; preds = %75
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %4, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %5, align 4
  br label %246

220:                                              ; preds = %83
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %4, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %5, align 4
  br label %245

224:                                              ; preds = %92
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %4, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %5, align 4
  br label %244

228:                                              ; preds = %101
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %4, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %5, align 4
  br label %243

232:                                              ; preds = %110
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %4, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %5, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  %236 = getelementptr inbounds [4 x %"class.std::vector"], ptr %14, i32 0, i32 0
  %237 = getelementptr inbounds %"class.std::vector", ptr %236, i64 4
  br label %238

238:                                              ; preds = %238, %232
  %239 = phi ptr [ %237, %232 ], [ %240, %238 ]
  %240 = getelementptr inbounds %"class.std::vector", ptr %239, i64 -1
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %240) #6
  %241 = icmp eq ptr %240, %236
  br i1 %241, label %242, label %238

242:                                              ; preds = %238
  br label %243

243:                                              ; preds = %242, %228
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  br label %244

244:                                              ; preds = %243, %224
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %245

245:                                              ; preds = %244, %220
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %246

246:                                              ; preds = %245, %216
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %247 = load i1, ptr %28, align 1
  br i1 %247, label %248, label %256

248:                                              ; preds = %246
  %249 = load ptr, ptr %15, align 8
  %250 = icmp eq ptr %14, %249
  br i1 %250, label %255, label %251

251:                                              ; preds = %251, %248
  %252 = phi ptr [ %249, %248 ], [ %253, %251 ]
  %253 = getelementptr inbounds %"class.std::vector", ptr %252, i64 -1
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %253) #6
  %254 = icmp eq ptr %253, %14
  br i1 %254, label %255, label %251

255:                                              ; preds = %251, %248
  br label %256

256:                                              ; preds = %255, %246
  call void @llvm.lifetime.end.p0(i64 96, ptr %14) #6
  br label %347

257:                                              ; preds = %124
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %4, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %5, align 4
  br label %287

261:                                              ; preds = %131
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %4, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %5, align 4
  br label %286

265:                                              ; preds = %139
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %4, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %5, align 4
  br label %285

269:                                              ; preds = %147
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %4, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %5, align 4
  br label %284

273:                                              ; preds = %155
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %4, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %5, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %47) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #6
  %277 = getelementptr inbounds [4 x %"class.std::vector"], ptr %32, i32 0, i32 0
  %278 = getelementptr inbounds %"class.std::vector", ptr %277, i64 4
  br label %279

279:                                              ; preds = %279, %273
  %280 = phi ptr [ %278, %273 ], [ %281, %279 ]
  %281 = getelementptr inbounds %"class.std::vector", ptr %280, i64 -1
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %281) #6
  %282 = icmp eq ptr %281, %277
  br i1 %282, label %283, label %279

283:                                              ; preds = %279
  br label %284

284:                                              ; preds = %283, %269
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %45) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %285

285:                                              ; preds = %284, %265
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  br label %286

286:                                              ; preds = %285, %261
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %39) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %287

287:                                              ; preds = %286, %257
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  %288 = load i1, ptr %46, align 1
  br i1 %288, label %289, label %297

289:                                              ; preds = %287
  %290 = load ptr, ptr %33, align 8
  %291 = icmp eq ptr %32, %290
  br i1 %291, label %296, label %292

292:                                              ; preds = %292, %289
  %293 = phi ptr [ %290, %289 ], [ %294, %292 ]
  %294 = getelementptr inbounds %"class.std::vector", ptr %293, i64 -1
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %294) #6
  %295 = icmp eq ptr %294, %32
  br i1 %295, label %296, label %292

296:                                              ; preds = %292, %289
  br label %297

297:                                              ; preds = %296, %287
  call void @llvm.lifetime.end.p0(i64 96, ptr %32) #6
  br label %346

298:                                              ; preds = %174
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %4, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %5, align 4
  br label %334

302:                                              ; preds = %180
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %4, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %5, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #6
  br label %334

306:                                              ; preds = %181
  %307 = load i64, ptr %48, align 8, !tbaa !22
  %308 = add nsw i64 %307, 1
  store i64 %308, ptr %48, align 8, !tbaa !22
  %309 = load ptr, ptr %51, align 8, !tbaa !23
  invoke void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(24) %309)
          to label %310 unwind label %314

310:                                              ; preds = %306
  %311 = load ptr, ptr %52, align 8, !tbaa !23
  invoke void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(24) %311)
          to label %312 unwind label %318

312:                                              ; preds = %310
  invoke void @_ZN13NeuralNetwork20MultiLayerPerceptron13backpropagateESt6vectorIdSaIdEES3_d(ptr noundef nonnull align 8 dereferenceable(64) %11, ptr noundef %55, ptr noundef %56, double noundef 1.000000e-02)
          to label %313 unwind label %322

313:                                              ; preds = %312
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  store i64 0, ptr %50, align 8, !tbaa !22
  br label %327

314:                                              ; preds = %306
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %4, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %5, align 4
  br label %333

318:                                              ; preds = %310
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %4, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %5, align 4
  br label %326

322:                                              ; preds = %312
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %4, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %5, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  br label %326

326:                                              ; preds = %322, %318
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  br label %333

327:                                              ; preds = %313, %184
  %328 = load i64, ptr %49, align 8, !tbaa !22
  %329 = add i64 %328, 1
  store i64 %329, ptr %49, align 8, !tbaa !22
  %330 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %331 = load i64, ptr %49, align 8, !tbaa !22
  %332 = urem i64 %331, %330
  store i64 %332, ptr %49, align 8, !tbaa !22
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  br label %170, !llvm.loop !24

333:                                              ; preds = %326, %314
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %53) #6
  br label %334

334:                                              ; preds = %333, %302, %298
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  br label %345

335:                                              ; preds = %170
  %336 = load i64, ptr %48, align 8, !tbaa !22
  %337 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %336)
          to label %338 unwind label %341

338:                                              ; preds = %335
  %339 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  invoke void @_ZN13serialization15serializeToFileEPKcRKNS_13ISerializableE(ptr noundef %339, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %340 unwind label %341

340:                                              ; preds = %338
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @_ZN13NeuralNetwork20MultiLayerPerceptronD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  ret void

341:                                              ; preds = %338, %335
  %342 = landingpad { ptr, i32 }
          cleanup
  %343 = extractvalue { ptr, i32 } %342, 0
  store ptr %343, ptr %4, align 8
  %344 = extractvalue { ptr, i32 } %342, 1
  store i32 %344, ptr %5, align 4
  br label %345

345:                                              ; preds = %341, %334
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  br label %346

346:                                              ; preds = %345, %297
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  br label %347

347:                                              ; preds = %346, %256
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  br label %348

348:                                              ; preds = %347, %212
  call void @_ZN13NeuralNetwork20MultiLayerPerceptronD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %11) #6
  br label %349

349:                                              ; preds = %348, %208
  call void @llvm.lifetime.end.p0(i64 64, ptr %11) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %350

350:                                              ; preds = %349, %204
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  br label %351

351:                                              ; preds = %350, %200, %196
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #6
  br label %352

352:                                              ; preds = %351, %195
  call void @llvm.lifetime.end.p0(i64 32, ptr %1) #6
  br label %353

353:                                              ; preds = %352
  %354 = load ptr, ptr %4, align 8
  %355 = load i32, ptr %5, align 4
  %356 = insertvalue { ptr, i32 } poison, ptr %354, 0
  %357 = insertvalue { ptr, i32 } %356, i32 %355, 1
  resume { ptr, i32 } %357
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #3

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN13NeuralNetwork10activation12setThresholdEOKd(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare void @_ZN11RandomUtils14initRandomSeedEv() #4

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

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

declare void @_ZN13NeuralNetwork20MultiLayerPerceptronC1EiRKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

declare void @_ZN13NeuralNetwork20MultiLayerPerceptron21setActivationFunctionEPFvRSt6vectorIdSaIdEEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #4

declare void @_ZN13NeuralNetwork10activation9thresholdERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(24)) #4

declare void @_ZNK13NeuralNetwork20MultiLayerPerceptron16randomizeWeightsERS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) #4

declare void @_ZN13serialization19loadWeightsFromFileEPKcRNS_13ISerializableE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

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

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

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

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

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

declare void @_ZN13NeuralNetwork20MultiLayerPerceptron11feedforwardESt6vectorIdSaIdEE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #4

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

declare void @_ZN13NeuralNetwork20MultiLayerPerceptron13backpropagateESt6vectorIdSaIdEES3_d(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef, double noundef) #4

declare i32 @printf(ptr noundef, ...) #4

declare void @_ZN13serialization15serializeToFileEPKcRKNS_13ISerializableE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13NeuralNetwork20MultiLayerPerceptronD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { "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 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 #6 = { 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 = !{!"double", !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 0}
!12 = !{!"_ZTSSt16initializer_listIiE", !13, i64 0, !14, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !14, i64 8}
!16 = !{!17, !13, i64 0}
!17 = !{!"_ZTSSt16initializer_listIdE", !13, i64 0, !14, i64 8}
!18 = !{!17, !14, i64 8}
!19 = !{!20, !13, i64 0}
!20 = !{!"_ZTSSt16initializer_listISt6vectorIdSaIdEEE", !13, i64 0, !14, i64 8}
!21 = !{!20, !14, i64 8}
!22 = !{!14, !14, i64 0}
!23 = !{!13, !13, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { 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.std::allocator.0" = type { i8 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.std::allocator.5" = type { i8 }
%"class.NeuralNetwork::MultiLayerPerceptron" = type { %"class.serialization::ISerializable", %"class.std::vector.8", %"class.std::vector.13", ptr }
%"class.serialization::ISerializable" = type { ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<std::unique_ptr<NeuralNetwork::Layer>, std::allocator<std::unique_ptr<NeuralNetwork::Layer>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<NeuralNetwork::Layer>, std::allocator<std::unique_ptr<NeuralNetwork::Layer>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<NeuralNetwork::Layer>, std::allocator<std::unique_ptr<NeuralNetwork::Layer>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<NeuralNetwork::Layer>, std::allocator<std::unique_ptr<NeuralNetwork::Layer>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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::allocator" = type { i8 }
%"class.std::allocator.15" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@__FUNCTION__._Z18TEST_MLP_XOR_2_2_1v = external hidden unnamed_addr constant [19 x i8], align 1
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6equalsRKSt6vectorIdSaIdEES3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18TEST_MLP_XOR_2_2_1v() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator.0", align 1
  %4 = alloca double, align 8
  %5 = alloca %"class.std::vector.3", align 8
  %6 = alloca [2 x i32], align 4
  %7 = alloca %"class.std::allocator.5", align 1
  %8 = alloca %"class.NeuralNetwork::MultiLayerPerceptron", align 8
  %9 = alloca %"class.std::vector.13", align 8
  %10 = alloca [4 x %"class.std::vector"], align 8
  %11 = alloca [2 x double], align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca [2 x double], align 16
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca [2 x double], align 16
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca [2 x double], align 16
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::allocator.15", align 1
  %20 = alloca %"class.std::vector.13", align 8
  %21 = alloca [4 x %"class.std::vector"], align 8
  %22 = alloca [1 x double], align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca [1 x double], align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca [1 x double], align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca [1 x double], align 8
  %29 = alloca %"class.std::allocator", align 1
  %30 = alloca %"class.std::allocator.15", align 1
  %31 = alloca %"class.std::vector", align 8
  %32 = alloca %"class.std::vector", align 8
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"class.std::vector", align 8
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @__FUNCTION__._Z18TEST_MLP_XOR_2_2_1v)
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @__FUNCTION__._Z18TEST_MLP_XOR_2_2_1v, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %37 unwind label %78

37:                                               ; preds = %0
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %1, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %38 unwind label %80

38:                                               ; preds = %37
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store double 0x3FE6666666666666, ptr %4, align 8, !tbaa !5
  invoke void @_ZN13NeuralNetwork10activation12setThresholdEOKd(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %39 unwind label %83

39:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  invoke void @_ZN11RandomUtils14initRandomSeedEv()
          to label %40 unwind label %85

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  store i32 2, ptr %6, align 4, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %6, i64 4
  store i32 1, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr nonnull %6, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %42 unwind label %87

42:                                               ; preds = %40
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #8
  invoke void @_ZN13NeuralNetwork20MultiLayerPerceptronC1EiRKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(64) %8, i32 noundef 2, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %43 unwind label %89

43:                                               ; preds = %42
  invoke void @_ZN13NeuralNetwork20MultiLayerPerceptron21setActivationFunctionEPFvRSt6vectorIdSaIdEEE(ptr noundef nonnull align 8 dereferenceable(64) %8, ptr noundef nonnull @_ZN13NeuralNetwork10activation9thresholdERSt6vectorIdSaIdEE)
          to label %44 unwind label %91

44:                                               ; preds = %43
  invoke void @_ZNK13NeuralNetwork20MultiLayerPerceptron16randomizeWeightsERS0_(ptr noundef nonnull align 8 dereferenceable(64) %8, ptr noundef nonnull align 8 dereferenceable(64) %8)
          to label %45 unwind label %91

45:                                               ; preds = %44
  %46 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  invoke void @_ZN13serialization19loadWeightsFromFileEPKcRNS_13ISerializableE(ptr noundef %46, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %47 unwind label %91

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr nonnull %11, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %48 unwind label %.thread

48:                                               ; preds = %47
  %49 = getelementptr inbounds i8, ptr %10, i64 24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  store <2 x double> <double 0.000000e+00, double 1.000000e+00>, ptr %13, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr nonnull %13, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %50 unwind label %94

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %10, i64 48
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %15, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %51, ptr nonnull %15, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %52 unwind label %96

52:                                               ; preds = %50
  %53 = getelementptr inbounds i8, ptr %10, i64 72
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %17, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr nonnull %17, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %54 unwind label %98

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %19) #8
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr nonnull %10, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %55 unwind label %.loopexit119.loopexit

55:                                               ; preds = %54
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  %56 = getelementptr inbounds i8, ptr %10, i64 72
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %56) #8
  %57 = getelementptr inbounds i8, ptr %10, i64 48
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #8
  %58 = getelementptr inbounds i8, ptr %10, i64 24
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #8
  store double 0.000000e+00, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %23) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr nonnull %22, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %59 unwind label %.thread110

59:                                               ; preds = %55
  %60 = getelementptr inbounds i8, ptr %21, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #8
  store double 1.000000e+00, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr nonnull %24, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %61 unwind label %111

61:                                               ; preds = %59
  %62 = getelementptr inbounds i8, ptr %21, i64 48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #8
  store double 1.000000e+00, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %27) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr nonnull %26, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %63 unwind label %113

63:                                               ; preds = %61
  %64 = getelementptr inbounds i8, ptr %21, i64 72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #8
  store double 0.000000e+00, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr nonnull %28, i64 1, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %65 unwind label %115

65:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %30) #8
  call void @_ZNSaISt6vectorIdSaIdEEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr nonnull %21, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %66 unwind label %.loopexit116.loopexit

66:                                               ; preds = %65
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #8
  %67 = getelementptr inbounds i8, ptr %21, i64 72
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %67) #8
  %68 = getelementptr inbounds i8, ptr %21, i64 48
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %68) #8
  %69 = getelementptr inbounds i8, ptr %21, i64 24
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %21) #8
  %70 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %.not = icmp eq i64 %70, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %66, %143
  %.061127 = phi i64 [ %.162, %143 ], [ 0, %66 ]
  %.063126 = phi i64 [ %146, %143 ], [ 0, %66 ]
  %.064125 = phi i64 [ %.165, %143 ], [ 0, %66 ]
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.063126) #8
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %.063126) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %71)
          to label %73 unwind label %127

73:                                               ; preds = %.lr.ph
  invoke void @_ZN13NeuralNetwork20MultiLayerPerceptron11feedforwardESt6vectorIdSaIdEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %31, ptr noundef nonnull align 8 dereferenceable(64) %8, ptr noundef nonnull %32)
          to label %74 unwind label %129

74:                                               ; preds = %73
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %75 = call noundef zeroext i1 @_Z6equalsRKSt6vectorIdSaIdEES3_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %72)
  br i1 %75, label %76, label %131

76:                                               ; preds = %74
  %77 = add nuw i64 %.061127, 1
  br label %143

78:                                               ; preds = %0
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %82

80:                                               ; preds = %37
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  br label %82

82:                                               ; preds = %80, %78
  %.pn = phi { ptr, i32 } [ %81, %80 ], [ %79, %78 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  br label %163

83:                                               ; preds = %38
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br label %162

85:                                               ; preds = %39
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %162

87:                                               ; preds = %40
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %161

89:                                               ; preds = %42
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %160

91:                                               ; preds = %45, %44, %43
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %159

.thread:                                          ; preds = %47
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br label %.loopexit118

94:                                               ; preds = %48
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %106

96:                                               ; preds = %50
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %105

98:                                               ; preds = %52
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit119

.loopexit119.loopexit:                            ; preds = %54
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %19) #8
  %101 = getelementptr inbounds i8, ptr %10, i64 72
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %101) #8
  %102 = getelementptr inbounds i8, ptr %10, i64 48
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %102) #8
  %103 = getelementptr inbounds i8, ptr %10, i64 24
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %103) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #8
  br label %.loopexit119

.loopexit119:                                     ; preds = %.loopexit119.loopexit, %98
  %104 = phi i1 [ false, %98 ], [ true, %.loopexit119.loopexit ]
  %.pn83 = phi { ptr, i32 } [ %99, %98 ], [ %100, %.loopexit119.loopexit ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  br label %105

105:                                              ; preds = %.loopexit119, %96
  %.174 = phi i1 [ %104, %.loopexit119 ], [ false, %96 ]
  %.070 = phi ptr [ %53, %.loopexit119 ], [ %51, %96 ]
  %.pn83.pn = phi { ptr, i32 } [ %.pn83, %.loopexit119 ], [ %97, %96 ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  br label %106

106:                                              ; preds = %94, %105
  %.275 = phi i1 [ %.174, %105 ], [ false, %94 ]
  %.171 = phi ptr [ %.070, %105 ], [ %49, %94 ]
  %.pn83.pn.pn = phi { ptr, i32 } [ %.pn83.pn, %105 ], [ %95, %94 ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  br i1 %.275, label %.loopexit118, label %.preheader117

.preheader117:                                    ; preds = %106, %.preheader117
  %107 = phi ptr [ %108, %.preheader117 ], [ %.171, %106 ]
  %108 = getelementptr inbounds i8, ptr %107, i64 -24
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %108) #8
  %109 = icmp eq ptr %108, %10
  br i1 %109, label %.loopexit118, label %.preheader117

.loopexit118:                                     ; preds = %.preheader117, %.thread, %106
  %.pn83.pn.pn.pn109 = phi { ptr, i32 } [ %93, %.thread ], [ %.pn83.pn.pn, %106 ], [ %.pn83.pn.pn, %.preheader117 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %10) #8
  br label %158

.thread110:                                       ; preds = %55
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  br label %.loopexit

111:                                              ; preds = %59
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %123

113:                                              ; preds = %61
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %122

115:                                              ; preds = %63
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit116

.loopexit116.loopexit:                            ; preds = %65
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIdSaIdEEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %30) #8
  %118 = getelementptr inbounds i8, ptr %21, i64 72
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %118) #8
  %119 = getelementptr inbounds i8, ptr %21, i64 48
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %119) #8
  %120 = getelementptr inbounds i8, ptr %21, i64 24
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #8
  br label %.loopexit116

.loopexit116:                                     ; preds = %.loopexit116.loopexit, %115
  %121 = phi i1 [ false, %115 ], [ true, %.loopexit116.loopexit ]
  %.pn88 = phi { ptr, i32 } [ %116, %115 ], [ %117, %.loopexit116.loopexit ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #8
  br label %122

122:                                              ; preds = %.loopexit116, %113
  %.077 = phi ptr [ %64, %.loopexit116 ], [ %62, %113 ]
  %.167 = phi i1 [ %121, %.loopexit116 ], [ false, %113 ]
  %.pn88.pn = phi { ptr, i32 } [ %.pn88, %.loopexit116 ], [ %114, %113 ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #8
  br label %123

123:                                              ; preds = %111, %122
  %.178 = phi ptr [ %.077, %122 ], [ %60, %111 ]
  %.268 = phi i1 [ %.167, %122 ], [ false, %111 ]
  %.pn88.pn.pn = phi { ptr, i32 } [ %.pn88.pn, %122 ], [ %112, %111 ]
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #8
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #8
  br i1 %.268, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %123, %.preheader
  %124 = phi ptr [ %125, %.preheader ], [ %.178, %123 ]
  %125 = getelementptr inbounds i8, ptr %124, i64 -24
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %125) #8
  %126 = icmp eq ptr %125, %21
  br i1 %126, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread110, %123
  %.pn88.pn.pn.pn115 = phi { ptr, i32 } [ %110, %.thread110 ], [ %.pn88.pn.pn, %123 ], [ %.pn88.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %21) #8
  br label %157

127:                                              ; preds = %.lr.ph
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %150

129:                                              ; preds = %73
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  br label %150

131:                                              ; preds = %74
  %132 = add nsw i64 %.064125, 1
  invoke void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %71)
          to label %133 unwind label %136

133:                                              ; preds = %131
  invoke void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %72)
          to label %134 unwind label %138

134:                                              ; preds = %133
  invoke void @_ZN13NeuralNetwork20MultiLayerPerceptron13backpropagateESt6vectorIdSaIdEES3_d(ptr noundef nonnull align 8 dereferenceable(64) %8, ptr noundef nonnull %33, ptr noundef nonnull %34, double noundef 1.000000e-02)
          to label %135 unwind label %140

135:                                              ; preds = %134
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  br label %143

136:                                              ; preds = %131
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %149

138:                                              ; preds = %133
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %142

140:                                              ; preds = %134
  %141 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #8
  br label %142

142:                                              ; preds = %140, %138
  %.pn93 = phi { ptr, i32 } [ %141, %140 ], [ %139, %138 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  br label %149

143:                                              ; preds = %135, %76
  %.165 = phi i64 [ %.064125, %76 ], [ %132, %135 ]
  %.162 = phi i64 [ %77, %76 ], [ 0, %135 ]
  %144 = add i64 %.063126, 1
  %145 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %146 = urem i64 %144, %145
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #8
  %147 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %148 = icmp ult i64 %.162, %147
  br i1 %148, label %.lr.ph, label %._crit_edge, !llvm.loop !11

149:                                              ; preds = %142, %136
  %.pn93.pn = phi { ptr, i32 } [ %.pn93, %142 ], [ %137, %136 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  br label %150

150:                                              ; preds = %149, %129, %127
  %.pn93.pn.pn = phi { ptr, i32 } [ %.pn93.pn, %149 ], [ %130, %129 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #8
  br label %156

._crit_edge:                                      ; preds = %143, %66
  %.064.lcssa = phi i64 [ 0, %66 ], [ %.165, %143 ]
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %.064.lcssa)
  %152 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  invoke void @_ZN13serialization15serializeToFileEPKcRKNS_13ISerializableE(ptr noundef %152, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %153 unwind label %154

153:                                              ; preds = %._crit_edge
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZN13NeuralNetwork20MultiLayerPerceptronD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  ret void

154:                                              ; preds = %._crit_edge
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %156

156:                                              ; preds = %154, %150
  %.pn93.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn, %150 ], [ %155, %154 ]
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  br label %157

157:                                              ; preds = %156, %.loopexit
  %.pn93.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn.pn, %156 ], [ %.pn88.pn.pn.pn115, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  br label %158

158:                                              ; preds = %157, %.loopexit118
  %.pn93.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn.pn.pn, %157 ], [ %.pn83.pn.pn.pn109, %.loopexit118 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  br label %159

159:                                              ; preds = %158, %91
  %.pn93.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn.pn.pn.pn, %158 ], [ %92, %91 ]
  call void @_ZN13NeuralNetwork20MultiLayerPerceptronD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %8) #8
  br label %160

160:                                              ; preds = %159, %89
  %.pn93.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn.pn.pn.pn.pn, %159 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  br label %161

161:                                              ; preds = %160, %87
  %.pn93.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn.pn.pn.pn.pn.pn, %160 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #8
  br label %162

162:                                              ; preds = %161, %85, %83
  %.pn93.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn.pn.pn.pn.pn.pn.pn, %161 ], [ %86, %85 ], [ %84, %83 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #8
  br label %163

163:                                              ; preds = %162, %82
  %.pn93.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn93.pn.pn.pn.pn.pn.pn.pn.pn.pn, %162 ], [ %.pn, %82 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn93.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN13NeuralNetwork10activation12setThresholdEOKd(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

declare void @_ZN11RandomUtils14initRandomSeedEv() local_unnamed_addr #4

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

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

declare void @_ZN13NeuralNetwork20MultiLayerPerceptronC1EiRKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(64), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

declare void @_ZN13NeuralNetwork20MultiLayerPerceptron21setActivationFunctionEPFvRSt6vectorIdSaIdEEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) local_unnamed_addr #4

declare void @_ZN13NeuralNetwork10activation9thresholdERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(24)) #4

declare void @_ZNK13NeuralNetwork20MultiLayerPerceptron16randomizeWeightsERS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #4

declare void @_ZN13serialization19loadWeightsFromFileEPKcRNS_13ISerializableE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

declare void @_ZN13NeuralNetwork20MultiLayerPerceptron11feedforwardESt6vectorIdSaIdEE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) local_unnamed_addr #4

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

declare void @_ZN13NeuralNetwork20MultiLayerPerceptron13backpropagateESt6vectorIdSaIdEES3_d(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef, ptr noundef, double noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

declare void @_ZN13serialization15serializeToFileEPKcRKNS_13ISerializableE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13NeuralNetwork20MultiLayerPerceptronD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #6 align 2

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

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass