; LLVM IR from CRAFT-THU/BSim :: test/gpu (standard_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 [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 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 i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca %class.Network, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i64, align 8
  %31 = alloca %class.CompositeNeuron, align 8
  %32 = alloca %class.LIFENeuron, align 8
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %class.CompositeNeuron, align 8
  %37 = alloca %class.LIFENeuron, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca i64, align 8
  %47 = alloca i32, align 4
  %48 = alloca %class.CompositeNeuron, align 8
  %49 = alloca %class.LIFENeuron, align 8
  %50 = 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 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %51 = call i64 @clock() #7
  store i64 %51, ptr %6, align 8, !tbaa !11
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = icmp ne i32 %52, 8
  br i1 %53, label %54, label %56

54:                                               ; preds = %2
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %377

56:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 1
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = call i32 @atoi(ptr noundef %59) #8
  store i32 %60, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 2
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i32 @atoi(ptr noundef %63) #8
  store i32 %64, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i64 3
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = call double @atof(ptr noundef %67) #8
  %69 = fptrunc double %68 to float
  store float %69, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %70, i64 4
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = call double @atof(ptr noundef %72) #8
  %74 = fptrunc double %73 to float
  store float %74, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  %76 = getelementptr inbounds ptr, ptr %75, i64 5
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = call double @atof(ptr noundef %77) #8
  %79 = fptrunc double %78 to float
  store float %79, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 6
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call double @atof(ptr noundef %82) #8
  %84 = fptrunc double %83 to float
  store float %84, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 7
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = call i32 @atoi(ptr noundef %87) #8
  store i32 %88, ptr %15, align 4, !tbaa !5
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = load i32, ptr %10, align 4, !tbaa !5
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %89, i32 noundef %90)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store float 0xBFABA5E360000000, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store float 0xBFAEB851E0000000, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store float 0x3DEB7CDFE0000000, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store float 0xBFB2F1AA00000000, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store float 0x3F60624DE0000000, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store float 0x3F43A92A40000000, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store float 0x3F847AE140000000, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store float 0x3E212E0BE0000000, ptr %23, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store float 0.000000e+00, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store float 0xBFB2F1AA00000000, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store float 0x3FB99999A0000000, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store float 0x3F1A36E2E0000000, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 224, ptr %28) #7
  call void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %28)
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  %94 = zext i32 %93 to i64
  %95 = call ptr @llvm.stacksave.p0()
  store ptr %95, ptr %29, align 8
  %96 = alloca ptr, i64 %94, align 16
  store i64 %94, ptr %30, align 8
  %97 = load i32, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %32) #7
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %32, float noundef 0xBFB2F1AA00000000, float noundef 0xBFB2F1AA00000000, float noundef 0xBFAEB851E0000000, float noundef 0x3DEB7CDFE0000000, float noundef 0x3F847AE140000000, float noundef 0.000000e+00, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000, float noundef 0xBFABA5E360000000, float noundef 0x3E212E0BE0000000)
          to label %98 unwind label %108

98:                                               ; preds = %56
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %31, ptr noundef nonnull align 8 dereferenceable(144) %32, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000)
          to label %99 unwind label %112

99:                                               ; preds = %98
  %100 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %28, i32 noundef 1, i32 noundef %97, ptr noundef %31, i1 noundef zeroext false)
          to label %101 unwind label %116

101:                                              ; preds = %99
  %102 = getelementptr inbounds ptr, ptr %96, i64 1
  store ptr %100, ptr %102, align 8, !tbaa !9
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %31) #7
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %32) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 2, ptr %35, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %132, %101
  %104 = load i32, ptr %35, align 4, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = icmp sle i32 %104, %105
  br i1 %106, label %122, label %107

107:                                              ; preds = %103
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %149

108:                                              ; preds = %56
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %33, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %34, align 4
  br label %121

112:                                              ; preds = %98
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %33, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %34, align 4
  br label %120

116:                                              ; preds = %99
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %33, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %34, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %31) #7
  br label %120

120:                                              ; preds = %116, %112
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %32) #7
  br label %121

121:                                              ; preds = %120, %108
  call void @llvm.lifetime.end.p0(i64 144, ptr %32) #7
  br label %376

122:                                              ; preds = %103
  %123 = load i32, ptr %35, align 4, !tbaa !5
  %124 = load i32, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %37) #7
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %37, float noundef 0xBFB2F1AA00000000, float noundef 0xBFB2F1AA00000000, float noundef 0xBFAEB851E0000000, float noundef 0x3DEB7CDFE0000000, float noundef 0x3F847AE140000000, float noundef 0.000000e+00, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000, float noundef 0xBFABA5E360000000, float noundef 0.000000e+00)
          to label %125 unwind label %135

125:                                              ; preds = %122
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %36, ptr noundef nonnull align 8 dereferenceable(144) %37, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000)
          to label %126 unwind label %139

126:                                              ; preds = %125
  %127 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %28, i32 noundef %123, i32 noundef %124, ptr noundef %36, i1 noundef zeroext false)
          to label %128 unwind label %143

128:                                              ; preds = %126
  %129 = load i32, ptr %35, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds ptr, ptr %96, i64 %130
  store ptr %127, ptr %131, align 8, !tbaa !9
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %36) #7
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %37) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %37) #7
  br label %132

132:                                              ; preds = %128
  %133 = load i32, ptr %35, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %35, align 4, !tbaa !5
  br label %103, !llvm.loop !15

135:                                              ; preds = %122
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %33, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %34, align 4
  br label %148

139:                                              ; preds = %125
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %33, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %34, align 4
  br label %147

143:                                              ; preds = %126
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %33, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %34, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %36) #7
  br label %147

147:                                              ; preds = %143, %139
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %37) #7
  br label %148

148:                                              ; preds = %147, %135
  call void @llvm.lifetime.end.p0(i64 144, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %376

149:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %150 = load float, ptr %11, align 4, !tbaa !13
  %151 = fmul float 0x3E112E0BE0000000, %150
  %152 = load i32, ptr %10, align 4, !tbaa !5
  %153 = sitofp i32 %152 to float
  %154 = fdiv float %151, %153
  %155 = load i32, ptr %10, align 4, !tbaa !5
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = mul nsw i32 %155, %156
  %158 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %154, i32 noundef %157)
          to label %159 unwind label %206

159:                                              ; preds = %149
  store ptr %158, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %160 = load float, ptr %12, align 4, !tbaa !13
  %161 = fmul float 0x3E112E0BE0000000, %160
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = sitofp i32 %162 to float
  %164 = fdiv float %161, %163
  %165 = load i32, ptr %10, align 4, !tbaa !5
  %166 = load i32, ptr %10, align 4, !tbaa !5
  %167 = mul nsw i32 %165, %166
  %168 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %164, i32 noundef %167)
          to label %169 unwind label %210

169:                                              ; preds = %159
  store ptr %168, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %170 = load float, ptr %13, align 4, !tbaa !13
  %171 = fmul float 0x3E112E0BE0000000, %170
  %172 = load i32, ptr %10, align 4, !tbaa !5
  %173 = sitofp i32 %172 to float
  %174 = fdiv float %171, %173
  %175 = load i32, ptr %10, align 4, !tbaa !5
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = mul nsw i32 %175, %176
  %178 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %174, i32 noundef %177)
          to label %179 unwind label %214

179:                                              ; preds = %169
  store ptr %178, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %180 = load float, ptr %14, align 4, !tbaa !13
  %181 = fmul float 0xBE112E0BE0000000, %180
  %182 = load i32, ptr %10, align 4, !tbaa !5
  %183 = sitofp i32 %182 to float
  %184 = fdiv float %181, %183
  %185 = load i32, ptr %10, align 4, !tbaa !5
  %186 = load i32, ptr %10, align 4, !tbaa !5
  %187 = mul nsw i32 %185, %186
  %188 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %184, i32 noundef %187)
          to label %189 unwind label %218

189:                                              ; preds = %179
  store ptr %188, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %190 = load i32, ptr %10, align 4, !tbaa !5
  %191 = load i32, ptr %10, align 4, !tbaa !5
  %192 = mul nsw i32 %190, %191
  %193 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F1A36E2E0000000, i32 noundef %192)
          to label %194 unwind label %222

194:                                              ; preds = %189
  store ptr %193, ptr %42, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 1, ptr %43, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %195 = load i32, ptr %43, align 4, !tbaa !17
  %196 = load i32, ptr %10, align 4, !tbaa !5
  %197 = load i32, ptr %10, align 4, !tbaa !5
  %198 = mul nsw i32 %196, %197
  %199 = invoke noundef ptr @_Z13getConstArrayI9SpikeTypeEPT_S1_i(i32 noundef %195, i32 noundef %198)
          to label %200 unwind label %226

200:                                              ; preds = %194
  store ptr %199, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  store i32 2, ptr %45, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %270, %200
  %202 = load i32, ptr %45, align 4, !tbaa !5
  %203 = load i32, ptr %9, align 4, !tbaa !5
  %204 = icmp sle i32 %202, %203
  br i1 %204, label %230, label %205

205:                                              ; preds = %201
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %273

206:                                              ; preds = %149
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %33, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %34, align 4
  br label %375

210:                                              ; preds = %159
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %33, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %34, align 4
  br label %374

214:                                              ; preds = %169
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %33, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %34, align 4
  br label %373

218:                                              ; preds = %179
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %33, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %34, align 4
  br label %372

222:                                              ; preds = %189
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %33, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %34, align 4
  br label %371

226:                                              ; preds = %194
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %33, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %34, align 4
  br label %370

230:                                              ; preds = %201
  %231 = load i32, ptr %45, align 4, !tbaa !5
  %232 = sub nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds ptr, ptr %96, i64 %233
  %235 = load ptr, ptr %234, align 8, !tbaa !9
  %236 = load i32, ptr %45, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds ptr, ptr %96, i64 %237
  %239 = load ptr, ptr %238, align 8, !tbaa !9
  %240 = load ptr, ptr %38, align 8, !tbaa !9
  %241 = load ptr, ptr %42, align 8, !tbaa !9
  %242 = load i32, ptr %10, align 4, !tbaa !5
  %243 = load i32, ptr %10, align 4, !tbaa !5
  %244 = mul nsw i32 %242, %243
  %245 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %28, ptr noundef %235, ptr noundef %239, ptr noundef %240, ptr noundef %241, ptr noundef null, i32 noundef %244)
          to label %246 unwind label %265

246:                                              ; preds = %230
  %247 = load i32, ptr %45, align 4, !tbaa !5
  %248 = load i32, ptr %15, align 4, !tbaa !5
  %249 = srem i32 %247, %248
  %250 = icmp eq i32 %249, 0
  br i1 %250, label %251, label %269

251:                                              ; preds = %246
  %252 = getelementptr inbounds ptr, ptr %96, i64 1
  %253 = load ptr, ptr %252, align 8, !tbaa !9
  %254 = load i32, ptr %45, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds ptr, ptr %96, i64 %255
  %257 = load ptr, ptr %256, align 8, !tbaa !9
  %258 = load ptr, ptr %39, align 8, !tbaa !9
  %259 = load ptr, ptr %42, align 8, !tbaa !9
  %260 = load i32, ptr %10, align 4, !tbaa !5
  %261 = load i32, ptr %10, align 4, !tbaa !5
  %262 = mul nsw i32 %260, %261
  %263 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %28, ptr noundef %253, ptr noundef %257, ptr noundef %258, ptr noundef %259, ptr noundef null, i32 noundef %262)
          to label %264 unwind label %265

264:                                              ; preds = %251
  br label %269

265:                                              ; preds = %251, %230
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %33, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %370

269:                                              ; preds = %264, %246
  br label %270

270:                                              ; preds = %269
  %271 = load i32, ptr %45, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %45, align 4, !tbaa !5
  br label %201, !llvm.loop !19

273:                                              ; preds = %205
  %274 = load i32, ptr %9, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  %276 = zext i32 %275 to i64
  %277 = alloca ptr, i64 %276, align 16
  store i64 %276, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  store i32 1, ptr %47, align 4, !tbaa !5
  br label %278

278:                                              ; preds = %326, %273
  %279 = load i32, ptr %47, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  %281 = load i32, ptr %9, align 4, !tbaa !5
  %282 = icmp sle i32 %280, %281
  br i1 %282, label %283, label %347

283:                                              ; preds = %278
  %284 = load i32, ptr %47, align 4, !tbaa !5
  %285 = load i32, ptr %9, align 4, !tbaa !5
  %286 = add nsw i32 %284, %285
  %287 = load i32, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 144, ptr %49) #7
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %49, float noundef 0xBFB2F1AA00000000, float noundef 0xBFB2F1AA00000000, float noundef 0xBFAEB851E0000000, float noundef 0x3DEB7CDFE0000000, float noundef 0x3F847AE140000000, float noundef 0.000000e+00, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000, float noundef 0xBFABA5E360000000, float noundef 0.000000e+00)
          to label %288 unwind label %329

288:                                              ; preds = %283
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %48, ptr noundef nonnull align 8 dereferenceable(144) %49, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000)
          to label %289 unwind label %333

289:                                              ; preds = %288
  %290 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %28, i32 noundef %286, i32 noundef %287, ptr noundef %48, i1 noundef zeroext false)
          to label %291 unwind label %337

291:                                              ; preds = %289
  %292 = load i32, ptr %47, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds ptr, ptr %277, i64 %293
  store ptr %290, ptr %294, align 8, !tbaa !9
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %48) #7
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %49) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %49) #7
  %295 = load i32, ptr %47, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds ptr, ptr %96, i64 %296
  %298 = load ptr, ptr %297, align 8, !tbaa !9
  %299 = load i32, ptr %47, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds ptr, ptr %277, i64 %300
  %302 = load ptr, ptr %301, align 8, !tbaa !9
  %303 = load ptr, ptr %40, align 8, !tbaa !9
  %304 = load ptr, ptr %42, align 8, !tbaa !9
  %305 = load i32, ptr %10, align 4, !tbaa !5
  %306 = load i32, ptr %10, align 4, !tbaa !5
  %307 = mul nsw i32 %305, %306
  %308 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %28, ptr noundef %298, ptr noundef %302, ptr noundef %303, ptr noundef %304, ptr noundef null, i32 noundef %307)
          to label %309 unwind label %343

309:                                              ; preds = %291
  %310 = load i32, ptr %47, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds ptr, ptr %277, i64 %311
  %313 = load ptr, ptr %312, align 8, !tbaa !9
  %314 = load i32, ptr %47, align 4, !tbaa !5
  %315 = add nsw i32 %314, 1
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds ptr, ptr %96, i64 %316
  %318 = load ptr, ptr %317, align 8, !tbaa !9
  %319 = load ptr, ptr %41, align 8, !tbaa !9
  %320 = load ptr, ptr %42, align 8, !tbaa !9
  %321 = load ptr, ptr %44, align 8, !tbaa !9
  %322 = load i32, ptr %10, align 4, !tbaa !5
  %323 = load i32, ptr %10, align 4, !tbaa !5
  %324 = mul nsw i32 %322, %323
  %325 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %28, ptr noundef %313, ptr noundef %318, ptr noundef %319, ptr noundef %320, ptr noundef %321, i32 noundef %324)
          to label %326 unwind label %343

326:                                              ; preds = %309
  %327 = load i32, ptr %47, align 4, !tbaa !5
  %328 = add nsw i32 %327, 4
  store i32 %328, ptr %47, align 4, !tbaa !5
  br label %278, !llvm.loop !20

329:                                              ; preds = %283
  %330 = landingpad { ptr, i32 }
          cleanup
  %331 = extractvalue { ptr, i32 } %330, 0
  store ptr %331, ptr %33, align 8
  %332 = extractvalue { ptr, i32 } %330, 1
  store i32 %332, ptr %34, align 4
  br label %342

333:                                              ; preds = %288
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %33, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %34, align 4
  br label %341

337:                                              ; preds = %289
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %33, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %34, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %48) #7
  br label %341

341:                                              ; preds = %337, %333
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %49) #7
  br label %342

342:                                              ; preds = %341, %329
  call void @llvm.lifetime.end.p0(i64 144, ptr %49) #7
  br label %369

343:                                              ; preds = %309, %291
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %33, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %34, align 4
  br label %369

347:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #7
  invoke void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %50, ptr noundef %28, float noundef 0x3F1A36E2E0000000)
          to label %348 unwind label %360

348:                                              ; preds = %347
  %349 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %50, float noundef 0x3FB99999A0000000)
          to label %350 unwind label %364

350:                                              ; preds = %348
  %351 = call i64 @clock() #7
  store i64 %351, ptr %7, align 8, !tbaa !11
  %352 = load i64, ptr %7, align 8, !tbaa !11
  %353 = load i64, ptr %6, align 8, !tbaa !11
  %354 = sub nsw i64 %352, %353
  %355 = sitofp i64 %354 to double
  %356 = fdiv double %355, 1.000000e+06
  %357 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %356)
          to label %358 unwind label %364

358:                                              ; preds = %350
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %50) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  %359 = load ptr, ptr %29, align 8
  call void @llvm.stackrestore.p0(ptr %359)
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %28) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %377

360:                                              ; preds = %347
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %33, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %34, align 4
  br label %368

364:                                              ; preds = %350, %348
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %33, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %34, align 4
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %50) #7
  br label %368

368:                                              ; preds = %364, %360
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #7
  br label %369

369:                                              ; preds = %368, %343, %342
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %370

370:                                              ; preds = %369, %265, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %371

371:                                              ; preds = %370, %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %372

372:                                              ; preds = %371, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %373

373:                                              ; preds = %372, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  br label %374

374:                                              ; preds = %373, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %375

375:                                              ; preds = %374, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %376

376:                                              ; preds = %375, %148, %121
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %28) #7
  call void @llvm.lifetime.end.p0(i64 224, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %379

377:                                              ; preds = %358, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %378 = load i32, ptr %3, align 4
  ret i32 %378

379:                                              ; preds = %376
  %380 = load ptr, ptr %33, align 8
  %381 = load i32, ptr %34, align 4
  %382 = insertvalue { ptr, i32 } poison, ptr %380, 0
  %383 = insertvalue { ptr, i32 } %382, i32 %381, 1
  resume { ptr, i32 } %383
}

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

; Function Attrs: nounwind
declare i64 @clock() #2

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

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #4

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #4

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, i32 noundef, ptr noundef, i1 noundef zeroext) #6 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 #6 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z13getConstArrayI9SpikeTypeEPT_S1_i(i32 noundef, i32 noundef) #6

; 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) #6 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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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 "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 = { inlinehint mustprogress nounwind willreturn memory(read) 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 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS9SpikeType", !7, i64 0}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !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.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 [51 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 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 = tail call i64 @clock() #8
  %.not = icmp eq i32 %0, 8
  br i1 %.not, label %14, label %12

12:                                               ; preds = %2
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %159

14:                                               ; preds = %2
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call i32 @atoi(ptr nocapture noundef %16) #9
  %18 = getelementptr inbounds i8, ptr %1, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = tail call i32 @atoi(ptr nocapture noundef %19) #9
  %21 = getelementptr inbounds i8, ptr %1, i64 24
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = tail call double @atof(ptr noundef %22) #9
  %24 = fptrunc double %23 to float
  %25 = getelementptr inbounds i8, ptr %1, i64 32
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = tail call double @atof(ptr noundef %26) #9
  %28 = fptrunc double %27 to float
  %29 = getelementptr inbounds i8, ptr %1, i64 40
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = tail call double @atof(ptr noundef %30) #9
  %32 = fptrunc double %31 to float
  %33 = getelementptr inbounds i8, ptr %1, i64 48
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = tail call double @atof(ptr noundef %34) #9
  %36 = fptrunc double %35 to float
  %37 = getelementptr inbounds i8, ptr %1, i64 56
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = tail call i32 @atoi(ptr nocapture noundef %38) #9
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %17, i32 noundef %20)
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %3) #8
  call void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3)
  %41 = add i32 %17, 1
  %42 = zext i32 %41 to i64
  %43 = call ptr @llvm.stacksave.p0()
  %44 = alloca ptr, i64 %42, align 16
  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 0xBFB2F1AA00000000, float noundef 0xBFB2F1AA00000000, float noundef 0xBFAEB851E0000000, float noundef 0x3DEB7CDFE0000000, float noundef 0x3F847AE140000000, float noundef 0.000000e+00, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000, float noundef 0xBFABA5E360000000, float noundef 0x3E212E0BE0000000)
          to label %45 unwind label %55

45:                                               ; preds = %14
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %4, ptr noundef nonnull align 8 dereferenceable(144) %5, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000)
          to label %46 unwind label %57

46:                                               ; preds = %45
  %47 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 1, i32 noundef %20, ptr noundef nonnull %4, i1 noundef zeroext false)
          to label %48 unwind label %59

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %44, i64 8
  store ptr %47, ptr %49, align 8, !tbaa !5
  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
  %.not104126 = icmp slt i32 %17, 2
  br i1 %.not104126, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %67, %48
  %50 = fmul float %24, 0x3E112E0BE0000000
  %51 = sitofp i32 %20 to float
  %52 = fdiv float %50, %51
  %53 = mul nsw i32 %20, %20
  %54 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %52, i32 noundef %53)
          to label %77 unwind label %93

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

57:                                               ; preds = %45
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

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

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

62:                                               ; preds = %61, %55
  %.pn.pn = phi { ptr, i32 } [ %.pn, %61 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
  br label %158

.lr.ph:                                           ; preds = %48, %67
  %indvars.iv = phi i64 [ %indvars.iv.next, %67 ], [ 2, %48 ]
  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 0xBFB2F1AA00000000, float noundef 0xBFB2F1AA00000000, float noundef 0xBFAEB851E0000000, float noundef 0x3DEB7CDFE0000000, float noundef 0x3F847AE140000000, float noundef 0.000000e+00, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000, float noundef 0xBFABA5E360000000, float noundef 0.000000e+00)
          to label %63 unwind label %69

63:                                               ; preds = %.lr.ph
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %6, ptr noundef nonnull align 8 dereferenceable(144) %7, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000)
          to label %64 unwind label %71

64:                                               ; preds = %63
  %65 = trunc nuw nsw i64 %indvars.iv to i32
  %66 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef %65, i32 noundef %20, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %67 unwind label %73

67:                                               ; preds = %64
  %68 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv
  store ptr %66, ptr %68, align 8, !tbaa !5
  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
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %42
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

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

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

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

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

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

77:                                               ; preds = %._crit_edge
  %78 = fmul float %28, 0x3E112E0BE0000000
  %79 = fdiv float %78, %51
  %80 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %79, i32 noundef %53)
          to label %81 unwind label %95

81:                                               ; preds = %77
  %82 = fmul float %32, 0x3E112E0BE0000000
  %83 = fdiv float %82, %51
  %84 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %83, i32 noundef %53)
          to label %85 unwind label %97

85:                                               ; preds = %81
  %86 = fmul float %36, 0xBE112E0BE0000000
  %87 = fdiv float %86, %51
  %88 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %87, i32 noundef %53)
          to label %89 unwind label %99

89:                                               ; preds = %85
  %90 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F1A36E2E0000000, i32 noundef %53)
          to label %91 unwind label %101

91:                                               ; preds = %89
  %92 = invoke noundef ptr @_Z13getConstArrayI9SpikeTypeEPT_S1_i(i32 noundef 1, i32 noundef %53)
          to label %.preheader125 unwind label %103

.preheader125:                                    ; preds = %91
  br i1 %.not104126, label %._crit_edge134, label %.lr.ph130

93:                                               ; preds = %._crit_edge
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %158

95:                                               ; preds = %77
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %158

97:                                               ; preds = %81
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %158

99:                                               ; preds = %85
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %158

101:                                              ; preds = %89
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %158

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

.lr.ph130:                                        ; preds = %.preheader125, %119
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %119 ], [ 2, %.preheader125 ]
  %105 = getelementptr ptr, ptr %44, i64 %indvars.iv136
  %106 = getelementptr i8, ptr %105, i64 -8
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = load ptr, ptr %105, align 8, !tbaa !5
  %109 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %107, ptr noundef %108, ptr noundef %54, ptr noundef %90, ptr noundef null, i32 noundef %53)
          to label %110 unwind label %117

110:                                              ; preds = %.lr.ph130
  %111 = trunc nuw nsw i64 %indvars.iv136 to i32
  %112 = srem i32 %111, %39
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %119

114:                                              ; preds = %110
  %115 = load ptr, ptr %49, align 8, !tbaa !5
  %116 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %115, ptr noundef %108, ptr noundef %80, ptr noundef %90, ptr noundef null, i32 noundef %53)
          to label %119 unwind label %117

117:                                              ; preds = %114, %.lr.ph130
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %158

119:                                              ; preds = %110, %114
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %exitcond140.not = icmp eq i64 %indvars.iv.next137, %42
  br i1 %exitcond140.not, label %.lr.ph133, label %.lr.ph130, !llvm.loop !11

.lr.ph133:                                        ; preds = %119, %133
  %indvars.iv141 = phi i64 [ %indvars.iv.next142, %133 ], [ 1, %119 ]
  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 0xBFB2F1AA00000000, float noundef 0xBFB2F1AA00000000, float noundef 0xBFAEB851E0000000, float noundef 0x3DEB7CDFE0000000, float noundef 0x3F847AE140000000, float noundef 0.000000e+00, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000, float noundef 0xBFABA5E360000000, float noundef 0.000000e+00)
          to label %120 unwind label %135

120:                                              ; preds = %.lr.ph133
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %8, ptr noundef nonnull align 8 dereferenceable(144) %9, float noundef 0x3F60624DE0000000, float noundef 0x3F43A92A40000000)
          to label %121 unwind label %137

121:                                              ; preds = %120
  %122 = trunc i64 %indvars.iv141 to i32
  %123 = add i32 %17, %122
  %124 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef %123, i32 noundef %20, ptr noundef nonnull %8, i1 noundef zeroext false)
          to label %125 unwind label %139

125:                                              ; preds = %121
  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
  %126 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv141
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %127, ptr noundef %124, ptr noundef %84, ptr noundef %90, ptr noundef null, i32 noundef %53)
          to label %129 unwind label %143

129:                                              ; preds = %125
  %130 = getelementptr inbounds i8, ptr %126, i64 8
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %124, ptr noundef %131, ptr noundef %88, ptr noundef %90, ptr noundef %92, i32 noundef %53)
          to label %133 unwind label %143

133:                                              ; preds = %129
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 4
  %134 = trunc nuw i64 %indvars.iv.next142 to i32
  %.not106.not = icmp sgt i32 %17, %134
  br i1 %.not106.not, label %.lr.ph133, label %._crit_edge134, !llvm.loop !12

135:                                              ; preds = %.lr.ph133
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %142

137:                                              ; preds = %120
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %141

139:                                              ; preds = %121
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #8
  br label %141

141:                                              ; preds = %139, %137
  %.pn109 = phi { ptr, i32 } [ %140, %139 ], [ %138, %137 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #8
  br label %142

142:                                              ; preds = %141, %135
  %.pn109.pn = phi { ptr, i32 } [ %.pn109, %141 ], [ %136, %135 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #8
  br label %158

143:                                              ; preds = %129, %125
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %158

._crit_edge134:                                   ; preds = %133, %.preheader125
  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 %145 unwind label %153

145:                                              ; preds = %._crit_edge134
  %146 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %10, float noundef 0x3FB99999A0000000)
          to label %147 unwind label %155

147:                                              ; preds = %145
  %148 = call i64 @clock() #8
  %149 = sub nsw i64 %148, %11
  %150 = sitofp i64 %149 to double
  %151 = fdiv double %150, 1.000000e+06
  %152 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %151)
  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 @llvm.stackrestore.p0(ptr %43)
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #8
  br label %159

153:                                              ; preds = %._crit_edge134
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %157

155:                                              ; preds = %145
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %10) #8
  br label %157

157:                                              ; preds = %155, %153
  %.pn107 = phi { ptr, i32 } [ %156, %155 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #8
  br label %158

158:                                              ; preds = %93, %97, %101, %142, %143, %157, %117, %103, %99, %95, %76, %62
  %.pn121.pn.pn = phi { ptr, i32 } [ %.pn121.pn, %76 ], [ %.pn.pn, %62 ], [ %94, %93 ], [ %96, %95 ], [ %98, %97 ], [ %100, %99 ], [ %102, %101 ], [ %118, %117 ], [ %104, %103 ], [ %144, %143 ], [ %.pn109.pn, %142 ], [ %.pn107, %157 ]
  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 } %.pn121.pn.pn

159:                                              ; preds = %147, %12
  ret i32 0
}

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #7 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 #5

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 #7 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z13getConstArrayI9SpikeTypeEPT_S1_i(i32 noundef, i32 noundef) local_unnamed_addr #7

; 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 #7 align 2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

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

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 = { 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 #3 = { 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 #4 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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