; LLVM IR from CRAFT-THU/BSim :: test/gpu (decision_maker)

; 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.Network = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", i32, i32, i32, float, float, %"class.std::vector.10", %"class.std::vector.10", i32, %"class.std::vector.15", %"class.std::vector.15", %"class.std::vector.15" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<NeuronBase *, std::allocator<NeuronBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<NeuronBase *, std::allocator<NeuronBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<NeuronBase *, std::allocator<NeuronBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NeuronBase *, std::allocator<NeuronBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<PopulationBase *, std::allocator<PopulationBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<PopulationBase *, std::allocator<PopulationBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<PopulationBase *, std::allocator<PopulationBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PopulationBase *, std::allocator<PopulationBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<SynapseBase *, std::allocator<SynapseBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<SynapseBase *, std::allocator<SynapseBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SynapseBase *, std::allocator<SynapseBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SynapseBase *, std::allocator<SynapseBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Type, std::allocator<Type>>::_Vector_impl" }
%"struct.std::_Vector_base<Type, std::allocator<Type>>::_Vector_impl" = type { %"struct.std::_Vector_base<Type, std::allocator<Type>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Type, std::allocator<Type>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CompositeNeuron = type { %class.ConstantNeuron, float, float }
%class.ConstantNeuron = type { %class.NeuronBase.base, float, i32, i32, float, float, ptr }
%class.NeuronBase.base = type <{ %class.Base, %"class.std::vector.5", i8, i8, [2 x i8], i32, float }>
%class.Base = type { ptr, i32, i32 }
%class.CompositeNeuron.25 = type { %class.DecideNeuron, float, float }
%class.DecideNeuron = type { %class.NeuronBase.base, float, float, ptr }
%class.SingleGPUSimulator = type { %class.SimulatorBase.base, [4 x i8] }
%class.SimulatorBase.base = type <{ ptr, ptr, float }>

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca %class.Network, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %class.CompositeNeuron, align 8
  %11 = alloca %class.ConstantNeuron, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %class.CompositeNeuron, align 8
  %17 = alloca %class.ConstantNeuron, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %class.CompositeNeuron, align 8
  %20 = alloca %class.ConstantNeuron, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %class.CompositeNeuron.25, align 8
  %23 = alloca %class.DecideNeuron, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %class.SingleGPUSimulator, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  store i8 0, ptr %6, align 1, !tbaa !11
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 1
  br i1 %28, label %29, label %36

29:                                               ; preds = %2
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  %31 = getelementptr inbounds ptr, ptr %30, i64 1
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = call i32 @strcmp(ptr noundef %32, ptr noundef @.str) #7
  %34 = icmp eq i32 0, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %29
  store i8 1, ptr %6, align 1, !tbaa !11
  br label %36

36:                                               ; preds = %35, %29, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 3, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 224, ptr %8) #6
  call void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %11) #6
  invoke void @_ZN14ConstantNeuronC1Efff(ptr noundef nonnull align 8 dereferenceable(80) %11, float noundef 0x3FC99999A0000000, float noundef 0.000000e+00, float noundef 0x3FB9DB22E0000000)
          to label %37 unwind label %88

37:                                               ; preds = %36
  invoke void @_ZN15CompositeNeuronI14ConstantNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(88) %10, ptr noundef nonnull align 8 dereferenceable(80) %11, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %38 unwind label %92

38:                                               ; preds = %37
  %39 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI14ConstantNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 0, i32 noundef 3, ptr noundef %10, i1 noundef zeroext false)
          to label %40 unwind label %96

40:                                               ; preds = %38
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %10) #6
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #6
  store ptr %39, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %41 = load ptr, ptr %9, align 8, !tbaa !9
  %42 = load ptr, ptr %41, align 8, !tbaa !13
  %43 = getelementptr inbounds ptr, ptr %42, i64 12
  %44 = load ptr, ptr %43, align 8
  %45 = invoke noundef ptr %44(ptr noundef nonnull align 8 dereferenceable(56) %41, i32 noundef 0)
          to label %46 unwind label %102

46:                                               ; preds = %40
  store ptr %45, ptr %14, align 8, !tbaa !9
  %47 = load ptr, ptr %14, align 8, !tbaa !9
  invoke void @_ZN14ConstantNeuron7setRateEf(ptr noundef nonnull align 8 dereferenceable(80) %47, float noundef 0x3FE99999A0000000)
          to label %48 unwind label %102

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #6
  invoke void @_ZN14ConstantNeuronC1Efff(ptr noundef nonnull align 8 dereferenceable(80) %17, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FC9BA5E40000000)
          to label %49 unwind label %106

49:                                               ; preds = %48
  invoke void @_ZN15CompositeNeuronI14ConstantNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(88) %16, ptr noundef nonnull align 8 dereferenceable(80) %17, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %50 unwind label %110

50:                                               ; preds = %49
  %51 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI14ConstantNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 1, i32 noundef 3, ptr noundef %16, i1 noundef zeroext false)
          to label %52 unwind label %114

52:                                               ; preds = %50
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #6
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #6
  store ptr %51, ptr %15, align 8, !tbaa !9
  %53 = load ptr, ptr %15, align 8, !tbaa !9
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  %55 = getelementptr inbounds ptr, ptr %54, i64 12
  %56 = load ptr, ptr %55, align 8
  %57 = invoke noundef ptr %56(ptr noundef nonnull align 8 dereferenceable(56) %53, i32 noundef 1)
          to label %58 unwind label %120

58:                                               ; preds = %52
  store ptr %57, ptr %14, align 8, !tbaa !9
  %59 = load ptr, ptr %14, align 8, !tbaa !9
  invoke void @_ZN14ConstantNeuron7setRateEf(ptr noundef nonnull align 8 dereferenceable(80) %59, float noundef 0x3FE99999A0000000)
          to label %60 unwind label %120

60:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 80, ptr %20) #6
  invoke void @_ZN14ConstantNeuronC1Efff(ptr noundef nonnull align 8 dereferenceable(80) %20, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FD3439580000000)
          to label %61 unwind label %124

61:                                               ; preds = %60
  invoke void @_ZN15CompositeNeuronI14ConstantNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(88) %19, ptr noundef nonnull align 8 dereferenceable(80) %20, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %62 unwind label %128

62:                                               ; preds = %61
  %63 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI14ConstantNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 2, i32 noundef 3, ptr noundef %19, i1 noundef zeroext false)
          to label %64 unwind label %132

64:                                               ; preds = %62
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19) #6
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #6
  store ptr %63, ptr %18, align 8, !tbaa !9
  %65 = load ptr, ptr %18, align 8, !tbaa !9
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  %67 = getelementptr inbounds ptr, ptr %66, i64 12
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef ptr %68(ptr noundef nonnull align 8 dereferenceable(56) %65, i32 noundef 2)
          to label %70 unwind label %138

70:                                               ; preds = %64
  store ptr %69, ptr %14, align 8, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !9
  invoke void @_ZN14ConstantNeuron7setRateEf(ptr noundef nonnull align 8 dereferenceable(80) %71, float noundef 0x3FE99999A0000000)
          to label %72 unwind label %138

72:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #6
  invoke void @_ZN12DecideNeuronC1Ev(ptr noundef nonnull align 8 dereferenceable(72) %23)
          to label %73 unwind label %142

73:                                               ; preds = %72
  invoke void @_ZN15CompositeNeuronI12DecideNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(80) %22, ptr noundef nonnull align 8 dereferenceable(72) %23, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %74 unwind label %146

74:                                               ; preds = %73
  %75 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI12DecideNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 1, i32 noundef 3, ptr noundef %22, i1 noundef zeroext false)
          to label %76 unwind label %150

76:                                               ; preds = %74
  call void @_ZN12DecideNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #6
  call void @_ZN12DecideNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %23) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #6
  store ptr %75, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store ptr null, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store ptr null, ptr %25, align 8, !tbaa !9
  %77 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %78 = trunc i8 %77 to i1
  br i1 %78, label %79, label %160

79:                                               ; preds = %76
  %80 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %81 unwind label %156

81:                                               ; preds = %79
  %82 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.2, i32 noundef 3)
          to label %83 unwind label %156

83:                                               ; preds = %81
  store ptr %82, ptr %24, align 8, !tbaa !9
  %84 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.3, i32 noundef 3)
          to label %85 unwind label %156

85:                                               ; preds = %83
  store ptr %84, ptr %25, align 8, !tbaa !9
  %86 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4)
          to label %87 unwind label %156

87:                                               ; preds = %85
  br label %169

88:                                               ; preds = %36
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %12, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %13, align 4
  br label %101

92:                                               ; preds = %37
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %12, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %13, align 4
  br label %100

96:                                               ; preds = %38
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %12, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %13, align 4
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %10) #6
  br label %100

100:                                              ; preds = %96, %92
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %11) #6
  br label %101

101:                                              ; preds = %100, %88
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #6
  br label %220

102:                                              ; preds = %46, %40
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %12, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %13, align 4
  br label %219

106:                                              ; preds = %48
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %12, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %13, align 4
  br label %119

110:                                              ; preds = %49
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %12, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %13, align 4
  br label %118

114:                                              ; preds = %50
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %12, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %13, align 4
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %16) #6
  br label %118

118:                                              ; preds = %114, %110
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #6
  br label %119

119:                                              ; preds = %118, %106
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #6
  br label %218

120:                                              ; preds = %58, %52
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %12, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %13, align 4
  br label %218

124:                                              ; preds = %60
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %12, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %13, align 4
  br label %137

128:                                              ; preds = %61
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %12, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %13, align 4
  br label %136

132:                                              ; preds = %62
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %12, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %13, align 4
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %19) #6
  br label %136

136:                                              ; preds = %132, %128
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %20) #6
  br label %137

137:                                              ; preds = %136, %124
  call void @llvm.lifetime.end.p0(i64 80, ptr %20) #6
  br label %217

138:                                              ; preds = %70, %64
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %12, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %13, align 4
  br label %217

142:                                              ; preds = %72
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  br label %155

146:                                              ; preds = %73
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  br label %154

150:                                              ; preds = %74
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %12, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %13, align 4
  call void @_ZN12DecideNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %22) #6
  br label %154

154:                                              ; preds = %150, %146
  call void @_ZN12DecideNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %23) #6
  br label %155

155:                                              ; preds = %154, %142
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #6
  br label %216

156:                                              ; preds = %181, %175, %169, %166, %164, %162, %160, %85, %83, %81, %79
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %12, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %13, align 4
  br label %215

160:                                              ; preds = %76
  %161 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5)
          to label %162 unwind label %156

162:                                              ; preds = %160
  %163 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 1.000000e+00, i32 noundef 3)
          to label %164 unwind label %156

164:                                              ; preds = %162
  store ptr %163, ptr %24, align 8, !tbaa !9
  %165 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F50624DE0000000, i32 noundef 3)
          to label %166 unwind label %156

166:                                              ; preds = %164
  store ptr %165, ptr %25, align 8, !tbaa !9
  %167 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6)
          to label %168 unwind label %156

168:                                              ; preds = %166
  br label %169

169:                                              ; preds = %168, %87
  %170 = load ptr, ptr %9, align 8, !tbaa !9
  %171 = load ptr, ptr %21, align 8, !tbaa !9
  %172 = load ptr, ptr %24, align 8, !tbaa !9
  %173 = load ptr, ptr %25, align 8, !tbaa !9
  %174 = invoke noundef i32 @_ZN7Network14connectOne2OneI15CompositeNeuronI14ConstantNeuron13StaticSynapseES1_I12DecideNeuronS3_EEEiP10PopulationIT_EPS7_IT0_EPfSE_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %170, ptr noundef %171, ptr noundef %172, ptr noundef %173, ptr noundef null, i32 noundef 3)
          to label %175 unwind label %156

175:                                              ; preds = %169
  %176 = load ptr, ptr %15, align 8, !tbaa !9
  %177 = load ptr, ptr %21, align 8, !tbaa !9
  %178 = load ptr, ptr %24, align 8, !tbaa !9
  %179 = load ptr, ptr %25, align 8, !tbaa !9
  %180 = invoke noundef i32 @_ZN7Network14connectOne2OneI15CompositeNeuronI14ConstantNeuron13StaticSynapseES1_I12DecideNeuronS3_EEEiP10PopulationIT_EPS7_IT0_EPfSE_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %176, ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef null, i32 noundef 3)
          to label %181 unwind label %156

181:                                              ; preds = %175
  %182 = load ptr, ptr %18, align 8, !tbaa !9
  %183 = load ptr, ptr %21, align 8, !tbaa !9
  %184 = load ptr, ptr %24, align 8, !tbaa !9
  %185 = load ptr, ptr %25, align 8, !tbaa !9
  %186 = invoke noundef i32 @_ZN7Network14connectOne2OneI15CompositeNeuronI14ConstantNeuron13StaticSynapseES1_I12DecideNeuronS3_EEEiP10PopulationIT_EPS7_IT0_EPfSE_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %182, ptr noundef %183, ptr noundef %184, ptr noundef %185, ptr noundef null, i32 noundef 3)
          to label %187 unwind label %156

187:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  invoke void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %26, ptr noundef %8, float noundef 0x3F50624DE0000000)
          to label %188 unwind label %204

188:                                              ; preds = %187
  %189 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %26, float noundef 0x3FD3439580000000)
          to label %190 unwind label %208

190:                                              ; preds = %188
  %191 = load i8, ptr %6, align 1, !tbaa !11, !range !15, !noundef !16
  %192 = trunc i8 %191 to i1
  br i1 %192, label %212, label %193

193:                                              ; preds = %190
  %194 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.7)
          to label %195 unwind label %208

195:                                              ; preds = %193
  %196 = load ptr, ptr %24, align 8, !tbaa !9
  %197 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.2, ptr noundef %196, i32 noundef 3)
          to label %198 unwind label %208

198:                                              ; preds = %195
  %199 = load ptr, ptr %25, align 8, !tbaa !9
  %200 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.3, ptr noundef %199, i32 noundef 3)
          to label %201 unwind label %208

201:                                              ; preds = %198
  %202 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.8)
          to label %203 unwind label %208

203:                                              ; preds = %201
  br label %212

204:                                              ; preds = %187
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %12, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %13, align 4
  br label %214

208:                                              ; preds = %201, %198, %195, %193, %188
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %12, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %13, align 4
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %26) #6
  br label %214

212:                                              ; preds = %203, %190
  store i32 0, ptr %3, align 4
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %8) #6
  call void @llvm.lifetime.end.p0(i64 224, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  %213 = load i32, ptr %3, align 4
  ret i32 %213

214:                                              ; preds = %208, %204
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  br label %215

215:                                              ; preds = %214, %156
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %216

216:                                              ; preds = %215, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %217

217:                                              ; preds = %216, %138, %137
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %218

218:                                              ; preds = %217, %120, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %219

219:                                              ; preds = %218, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %220

220:                                              ; preds = %219, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %8) #6
  call void @llvm.lifetime.end.p0(i64 224, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %221

221:                                              ; preds = %220
  %222 = load ptr, ptr %12, align 8
  %223 = load i32, ptr %13, align 4
  %224 = insertvalue { ptr, i32 } poison, ptr %222, 0
  %225 = insertvalue { ptr, i32 } %224, i32 %223, 1
  resume { ptr, i32 } %225
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

declare void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI14ConstantNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, i32 noundef, ptr noundef, i1 noundef zeroext) #4 align 2

declare void @_ZN14ConstantNeuronC1Efff(ptr noundef nonnull align 8 dereferenceable(80), float noundef, float noundef, float noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15CompositeNeuronI14ConstantNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(80), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: nounwind
declare void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5

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

declare void @_ZN14ConstantNeuron7setRateEf(ptr noundef nonnull align 8 dereferenceable(80), float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI12DecideNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, i32 noundef, ptr noundef, i1 noundef zeroext) #4 align 2

declare void @_ZN12DecideNeuronC1Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15CompositeNeuronI12DecideNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(72), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: nounwind
declare void @_ZN12DecideNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN12DecideNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5

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

declare noundef ptr @_Z9loadArrayPKci(ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef, i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7Network14connectOne2OneI15CompositeNeuronI14ConstantNeuron13StaticSynapseES1_I12DecideNeuronS3_EEEiP10PopulationIT_EPS7_IT0_EPfSE_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #4 align 2

declare void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef, float noundef) unnamed_addr #3

declare noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20), float noundef) #3

declare noundef i32 @_Z9saveArrayPKcPfi(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #5

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


; 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.Network = type { %"class.std::vector", %"class.std::vector.0", %"class.std::vector.5", i32, i32, i32, float, float, %"class.std::vector.10", %"class.std::vector.10", i32, %"class.std::vector.15", %"class.std::vector.15", %"class.std::vector.15" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<NeuronBase *, std::allocator<NeuronBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<NeuronBase *, std::allocator<NeuronBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<NeuronBase *, std::allocator<NeuronBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<NeuronBase *, std::allocator<NeuronBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<PopulationBase *, std::allocator<PopulationBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<PopulationBase *, std::allocator<PopulationBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<PopulationBase *, std::allocator<PopulationBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PopulationBase *, std::allocator<PopulationBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<SynapseBase *, std::allocator<SynapseBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<SynapseBase *, std::allocator<SynapseBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SynapseBase *, std::allocator<SynapseBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SynapseBase *, std::allocator<SynapseBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Type, std::allocator<Type>>::_Vector_impl" }
%"struct.std::_Vector_base<Type, std::allocator<Type>>::_Vector_impl" = type { %"struct.std::_Vector_base<Type, std::allocator<Type>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Type, std::allocator<Type>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CompositeNeuron = type { %class.ConstantNeuron, float, float }
%class.ConstantNeuron = type { %class.NeuronBase.base, float, i32, i32, float, float, ptr }
%class.NeuronBase.base = type <{ %class.Base, %"class.std::vector.5", i8, i8, [2 x i8], i32, float }>
%class.Base = type { ptr, i32, i32 }
%class.CompositeNeuron.25 = type { %class.DecideNeuron, float, float }
%class.DecideNeuron = type { %class.NeuronBase.base, float, float, ptr }
%class.SingleGPUSimulator = type { %class.SimulatorBase.base, [4 x i8] }
%class.SimulatorBase.base = type <{ ptr, ptr, float }>

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Network, align 8
  %4 = alloca %class.CompositeNeuron, align 8
  %5 = alloca %class.ConstantNeuron, align 8
  %6 = alloca %class.CompositeNeuron, align 8
  %7 = alloca %class.ConstantNeuron, align 8
  %8 = alloca %class.CompositeNeuron, align 8
  %9 = alloca %class.ConstantNeuron, align 8
  %10 = alloca %class.CompositeNeuron.25, align 8
  %11 = alloca %class.DecideNeuron, align 8
  %12 = alloca %class.SingleGPUSimulator, align 8
  %13 = icmp sgt i32 %0, 1
  br i1 %13, label %14, label %19

14:                                               ; preds = %2
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %16, ptr noundef nonnull dereferenceable(1) @.str) #7
  %18 = icmp eq i32 %17, 0
  br label %19

19:                                               ; preds = %14, %2
  %.027 = phi i1 [ false, %2 ], [ %18, %14 ]
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %3) #8
  call void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #8
  invoke void @_ZN14ConstantNeuronC1Efff(ptr noundef nonnull align 8 dereferenceable(80) %5, float noundef 0x3FC99999A0000000, float noundef 0.000000e+00, float noundef 0x3FB9DB22E0000000)
          to label %20 unwind label %59

20:                                               ; preds = %19
  invoke void @_ZN15CompositeNeuronI14ConstantNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(88) %4, ptr noundef nonnull align 8 dereferenceable(80) %5, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %21 unwind label %61

21:                                               ; preds = %20
  %22 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI14ConstantNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 0, i32 noundef 3, ptr noundef nonnull %4, i1 noundef zeroext false)
          to label %23 unwind label %63

23:                                               ; preds = %21
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #8
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #8
  %24 = load ptr, ptr %22, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %24, i64 96
  %26 = load ptr, ptr %25, align 8
  %27 = invoke noundef ptr %26(ptr noundef nonnull align 8 dereferenceable(56) %22, i32 noundef 0)
          to label %28 unwind label %67

28:                                               ; preds = %23
  invoke void @_ZN14ConstantNeuron7setRateEf(ptr noundef nonnull align 8 dereferenceable(80) %27, float noundef 0x3FE99999A0000000)
          to label %29 unwind label %67

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #8
  invoke void @_ZN14ConstantNeuronC1Efff(ptr noundef nonnull align 8 dereferenceable(80) %7, float noundef 0x3FC99999A0000000, float noundef 0x3FB99999A0000000, float noundef 0x3FC9BA5E40000000)
          to label %30 unwind label %69

30:                                               ; preds = %29
  invoke void @_ZN15CompositeNeuronI14ConstantNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(80) %7, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %31 unwind label %71

31:                                               ; preds = %30
  %32 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI14ConstantNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 1, i32 noundef 3, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %33 unwind label %73

33:                                               ; preds = %31
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #8
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #8
  %34 = load ptr, ptr %32, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %34, i64 96
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef ptr %36(ptr noundef nonnull align 8 dereferenceable(56) %32, i32 noundef 1)
          to label %38 unwind label %77

38:                                               ; preds = %33
  invoke void @_ZN14ConstantNeuron7setRateEf(ptr noundef nonnull align 8 dereferenceable(80) %37, float noundef 0x3FE99999A0000000)
          to label %39 unwind label %77

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #8
  invoke void @_ZN14ConstantNeuronC1Efff(ptr noundef nonnull align 8 dereferenceable(80) %9, float noundef 0x3FC99999A0000000, float noundef 0x3FC99999A0000000, float noundef 0x3FD3439580000000)
          to label %40 unwind label %79

40:                                               ; preds = %39
  invoke void @_ZN15CompositeNeuronI14ConstantNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 8 dereferenceable(80) %9, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %41 unwind label %81

41:                                               ; preds = %40
  %42 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI14ConstantNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 2, i32 noundef 3, ptr noundef nonnull %8, i1 noundef zeroext false)
          to label %43 unwind label %83

43:                                               ; preds = %41
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #8
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #8
  %44 = load ptr, ptr %42, align 8, !tbaa !9
  %45 = getelementptr inbounds i8, ptr %44, i64 96
  %46 = load ptr, ptr %45, align 8
  %47 = invoke noundef ptr %46(ptr noundef nonnull align 8 dereferenceable(56) %42, i32 noundef 2)
          to label %48 unwind label %87

48:                                               ; preds = %43
  invoke void @_ZN14ConstantNeuron7setRateEf(ptr noundef nonnull align 8 dereferenceable(80) %47, float noundef 0x3FE99999A0000000)
          to label %49 unwind label %87

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #8
  invoke void @_ZN12DecideNeuronC1Ev(ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %50 unwind label %89

50:                                               ; preds = %49
  invoke void @_ZN15CompositeNeuronI12DecideNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(80) %10, ptr noundef nonnull align 8 dereferenceable(72) %11, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %51 unwind label %91

51:                                               ; preds = %50
  %52 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI12DecideNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 1, i32 noundef 3, ptr noundef nonnull %10, i1 noundef zeroext false)
          to label %53 unwind label %93

53:                                               ; preds = %51
  call void @_ZN12DecideNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %10) #8
  call void @_ZN12DecideNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #8
  br i1 %.027, label %54, label %99

54:                                               ; preds = %53
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %56 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.2, i32 noundef 3)
          to label %57 unwind label %97

57:                                               ; preds = %54
  %58 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.3, i32 noundef 3)
          to label %104 unwind label %97

59:                                               ; preds = %19
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %66

61:                                               ; preds = %20
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %65

63:                                               ; preds = %21
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #8
  br label %65

65:                                               ; preds = %63, %61
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %62, %61 ]
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  br label %66

66:                                               ; preds = %65, %59
  %.pn.pn = phi { ptr, i32 } [ %.pn, %65 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #8
  br label %128

67:                                               ; preds = %28, %23
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %128

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

71:                                               ; preds = %30
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %31
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #8
  br label %75

75:                                               ; preds = %73, %71
  %.pn46 = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  br label %76

76:                                               ; preds = %75, %69
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %75 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #8
  br label %128

77:                                               ; preds = %38, %33
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %128

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

81:                                               ; preds = %40
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %85

83:                                               ; preds = %41
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #8
  br label %85

85:                                               ; preds = %83, %81
  %.pn49 = phi { ptr, i32 } [ %84, %83 ], [ %82, %81 ]
  call void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  br label %86

86:                                               ; preds = %85, %79
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %85 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #8
  br label %128

87:                                               ; preds = %48, %43
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %128

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

91:                                               ; preds = %50
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %51
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN12DecideNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %10) #8
  br label %95

95:                                               ; preds = %93, %91
  %.pn52 = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @_ZN12DecideNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #8
  br label %96

96:                                               ; preds = %95, %89
  %.pn52.pn = phi { ptr, i32 } [ %.pn52, %95 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #8
  br label %128

97:                                               ; preds = %109, %107, %104, %102, %99, %57, %54
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %128

99:                                               ; preds = %53
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %101 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 1.000000e+00, i32 noundef 3)
          to label %102 unwind label %97

102:                                              ; preds = %99
  %103 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F50624DE0000000, i32 noundef 3)
          to label %104 unwind label %97

104:                                              ; preds = %102, %57
  %.str.6.sink = phi ptr [ @.str.4, %57 ], [ @.str.6, %102 ]
  %.026 = phi ptr [ %56, %57 ], [ %101, %102 ]
  %.0 = phi ptr [ %58, %57 ], [ %103, %102 ]
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.6.sink)
  %106 = invoke noundef i32 @_ZN7Network14connectOne2OneI15CompositeNeuronI14ConstantNeuron13StaticSynapseES1_I12DecideNeuronS3_EEEiP10PopulationIT_EPS7_IT0_EPfSE_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull %22, ptr noundef %52, ptr noundef %.026, ptr noundef %.0, ptr noundef null, i32 noundef 3)
          to label %107 unwind label %97

107:                                              ; preds = %104
  %108 = invoke noundef i32 @_ZN7Network14connectOne2OneI15CompositeNeuronI14ConstantNeuron13StaticSynapseES1_I12DecideNeuronS3_EEEiP10PopulationIT_EPS7_IT0_EPfSE_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull %32, ptr noundef %52, ptr noundef %.026, ptr noundef %.0, ptr noundef null, i32 noundef 3)
          to label %109 unwind label %97

109:                                              ; preds = %107
  %110 = invoke noundef i32 @_ZN7Network14connectOne2OneI15CompositeNeuronI14ConstantNeuron13StaticSynapseES1_I12DecideNeuronS3_EEEiP10PopulationIT_EPS7_IT0_EPfSE_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef nonnull %42, ptr noundef %52, ptr noundef %.026, ptr noundef %.0, ptr noundef null, i32 noundef 3)
          to label %111 unwind label %97

111:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  invoke void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %12, ptr noundef nonnull %3, float noundef 0x3F50624DE0000000)
          to label %112 unwind label %122

112:                                              ; preds = %111
  %113 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %12, float noundef 0x3FD3439580000000)
          to label %114 unwind label %124

114:                                              ; preds = %112
  br i1 %.027, label %126, label %115

115:                                              ; preds = %114
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %117 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.2, ptr noundef %.026, i32 noundef 3)
          to label %118 unwind label %124

118:                                              ; preds = %115
  %119 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.3, ptr noundef %.0, i32 noundef 3)
          to label %120 unwind label %124

120:                                              ; preds = %118
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %126

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

124:                                              ; preds = %118, %115, %112
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #8
  br label %127

126:                                              ; preds = %120, %114
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #8
  ret i32 0

127:                                              ; preds = %124, %122
  %.pn55 = phi { ptr, i32 } [ %125, %124 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  br label %128

128:                                              ; preds = %67, %86, %87, %97, %127, %96, %77, %76, %66
  %.pn55.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %66 ], [ %68, %67 ], [ %78, %77 ], [ %.pn46.pn, %76 ], [ %88, %87 ], [ %.pn49.pn, %86 ], [ %.pn52.pn, %96 ], [ %.pn55, %127 ], [ %98, %97 ]
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn55.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

declare void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI14ConstantNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4 align 2

declare void @_ZN14ConstantNeuronC1Efff(ptr noundef nonnull align 8 dereferenceable(80), float noundef, float noundef, float noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15CompositeNeuronI14ConstantNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(80), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: nounwind
declare void @_ZN14ConstantNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN14ConstantNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #5

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

declare void @_ZN14ConstantNeuron7setRateEf(ptr noundef nonnull align 8 dereferenceable(80), float noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI12DecideNeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4 align 2

declare void @_ZN12DecideNeuronC1Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15CompositeNeuronI12DecideNeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(72), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: nounwind
declare void @_ZN12DecideNeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN12DecideNeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5

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

declare noundef ptr @_Z9loadArrayPKci(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7Network14connectOne2OneI15CompositeNeuronI14ConstantNeuron13StaticSynapseES1_I12DecideNeuronS3_EEEiP10PopulationIT_EPS7_IT0_EPfSE_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4 align 2

declare void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef, float noundef) unnamed_addr #3

declare noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20), float noundef) local_unnamed_addr #3

declare noundef i32 @_Z9saveArrayPKcPfi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass