; LLVM IR from jorgemf/c-evolutionary-library :: src (BPTT)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl" }
%"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

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

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4UtilC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) unnamed_addr #4

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

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

declare noundef i32 @_ZN9NeuralNet8getDelayEv(ptr noundef nonnull align 8 dereferenceable(128)) #4

declare noundef i32 @_ZN9NeuralNet18getNumberOfNeuronsEv(ptr noundef nonnull align 8 dereferenceable(128)) #4

declare noundef ptr @_ZN9NeuralNet10getNeuronsEv(ptr noundef nonnull align 8 dereferenceable(128)) #4

declare noundef i32 @_ZN9NeuralNet12getInputSizeEv(ptr noundef nonnull align 8 dereferenceable(128)) #4

declare noundef i32 @_ZN9NeuralNet13getOutputSizeEv(ptr noundef nonnull align 8 dereferenceable(128)) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #6

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

; Function Attrs: nounwind
declare double @log(double noundef) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41)) #4

declare noundef ptr @_ZN10Connection14getOuputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41)) #4

declare noundef i32 @_ZN6Neuron5getIDEv(ptr noundef nonnull align 8 dereferenceable(80)) #4

declare noundef double @_ZN10Connection9getWeightEv(ptr noundef nonnull align 8 dereferenceable(41)) #4

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

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

declare noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41)) #4

declare void @_ZN10Connection17addToModificationEd(ptr noundef nonnull align 8 dereferenceable(41), double noundef) #4

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

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

declare void @_ZN4Util8showDataEiiddP9NeuralNetddd(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef, i32 noundef, double noundef, double noundef, ptr noundef, double noundef, double noundef, double noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN4BPTT5learnEP9NeuralNetP4DataiiiddNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6, double noundef %7, ptr noundef %8) #3 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i1, align 1
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca ptr, align 8
  %52 = alloca i32, align 4
  %53 = alloca double, align 8
  %54 = alloca %"class.std::vector.8", align 8
  %55 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %56 = alloca ptr, align 8
  %57 = alloca i32, align 4
  %58 = alloca %"class.std::vector.8", align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %60 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %61 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %62 = alloca %"class.std::vector.8", align 8
  %63 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %64 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %65 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %66 = alloca %"class.std::vector.8", align 8
  %67 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %68 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %69 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %70 = alloca %"class.std::vector.8", align 8
  %71 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %72 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %73 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %74 = alloca %"class.std::vector.8", align 8
  %75 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %76 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %77 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %78 = alloca %"class.std::vector.8", align 8
  %79 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %80 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %81 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %82 = alloca %"class.std::vector.8", align 8
  %83 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %84 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %85 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store double %6, ptr %16, align 8, !tbaa !11
  store double %7, ptr %17, align 8, !tbaa !11
  store ptr %8, ptr %18, align 8, !tbaa !5
  %86 = load ptr, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %87 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #11
  store i1 true, ptr %23, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %88 unwind label %203

88:                                               ; preds = %9
  invoke void @_ZN4UtilC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %87, ptr noundef %20)
          to label %89 unwind label %207

89:                                               ; preds = %88
  store i1 false, ptr %23, align 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  store ptr %87, ptr %19, align 8, !tbaa !5
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  call void @_ZN4Util13startLearningEv(ptr noundef nonnull align 8 dereferenceable(104) %90)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  store double 0.000000e+00, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  store double 0.000000e+00, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  store double 0.000000e+00, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = call noundef i32 @_ZN9NeuralNet8getDelayEv(ptr noundef nonnull align 8 dereferenceable(128) %91)
  store i32 %92, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = call noundef i32 @_ZN9NeuralNet18getNumberOfNeuronsEv(ptr noundef nonnull align 8 dereferenceable(128) %93)
  store i32 %94, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = call noundef ptr @_ZN9NeuralNet10getNeuronsEv(ptr noundef nonnull align 8 dereferenceable(128) %95)
  store ptr %96, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #10
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = call noundef i32 @_ZN9NeuralNet12getInputSizeEv(ptr noundef nonnull align 8 dereferenceable(128) %97)
  store i32 %98, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #10
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = call noundef i32 @_ZN9NeuralNet13getOutputSizeEv(ptr noundef nonnull align 8 dereferenceable(128) %99)
  store i32 %100, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #10
  %101 = load i32, ptr %32, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %102, i64 8)
  %104 = extractvalue { i64, i1 } %103, 1
  %105 = extractvalue { i64, i1 } %103, 0
  %106 = select i1 %104, i64 -1, i64 %105
  %107 = call noalias noundef nonnull ptr @_Znam(i64 noundef %106) #11
  store ptr %107, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  %108 = load i32, ptr %33, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %109, i64 8)
  %111 = extractvalue { i64, i1 } %110, 1
  %112 = extractvalue { i64, i1 } %110, 0
  %113 = select i1 %111, i64 -1, i64 %112
  %114 = call noalias noundef nonnull ptr @_Znam(i64 noundef %113) #11
  store ptr %114, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %115 = load i32, ptr %15, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  %117 = sitofp i32 %116 to double
  %118 = call double @log(double noundef %117) #10
  %119 = fadd double %118, 1.000000e+00
  store double %119, ptr %44, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #10
  %120 = load double, ptr %17, align 8, !tbaa !11
  %121 = load double, ptr %44, align 8, !tbaa !11
  %122 = load double, ptr %16, align 8, !tbaa !11
  %123 = fneg double %122
  %124 = call double @llvm.fmuladd.f64(double %120, double %121, double %123)
  %125 = load double, ptr %44, align 8, !tbaa !11
  %126 = fsub double %125, 1.000000e+00
  %127 = fdiv double %124, %126
  store double %127, ptr %45, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #10
  %128 = load double, ptr %16, align 8, !tbaa !11
  %129 = load double, ptr %45, align 8, !tbaa !11
  %130 = fsub double %128, %129
  store double %130, ptr %46, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #10
  %131 = load i32, ptr %30, align 4, !tbaa !9
  %132 = load i32, ptr %33, align 4, !tbaa !9
  %133 = sub nsw i32 %131, %132
  store i32 %133, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #10
  %134 = load i32, ptr %30, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %135, i64 8)
  %137 = extractvalue { i64, i1 } %136, 1
  %138 = extractvalue { i64, i1 } %136, 0
  %139 = select i1 %137, i64 -1, i64 %138
  %140 = call noalias noundef nonnull ptr @_Znam(i64 noundef %139) #11
  store ptr %140, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #10
  call void @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #10
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = invoke noundef ptr @_ZN4Data12getDataInputEv(ptr noundef nonnull align 8 dereferenceable(36) %141)
          to label %143 unwind label %215

143:                                              ; preds = %89
  store ptr %142, ptr %34, align 8, !tbaa !5
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = invoke noundef ptr @_ZN4Data13getDataOutputEv(ptr noundef nonnull align 8 dereferenceable(36) %144)
          to label %146 unwind label %215

146:                                              ; preds = %143
  store ptr %145, ptr %35, align 8, !tbaa !5
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = invoke noundef i32 @_ZN4Data15getNumberOfDataEv(ptr noundef nonnull align 8 dereferenceable(36) %147)
          to label %149 unwind label %215

149:                                              ; preds = %146
  store i32 %148, ptr %41, align 4, !tbaa !9
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %936, %149
  %151 = load i32, ptr %40, align 4, !tbaa !9
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %154, label %939

154:                                              ; preds = %150
  %155 = load double, ptr %46, align 8, !tbaa !11
  %156 = load i32, ptr %40, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  %158 = sitofp i32 %157 to double
  %159 = call double @log(double noundef %158) #10
  %160 = fadd double %159, 1.000000e+00
  %161 = fdiv double %155, %160
  %162 = load double, ptr %45, align 8, !tbaa !11
  %163 = fadd double %161, %162
  store double %163, ptr %43, align 8, !tbaa !11
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN9NeuralNet10cleanStateEv(ptr noundef nonnull align 8 dereferenceable(128) %164)
          to label %165 unwind label %215

165:                                              ; preds = %154
  store double 0.000000e+00, ptr %28, align 8, !tbaa !11
  store i32 0, ptr %29, align 4, !tbaa !9
  %166 = load i32, ptr %41, align 4, !tbaa !9
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = add nsw i32 %167, %168
  %170 = sub nsw i32 %166, %169
  store i32 %170, ptr %57, align 4, !tbaa !9
  %171 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %171, ptr %42, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %726, %165
  %173 = load i32, ptr %42, align 4, !tbaa !9
  %174 = load i32, ptr %57, align 4, !tbaa !9
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %176, label %729

176:                                              ; preds = %172
  %177 = load ptr, ptr %34, align 8, !tbaa !5
  %178 = load i32, ptr %42, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %177, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  store ptr %181, ptr %36, align 8, !tbaa !5
  %182 = load ptr, ptr %35, align 8, !tbaa !5
  %183 = load i32, ptr %42, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds ptr, ptr %182, i64 %184
  %186 = load ptr, ptr %185, align 8, !tbaa !5
  store ptr %186, ptr %38, align 8, !tbaa !5
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = load ptr, ptr %36, align 8, !tbaa !5
  %189 = load ptr, ptr %39, align 8, !tbaa !5
  invoke void @_ZN9NeuralNet9getOutputEPdS0_(ptr noundef nonnull align 8 dereferenceable(128) %187, ptr noundef %188, ptr noundef %189)
          to label %190 unwind label %215

190:                                              ; preds = %176
  store i32 0, ptr %52, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %200, %190
  %192 = load i32, ptr %52, align 4, !tbaa !9
  %193 = load i32, ptr %30, align 4, !tbaa !9
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %195, label %219

195:                                              ; preds = %191
  %196 = load ptr, ptr %51, align 8, !tbaa !5
  %197 = load i32, ptr %52, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds double, ptr %196, i64 %198
  store double 0.000000e+00, ptr %199, align 8, !tbaa !11
  br label %200

200:                                              ; preds = %195
  %201 = load i32, ptr %52, align 4, !tbaa !9
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %52, align 4, !tbaa !9
  br label %191, !llvm.loop !13

203:                                              ; preds = %9
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %21, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %22, align 4
  br label %211

207:                                              ; preds = %88
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %21, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %22, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #10
  br label %211

211:                                              ; preds = %207, %203
  %212 = load i1, ptr %23, align 1
  br i1 %212, label %213, label %214

213:                                              ; preds = %211
  call void @_ZdlPvm(ptr noundef %87, i64 noundef 104) #12
  br label %214

214:                                              ; preds = %213, %211
  br label %961

215:                                              ; preds = %921, %884, %869, %787, %772, %713, %683, %676, %673, %662, %611, %609, %603, %578, %547, %540, %537, %525, %522, %516, %465, %463, %457, %432, %399, %393, %390, %380, %377, %371, %319, %317, %313, %307, %283, %225, %176, %154, %146, %143, %89
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %21, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %22, align 4
  br label %960

219:                                              ; preds = %191
  store double 0.000000e+00, ptr %47, align 8, !tbaa !11
  %220 = load i32, ptr %50, align 4, !tbaa !9
  store i32 %220, ptr %52, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %267, %219
  %222 = load i32, ptr %52, align 4, !tbaa !9
  %223 = load i32, ptr %30, align 4, !tbaa !9
  %224 = icmp slt i32 %222, %223
  br i1 %224, label %225, label %270

225:                                              ; preds = %221
  %226 = load ptr, ptr %31, align 8, !tbaa !5
  %227 = load i32, ptr %52, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %226, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load ptr, ptr %230, align 8, !tbaa !15
  %232 = getelementptr inbounds ptr, ptr %231, i64 5
  %233 = load ptr, ptr %232, align 8
  %234 = invoke noundef double %233(ptr noundef nonnull align 8 dereferenceable(80) %230, i32 noundef 0)
          to label %235 unwind label %215

235:                                              ; preds = %225
  store double %234, ptr %53, align 8, !tbaa !11
  %236 = load ptr, ptr %38, align 8, !tbaa !5
  %237 = load i32, ptr %52, align 4, !tbaa !9
  %238 = load i32, ptr %50, align 4, !tbaa !9
  %239 = sub nsw i32 %237, %238
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds double, ptr %236, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !11
  %243 = load double, ptr %53, align 8, !tbaa !11
  %244 = fsub double %242, %243
  store double %244, ptr %48, align 8, !tbaa !11
  %245 = load double, ptr %48, align 8, !tbaa !11
  %246 = load double, ptr %48, align 8, !tbaa !11
  %247 = load double, ptr %47, align 8, !tbaa !11
  %248 = call double @llvm.fmuladd.f64(double %245, double %246, double %247)
  store double %248, ptr %47, align 8, !tbaa !11
  %249 = load double, ptr %53, align 8, !tbaa !11
  %250 = load ptr, ptr %38, align 8, !tbaa !5
  %251 = load i32, ptr %52, align 4, !tbaa !9
  %252 = load i32, ptr %50, align 4, !tbaa !9
  %253 = sub nsw i32 %251, %252
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds double, ptr %250, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !11
  %257 = fsub double %249, %256
  %258 = load double, ptr %53, align 8, !tbaa !11
  %259 = fmul double %257, %258
  %260 = load double, ptr %53, align 8, !tbaa !11
  %261 = fsub double 1.000000e+00, %260
  %262 = fmul double %259, %261
  %263 = load ptr, ptr %51, align 8, !tbaa !5
  %264 = load i32, ptr %52, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds double, ptr %263, i64 %265
  store double %262, ptr %266, align 8, !tbaa !11
  br label %267

267:                                              ; preds = %235
  %268 = load i32, ptr %52, align 4, !tbaa !9
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %52, align 4, !tbaa !9
  br label %221, !llvm.loop !17

270:                                              ; preds = %221
  %271 = load double, ptr %47, align 8, !tbaa !11
  %272 = load i32, ptr %33, align 4, !tbaa !9
  %273 = sitofp i32 %272 to double
  %274 = fdiv double %271, %273
  %275 = load double, ptr %28, align 8, !tbaa !11
  %276 = fadd double %275, %274
  store double %276, ptr %28, align 8, !tbaa !11
  %277 = load i32, ptr %50, align 4, !tbaa !9
  %278 = sub nsw i32 %277, 1
  store i32 %278, ptr %52, align 4, !tbaa !9
  br label %279

279:                                              ; preds = %347, %270
  %280 = load i32, ptr %52, align 4, !tbaa !9
  %281 = load i32, ptr %32, align 4, !tbaa !9
  %282 = icmp sgt i32 %280, %281
  br i1 %282, label %283, label %350

283:                                              ; preds = %279
  %284 = load ptr, ptr %31, align 8, !tbaa !5
  %285 = load i32, ptr %52, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds ptr, ptr %284, i64 %286
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  %289 = load ptr, ptr %288, align 8, !tbaa !15
  %290 = getelementptr inbounds ptr, ptr %289, i64 5
  %291 = load ptr, ptr %290, align 8
  %292 = invoke noundef double %291(ptr noundef nonnull align 8 dereferenceable(80) %288, i32 noundef 0)
          to label %293 unwind label %215

293:                                              ; preds = %283
  store double %292, ptr %53, align 8, !tbaa !11
  store double 0.000000e+00, ptr %48, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %58) #10
  %294 = load ptr, ptr %31, align 8, !tbaa !5
  %295 = load i32, ptr %52, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds ptr, ptr %294, i64 %296
  %298 = load ptr, ptr %297, align 8, !tbaa !5
  invoke void @_ZN6Neuron20getOutputConnectionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %58, ptr noundef nonnull align 8 dereferenceable(80) %298)
          to label %299 unwind label %328

299:                                              ; preds = %293
  %300 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %58) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %58) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #10
  %301 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %302 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %59, i32 0, i32 0
  store ptr %301, ptr %302, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %59, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  br label %303

303:                                              ; preds = %333, %299
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #10
  %304 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %305 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %60, i32 0, i32 0
  store ptr %304, ptr %305, align 8
  %306 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %60) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #10
  br i1 %306, label %307, label %336

307:                                              ; preds = %303
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %309 = load ptr, ptr %308, align 8, !tbaa !5
  store ptr %309, ptr %56, align 8, !tbaa !5
  %310 = load ptr, ptr %56, align 8, !tbaa !5
  %311 = invoke noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41) %310)
          to label %312 unwind label %215

312:                                              ; preds = %307
  br i1 %311, label %332, label %313

313:                                              ; preds = %312
  %314 = load ptr, ptr %51, align 8, !tbaa !5
  %315 = load ptr, ptr %56, align 8, !tbaa !5
  %316 = invoke noundef ptr @_ZN10Connection14getOuputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %315)
          to label %317 unwind label %215

317:                                              ; preds = %313
  %318 = invoke noundef i32 @_ZN6Neuron5getIDEv(ptr noundef nonnull align 8 dereferenceable(80) %316)
          to label %319 unwind label %215

319:                                              ; preds = %317
  %320 = sext i32 %318 to i64
  %321 = getelementptr inbounds double, ptr %314, i64 %320
  %322 = load double, ptr %321, align 8, !tbaa !11
  %323 = load ptr, ptr %56, align 8, !tbaa !5
  %324 = invoke noundef double @_ZN10Connection9getWeightEv(ptr noundef nonnull align 8 dereferenceable(41) %323)
          to label %325 unwind label %215

325:                                              ; preds = %319
  %326 = load double, ptr %48, align 8, !tbaa !11
  %327 = call double @llvm.fmuladd.f64(double %322, double %324, double %326)
  store double %327, ptr %48, align 8, !tbaa !11
  br label %332

328:                                              ; preds = %293
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %21, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #10
  br label %960

332:                                              ; preds = %325, %312
  br label %333

333:                                              ; preds = %332
  %334 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0) #10
  %335 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %61, i32 0, i32 0
  store ptr %334, ptr %335, align 8
  br label %303, !llvm.loop !19

336:                                              ; preds = %303
  %337 = load double, ptr %53, align 8, !tbaa !11
  %338 = load double, ptr %53, align 8, !tbaa !11
  %339 = fsub double 1.000000e+00, %338
  %340 = fmul double %337, %339
  %341 = load double, ptr %48, align 8, !tbaa !11
  %342 = fmul double %340, %341
  %343 = load ptr, ptr %51, align 8, !tbaa !5
  %344 = load i32, ptr %52, align 4, !tbaa !9
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds double, ptr %343, i64 %345
  store double %342, ptr %346, align 8, !tbaa !11
  br label %347

347:                                              ; preds = %336
  %348 = load i32, ptr %52, align 4, !tbaa !9
  %349 = add nsw i32 %348, -1
  store i32 %349, ptr %52, align 4, !tbaa !9
  br label %279, !llvm.loop !20

350:                                              ; preds = %279
  %351 = load i32, ptr %32, align 4, !tbaa !9
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr %52, align 4, !tbaa !9
  br label %353

353:                                              ; preds = %416, %350
  %354 = load i32, ptr %52, align 4, !tbaa !9
  %355 = load i32, ptr %30, align 4, !tbaa !9
  %356 = icmp slt i32 %354, %355
  br i1 %356, label %357, label %419

357:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 24, ptr %62) #10
  %358 = load ptr, ptr %31, align 8, !tbaa !5
  %359 = load i32, ptr %52, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds ptr, ptr %358, i64 %360
  %362 = load ptr, ptr %361, align 8, !tbaa !5
  invoke void @_ZN6Neuron19getInputConnectionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %62, ptr noundef nonnull align 8 dereferenceable(80) %362)
          to label %363 unwind label %386

363:                                              ; preds = %357
  %364 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %62) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %62) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %62) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #10
  %365 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %366 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %63, i32 0, i32 0
  store ptr %365, ptr %366, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %63, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #10
  br label %367

367:                                              ; preds = %412, %363
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #10
  %368 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %369 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %64, i32 0, i32 0
  store ptr %368, ptr %369, align 8
  %370 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %64) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #10
  br i1 %370, label %371, label %415

371:                                              ; preds = %367
  %372 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %373 = load ptr, ptr %372, align 8, !tbaa !5
  store ptr %373, ptr %56, align 8, !tbaa !5
  %374 = load ptr, ptr %56, align 8, !tbaa !5
  %375 = invoke noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41) %374)
          to label %376 unwind label %215

376:                                              ; preds = %371
  br i1 %375, label %377, label %390

377:                                              ; preds = %376
  %378 = load ptr, ptr %56, align 8, !tbaa !5
  %379 = invoke noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %378)
          to label %380 unwind label %215

380:                                              ; preds = %377
  %381 = load ptr, ptr %379, align 8, !tbaa !15
  %382 = getelementptr inbounds ptr, ptr %381, i64 5
  %383 = load ptr, ptr %382, align 8
  %384 = invoke noundef double %383(ptr noundef nonnull align 8 dereferenceable(80) %379, i32 noundef 1)
          to label %385 unwind label %215

385:                                              ; preds = %380
  store double %384, ptr %53, align 8, !tbaa !11
  br label %399

386:                                              ; preds = %357
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %21, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %62) #10
  br label %960

390:                                              ; preds = %376
  %391 = load ptr, ptr %56, align 8, !tbaa !5
  %392 = invoke noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %391)
          to label %393 unwind label %215

393:                                              ; preds = %390
  %394 = load ptr, ptr %392, align 8, !tbaa !15
  %395 = getelementptr inbounds ptr, ptr %394, i64 5
  %396 = load ptr, ptr %395, align 8
  %397 = invoke noundef double %396(ptr noundef nonnull align 8 dereferenceable(80) %392, i32 noundef 0)
          to label %398 unwind label %215

398:                                              ; preds = %393
  store double %397, ptr %53, align 8, !tbaa !11
  br label %399

399:                                              ; preds = %398, %385
  %400 = load ptr, ptr %56, align 8, !tbaa !5
  %401 = load double, ptr %43, align 8, !tbaa !11
  %402 = fneg double %401
  %403 = load ptr, ptr %51, align 8, !tbaa !5
  %404 = load i32, ptr %52, align 4, !tbaa !9
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds double, ptr %403, i64 %405
  %407 = load double, ptr %406, align 8, !tbaa !11
  %408 = fmul double %402, %407
  %409 = load double, ptr %53, align 8, !tbaa !11
  %410 = fmul double %408, %409
  invoke void @_ZN10Connection17addToModificationEd(ptr noundef nonnull align 8 dereferenceable(41) %400, double noundef %410)
          to label %411 unwind label %215

411:                                              ; preds = %399
  br label %412

412:                                              ; preds = %411
  %413 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0) #10
  %414 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %65, i32 0, i32 0
  store ptr %413, ptr %414, align 8
  br label %367, !llvm.loop !21

415:                                              ; preds = %367
  br label %416

416:                                              ; preds = %415
  %417 = load i32, ptr %52, align 4, !tbaa !9
  %418 = add nsw i32 %417, 1
  store i32 %418, ptr %52, align 4, !tbaa !9
  br label %353, !llvm.loop !22

419:                                              ; preds = %353
  store i32 1, ptr %49, align 4, !tbaa !9
  br label %420

420:                                              ; preds = %568, %419
  %421 = load i32, ptr %49, align 4, !tbaa !9
  %422 = load i32, ptr %29, align 4, !tbaa !9
  %423 = sub nsw i32 %422, 1
  %424 = icmp slt i32 %421, %423
  br i1 %424, label %425, label %571

425:                                              ; preds = %420
  %426 = load i32, ptr %30, align 4, !tbaa !9
  %427 = sub nsw i32 %426, 1
  store i32 %427, ptr %52, align 4, !tbaa !9
  br label %428

428:                                              ; preds = %492, %425
  %429 = load i32, ptr %52, align 4, !tbaa !9
  %430 = load i32, ptr %32, align 4, !tbaa !9
  %431 = icmp sgt i32 %429, %430
  br i1 %431, label %432, label %495

432:                                              ; preds = %428
  %433 = load ptr, ptr %31, align 8, !tbaa !5
  %434 = load i32, ptr %52, align 4, !tbaa !9
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds ptr, ptr %433, i64 %435
  %437 = load ptr, ptr %436, align 8, !tbaa !5
  %438 = load i32, ptr %49, align 4, !tbaa !9
  %439 = load ptr, ptr %437, align 8, !tbaa !15
  %440 = getelementptr inbounds ptr, ptr %439, i64 5
  %441 = load ptr, ptr %440, align 8
  %442 = invoke noundef double %441(ptr noundef nonnull align 8 dereferenceable(80) %437, i32 noundef %438)
          to label %443 unwind label %215

443:                                              ; preds = %432
  store double %442, ptr %53, align 8, !tbaa !11
  store double 0.000000e+00, ptr %48, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %66) #10
  %444 = load ptr, ptr %31, align 8, !tbaa !5
  %445 = load i32, ptr %52, align 4, !tbaa !9
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds ptr, ptr %444, i64 %446
  %448 = load ptr, ptr %447, align 8, !tbaa !5
  invoke void @_ZN6Neuron20getOutputConnectionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %66, ptr noundef nonnull align 8 dereferenceable(80) %448)
          to label %449 unwind label %477

449:                                              ; preds = %443
  %450 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %66) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %66) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %66) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #10
  %451 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %452 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %67, i32 0, i32 0
  store ptr %451, ptr %452, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %67, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #10
  br label %453

453:                                              ; preds = %474, %449
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #10
  %454 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %455 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %68, i32 0, i32 0
  store ptr %454, ptr %455, align 8
  %456 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %68) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #10
  br i1 %456, label %457, label %481

457:                                              ; preds = %453
  %458 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %459 = load ptr, ptr %458, align 8, !tbaa !5
  store ptr %459, ptr %56, align 8, !tbaa !5
  %460 = load ptr, ptr %51, align 8, !tbaa !5
  %461 = load ptr, ptr %56, align 8, !tbaa !5
  %462 = invoke noundef ptr @_ZN10Connection14getOuputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %461)
          to label %463 unwind label %215

463:                                              ; preds = %457
  %464 = invoke noundef i32 @_ZN6Neuron5getIDEv(ptr noundef nonnull align 8 dereferenceable(80) %462)
          to label %465 unwind label %215

465:                                              ; preds = %463
  %466 = sext i32 %464 to i64
  %467 = getelementptr inbounds double, ptr %460, i64 %466
  %468 = load double, ptr %467, align 8, !tbaa !11
  %469 = load ptr, ptr %56, align 8, !tbaa !5
  %470 = invoke noundef double @_ZN10Connection9getWeightEv(ptr noundef nonnull align 8 dereferenceable(41) %469)
          to label %471 unwind label %215

471:                                              ; preds = %465
  %472 = load double, ptr %48, align 8, !tbaa !11
  %473 = call double @llvm.fmuladd.f64(double %468, double %470, double %472)
  store double %473, ptr %48, align 8, !tbaa !11
  br label %474

474:                                              ; preds = %471
  %475 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0) #10
  %476 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %69, i32 0, i32 0
  store ptr %475, ptr %476, align 8
  br label %453, !llvm.loop !23

477:                                              ; preds = %443
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %21, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %66) #10
  br label %960

481:                                              ; preds = %453
  %482 = load double, ptr %53, align 8, !tbaa !11
  %483 = load double, ptr %53, align 8, !tbaa !11
  %484 = fsub double 1.000000e+00, %483
  %485 = fmul double %482, %484
  %486 = load double, ptr %48, align 8, !tbaa !11
  %487 = fmul double %485, %486
  %488 = load ptr, ptr %51, align 8, !tbaa !5
  %489 = load i32, ptr %52, align 4, !tbaa !9
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds double, ptr %488, i64 %490
  store double %487, ptr %491, align 8, !tbaa !11
  br label %492

492:                                              ; preds = %481
  %493 = load i32, ptr %52, align 4, !tbaa !9
  %494 = add nsw i32 %493, -1
  store i32 %494, ptr %52, align 4, !tbaa !9
  br label %428, !llvm.loop !24

495:                                              ; preds = %428
  %496 = load i32, ptr %32, align 4, !tbaa !9
  %497 = add nsw i32 %496, 1
  store i32 %497, ptr %52, align 4, !tbaa !9
  br label %498

498:                                              ; preds = %564, %495
  %499 = load i32, ptr %52, align 4, !tbaa !9
  %500 = load i32, ptr %30, align 4, !tbaa !9
  %501 = icmp slt i32 %499, %500
  br i1 %501, label %502, label %567

502:                                              ; preds = %498
  call void @llvm.lifetime.start.p0(i64 24, ptr %70) #10
  %503 = load ptr, ptr %31, align 8, !tbaa !5
  %504 = load i32, ptr %52, align 4, !tbaa !9
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds ptr, ptr %503, i64 %505
  %507 = load ptr, ptr %506, align 8, !tbaa !5
  invoke void @_ZN6Neuron19getInputConnectionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %70, ptr noundef nonnull align 8 dereferenceable(80) %507)
          to label %508 unwind label %533

508:                                              ; preds = %502
  %509 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %70) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %70) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %70) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #10
  %510 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %511 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %71, i32 0, i32 0
  store ptr %510, ptr %511, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %71, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #10
  br label %512

512:                                              ; preds = %560, %508
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #10
  %513 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %514 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %72, i32 0, i32 0
  store ptr %513, ptr %514, align 8
  %515 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %72) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #10
  br i1 %515, label %516, label %563

516:                                              ; preds = %512
  %517 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %518 = load ptr, ptr %517, align 8, !tbaa !5
  store ptr %518, ptr %56, align 8, !tbaa !5
  %519 = load ptr, ptr %56, align 8, !tbaa !5
  %520 = invoke noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41) %519)
          to label %521 unwind label %215

521:                                              ; preds = %516
  br i1 %520, label %522, label %537

522:                                              ; preds = %521
  %523 = load ptr, ptr %56, align 8, !tbaa !5
  %524 = invoke noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %523)
          to label %525 unwind label %215

525:                                              ; preds = %522
  %526 = load i32, ptr %49, align 4, !tbaa !9
  %527 = add nsw i32 %526, 1
  %528 = load ptr, ptr %524, align 8, !tbaa !15
  %529 = getelementptr inbounds ptr, ptr %528, i64 5
  %530 = load ptr, ptr %529, align 8
  %531 = invoke noundef double %530(ptr noundef nonnull align 8 dereferenceable(80) %524, i32 noundef %527)
          to label %532 unwind label %215

532:                                              ; preds = %525
  store double %531, ptr %53, align 8, !tbaa !11
  br label %547

533:                                              ; preds = %502
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %21, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %70) #10
  br label %960

537:                                              ; preds = %521
  %538 = load ptr, ptr %56, align 8, !tbaa !5
  %539 = invoke noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %538)
          to label %540 unwind label %215

540:                                              ; preds = %537
  %541 = load i32, ptr %49, align 4, !tbaa !9
  %542 = load ptr, ptr %539, align 8, !tbaa !15
  %543 = getelementptr inbounds ptr, ptr %542, i64 5
  %544 = load ptr, ptr %543, align 8
  %545 = invoke noundef double %544(ptr noundef nonnull align 8 dereferenceable(80) %539, i32 noundef %541)
          to label %546 unwind label %215

546:                                              ; preds = %540
  store double %545, ptr %53, align 8, !tbaa !11
  br label %547

547:                                              ; preds = %546, %532
  %548 = load ptr, ptr %56, align 8, !tbaa !5
  %549 = load double, ptr %43, align 8, !tbaa !11
  %550 = fneg double %549
  %551 = load ptr, ptr %51, align 8, !tbaa !5
  %552 = load i32, ptr %52, align 4, !tbaa !9
  %553 = sext i32 %552 to i64
  %554 = getelementptr inbounds double, ptr %551, i64 %553
  %555 = load double, ptr %554, align 8, !tbaa !11
  %556 = fmul double %550, %555
  %557 = load double, ptr %53, align 8, !tbaa !11
  %558 = fmul double %556, %557
  invoke void @_ZN10Connection17addToModificationEd(ptr noundef nonnull align 8 dereferenceable(41) %548, double noundef %558)
          to label %559 unwind label %215

559:                                              ; preds = %547
  br label %560

560:                                              ; preds = %559
  %561 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0) #10
  %562 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %73, i32 0, i32 0
  store ptr %561, ptr %562, align 8
  br label %512, !llvm.loop !25

563:                                              ; preds = %512
  br label %564

564:                                              ; preds = %563
  %565 = load i32, ptr %52, align 4, !tbaa !9
  %566 = add nsw i32 %565, 1
  store i32 %566, ptr %52, align 4, !tbaa !9
  br label %498, !llvm.loop !26

567:                                              ; preds = %498
  br label %568

568:                                              ; preds = %567
  %569 = load i32, ptr %49, align 4, !tbaa !9
  %570 = add nsw i32 %569, 1
  store i32 %570, ptr %49, align 4, !tbaa !9
  br label %420, !llvm.loop !27

571:                                              ; preds = %420
  %572 = load i32, ptr %30, align 4, !tbaa !9
  %573 = sub nsw i32 %572, 1
  store i32 %573, ptr %52, align 4, !tbaa !9
  br label %574

574:                                              ; preds = %638, %571
  %575 = load i32, ptr %52, align 4, !tbaa !9
  %576 = load i32, ptr %32, align 4, !tbaa !9
  %577 = icmp sgt i32 %575, %576
  br i1 %577, label %578, label %641

578:                                              ; preds = %574
  %579 = load ptr, ptr %31, align 8, !tbaa !5
  %580 = load i32, ptr %52, align 4, !tbaa !9
  %581 = sext i32 %580 to i64
  %582 = getelementptr inbounds ptr, ptr %579, i64 %581
  %583 = load ptr, ptr %582, align 8, !tbaa !5
  %584 = load i32, ptr %49, align 4, !tbaa !9
  %585 = load ptr, ptr %583, align 8, !tbaa !15
  %586 = getelementptr inbounds ptr, ptr %585, i64 5
  %587 = load ptr, ptr %586, align 8
  %588 = invoke noundef double %587(ptr noundef nonnull align 8 dereferenceable(80) %583, i32 noundef %584)
          to label %589 unwind label %215

589:                                              ; preds = %578
  store double %588, ptr %53, align 8, !tbaa !11
  store double 0.000000e+00, ptr %48, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %74) #10
  %590 = load ptr, ptr %31, align 8, !tbaa !5
  %591 = load i32, ptr %52, align 4, !tbaa !9
  %592 = sext i32 %591 to i64
  %593 = getelementptr inbounds ptr, ptr %590, i64 %592
  %594 = load ptr, ptr %593, align 8, !tbaa !5
  invoke void @_ZN6Neuron20getOutputConnectionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %74, ptr noundef nonnull align 8 dereferenceable(80) %594)
          to label %595 unwind label %623

595:                                              ; preds = %589
  %596 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %74) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %74) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %74) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %75) #10
  %597 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %598 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %75, i32 0, i32 0
  store ptr %597, ptr %598, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %75, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %75) #10
  br label %599

599:                                              ; preds = %620, %595
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #10
  %600 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %601 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %76, i32 0, i32 0
  store ptr %600, ptr %601, align 8
  %602 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %76) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #10
  br i1 %602, label %603, label %627

603:                                              ; preds = %599
  %604 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %605 = load ptr, ptr %604, align 8, !tbaa !5
  store ptr %605, ptr %56, align 8, !tbaa !5
  %606 = load ptr, ptr %51, align 8, !tbaa !5
  %607 = load ptr, ptr %56, align 8, !tbaa !5
  %608 = invoke noundef ptr @_ZN10Connection14getOuputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %607)
          to label %609 unwind label %215

609:                                              ; preds = %603
  %610 = invoke noundef i32 @_ZN6Neuron5getIDEv(ptr noundef nonnull align 8 dereferenceable(80) %608)
          to label %611 unwind label %215

611:                                              ; preds = %609
  %612 = sext i32 %610 to i64
  %613 = getelementptr inbounds double, ptr %606, i64 %612
  %614 = load double, ptr %613, align 8, !tbaa !11
  %615 = load ptr, ptr %56, align 8, !tbaa !5
  %616 = invoke noundef double @_ZN10Connection9getWeightEv(ptr noundef nonnull align 8 dereferenceable(41) %615)
          to label %617 unwind label %215

617:                                              ; preds = %611
  %618 = load double, ptr %48, align 8, !tbaa !11
  %619 = call double @llvm.fmuladd.f64(double %614, double %616, double %618)
  store double %619, ptr %48, align 8, !tbaa !11
  br label %620

620:                                              ; preds = %617
  %621 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0) #10
  %622 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %77, i32 0, i32 0
  store ptr %621, ptr %622, align 8
  br label %599, !llvm.loop !28

623:                                              ; preds = %589
  %624 = landingpad { ptr, i32 }
          cleanup
  %625 = extractvalue { ptr, i32 } %624, 0
  store ptr %625, ptr %21, align 8
  %626 = extractvalue { ptr, i32 } %624, 1
  store i32 %626, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %74) #10
  br label %960

627:                                              ; preds = %599
  %628 = load double, ptr %53, align 8, !tbaa !11
  %629 = load double, ptr %53, align 8, !tbaa !11
  %630 = fsub double 1.000000e+00, %629
  %631 = fmul double %628, %630
  %632 = load double, ptr %48, align 8, !tbaa !11
  %633 = fmul double %631, %632
  %634 = load ptr, ptr %51, align 8, !tbaa !5
  %635 = load i32, ptr %52, align 4, !tbaa !9
  %636 = sext i32 %635 to i64
  %637 = getelementptr inbounds double, ptr %634, i64 %636
  store double %633, ptr %637, align 8, !tbaa !11
  br label %638

638:                                              ; preds = %627
  %639 = load i32, ptr %52, align 4, !tbaa !9
  %640 = add nsw i32 %639, -1
  store i32 %640, ptr %52, align 4, !tbaa !9
  br label %574, !llvm.loop !29

641:                                              ; preds = %574
  %642 = load i32, ptr %32, align 4, !tbaa !9
  %643 = add nsw i32 %642, 1
  store i32 %643, ptr %52, align 4, !tbaa !9
  br label %644

644:                                              ; preds = %700, %641
  %645 = load i32, ptr %52, align 4, !tbaa !9
  %646 = load i32, ptr %30, align 4, !tbaa !9
  %647 = icmp slt i32 %645, %646
  br i1 %647, label %648, label %703

648:                                              ; preds = %644
  call void @llvm.lifetime.start.p0(i64 24, ptr %78) #10
  %649 = load ptr, ptr %31, align 8, !tbaa !5
  %650 = load i32, ptr %52, align 4, !tbaa !9
  %651 = sext i32 %650 to i64
  %652 = getelementptr inbounds ptr, ptr %649, i64 %651
  %653 = load ptr, ptr %652, align 8, !tbaa !5
  invoke void @_ZN6Neuron19getInputConnectionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %78, ptr noundef nonnull align 8 dereferenceable(80) %653)
          to label %654 unwind label %669

654:                                              ; preds = %648
  %655 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %78) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %78) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %78) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #10
  %656 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %657 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %79, i32 0, i32 0
  store ptr %656, ptr %657, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %79, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #10
  br label %658

658:                                              ; preds = %696, %654
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #10
  %659 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %660 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %80, i32 0, i32 0
  store ptr %659, ptr %660, align 8
  %661 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %80) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #10
  br i1 %661, label %662, label %699

662:                                              ; preds = %658
  %663 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %664 = load ptr, ptr %663, align 8, !tbaa !5
  store ptr %664, ptr %56, align 8, !tbaa !5
  %665 = load ptr, ptr %56, align 8, !tbaa !5
  %666 = invoke noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41) %665)
          to label %667 unwind label %215

667:                                              ; preds = %662
  br i1 %666, label %668, label %673

668:                                              ; preds = %667
  store double 0.000000e+00, ptr %53, align 8, !tbaa !11
  br label %683

669:                                              ; preds = %648
  %670 = landingpad { ptr, i32 }
          cleanup
  %671 = extractvalue { ptr, i32 } %670, 0
  store ptr %671, ptr %21, align 8
  %672 = extractvalue { ptr, i32 } %670, 1
  store i32 %672, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %78) #10
  br label %960

673:                                              ; preds = %667
  %674 = load ptr, ptr %56, align 8, !tbaa !5
  %675 = invoke noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %674)
          to label %676 unwind label %215

676:                                              ; preds = %673
  %677 = load i32, ptr %49, align 4, !tbaa !9
  %678 = load ptr, ptr %675, align 8, !tbaa !15
  %679 = getelementptr inbounds ptr, ptr %678, i64 5
  %680 = load ptr, ptr %679, align 8
  %681 = invoke noundef double %680(ptr noundef nonnull align 8 dereferenceable(80) %675, i32 noundef %677)
          to label %682 unwind label %215

682:                                              ; preds = %676
  store double %681, ptr %53, align 8, !tbaa !11
  br label %683

683:                                              ; preds = %682, %668
  %684 = load ptr, ptr %56, align 8, !tbaa !5
  %685 = load double, ptr %43, align 8, !tbaa !11
  %686 = fneg double %685
  %687 = load ptr, ptr %51, align 8, !tbaa !5
  %688 = load i32, ptr %52, align 4, !tbaa !9
  %689 = sext i32 %688 to i64
  %690 = getelementptr inbounds double, ptr %687, i64 %689
  %691 = load double, ptr %690, align 8, !tbaa !11
  %692 = fmul double %686, %691
  %693 = load double, ptr %53, align 8, !tbaa !11
  %694 = fmul double %692, %693
  invoke void @_ZN10Connection17addToModificationEd(ptr noundef nonnull align 8 dereferenceable(41) %684, double noundef %694)
          to label %695 unwind label %215

695:                                              ; preds = %683
  br label %696

696:                                              ; preds = %695
  %697 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0) #10
  %698 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %81, i32 0, i32 0
  store ptr %697, ptr %698, align 8
  br label %658, !llvm.loop !30

699:                                              ; preds = %658
  br label %700

700:                                              ; preds = %699
  %701 = load i32, ptr %52, align 4, !tbaa !9
  %702 = add nsw i32 %701, 1
  store i32 %702, ptr %52, align 4, !tbaa !9
  br label %644, !llvm.loop !31

703:                                              ; preds = %644
  call void @llvm.lifetime.start.p0(i64 24, ptr %82) #10
  %704 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN9NeuralNet14getConnectionsEv(ptr dead_on_unwind writable sret(%"class.std::vector.8") align 8 %82, ptr noundef nonnull align 8 dereferenceable(128) %704)
          to label %705 unwind label %721

705:                                              ; preds = %703
  %706 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %82) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %82) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %82) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #10
  %707 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %708 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %83, i32 0, i32 0
  store ptr %707, ptr %708, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 8 %83, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #10
  br label %709

709:                                              ; preds = %718, %705
  call void @llvm.lifetime.start.p0(i64 8, ptr %84) #10
  %710 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  %711 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %84, i32 0, i32 0
  store ptr %710, ptr %711, align 8
  %712 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %84) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %84) #10
  br i1 %712, label %713, label %725

713:                                              ; preds = %709
  %714 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %715 = load ptr, ptr %714, align 8, !tbaa !5
  store ptr %715, ptr %56, align 8, !tbaa !5
  %716 = load ptr, ptr %56, align 8, !tbaa !5
  invoke void @_ZN10Connection17applyModificationEv(ptr noundef nonnull align 8 dereferenceable(41) %716)
          to label %717 unwind label %215

717:                                              ; preds = %713
  br label %718

718:                                              ; preds = %717
  %719 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %55, i32 noundef 0) #10
  %720 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %85, i32 0, i32 0
  store ptr %719, ptr %720, align 8
  br label %709, !llvm.loop !32

721:                                              ; preds = %703
  %722 = landingpad { ptr, i32 }
          cleanup
  %723 = extractvalue { ptr, i32 } %722, 0
  store ptr %723, ptr %21, align 8
  %724 = extractvalue { ptr, i32 } %722, 1
  store i32 %724, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %82) #10
  br label %960

725:                                              ; preds = %709
  br label %726

726:                                              ; preds = %725
  %727 = load i32, ptr %42, align 4, !tbaa !9
  %728 = add nsw i32 %727, 1
  store i32 %728, ptr %42, align 4, !tbaa !9
  br label %172, !llvm.loop !33

729:                                              ; preds = %172
  %730 = load double, ptr %28, align 8, !tbaa !11
  %731 = load i32, ptr %57, align 4, !tbaa !9
  %732 = sitofp i32 %731 to double
  %733 = fdiv double %730, %732
  %734 = load double, ptr %24, align 8, !tbaa !11
  %735 = fadd double %734, %733
  store double %735, ptr %24, align 8, !tbaa !11
  store double 0.000000e+00, ptr %28, align 8, !tbaa !11
  %736 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %736, ptr %42, align 4, !tbaa !9
  br label %737

737:                                              ; preds = %821, %729
  %738 = load i32, ptr %42, align 4, !tbaa !9
  %739 = load i32, ptr %57, align 4, !tbaa !9
  %740 = load i32, ptr %13, align 4, !tbaa !9
  %741 = add nsw i32 %739, %740
  %742 = icmp slt i32 %738, %741
  br i1 %742, label %743, label %824

743:                                              ; preds = %737
  %744 = load ptr, ptr %34, align 8, !tbaa !5
  %745 = load i32, ptr %42, align 4, !tbaa !9
  %746 = sext i32 %745 to i64
  %747 = getelementptr inbounds ptr, ptr %744, i64 %746
  %748 = load ptr, ptr %747, align 8, !tbaa !5
  store ptr %748, ptr %36, align 8, !tbaa !5
  %749 = load i32, ptr %32, align 4, !tbaa !9
  %750 = load i32, ptr %33, align 4, !tbaa !9
  %751 = icmp eq i32 %749, %750
  br i1 %751, label %752, label %772

752:                                              ; preds = %743
  %753 = load ptr, ptr %37, align 8, !tbaa !5
  store ptr %753, ptr %36, align 8, !tbaa !5
  store i32 0, ptr %52, align 4, !tbaa !9
  br label %754

754:                                              ; preds = %768, %752
  %755 = load i32, ptr %52, align 4, !tbaa !9
  %756 = load i32, ptr %32, align 4, !tbaa !9
  %757 = icmp slt i32 %755, %756
  br i1 %757, label %758, label %771

758:                                              ; preds = %754
  %759 = load ptr, ptr %39, align 8, !tbaa !5
  %760 = load i32, ptr %52, align 4, !tbaa !9
  %761 = sext i32 %760 to i64
  %762 = getelementptr inbounds double, ptr %759, i64 %761
  %763 = load double, ptr %762, align 8, !tbaa !11
  %764 = load ptr, ptr %37, align 8, !tbaa !5
  %765 = load i32, ptr %52, align 4, !tbaa !9
  %766 = sext i32 %765 to i64
  %767 = getelementptr inbounds double, ptr %764, i64 %766
  store double %763, ptr %767, align 8, !tbaa !11
  br label %768

768:                                              ; preds = %758
  %769 = load i32, ptr %52, align 4, !tbaa !9
  %770 = add nsw i32 %769, 1
  store i32 %770, ptr %52, align 4, !tbaa !9
  br label %754, !llvm.loop !34

771:                                              ; preds = %754
  br label %772

772:                                              ; preds = %771, %743
  %773 = load ptr, ptr %35, align 8, !tbaa !5
  %774 = load i32, ptr %42, align 4, !tbaa !9
  %775 = sext i32 %774 to i64
  %776 = getelementptr inbounds ptr, ptr %773, i64 %775
  %777 = load ptr, ptr %776, align 8, !tbaa !5
  store ptr %777, ptr %38, align 8, !tbaa !5
  %778 = load ptr, ptr %11, align 8, !tbaa !5
  %779 = load ptr, ptr %36, align 8, !tbaa !5
  %780 = load ptr, ptr %39, align 8, !tbaa !5
  invoke void @_ZN9NeuralNet9getOutputEPdS0_(ptr noundef nonnull align 8 dereferenceable(128) %778, ptr noundef %779, ptr noundef %780)
          to label %781 unwind label %215

781:                                              ; preds = %772
  store double 0.000000e+00, ptr %47, align 8, !tbaa !11
  %782 = load i32, ptr %50, align 4, !tbaa !9
  store i32 %782, ptr %52, align 4, !tbaa !9
  br label %783

783:                                              ; preds = %811, %781
  %784 = load i32, ptr %52, align 4, !tbaa !9
  %785 = load i32, ptr %30, align 4, !tbaa !9
  %786 = icmp slt i32 %784, %785
  br i1 %786, label %787, label %814

787:                                              ; preds = %783
  %788 = load ptr, ptr %31, align 8, !tbaa !5
  %789 = load i32, ptr %52, align 4, !tbaa !9
  %790 = sext i32 %789 to i64
  %791 = getelementptr inbounds ptr, ptr %788, i64 %790
  %792 = load ptr, ptr %791, align 8, !tbaa !5
  %793 = load ptr, ptr %792, align 8, !tbaa !15
  %794 = getelementptr inbounds ptr, ptr %793, i64 5
  %795 = load ptr, ptr %794, align 8
  %796 = invoke noundef double %795(ptr noundef nonnull align 8 dereferenceable(80) %792, i32 noundef 0)
          to label %797 unwind label %215

797:                                              ; preds = %787
  store double %796, ptr %53, align 8, !tbaa !11
  %798 = load ptr, ptr %38, align 8, !tbaa !5
  %799 = load i32, ptr %52, align 4, !tbaa !9
  %800 = load i32, ptr %50, align 4, !tbaa !9
  %801 = sub nsw i32 %799, %800
  %802 = sext i32 %801 to i64
  %803 = getelementptr inbounds double, ptr %798, i64 %802
  %804 = load double, ptr %803, align 8, !tbaa !11
  %805 = load double, ptr %53, align 8, !tbaa !11
  %806 = fsub double %804, %805
  store double %806, ptr %48, align 8, !tbaa !11
  %807 = load double, ptr %48, align 8, !tbaa !11
  %808 = load double, ptr %48, align 8, !tbaa !11
  %809 = load double, ptr %47, align 8, !tbaa !11
  %810 = call double @llvm.fmuladd.f64(double %807, double %808, double %809)
  store double %810, ptr %47, align 8, !tbaa !11
  br label %811

811:                                              ; preds = %797
  %812 = load i32, ptr %52, align 4, !tbaa !9
  %813 = add nsw i32 %812, 1
  store i32 %813, ptr %52, align 4, !tbaa !9
  br label %783, !llvm.loop !35

814:                                              ; preds = %783
  %815 = load double, ptr %47, align 8, !tbaa !11
  %816 = load i32, ptr %33, align 4, !tbaa !9
  %817 = sitofp i32 %816 to double
  %818 = fdiv double %815, %817
  %819 = load double, ptr %28, align 8, !tbaa !11
  %820 = fadd double %819, %818
  store double %820, ptr %28, align 8, !tbaa !11
  br label %821

821:                                              ; preds = %814
  %822 = load i32, ptr %42, align 4, !tbaa !9
  %823 = add nsw i32 %822, 1
  store i32 %823, ptr %42, align 4, !tbaa !9
  br label %737, !llvm.loop !36

824:                                              ; preds = %737
  %825 = load double, ptr %28, align 8, !tbaa !11
  %826 = load i32, ptr %13, align 4, !tbaa !9
  %827 = sitofp i32 %826 to double
  %828 = fdiv double %825, %827
  store double %828, ptr %26, align 8, !tbaa !11
  store double 0.000000e+00, ptr %28, align 8, !tbaa !11
  %829 = load i32, ptr %57, align 4, !tbaa !9
  %830 = load i32, ptr %13, align 4, !tbaa !9
  %831 = add nsw i32 %829, %830
  store i32 %831, ptr %42, align 4, !tbaa !9
  br label %832

832:                                              ; preds = %918, %824
  %833 = load i32, ptr %42, align 4, !tbaa !9
  %834 = load i32, ptr %57, align 4, !tbaa !9
  %835 = load i32, ptr %13, align 4, !tbaa !9
  %836 = add nsw i32 %834, %835
  %837 = load i32, ptr %14, align 4, !tbaa !9
  %838 = add nsw i32 %836, %837
  %839 = icmp slt i32 %833, %838
  br i1 %839, label %840, label %921

840:                                              ; preds = %832
  %841 = load ptr, ptr %34, align 8, !tbaa !5
  %842 = load i32, ptr %42, align 4, !tbaa !9
  %843 = sext i32 %842 to i64
  %844 = getelementptr inbounds ptr, ptr %841, i64 %843
  %845 = load ptr, ptr %844, align 8, !tbaa !5
  store ptr %845, ptr %36, align 8, !tbaa !5
  %846 = load i32, ptr %32, align 4, !tbaa !9
  %847 = load i32, ptr %33, align 4, !tbaa !9
  %848 = icmp eq i32 %846, %847
  br i1 %848, label %849, label %869

849:                                              ; preds = %840
  %850 = load ptr, ptr %37, align 8, !tbaa !5
  store ptr %850, ptr %36, align 8, !tbaa !5
  store i32 0, ptr %52, align 4, !tbaa !9
  br label %851

851:                                              ; preds = %865, %849
  %852 = load i32, ptr %52, align 4, !tbaa !9
  %853 = load i32, ptr %32, align 4, !tbaa !9
  %854 = icmp slt i32 %852, %853
  br i1 %854, label %855, label %868

855:                                              ; preds = %851
  %856 = load ptr, ptr %39, align 8, !tbaa !5
  %857 = load i32, ptr %52, align 4, !tbaa !9
  %858 = sext i32 %857 to i64
  %859 = getelementptr inbounds double, ptr %856, i64 %858
  %860 = load double, ptr %859, align 8, !tbaa !11
  %861 = load ptr, ptr %37, align 8, !tbaa !5
  %862 = load i32, ptr %52, align 4, !tbaa !9
  %863 = sext i32 %862 to i64
  %864 = getelementptr inbounds double, ptr %861, i64 %863
  store double %860, ptr %864, align 8, !tbaa !11
  br label %865

865:                                              ; preds = %855
  %866 = load i32, ptr %52, align 4, !tbaa !9
  %867 = add nsw i32 %866, 1
  store i32 %867, ptr %52, align 4, !tbaa !9
  br label %851, !llvm.loop !37

868:                                              ; preds = %851
  br label %869

869:                                              ; preds = %868, %840
  %870 = load ptr, ptr %35, align 8, !tbaa !5
  %871 = load i32, ptr %42, align 4, !tbaa !9
  %872 = sext i32 %871 to i64
  %873 = getelementptr inbounds ptr, ptr %870, i64 %872
  %874 = load ptr, ptr %873, align 8, !tbaa !5
  store ptr %874, ptr %38, align 8, !tbaa !5
  %875 = load ptr, ptr %11, align 8, !tbaa !5
  %876 = load ptr, ptr %36, align 8, !tbaa !5
  %877 = load ptr, ptr %39, align 8, !tbaa !5
  invoke void @_ZN9NeuralNet9getOutputEPdS0_(ptr noundef nonnull align 8 dereferenceable(128) %875, ptr noundef %876, ptr noundef %877)
          to label %878 unwind label %215

878:                                              ; preds = %869
  store double 0.000000e+00, ptr %47, align 8, !tbaa !11
  %879 = load i32, ptr %50, align 4, !tbaa !9
  store i32 %879, ptr %52, align 4, !tbaa !9
  br label %880

880:                                              ; preds = %908, %878
  %881 = load i32, ptr %52, align 4, !tbaa !9
  %882 = load i32, ptr %30, align 4, !tbaa !9
  %883 = icmp slt i32 %881, %882
  br i1 %883, label %884, label %911

884:                                              ; preds = %880
  %885 = load ptr, ptr %31, align 8, !tbaa !5
  %886 = load i32, ptr %52, align 4, !tbaa !9
  %887 = sext i32 %886 to i64
  %888 = getelementptr inbounds ptr, ptr %885, i64 %887
  %889 = load ptr, ptr %888, align 8, !tbaa !5
  %890 = load ptr, ptr %889, align 8, !tbaa !15
  %891 = getelementptr inbounds ptr, ptr %890, i64 5
  %892 = load ptr, ptr %891, align 8
  %893 = invoke noundef double %892(ptr noundef nonnull align 8 dereferenceable(80) %889, i32 noundef 0)
          to label %894 unwind label %215

894:                                              ; preds = %884
  store double %893, ptr %53, align 8, !tbaa !11
  %895 = load ptr, ptr %38, align 8, !tbaa !5
  %896 = load i32, ptr %52, align 4, !tbaa !9
  %897 = load i32, ptr %50, align 4, !tbaa !9
  %898 = sub nsw i32 %896, %897
  %899 = sext i32 %898 to i64
  %900 = getelementptr inbounds double, ptr %895, i64 %899
  %901 = load double, ptr %900, align 8, !tbaa !11
  %902 = load double, ptr %53, align 8, !tbaa !11
  %903 = fsub double %901, %902
  store double %903, ptr %48, align 8, !tbaa !11
  %904 = load double, ptr %48, align 8, !tbaa !11
  %905 = load double, ptr %48, align 8, !tbaa !11
  %906 = load double, ptr %47, align 8, !tbaa !11
  %907 = call double @llvm.fmuladd.f64(double %904, double %905, double %906)
  store double %907, ptr %47, align 8, !tbaa !11
  br label %908

908:                                              ; preds = %894
  %909 = load i32, ptr %52, align 4, !tbaa !9
  %910 = add nsw i32 %909, 1
  store i32 %910, ptr %52, align 4, !tbaa !9
  br label %880, !llvm.loop !38

911:                                              ; preds = %880
  %912 = load double, ptr %47, align 8, !tbaa !11
  %913 = load i32, ptr %33, align 4, !tbaa !9
  %914 = sitofp i32 %913 to double
  %915 = fdiv double %912, %914
  %916 = load double, ptr %28, align 8, !tbaa !11
  %917 = fadd double %916, %915
  store double %917, ptr %28, align 8, !tbaa !11
  br label %918

918:                                              ; preds = %911
  %919 = load i32, ptr %42, align 4, !tbaa !9
  %920 = add nsw i32 %919, 1
  store i32 %920, ptr %42, align 4, !tbaa !9
  br label %832, !llvm.loop !39

921:                                              ; preds = %832
  %922 = load double, ptr %28, align 8, !tbaa !11
  %923 = load i32, ptr %14, align 4, !tbaa !9
  %924 = sitofp i32 %923 to double
  %925 = fdiv double %922, %924
  store double %925, ptr %27, align 8, !tbaa !11
  store double -1.000000e+00, ptr %25, align 8, !tbaa !11
  %926 = load ptr, ptr %19, align 8, !tbaa !5
  %927 = load i32, ptr %40, align 4, !tbaa !9
  %928 = load i32, ptr %15, align 4, !tbaa !9
  %929 = load double, ptr %24, align 8, !tbaa !11
  %930 = load double, ptr %43, align 8, !tbaa !11
  %931 = load ptr, ptr %11, align 8, !tbaa !5
  %932 = load double, ptr %25, align 8, !tbaa !11
  %933 = load double, ptr %26, align 8, !tbaa !11
  %934 = load double, ptr %27, align 8, !tbaa !11
  invoke void @_ZN4Util8showDataEiiddP9NeuralNetddd(ptr noundef nonnull align 8 dereferenceable(104) %926, i32 noundef %927, i32 noundef %928, double noundef %929, double noundef %930, ptr noundef %931, double noundef %932, double noundef %933, double noundef %934)
          to label %935 unwind label %215

935:                                              ; preds = %921
  br label %936

936:                                              ; preds = %935
  %937 = load i32, ptr %40, align 4, !tbaa !9
  %938 = add nsw i32 %937, 1
  store i32 %938, ptr %40, align 4, !tbaa !9
  br label %150, !llvm.loop !40

939:                                              ; preds = %150
  %940 = load ptr, ptr %37, align 8, !tbaa !5
  %941 = icmp eq ptr %940, null
  br i1 %941, label %943, label %942

942:                                              ; preds = %939
  call void @_ZdlPvm(ptr noundef %940, i64 noundef 8) #12
  br label %943

943:                                              ; preds = %942, %939
  %944 = load ptr, ptr %19, align 8, !tbaa !5
  %945 = icmp eq ptr %944, null
  br i1 %945, label %950, label %946

946:                                              ; preds = %943
  %947 = load ptr, ptr %944, align 8, !tbaa !15
  %948 = getelementptr inbounds ptr, ptr %947, i64 1
  %949 = load ptr, ptr %948, align 8
  call void %949(ptr noundef nonnull align 8 dereferenceable(104) %944) #10
  br label %950

950:                                              ; preds = %946, %943
  %951 = load ptr, ptr %39, align 8, !tbaa !5
  %952 = icmp eq ptr %951, null
  br i1 %952, label %954, label %953

953:                                              ; preds = %950
  call void @_ZdlPvm(ptr noundef %951, i64 noundef 8) #12
  br label %954

954:                                              ; preds = %953, %950
  %955 = load ptr, ptr %51, align 8, !tbaa !5
  %956 = icmp eq ptr %955, null
  br i1 %956, label %958, label %957

957:                                              ; preds = %954
  call void @_ZdlPvm(ptr noundef %955, i64 noundef 8) #12
  br label %958

958:                                              ; preds = %957, %954
  %959 = load double, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  ret double %959

960:                                              ; preds = %721, %669, %623, %533, %477, %386, %328, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %54) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %961

961:                                              ; preds = %960, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  br label %962

962:                                              ; preds = %961
  %963 = load ptr, ptr %21, align 8
  %964 = load i32, ptr %22, align 4
  %965 = insertvalue { ptr, i32 } poison, ptr %963, 0
  %966 = insertvalue { ptr, i32 } %965, i32 %964, 1
  resume { ptr, i32 } %966
}

attributes #0 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !14}
!18 = !{i64 0, i64 8, !5}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !14}
!32 = distinct !{!32, !14}
!33 = distinct !{!33, !14}
!34 = distinct !{!34, !14}
!35 = distinct !{!35, !14}
!36 = distinct !{!36, !14}
!37 = distinct !{!37, !14}
!38 = distinct !{!38, !14}
!39 = distinct !{!39, !14}
!40 = distinct !{!40, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl" }
%"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Connection *, std::allocator<Connection *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4UtilC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) unnamed_addr #4

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

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

declare noundef i32 @_ZN9NeuralNet8getDelayEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4

declare noundef i32 @_ZN9NeuralNet18getNumberOfNeuronsEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4

declare noundef ptr @_ZN9NeuralNet10getNeuronsEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4

declare noundef i32 @_ZN9NeuralNet12getInputSizeEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4

declare noundef i32 @_ZN9NeuralNet13getOutputSizeEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Data15getNumberOfDataEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #8 align 2

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

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

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

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

; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

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

declare noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #4

declare noundef ptr @_ZN10Connection14getOuputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #4

declare noundef i32 @_ZN6Neuron5getIDEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4

declare noundef double @_ZN10Connection9getWeightEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5 align 2

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

declare noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #4

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

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

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

declare void @_ZN4Util8showDataEiiddP9NeuralNetddd(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef, i32 noundef, double noundef, double noundef, ptr noundef, double noundef, double noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN4BPTT5learnEP9NeuralNetP4DataiiiddNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6, double noundef %7, ptr noundef %8) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::vector.8", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.std::vector.8", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.std::vector.8", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.std::vector.8", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.std::vector.8", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.std::vector.8", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = tail call noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %24 unwind label %103

24:                                               ; preds = %9
  invoke void @_ZN4UtilC1ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(104) %23, ptr noundef nonnull %10)
          to label %25 unwind label %105

25:                                               ; preds = %24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @_ZN4Util13startLearningEv(ptr noundef nonnull align 8 dereferenceable(104) %23)
  %26 = call noundef i32 @_ZN9NeuralNet8getDelayEv(ptr noundef nonnull align 8 dereferenceable(128) %1)
  %27 = call noundef i32 @_ZN9NeuralNet18getNumberOfNeuronsEv(ptr noundef nonnull align 8 dereferenceable(128) %1)
  %28 = call noundef ptr @_ZN9NeuralNet10getNeuronsEv(ptr noundef nonnull align 8 dereferenceable(128) %1)
  %29 = call noundef i32 @_ZN9NeuralNet12getInputSizeEv(ptr noundef nonnull align 8 dereferenceable(128) %1)
  %30 = call noundef i32 @_ZN9NeuralNet13getOutputSizeEv(ptr noundef nonnull align 8 dereferenceable(128) %1)
  %31 = zext i32 %29 to i64
  %32 = icmp slt i32 %29, 0
  %33 = shl nuw nsw i64 %31, 3
  %34 = select i1 %32, i64 -1, i64 %33
  %35 = call noalias noundef nonnull ptr @_Znam(i64 noundef %34) #11
  %36 = zext nneg i32 %30 to i64
  %37 = icmp slt i32 %30, 0
  %38 = shl nuw nsw i64 %36, 3
  %39 = select i1 %37, i64 -1, i64 %38
  %40 = call noalias noundef nonnull ptr @_Znam(i64 noundef %39) #11
  %41 = add nsw i32 %5, 1
  %42 = sitofp i32 %41 to double
  %43 = call double @log(double noundef %42) #12
  %44 = fadd double %43, 1.000000e+00
  %45 = fneg double %6
  %46 = call double @llvm.fmuladd.f64(double %7, double %44, double %45)
  %47 = fadd double %44, -1.000000e+00
  %48 = fdiv double %46, %47
  %49 = fsub double %6, %48
  %50 = zext i32 %27 to i64
  %51 = icmp slt i32 %27, 0
  %52 = shl nuw nsw i64 %50, 3
  %53 = select i1 %51, i64 -1, i64 %52
  %54 = call noalias noundef nonnull ptr @_Znam(i64 noundef %53) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #12
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #12
  call void @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #12
  %55 = call noundef ptr @_ZN4Data12getDataInputEv(ptr noundef nonnull align 8 dereferenceable(36) %2)
  %56 = call noundef ptr @_ZN4Data13getDataOutputEv(ptr noundef nonnull align 8 dereferenceable(36) %2)
  %57 = call noundef i32 @_ZN4Data15getNumberOfDataEv(ptr noundef nonnull align 8 dereferenceable(36) %2)
  %58 = icmp sgt i32 %5, 0
  br i1 %58, label %.lr.ph484, label %._crit_edge485

.lr.ph484:                                        ; preds = %25
  %59 = sub i32 %27, %30
  %60 = add i32 %4, %3
  %61 = sub i32 %57, %60
  %62 = icmp sgt i32 %61, 0
  %63 = icmp sgt i32 %27, 0
  %64 = icmp sgt i32 %30, 0
  %65 = sitofp i32 %30 to double
  %.2313421 = add i32 %59, -1
  %66 = icmp sgt i32 %.2313421, %29
  %67 = add i32 %29, 1
  %68 = icmp slt i32 %67, %27
  %.6437 = add i32 %27, -1
  %69 = icmp sgt i32 %.6437, %29
  %70 = sitofp i32 %61 to double
  %71 = add i32 %61, %3
  %72 = icmp sgt i32 %3, 0
  %73 = icmp ne i32 %29, %30
  %74 = icmp slt i32 %29, 1
  %75 = sitofp i32 %3 to double
  %76 = add nsw i32 %71, %4
  %77 = icmp sgt i32 %4, 0
  %78 = sitofp i32 %4 to double
  %79 = sext i32 %59 to i64
  %80 = sext i32 %27 to i64
  %81 = sext i32 %.2313421 to i64
  %82 = sext i32 %29 to i64
  %83 = sext i32 %67 to i64
  %84 = sext i32 %.6437 to i64
  %85 = sext i32 %61 to i64
  %86 = sext i32 %71 to i64
  %87 = sext i32 %76 to i64
  %wide.trip.count = zext nneg i32 %61 to i64
  %brmerge = or i1 %73, %74
  %brmerge490 = or i1 %73, %74
  br label %89

88:                                               ; preds = %._crit_edge480
  %exitcond553.not = icmp eq i32 %90, %5
  br i1 %exitcond553.not, label %._crit_edge485, label %89, !llvm.loop !5

89:                                               ; preds = %.lr.ph484, %88
  %.0298482 = phi i32 [ 0, %.lr.ph484 ], [ %90, %88 ]
  %90 = add nuw nsw i32 %.0298482, 1
  %91 = uitofp nneg i32 %90 to double
  %92 = call double @log(double noundef %91) #12
  %93 = fadd double %92, 1.000000e+00
  %94 = fdiv double %49, %93
  %95 = fadd double %48, %94
  invoke void @_ZN9NeuralNet10cleanStateEv(ptr noundef nonnull align 8 dereferenceable(128) %1)
          to label %96 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

96:                                               ; preds = %89
  br i1 %62, label %.lr.ph452, label %._crit_edge453

.lr.ph452:                                        ; preds = %96
  %97 = fneg double %95
  br label %98

98:                                               ; preds = %.lr.ph452, %._crit_edge448
  %indvars.iv531 = phi i64 [ 0, %.lr.ph452 ], [ %indvars.iv.next532, %._crit_edge448 ]
  %.0293450 = phi double [ 0.000000e+00, %.lr.ph452 ], [ %127, %._crit_edge448 ]
  %99 = getelementptr inbounds ptr, ptr %55, i64 %indvars.iv531
  %100 = load ptr, ptr %99, align 8, !tbaa !7
  %101 = getelementptr inbounds ptr, ptr %56, i64 %indvars.iv531
  %102 = load ptr, ptr %101, align 8, !tbaa !7
  invoke void @_ZN9NeuralNet9getOutputEPdS0_(ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef %100, ptr noundef nonnull %40)
          to label %.preheader360 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader360:                                    ; preds = %98
  br i1 %63, label %.lr.ph.preheader, label %.preheader356

.lr.ph.preheader:                                 ; preds = %.preheader360
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %54, i8 0, i64 %52, i1 false), !tbaa !11
  br label %.preheader356

.preheader356:                                    ; preds = %.lr.ph.preheader, %.preheader360
  br i1 %64, label %.lr.ph415, label %._crit_edge

103:                                              ; preds = %9
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %107

105:                                              ; preds = %24
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  br label %107

107:                                              ; preds = %103, %105
  %.pn = phi { ptr, i32 } [ %106, %105 ], [ %104, %103 ]
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 104) #13
  br label %324

.loopexit:                                        ; preds = %242, %249, %251, %256
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %217, %215, %.lr.ph434
  %lpad.loopexit329 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.invoke, %175, %180, %189, %191
  %lpad.loopexit332 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %149, %147, %145, %.lr.ph418
  %lpad.loopexit334 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph473
  %lpad.loopexit337 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph459
  %lpad.loopexit342 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph447
  %lpad.loopexit347 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph439
  %lpad.loopexit351 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph424
  %lpad.loopexit354 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit: ; preds = %.lr.ph415
  %lpad.loopexit357 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

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

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

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

.lr.ph415:                                        ; preds = %.preheader356, %114
  %indvars.iv = phi i64 [ %indvars.iv.next, %114 ], [ %79, %.preheader356 ]
  %.0302414 = phi double [ %119, %114 ], [ 0.000000e+00, %.preheader356 ]
  %108 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv
  %109 = load ptr, ptr %108, align 8, !tbaa !7
  %110 = load ptr, ptr %109, align 8, !tbaa !13
  %111 = getelementptr inbounds i8, ptr %110, i64 40
  %112 = load ptr, ptr %111, align 8
  %113 = invoke noundef double %112(ptr noundef nonnull align 8 dereferenceable(80) %109, i32 noundef 0)
          to label %114 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

114:                                              ; preds = %.lr.ph415
  %115 = sub nsw i64 %indvars.iv, %79
  %116 = getelementptr inbounds double, ptr %102, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !11
  %118 = fsub double %117, %113
  %119 = call double @llvm.fmuladd.f64(double %118, double %118, double %.0302414)
  %120 = fsub double %113, %117
  %121 = fmul double %113, %120
  %122 = fsub double 1.000000e+00, %113
  %123 = fmul double %122, %121
  %124 = getelementptr inbounds double, ptr %54, i64 %indvars.iv
  store double %123, ptr %124, align 8, !tbaa !11
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %125 = icmp slt i64 %indvars.iv.next, %80
  br i1 %125, label %.lr.ph415, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %114, %.preheader356
  %.0302.lcssa = phi double [ 0.000000e+00, %.preheader356 ], [ %119, %114 ]
  %126 = fdiv double %.0302.lcssa, %65
  %127 = fadd double %.0293450, %126
  br i1 %66, label %.lr.ph424, label %._crit_edge425

.lr.ph424:                                        ; preds = %._crit_edge, %._crit_edge419
  %indvars.iv517 = phi i64 [ %indvars.iv.next518, %._crit_edge419 ], [ %81, %._crit_edge ]
  %128 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv517
  %129 = load ptr, ptr %128, align 8, !tbaa !7
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = getelementptr inbounds i8, ptr %130, i64 40
  %132 = load ptr, ptr %131, align 8
  %133 = invoke noundef double %132(ptr noundef nonnull align 8 dereferenceable(80) %129, i32 noundef 0)
          to label %134 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

134:                                              ; preds = %.lr.ph424
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #12
  %135 = load ptr, ptr %128, align 8, !tbaa !7
  invoke void @_ZN6Neuron20getOutputConnectionsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %13, ptr noundef nonnull align 8 dereferenceable(80) %135)
          to label %136 unwind label %156

136:                                              ; preds = %134
  %137 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %13) #12
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #12
  %138 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %138, ptr %12, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #12
  %139 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %139, ptr %14, align 8
  %140 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #12
  br i1 %140, label %.lr.ph418, label %._crit_edge419

.lr.ph418:                                        ; preds = %136, %158
  %.0305416 = phi double [ %.1306, %158 ], [ 0.000000e+00, %136 ]
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #12
  %142 = load ptr, ptr %141, align 8, !tbaa !7
  %143 = invoke noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41) %142)
          to label %144 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

144:                                              ; preds = %.lr.ph418
  br i1 %143, label %158, label %145

145:                                              ; preds = %144
  %146 = invoke noundef ptr @_ZN10Connection14getOuputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %142)
          to label %147 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

147:                                              ; preds = %145
  %148 = invoke noundef i32 @_ZN6Neuron5getIDEv(ptr noundef nonnull align 8 dereferenceable(80) %146)
          to label %149 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

149:                                              ; preds = %147
  %150 = sext i32 %148 to i64
  %151 = getelementptr inbounds double, ptr %54, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = invoke noundef double @_ZN10Connection9getWeightEv(ptr noundef nonnull align 8 dereferenceable(41) %142)
          to label %154 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

154:                                              ; preds = %149
  %155 = call double @llvm.fmuladd.f64(double %152, double %153, double %.0305416)
  br label %158

156:                                              ; preds = %134
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #12
  br label %.loopexit.split-lp

158:                                              ; preds = %144, %154
  %.1306 = phi double [ %.0305416, %144 ], [ %155, %154 ]
  %159 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #12
  %160 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %160, ptr %14, align 8
  %161 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %14) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #12
  br i1 %161, label %.lr.ph418, label %._crit_edge419, !llvm.loop !16

._crit_edge419:                                   ; preds = %158, %136
  %.0305.lcssa = phi double [ 0.000000e+00, %136 ], [ %.1306, %158 ]
  %162 = fsub double 1.000000e+00, %133
  %163 = fmul double %133, %162
  %164 = fmul double %163, %.0305.lcssa
  %165 = getelementptr inbounds double, ptr %54, i64 %indvars.iv517
  store double %164, ptr %165, align 8, !tbaa !11
  %indvars.iv.next518 = add nsw i64 %indvars.iv517, -1
  %166 = icmp sgt i64 %indvars.iv.next518, %82
  br i1 %166, label %.lr.ph424, label %._crit_edge425, !llvm.loop !17

._crit_edge425:                                   ; preds = %._crit_edge419, %._crit_edge
  br i1 %68, label %.lr.ph431, label %.preheader350

.preheader350:                                    ; preds = %._crit_edge428, %._crit_edge425
  br i1 %69, label %.lr.ph439, label %.preheader349

.lr.ph431:                                        ; preds = %._crit_edge425, %._crit_edge428
  %indvars.iv520 = phi i64 [ %indvars.iv.next521, %._crit_edge428 ], [ %83, %._crit_edge425 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #12
  %167 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv520
  %168 = load ptr, ptr %167, align 8, !tbaa !7
  invoke void @_ZN6Neuron19getInputConnectionsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %15, ptr noundef nonnull align 8 dereferenceable(80) %168)
          to label %169 unwind label %187

169:                                              ; preds = %.lr.ph431
  %170 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %15) #12
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #12
  %171 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %171, ptr %12, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #12
  %172 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %172, ptr %16, align 8
  %173 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %16) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #12
  br i1 %173, label %.lr.ph427, label %._crit_edge428

.lr.ph427:                                        ; preds = %169
  %174 = getelementptr inbounds double, ptr %54, i64 %indvars.iv520
  br label %175

175:                                              ; preds = %.lr.ph427, %195
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #12
  %177 = load ptr, ptr %176, align 8, !tbaa !7
  %178 = invoke noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41) %177)
          to label %179 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

179:                                              ; preds = %175
  br i1 %178, label %180, label %189

180:                                              ; preds = %179
  %181 = invoke noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %177)
          to label %.invoke unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.invoke:                                          ; preds = %180, %189
  %.sink = phi ptr [ %190, %189 ], [ %181, %180 ]
  %182 = phi i32 [ 0, %189 ], [ 1, %180 ]
  %183 = load ptr, ptr %.sink, align 8, !tbaa !13
  %184 = getelementptr inbounds i8, ptr %183, i64 40
  %185 = load ptr, ptr %184, align 8
  %186 = invoke noundef double %185(ptr noundef nonnull align 8 dereferenceable(80) %.sink, i32 noundef %182)
          to label %191 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

187:                                              ; preds = %.lr.ph431
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #12
  br label %.loopexit.split-lp

189:                                              ; preds = %179
  %190 = invoke noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %177)
          to label %.invoke unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

191:                                              ; preds = %.invoke
  %192 = load double, ptr %174, align 8, !tbaa !11
  %193 = fmul double %192, %97
  %194 = fmul double %186, %193
  invoke void @_ZN10Connection17addToModificationEd(ptr noundef nonnull align 8 dereferenceable(41) %177, double noundef %194)
          to label %195 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

195:                                              ; preds = %191
  %196 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #12
  %197 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %197, ptr %16, align 8
  %198 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %16) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #12
  br i1 %198, label %175, label %._crit_edge428, !llvm.loop !18

._crit_edge428:                                   ; preds = %195, %169
  %indvars.iv.next521 = add nsw i64 %indvars.iv520, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next521 to i32
  %exitcond.not = icmp eq i32 %27, %lftr.wideiv
  br i1 %exitcond.not, label %.preheader350, label %.lr.ph431, !llvm.loop !19

.preheader349:                                    ; preds = %._crit_edge435, %.preheader350
  br i1 %68, label %.lr.ph444, label %._crit_edge445

.lr.ph439:                                        ; preds = %.preheader350, %._crit_edge435
  %indvars.iv523 = phi i64 [ %indvars.iv.next524, %._crit_edge435 ], [ %84, %.preheader350 ]
  %199 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv523
  %200 = load ptr, ptr %199, align 8, !tbaa !7
  %201 = load ptr, ptr %200, align 8, !tbaa !13
  %202 = getelementptr inbounds i8, ptr %201, i64 40
  %203 = load ptr, ptr %202, align 8
  %204 = invoke noundef double %203(ptr noundef nonnull align 8 dereferenceable(80) %200, i32 noundef 1)
          to label %205 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

205:                                              ; preds = %.lr.ph439
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #12
  %206 = load ptr, ptr %199, align 8, !tbaa !7
  invoke void @_ZN6Neuron20getOutputConnectionsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %17, ptr noundef nonnull align 8 dereferenceable(80) %206)
          to label %207 unwind label %227

207:                                              ; preds = %205
  %208 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %17) #12
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #12
  %209 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %209, ptr %12, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #12
  %210 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %210, ptr %18, align 8
  %211 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #12
  br i1 %211, label %.lr.ph434, label %._crit_edge435

.lr.ph434:                                        ; preds = %207, %222
  %.3432 = phi double [ %223, %222 ], [ 0.000000e+00, %207 ]
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #12
  %213 = load ptr, ptr %212, align 8, !tbaa !7
  %214 = invoke noundef ptr @_ZN10Connection14getOuputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %213)
          to label %215 unwind label %.loopexit.split-lp.loopexit

215:                                              ; preds = %.lr.ph434
  %216 = invoke noundef i32 @_ZN6Neuron5getIDEv(ptr noundef nonnull align 8 dereferenceable(80) %214)
          to label %217 unwind label %.loopexit.split-lp.loopexit

217:                                              ; preds = %215
  %218 = sext i32 %216 to i64
  %219 = getelementptr inbounds double, ptr %54, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !11
  %221 = invoke noundef double @_ZN10Connection9getWeightEv(ptr noundef nonnull align 8 dereferenceable(41) %213)
          to label %222 unwind label %.loopexit.split-lp.loopexit

222:                                              ; preds = %217
  %223 = call double @llvm.fmuladd.f64(double %220, double %221, double %.3432)
  %224 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #12
  %225 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %225, ptr %18, align 8
  %226 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %18) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #12
  br i1 %226, label %.lr.ph434, label %._crit_edge435, !llvm.loop !20

227:                                              ; preds = %205
  %228 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #12
  br label %.loopexit.split-lp

._crit_edge435:                                   ; preds = %222, %207
  %.3.lcssa = phi double [ 0.000000e+00, %207 ], [ %223, %222 ]
  %229 = fsub double 1.000000e+00, %204
  %230 = fmul double %204, %229
  %231 = fmul double %230, %.3.lcssa
  %232 = getelementptr inbounds double, ptr %54, i64 %indvars.iv523
  store double %231, ptr %232, align 8, !tbaa !11
  %indvars.iv.next524 = add nsw i64 %indvars.iv523, -1
  %233 = icmp sgt i64 %indvars.iv.next524, %82
  br i1 %233, label %.lr.ph439, label %.preheader349, !llvm.loop !21

.lr.ph444:                                        ; preds = %.preheader349, %._crit_edge442
  %indvars.iv526 = phi i64 [ %indvars.iv.next527, %._crit_edge442 ], [ %83, %.preheader349 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #12
  %234 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv526
  %235 = load ptr, ptr %234, align 8, !tbaa !7
  invoke void @_ZN6Neuron19getInputConnectionsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %19, ptr noundef nonnull align 8 dereferenceable(80) %235)
          to label %236 unwind label %247

236:                                              ; preds = %.lr.ph444
  %237 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #12
  %238 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %238, ptr %12, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #12
  %239 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %239, ptr %20, align 8
  %240 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %20) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #12
  br i1 %240, label %.lr.ph441, label %._crit_edge442

.lr.ph441:                                        ; preds = %236
  %241 = getelementptr inbounds double, ptr %54, i64 %indvars.iv526
  br label %242

242:                                              ; preds = %.lr.ph441, %260
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #12
  %244 = load ptr, ptr %243, align 8, !tbaa !7
  %245 = invoke noundef zeroext i1 @_ZN10Connection12getRecurrentEv(ptr noundef nonnull align 8 dereferenceable(41) %244)
          to label %246 unwind label %.loopexit

246:                                              ; preds = %242
  br i1 %245, label %256, label %249

247:                                              ; preds = %.lr.ph444
  %248 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #12
  br label %.loopexit.split-lp

249:                                              ; preds = %246
  %250 = invoke noundef ptr @_ZN10Connection14getInputNeuronEv(ptr noundef nonnull align 8 dereferenceable(41) %244)
          to label %251 unwind label %.loopexit

251:                                              ; preds = %249
  %252 = load ptr, ptr %250, align 8, !tbaa !13
  %253 = getelementptr inbounds i8, ptr %252, i64 40
  %254 = load ptr, ptr %253, align 8
  %255 = invoke noundef double %254(ptr noundef nonnull align 8 dereferenceable(80) %250, i32 noundef 1)
          to label %256 unwind label %.loopexit

256:                                              ; preds = %251, %246
  %.2310 = phi double [ 0.000000e+00, %246 ], [ %255, %251 ]
  %257 = load double, ptr %241, align 8, !tbaa !11
  %258 = fmul double %257, %97
  %259 = fmul double %.2310, %258
  invoke void @_ZN10Connection17addToModificationEd(ptr noundef nonnull align 8 dereferenceable(41) %244, double noundef %259)
          to label %260 unwind label %.loopexit

260:                                              ; preds = %256
  %261 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #12
  %262 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %262, ptr %20, align 8
  %263 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %20) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #12
  br i1 %263, label %242, label %._crit_edge442, !llvm.loop !22

._crit_edge442:                                   ; preds = %260, %236
  %indvars.iv.next527 = add nsw i64 %indvars.iv526, 1
  %lftr.wideiv529 = trunc i64 %indvars.iv.next527 to i32
  %exitcond530.not = icmp eq i32 %27, %lftr.wideiv529
  br i1 %exitcond530.not, label %._crit_edge445, label %.lr.ph444, !llvm.loop !23

._crit_edge445:                                   ; preds = %._crit_edge442, %.preheader349
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #12
  invoke void @_ZN9NeuralNet14getConnectionsEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.8") align 8 %21, ptr noundef nonnull align 8 dereferenceable(128) %1)
          to label %264 unwind label %275

264:                                              ; preds = %._crit_edge445
  %265 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIP10ConnectionSaIS1_EEaSEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %21) #12
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #12
  %266 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %266, ptr %12, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #12
  %267 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %267, ptr %22, align 8
  %268 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %22) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #12
  br i1 %268, label %.lr.ph447, label %._crit_edge448

.lr.ph447:                                        ; preds = %264, %271
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #12
  %270 = load ptr, ptr %269, align 8, !tbaa !7
  invoke void @_ZN10Connection17applyModificationEv(ptr noundef nonnull align 8 dereferenceable(41) %270)
          to label %271 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

271:                                              ; preds = %.lr.ph447
  %272 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPP10ConnectionSt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #12
  %273 = call ptr @_ZNSt6vectorIP10ConnectionSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  store ptr %273, ptr %22, align 8
  %274 = call noundef zeroext i1 @_ZN9__gnu_cxxltIPP10ConnectionSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %22) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #12
  br i1 %274, label %.lr.ph447, label %._crit_edge448, !llvm.loop !24

275:                                              ; preds = %._crit_edge445
  %276 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #12
  br label %.loopexit.split-lp

._crit_edge448:                                   ; preds = %271, %264
  %indvars.iv.next532 = add nuw nsw i64 %indvars.iv531, 1
  %exitcond534.not = icmp eq i64 %indvars.iv.next532, %wide.trip.count
  br i1 %exitcond534.not, label %._crit_edge453, label %98, !llvm.loop !25

._crit_edge453:                                   ; preds = %._crit_edge448, %96
  %.0293.lcssa = phi double [ 0.000000e+00, %96 ], [ %127, %._crit_edge448 ]
  %277 = fdiv double %.0293.lcssa, %70
  %278 = fadd double %277, 0.000000e+00
  br i1 %72, label %.lr.ph465, label %._crit_edge466

.lr.ph465:                                        ; preds = %._crit_edge453, %._crit_edge460
  %indvars.iv541 = phi i64 [ %indvars.iv.next542, %._crit_edge460 ], [ %85, %._crit_edge453 ]
  %.1294463 = phi double [ %297, %._crit_edge460 ], [ 0.000000e+00, %._crit_edge453 ]
  %279 = getelementptr inbounds ptr, ptr %55, i64 %indvars.iv541
  %280 = load ptr, ptr %279, align 8, !tbaa !7
  %.mux = select i1 %73, ptr %280, ptr %35
  br i1 %brmerge, label %.loopexit346, label %.lr.ph456.preheader

.lr.ph456.preheader:                              ; preds = %.lr.ph465
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %35, ptr nonnull align 8 %40, i64 %33, i1 false), !tbaa !11
  br label %.loopexit346

.loopexit346:                                     ; preds = %.lr.ph456.preheader, %.lr.ph465
  %.0296 = phi ptr [ %.mux, %.lr.ph465 ], [ %35, %.lr.ph456.preheader ]
  %281 = getelementptr inbounds ptr, ptr %56, i64 %indvars.iv541
  %282 = load ptr, ptr %281, align 8, !tbaa !7
  invoke void @_ZN9NeuralNet9getOutputEPdS0_(ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef %.0296, ptr noundef nonnull %40)
          to label %.preheader341 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader341:                                    ; preds = %.loopexit346
  br i1 %64, label %.lr.ph459, label %._crit_edge460

.lr.ph459:                                        ; preds = %.preheader341, %289
  %indvars.iv538 = phi i64 [ %indvars.iv.next539, %289 ], [ %79, %.preheader341 ]
  %.1303458 = phi double [ %294, %289 ], [ 0.000000e+00, %.preheader341 ]
  %283 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv538
  %284 = load ptr, ptr %283, align 8, !tbaa !7
  %285 = load ptr, ptr %284, align 8, !tbaa !13
  %286 = getelementptr inbounds i8, ptr %285, i64 40
  %287 = load ptr, ptr %286, align 8
  %288 = invoke noundef double %287(ptr noundef nonnull align 8 dereferenceable(80) %284, i32 noundef 0)
          to label %289 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

289:                                              ; preds = %.lr.ph459
  %290 = sub nsw i64 %indvars.iv538, %79
  %291 = getelementptr inbounds double, ptr %282, i64 %290
  %292 = load double, ptr %291, align 8, !tbaa !11
  %293 = fsub double %292, %288
  %294 = call double @llvm.fmuladd.f64(double %293, double %293, double %.1303458)
  %indvars.iv.next539 = add nsw i64 %indvars.iv538, 1
  %295 = icmp slt i64 %indvars.iv.next539, %80
  br i1 %295, label %.lr.ph459, label %._crit_edge460, !llvm.loop !26

._crit_edge460:                                   ; preds = %289, %.preheader341
  %.1303.lcssa = phi double [ 0.000000e+00, %.preheader341 ], [ %294, %289 ]
  %296 = fdiv double %.1303.lcssa, %65
  %297 = fadd double %.1294463, %296
  %indvars.iv.next542 = add nsw i64 %indvars.iv541, 1
  %298 = icmp slt i64 %indvars.iv.next542, %86
  br i1 %298, label %.lr.ph465, label %._crit_edge466, !llvm.loop !27

._crit_edge466:                                   ; preds = %._crit_edge460, %._crit_edge453
  %.1294.lcssa = phi double [ 0.000000e+00, %._crit_edge453 ], [ %297, %._crit_edge460 ]
  %299 = fdiv double %.1294.lcssa, %75
  br i1 %77, label %.lr.ph479, label %._crit_edge480

.lr.ph479:                                        ; preds = %._crit_edge466, %._crit_edge474
  %indvars.iv550 = phi i64 [ %indvars.iv.next551, %._crit_edge474 ], [ %86, %._crit_edge466 ]
  %.2295477 = phi double [ %318, %._crit_edge474 ], [ 0.000000e+00, %._crit_edge466 ]
  %300 = getelementptr inbounds ptr, ptr %55, i64 %indvars.iv550
  %301 = load ptr, ptr %300, align 8, !tbaa !7
  %.mux491 = select i1 %73, ptr %301, ptr %35
  br i1 %brmerge490, label %.loopexit340, label %.lr.ph470.preheader

.lr.ph470.preheader:                              ; preds = %.lr.ph479
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %35, ptr nonnull align 8 %40, i64 %33, i1 false), !tbaa !11
  br label %.loopexit340

.loopexit340:                                     ; preds = %.lr.ph470.preheader, %.lr.ph479
  %.1297 = phi ptr [ %.mux491, %.lr.ph479 ], [ %35, %.lr.ph470.preheader ]
  %302 = getelementptr inbounds ptr, ptr %56, i64 %indvars.iv550
  %303 = load ptr, ptr %302, align 8, !tbaa !7
  invoke void @_ZN9NeuralNet9getOutputEPdS0_(ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef %.1297, ptr noundef nonnull %40)
          to label %.preheader unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader:                                       ; preds = %.loopexit340
  br i1 %64, label %.lr.ph473, label %._crit_edge474

.lr.ph473:                                        ; preds = %.preheader, %310
  %indvars.iv547 = phi i64 [ %indvars.iv.next548, %310 ], [ %79, %.preheader ]
  %.2304472 = phi double [ %315, %310 ], [ 0.000000e+00, %.preheader ]
  %304 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv547
  %305 = load ptr, ptr %304, align 8, !tbaa !7
  %306 = load ptr, ptr %305, align 8, !tbaa !13
  %307 = getelementptr inbounds i8, ptr %306, i64 40
  %308 = load ptr, ptr %307, align 8
  %309 = invoke noundef double %308(ptr noundef nonnull align 8 dereferenceable(80) %305, i32 noundef 0)
          to label %310 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

310:                                              ; preds = %.lr.ph473
  %311 = sub nsw i64 %indvars.iv547, %79
  %312 = getelementptr inbounds double, ptr %303, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !11
  %314 = fsub double %313, %309
  %315 = call double @llvm.fmuladd.f64(double %314, double %314, double %.2304472)
  %indvars.iv.next548 = add nsw i64 %indvars.iv547, 1
  %316 = icmp slt i64 %indvars.iv.next548, %80
  br i1 %316, label %.lr.ph473, label %._crit_edge474, !llvm.loop !28

._crit_edge474:                                   ; preds = %310, %.preheader
  %.2304.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %315, %310 ]
  %317 = fdiv double %.2304.lcssa, %65
  %318 = fadd double %.2295477, %317
  %indvars.iv.next551 = add nsw i64 %indvars.iv550, 1
  %319 = icmp slt i64 %indvars.iv.next551, %87
  br i1 %319, label %.lr.ph479, label %._crit_edge480, !llvm.loop !29

._crit_edge480:                                   ; preds = %._crit_edge474, %._crit_edge466
  %.2295.lcssa = phi double [ 0.000000e+00, %._crit_edge466 ], [ %318, %._crit_edge474 ]
  %320 = fdiv double %.2295.lcssa, %78
  invoke void @_ZN4Util8showDataEiiddP9NeuralNetddd(ptr noundef nonnull align 8 dereferenceable(104) %23, i32 noundef %.0298482, i32 noundef %5, double noundef %278, double noundef %95, ptr noundef nonnull %1, double noundef -1.000000e+00, double noundef %299, double noundef %320)
          to label %88 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, !llvm.loop !5

._crit_edge485:                                   ; preds = %88, %25
  %.0292.lcssa = phi double [ 0.000000e+00, %25 ], [ %278, %88 ]
  call void @_ZdlPvm(ptr noundef nonnull %35, i64 noundef 8) #13
  %321 = load ptr, ptr %23, align 8, !tbaa !13
  %322 = getelementptr inbounds i8, ptr %321, i64 8
  %323 = load ptr, ptr %322, align 8
  call void %323(ptr noundef nonnull align 8 dereferenceable(104) %23) #12
  call void @_ZdlPvm(ptr noundef nonnull %40, i64 noundef 8) #13
  call void @_ZdlPvm(ptr noundef nonnull %54, i64 noundef 8) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #12
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #12
  ret double %.0292.lcssa

.loopexit.split-lp:                               ; preds = %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit, %275, %247, %227, %187, %156
  %.pn324 = phi { ptr, i32 } [ %157, %156 ], [ %188, %187 ], [ %228, %227 ], [ %248, %247 ], [ %276, %275 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit329, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit332, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit334, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit337, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit342, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit347, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit351, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit354, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit357, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit361, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit363, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit366, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #12
  call void @_ZNSt6vectorIP10ConnectionSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #12
  br label %324

324:                                              ; preds = %107, %.loopexit.split-lp
  %.pn324.pn = phi { ptr, i32 } [ %.pn324, %.loopexit.split-lp ], [ %.pn, %107 ]
  resume { ptr, i32 } %.pn324.pn
}

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

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

attributes #0 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { nounwind }
attributes #13 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !10, i64 0}
!15 = distinct !{!15, !6}
!16 = distinct !{!16, !6}
!17 = distinct !{!17, !6}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6}
!22 = distinct !{!22, !6}
!23 = distinct !{!23, !6}
!24 = distinct !{!24, !6}
!25 = distinct !{!25, !6}
!26 = distinct !{!26, !6}
!27 = distinct !{!27, !6}
!28 = distinct !{!28, !6}
!29 = distinct !{!29, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,PromotePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass