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

; 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.LIFENeuron, float, float }
%class.LIFENeuron = type { %class.NeuronBase.base, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, float, float, float, float, float, float, float, float, float }
%class.NeuronBase.base = type <{ %class.Base, %"class.std::vector.5", i8, i8, [2 x i8], i32, float }>
%class.Base = type { ptr, i32, i32 }
%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 [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = 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.LIFENeuron, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %class.CompositeNeuron, align 8
  %16 = alloca %class.LIFENeuron, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %class.CompositeNeuron, align 8
  %19 = alloca %class.LIFENeuron, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = 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
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 1
  br i1 %25, label %26, label %33

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

32:                                               ; preds = %26
  store i8 1, ptr %6, align 1, !tbaa !11
  br label %33

33:                                               ; preds = %32, %26, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 10, 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 144, ptr %11) #6
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %11, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 1.000000e+01)
          to label %34 unwind label %59

34:                                               ; preds = %33
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %10, ptr noundef nonnull align 8 dereferenceable(144) %11, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %35 unwind label %63

35:                                               ; preds = %34
  %36 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 10, ptr noundef %10, i1 noundef zeroext false)
          to label %37 unwind label %67

37:                                               ; preds = %35
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %10) #6
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #6
  store ptr %36, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr %16) #6
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %16, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %38 unwind label %73

38:                                               ; preds = %37
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %15, ptr noundef nonnull align 8 dereferenceable(144) %16, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %39 unwind label %77

39:                                               ; preds = %38
  %40 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 10, ptr noundef %15, i1 noundef zeroext false)
          to label %41 unwind label %81

41:                                               ; preds = %39
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %15) #6
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %16) #6
  store ptr %40, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr %19) #6
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %19, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %42 unwind label %87

42:                                               ; preds = %41
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %18, ptr noundef nonnull align 8 dereferenceable(144) %19, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %43 unwind label %91

43:                                               ; preds = %42
  %44 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 10, ptr noundef %18, i1 noundef zeroext false)
          to label %45 unwind label %95

45:                                               ; preds = %43
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %18) #6
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %19) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr %19) #6
  store ptr %44, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store ptr null, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store ptr null, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store ptr null, ptr %22, align 8, !tbaa !9
  %46 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %47 = trunc i8 %46 to i1
  br i1 %47, label %48, label %105

48:                                               ; preds = %45
  %49 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %50 unwind label %101

50:                                               ; preds = %48
  %51 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.2, i32 noundef 100)
          to label %52 unwind label %101

52:                                               ; preds = %50
  store ptr %51, ptr %20, align 8, !tbaa !9
  %53 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.3, i32 noundef 100)
          to label %54 unwind label %101

54:                                               ; preds = %52
  store ptr %53, ptr %21, align 8, !tbaa !9
  %55 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.4, i32 noundef 100)
          to label %56 unwind label %101

56:                                               ; preds = %54
  store ptr %55, ptr %22, align 8, !tbaa !9
  %57 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.5)
          to label %58 unwind label %101

58:                                               ; preds = %56
  br label %116

59:                                               ; preds = %33
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %12, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %13, align 4
  br label %72

63:                                               ; preds = %34
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %12, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %13, align 4
  br label %71

67:                                               ; preds = %35
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %12, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %10) #6
  br label %71

71:                                               ; preds = %67, %63
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #6
  br label %72

72:                                               ; preds = %71, %59
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #6
  br label %162

73:                                               ; preds = %37
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %12, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %13, align 4
  br label %86

77:                                               ; preds = %38
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %12, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %13, align 4
  br label %85

81:                                               ; preds = %39
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %12, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %15) #6
  br label %85

85:                                               ; preds = %81, %77
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #6
  br label %86

86:                                               ; preds = %85, %73
  call void @llvm.lifetime.end.p0(i64 144, ptr %16) #6
  br label %161

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

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

95:                                               ; preds = %43
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %12, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %18) #6
  br label %99

99:                                               ; preds = %95, %91
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %19) #6
  br label %100

100:                                              ; preds = %99, %87
  call void @llvm.lifetime.end.p0(i64 144, ptr %19) #6
  br label %160

101:                                              ; preds = %122, %116, %113, %111, %109, %107, %105, %56, %54, %52, %50, %48
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %12, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %13, align 4
  br label %159

105:                                              ; preds = %45
  %106 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6)
          to label %107 unwind label %101

107:                                              ; preds = %105
  %108 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3EE4F8B580000000, i32 noundef 100)
          to label %109 unwind label %101

109:                                              ; preds = %107
  store ptr %108, ptr %20, align 8, !tbaa !9
  %110 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3EF4F8B580000000, i32 noundef 100)
          to label %111 unwind label %101

111:                                              ; preds = %109
  store ptr %110, ptr %21, align 8, !tbaa !9
  %112 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F1A36E2E0000000, i32 noundef 100)
          to label %113 unwind label %101

113:                                              ; preds = %111
  store ptr %112, ptr %22, align 8, !tbaa !9
  %114 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.7)
          to label %115 unwind label %101

115:                                              ; preds = %113
  br label %116

116:                                              ; preds = %115, %58
  %117 = load ptr, ptr %9, align 8, !tbaa !9
  %118 = load ptr, ptr %14, align 8, !tbaa !9
  %119 = load ptr, ptr %20, align 8, !tbaa !9
  %120 = load ptr, ptr %22, align 8, !tbaa !9
  %121 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %117, ptr noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef null, i32 noundef 100)
          to label %122 unwind label %101

122:                                              ; preds = %116
  %123 = load ptr, ptr %14, align 8, !tbaa !9
  %124 = load ptr, ptr %17, align 8, !tbaa !9
  %125 = load ptr, ptr %21, align 8, !tbaa !9
  %126 = load ptr, ptr %22, align 8, !tbaa !9
  %127 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126, ptr noundef null, i32 noundef 100)
          to label %128 unwind label %101

128:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #6
  invoke void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %23, ptr noundef %8, float noundef 0x3F1A36E2E0000000)
          to label %129 unwind label %148

129:                                              ; preds = %128
  %130 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %23, float noundef 0x3FB99999A0000000)
          to label %131 unwind label %152

131:                                              ; preds = %129
  %132 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %133 = trunc i8 %132 to i1
  br i1 %133, label %156, label %134

134:                                              ; preds = %131
  %135 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.8)
          to label %136 unwind label %152

136:                                              ; preds = %134
  %137 = load ptr, ptr %20, align 8, !tbaa !9
  %138 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.2, ptr noundef %137, i32 noundef 100)
          to label %139 unwind label %152

139:                                              ; preds = %136
  %140 = load ptr, ptr %21, align 8, !tbaa !9
  %141 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.3, ptr noundef %140, i32 noundef 100)
          to label %142 unwind label %152

142:                                              ; preds = %139
  %143 = load ptr, ptr %22, align 8, !tbaa !9
  %144 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.4, ptr noundef %143, i32 noundef 100)
          to label %145 unwind label %152

145:                                              ; preds = %142
  %146 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.9)
          to label %147 unwind label %152

147:                                              ; preds = %145
  br label %156

148:                                              ; preds = %128
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %12, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %13, align 4
  br label %158

152:                                              ; preds = %145, %142, %139, %136, %134, %129
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %12, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %13, align 4
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %23) #6
  br label %158

156:                                              ; preds = %147, %131
  store i32 0, ptr %3, align 4
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #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
  %157 = load i32, ptr %3, align 4
  ret i32 %157

158:                                              ; preds = %152, %148
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #6
  br label %159

159:                                              ; preds = %158, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %160

160:                                              ; preds = %159, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %161

161:                                              ; preds = %160, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %162

162:                                              ; preds = %161, %72
  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 %163

163:                                              ; preds = %162
  %164 = load ptr, ptr %12, align 8
  %165 = load i32, ptr %13, align 4
  %166 = insertvalue { ptr, i32 } poison, ptr %164, 0
  %167 = insertvalue { ptr, i32 } %166, i32 %165, 1
  resume { ptr, i32 } %167
}

; 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 @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiS6_b(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, ptr noundef, i1 noundef zeroext) #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144)) 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 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 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_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 = !{i8 0, i8 2}
!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.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.LIFENeuron, float, float }
%class.LIFENeuron = type { %class.NeuronBase.base, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, float, float, float, float, float, float, float, float, float }
%class.NeuronBase.base = type <{ %class.Base, %"class.std::vector.5", i8, i8, [2 x i8], i32, float }>
%class.Base = type { ptr, i32, i32 }
%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 [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.9 = 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.LIFENeuron, align 8
  %6 = alloca %class.CompositeNeuron, align 8
  %7 = alloca %class.LIFENeuron, align 8
  %8 = alloca %class.CompositeNeuron, align 8
  %9 = alloca %class.LIFENeuron, align 8
  %10 = alloca %class.SingleGPUSimulator, align 8
  %11 = icmp sgt i32 %0, 1
  br i1 %11, label %12, label %17

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

17:                                               ; preds = %12, %2
  %.019 = phi i1 [ false, %2 ], [ %16, %12 ]
  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 144, ptr nonnull %5) #8
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %5, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 1.000000e+01)
          to label %18 unwind label %37

18:                                               ; preds = %17
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %4, ptr noundef nonnull align 8 dereferenceable(144) %5, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %19 unwind label %39

19:                                               ; preds = %18
  %20 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 10, ptr noundef nonnull %4, i1 noundef zeroext false)
          to label %21 unwind label %41

21:                                               ; preds = %19
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %4) #8
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %7) #8
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %7, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %22 unwind label %45

22:                                               ; preds = %21
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %6, ptr noundef nonnull align 8 dereferenceable(144) %7, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %23 unwind label %47

23:                                               ; preds = %22
  %24 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 10, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %25 unwind label %49

25:                                               ; preds = %23
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %6) #8
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %7) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %9) #8
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %9, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %26 unwind label %53

26:                                               ; preds = %25
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %8, ptr noundef nonnull align 8 dereferenceable(144) %9, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %27 unwind label %55

27:                                               ; preds = %26
  %28 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 10, ptr noundef nonnull %8, i1 noundef zeroext false)
          to label %29 unwind label %57

29:                                               ; preds = %27
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #8
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #8
  br i1 %.019, label %30, label %63

30:                                               ; preds = %29
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %32 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.2, i32 noundef 100)
          to label %33 unwind label %61

33:                                               ; preds = %30
  %34 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.3, i32 noundef 100)
          to label %35 unwind label %61

35:                                               ; preds = %33
  %36 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.4, i32 noundef 100)
          to label %70 unwind label %61

37:                                               ; preds = %17
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %44

39:                                               ; preds = %18
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %43

41:                                               ; preds = %19
  %42 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %4) #8
  br label %43

43:                                               ; preds = %41, %39
  %.pn = phi { ptr, i32 } [ %42, %41 ], [ %40, %39 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #8
  br label %44

44:                                               ; preds = %43, %37
  %.pn.pn = phi { ptr, i32 } [ %.pn, %43 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
  br label %94

45:                                               ; preds = %21
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %52

47:                                               ; preds = %22
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %51

49:                                               ; preds = %23
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %6) #8
  br label %51

51:                                               ; preds = %49, %47
  %.pn34 = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %7) #8
  br label %52

52:                                               ; preds = %51, %45
  %.pn34.pn = phi { ptr, i32 } [ %.pn34, %51 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #8
  br label %94

53:                                               ; preds = %25
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %60

55:                                               ; preds = %26
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %59

57:                                               ; preds = %27
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #8
  br label %59

59:                                               ; preds = %57, %55
  %.pn37 = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #8
  br label %60

60:                                               ; preds = %59, %53
  %.pn37.pn = phi { ptr, i32 } [ %.pn37, %59 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #8
  br label %94

61:                                               ; preds = %73, %70, %68, %66, %63, %35, %33, %30
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %94

63:                                               ; preds = %29
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %65 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3EE4F8B580000000, i32 noundef 100)
          to label %66 unwind label %61

66:                                               ; preds = %63
  %67 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3EF4F8B580000000, i32 noundef 100)
          to label %68 unwind label %61

68:                                               ; preds = %66
  %69 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F1A36E2E0000000, i32 noundef 100)
          to label %70 unwind label %61

70:                                               ; preds = %68, %35
  %.str.7.sink = phi ptr [ @.str.5, %35 ], [ @.str.7, %68 ]
  %.018 = phi ptr [ %32, %35 ], [ %65, %68 ]
  %.017 = phi ptr [ %34, %35 ], [ %67, %68 ]
  %.0 = phi ptr [ %36, %35 ], [ %69, %68 ]
  %71 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.7.sink)
  %72 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %20, ptr noundef %24, ptr noundef %.018, ptr noundef %.0, ptr noundef null, i32 noundef 100)
          to label %73 unwind label %61

73:                                               ; preds = %70
  %74 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %24, ptr noundef %28, ptr noundef %.017, ptr noundef %.0, ptr noundef null, i32 noundef 100)
          to label %75 unwind label %61

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #8
  invoke void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef nonnull %3, float noundef 0x3F1A36E2E0000000)
          to label %76 unwind label %88

76:                                               ; preds = %75
  %77 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %10, float noundef 0x3FB99999A0000000)
          to label %78 unwind label %90

78:                                               ; preds = %76
  br i1 %.019, label %92, label %79

79:                                               ; preds = %78
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %81 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.2, ptr noundef %.018, i32 noundef 100)
          to label %82 unwind label %90

82:                                               ; preds = %79
  %83 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.3, ptr noundef %.017, i32 noundef 100)
          to label %84 unwind label %90

84:                                               ; preds = %82
  %85 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.4, ptr noundef %.0, i32 noundef 100)
          to label %86 unwind label %90

86:                                               ; preds = %84
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %92

88:                                               ; preds = %75
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %93

90:                                               ; preds = %84, %82, %79, %76
  %91 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  br label %93

92:                                               ; preds = %86, %78
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #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

93:                                               ; preds = %90, %88
  %.pn40 = phi { ptr, i32 } [ %91, %90 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  br label %94

94:                                               ; preds = %52, %61, %93, %60, %44
  %.pn40.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %44 ], [ %.pn34.pn, %52 ], [ %.pn37.pn, %60 ], [ %.pn40, %93 ], [ %62, %61 ]
  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 } %.pn40.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 @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiS6_b(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144)) 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

; 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 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_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"}


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