; LLVM IR from CRAFT-THU/BSim :: test/gpu (multi_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.MultiGPUSimulator = type { %class.SimulatorBase.base, i32, i32, [4 x i8] }
%class.SimulatorBase.base = type <{ ptr, ptr, float }>

@.str = external hidden unnamed_addr constant [248 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.MultiGPUSimulator, 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 %71

54:                                               ; preds = %2
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = getelementptr inbounds ptr, ptr %55, i64 0
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = load ptr, ptr %5, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i64 0
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  %62 = getelementptr inbounds ptr, ptr %61, i64 0
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = load ptr, ptr %5, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %64, i64 0
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %67, i64 0
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %57, ptr noundef %60, ptr noundef %63, ptr noundef %66, ptr noundef %69)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %392

71:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %72, i64 1
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = call i32 @atoi(ptr noundef %74) #8
  store i32 %75, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = getelementptr inbounds ptr, ptr %76, i64 2
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  %79 = call i32 @atoi(ptr noundef %78) #8
  store i32 %79, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 3
  %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 %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  %86 = getelementptr inbounds ptr, ptr %85, i64 4
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = call double @atof(ptr noundef %87) #8
  %89 = fptrunc double %88 to float
  store float %89, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %90 = load ptr, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %90, i64 5
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = call double @atof(ptr noundef %92) #8
  %94 = fptrunc double %93 to float
  store float %94, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %95 = load ptr, ptr %5, align 8, !tbaa !9
  %96 = getelementptr inbounds ptr, ptr %95, i64 6
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = call double @atof(ptr noundef %97) #8
  %99 = fptrunc double %98 to float
  store float %99, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %100 = load ptr, ptr %5, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %100, i64 7
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = call i32 @atoi(ptr noundef %102) #8
  store i32 %103, ptr %15, align 4, !tbaa !5
  %104 = load i32, ptr %9, align 4, !tbaa !5
  %105 = load i32, ptr %10, align 4, !tbaa !5
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %104, i32 noundef %105)
  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)
  %107 = load i32, ptr %9, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  %109 = zext i32 %108 to i64
  %110 = call ptr @llvm.stacksave.p0()
  store ptr %110, ptr %29, align 8
  %111 = alloca ptr, i64 %109, align 16
  store i64 %109, ptr %30, align 8
  %112 = 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 %113 unwind label %123

113:                                              ; preds = %71
  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 %114 unwind label %127

114:                                              ; preds = %113
  %115 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %28, i32 noundef 1, i32 noundef %112, ptr noundef %31, i1 noundef zeroext false)
          to label %116 unwind label %131

116:                                              ; preds = %114
  %117 = getelementptr inbounds ptr, ptr %111, i64 1
  store ptr %115, ptr %117, 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 %118

118:                                              ; preds = %147, %116
  %119 = load i32, ptr %35, align 4, !tbaa !5
  %120 = load i32, ptr %9, align 4, !tbaa !5
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %137, label %122

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

123:                                              ; preds = %71
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %33, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %34, align 4
  br label %136

127:                                              ; preds = %113
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %33, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %34, align 4
  br label %135

131:                                              ; preds = %114
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %33, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %34, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %31) #7
  br label %135

135:                                              ; preds = %131, %127
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %32) #7
  br label %136

136:                                              ; preds = %135, %123
  call void @llvm.lifetime.end.p0(i64 144, ptr %32) #7
  br label %391

137:                                              ; preds = %118
  %138 = load i32, ptr %35, align 4, !tbaa !5
  %139 = 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 %140 unwind label %150

140:                                              ; preds = %137
  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 %141 unwind label %154

141:                                              ; preds = %140
  %142 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %28, i32 noundef %138, i32 noundef %139, ptr noundef %36, i1 noundef zeroext false)
          to label %143 unwind label %158

143:                                              ; preds = %141
  %144 = load i32, ptr %35, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds ptr, ptr %111, i64 %145
  store ptr %142, ptr %146, 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 %147

147:                                              ; preds = %143
  %148 = load i32, ptr %35, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %35, align 4, !tbaa !5
  br label %118, !llvm.loop !15

150:                                              ; preds = %137
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %33, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %34, align 4
  br label %163

154:                                              ; preds = %140
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %33, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %34, align 4
  br label %162

158:                                              ; preds = %141
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %33, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %34, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %36) #7
  br label %162

162:                                              ; preds = %158, %154
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %37) #7
  br label %163

163:                                              ; preds = %162, %150
  call void @llvm.lifetime.end.p0(i64 144, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %391

164:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %165 = load float, ptr %11, align 4, !tbaa !13
  %166 = fmul float 0x3E112E0BE0000000, %165
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = sitofp i32 %167 to float
  %169 = fdiv float %166, %168
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = mul nsw i32 %170, %171
  %173 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %169, i32 noundef %172)
          to label %174 unwind label %221

174:                                              ; preds = %164
  store ptr %173, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  %175 = load float, ptr %12, align 4, !tbaa !13
  %176 = fmul float 0x3E112E0BE0000000, %175
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = sitofp i32 %177 to float
  %179 = fdiv float %176, %178
  %180 = load i32, ptr %10, align 4, !tbaa !5
  %181 = load i32, ptr %10, align 4, !tbaa !5
  %182 = mul nsw i32 %180, %181
  %183 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %179, i32 noundef %182)
          to label %184 unwind label %225

184:                                              ; preds = %174
  store ptr %183, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %185 = load float, ptr %13, align 4, !tbaa !13
  %186 = fmul float 0x3E112E0BE0000000, %185
  %187 = load i32, ptr %10, align 4, !tbaa !5
  %188 = sitofp i32 %187 to float
  %189 = fdiv float %186, %188
  %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 %189, i32 noundef %192)
          to label %194 unwind label %229

194:                                              ; preds = %184
  store ptr %193, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %195 = load float, ptr %14, align 4, !tbaa !13
  %196 = fmul float 0xBE112E0BE0000000, %195
  %197 = load i32, ptr %10, align 4, !tbaa !5
  %198 = sitofp i32 %197 to float
  %199 = fdiv float %196, %198
  %200 = load i32, ptr %10, align 4, !tbaa !5
  %201 = load i32, ptr %10, align 4, !tbaa !5
  %202 = mul nsw i32 %200, %201
  %203 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %199, i32 noundef %202)
          to label %204 unwind label %233

204:                                              ; preds = %194
  store ptr %203, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %205 = load i32, ptr %10, align 4, !tbaa !5
  %206 = load i32, ptr %10, align 4, !tbaa !5
  %207 = mul nsw i32 %205, %206
  %208 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F1A36E2E0000000, i32 noundef %207)
          to label %209 unwind label %237

209:                                              ; preds = %204
  store ptr %208, 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
  %210 = load i32, ptr %43, align 4, !tbaa !17
  %211 = load i32, ptr %10, align 4, !tbaa !5
  %212 = load i32, ptr %10, align 4, !tbaa !5
  %213 = mul nsw i32 %211, %212
  %214 = invoke noundef ptr @_Z13getConstArrayI9SpikeTypeEPT_S1_i(i32 noundef %210, i32 noundef %213)
          to label %215 unwind label %241

215:                                              ; preds = %209
  store ptr %214, 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 %216

216:                                              ; preds = %285, %215
  %217 = load i32, ptr %45, align 4, !tbaa !5
  %218 = load i32, ptr %9, align 4, !tbaa !5
  %219 = icmp sle i32 %217, %218
  br i1 %219, label %245, label %220

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

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

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

229:                                              ; preds = %184
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %33, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %34, align 4
  br label %388

233:                                              ; preds = %194
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %33, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %34, align 4
  br label %387

237:                                              ; preds = %204
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %33, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %34, align 4
  br label %386

241:                                              ; preds = %209
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %33, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %34, align 4
  br label %385

245:                                              ; preds = %216
  %246 = load i32, ptr %45, align 4, !tbaa !5
  %247 = sub nsw i32 %246, 1
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds ptr, ptr %111, i64 %248
  %250 = load ptr, ptr %249, align 8, !tbaa !9
  %251 = load i32, ptr %45, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds ptr, ptr %111, i64 %252
  %254 = load ptr, ptr %253, align 8, !tbaa !9
  %255 = load ptr, ptr %38, align 8, !tbaa !9
  %256 = load ptr, ptr %42, align 8, !tbaa !9
  %257 = load i32, ptr %10, align 4, !tbaa !5
  %258 = load i32, ptr %10, align 4, !tbaa !5
  %259 = mul nsw i32 %257, %258
  %260 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %28, ptr noundef %250, ptr noundef %254, ptr noundef %255, ptr noundef %256, ptr noundef null, i32 noundef %259)
          to label %261 unwind label %280

261:                                              ; preds = %245
  %262 = load i32, ptr %45, align 4, !tbaa !5
  %263 = load i32, ptr %15, align 4, !tbaa !5
  %264 = srem i32 %262, %263
  %265 = icmp eq i32 %264, 0
  br i1 %265, label %266, label %284

266:                                              ; preds = %261
  %267 = getelementptr inbounds ptr, ptr %111, i64 1
  %268 = load ptr, ptr %267, align 8, !tbaa !9
  %269 = load i32, ptr %45, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds ptr, ptr %111, i64 %270
  %272 = load ptr, ptr %271, align 8, !tbaa !9
  %273 = load ptr, ptr %39, align 8, !tbaa !9
  %274 = load ptr, ptr %42, align 8, !tbaa !9
  %275 = load i32, ptr %10, align 4, !tbaa !5
  %276 = load i32, ptr %10, align 4, !tbaa !5
  %277 = mul nsw i32 %275, %276
  %278 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %28, ptr noundef %268, ptr noundef %272, ptr noundef %273, ptr noundef %274, ptr noundef null, i32 noundef %277)
          to label %279 unwind label %280

279:                                              ; preds = %266
  br label %284

280:                                              ; preds = %266, %245
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %33, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %385

284:                                              ; preds = %279, %261
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr %45, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %45, align 4, !tbaa !5
  br label %216, !llvm.loop !19

288:                                              ; preds = %220
  %289 = load i32, ptr %9, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  %291 = zext i32 %290 to i64
  %292 = alloca ptr, i64 %291, align 16
  store i64 %291, 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 %293

293:                                              ; preds = %341, %288
  %294 = load i32, ptr %47, align 4, !tbaa !5
  %295 = add nsw i32 %294, 1
  %296 = load i32, ptr %9, align 4, !tbaa !5
  %297 = icmp sle i32 %295, %296
  br i1 %297, label %298, label %362

298:                                              ; preds = %293
  %299 = load i32, ptr %47, align 4, !tbaa !5
  %300 = load i32, ptr %9, align 4, !tbaa !5
  %301 = add nsw i32 %299, %300
  %302 = 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 %303 unwind label %344

303:                                              ; preds = %298
  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 %304 unwind label %348

304:                                              ; preds = %303
  %305 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %28, i32 noundef %301, i32 noundef %302, ptr noundef %48, i1 noundef zeroext false)
          to label %306 unwind label %352

306:                                              ; preds = %304
  %307 = load i32, ptr %47, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds ptr, ptr %292, i64 %308
  store ptr %305, ptr %309, 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
  %310 = load i32, ptr %47, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds ptr, ptr %111, i64 %311
  %313 = load ptr, ptr %312, align 8, !tbaa !9
  %314 = load i32, ptr %47, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds ptr, ptr %292, i64 %315
  %317 = load ptr, ptr %316, align 8, !tbaa !9
  %318 = load ptr, ptr %40, align 8, !tbaa !9
  %319 = load ptr, ptr %42, align 8, !tbaa !9
  %320 = load i32, ptr %10, align 4, !tbaa !5
  %321 = load i32, ptr %10, align 4, !tbaa !5
  %322 = mul nsw i32 %320, %321
  %323 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %28, ptr noundef %313, ptr noundef %317, ptr noundef %318, ptr noundef %319, ptr noundef null, i32 noundef %322)
          to label %324 unwind label %358

324:                                              ; preds = %306
  %325 = load i32, ptr %47, align 4, !tbaa !5
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds ptr, ptr %292, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !9
  %329 = load i32, ptr %47, align 4, !tbaa !5
  %330 = add nsw i32 %329, 1
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds ptr, ptr %111, i64 %331
  %333 = load ptr, ptr %332, align 8, !tbaa !9
  %334 = load ptr, ptr %41, align 8, !tbaa !9
  %335 = load ptr, ptr %42, align 8, !tbaa !9
  %336 = load ptr, ptr %44, align 8, !tbaa !9
  %337 = load i32, ptr %10, align 4, !tbaa !5
  %338 = load i32, ptr %10, align 4, !tbaa !5
  %339 = mul nsw i32 %337, %338
  %340 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %28, ptr noundef %328, ptr noundef %333, ptr noundef %334, ptr noundef %335, ptr noundef %336, i32 noundef %339)
          to label %341 unwind label %358

341:                                              ; preds = %324
  %342 = load i32, ptr %47, align 4, !tbaa !5
  %343 = add nsw i32 %342, 4
  store i32 %343, ptr %47, align 4, !tbaa !5
  br label %293, !llvm.loop !20

344:                                              ; preds = %298
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %33, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %34, align 4
  br label %357

348:                                              ; preds = %303
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %33, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %34, align 4
  br label %356

352:                                              ; preds = %304
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %33, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %34, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %48) #7
  br label %356

356:                                              ; preds = %352, %348
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %49) #7
  br label %357

357:                                              ; preds = %356, %344
  call void @llvm.lifetime.end.p0(i64 144, ptr %49) #7
  br label %384

358:                                              ; preds = %324, %306
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %33, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %34, align 4
  br label %384

362:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #7
  invoke void @_ZN17MultiGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(28) %50, ptr noundef %28, float noundef 0x3F1A36E2E0000000)
          to label %363 unwind label %375

363:                                              ; preds = %362
  %364 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %50, float noundef 0x3FB99999A0000000)
          to label %365 unwind label %379

365:                                              ; preds = %363
  %366 = call i64 @clock() #7
  store i64 %366, ptr %7, align 8, !tbaa !11
  %367 = load i64, ptr %7, align 8, !tbaa !11
  %368 = load i64, ptr %6, align 8, !tbaa !11
  %369 = sub nsw i64 %367, %368
  %370 = sitofp i64 %369 to double
  %371 = fdiv double %370, 1.000000e+06
  %372 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %371)
          to label %373 unwind label %379

373:                                              ; preds = %365
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @_ZN17MultiGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %50) #7
  call void @llvm.lifetime.end.p0(i64 32, 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
  %374 = load ptr, ptr %29, align 8
  call void @llvm.stackrestore.p0(ptr %374)
  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 %392

375:                                              ; preds = %362
  %376 = landingpad { ptr, i32 }
          cleanup
  %377 = extractvalue { ptr, i32 } %376, 0
  store ptr %377, ptr %33, align 8
  %378 = extractvalue { ptr, i32 } %376, 1
  store i32 %378, ptr %34, align 4
  br label %383

379:                                              ; preds = %365, %363
  %380 = landingpad { ptr, i32 }
          cleanup
  %381 = extractvalue { ptr, i32 } %380, 0
  store ptr %381, ptr %33, align 8
  %382 = extractvalue { ptr, i32 } %380, 1
  store i32 %382, ptr %34, align 4
  call void @_ZN17MultiGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %50) #7
  br label %383

383:                                              ; preds = %379, %375
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #7
  br label %384

384:                                              ; preds = %383, %358, %357
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  br label %385

385:                                              ; preds = %384, %280, %241
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %386

386:                                              ; preds = %385, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %387

387:                                              ; preds = %386, %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  br label %388

388:                                              ; preds = %387, %229
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  br label %389

389:                                              ; preds = %388, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %390

390:                                              ; preds = %389, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %391

391:                                              ; preds = %390, %163, %136
  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 %394

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

394:                                              ; preds = %391
  %395 = load ptr, ptr %33, align 8
  %396 = load i32, ptr %34, align 4
  %397 = insertvalue { ptr, i32 } poison, ptr %395, 0
  %398 = insertvalue { ptr, i32 } %397, i32 %396, 1
  resume { ptr, i32 } %398
}

; 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 @_ZN17MultiGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(28), 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 @_ZN17MultiGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(28)) 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.MultiGPUSimulator = type { %class.SimulatorBase.base, i32, i32, [4 x i8] }
%class.SimulatorBase.base = type <{ ptr, ptr, float }>

@.str = external hidden unnamed_addr constant [248 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.MultiGPUSimulator, align 8
  %11 = tail call i64 @clock() #8
  %.not = icmp eq i32 %0, 8
  br i1 %.not, label %15, label %12

12:                                               ; preds = %2
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %13, ptr noundef %13, ptr noundef %13, ptr noundef %13, ptr noundef %13)
  br label %160

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

46:                                               ; preds = %15
  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 %47 unwind label %58

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

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %45, i64 8
  store ptr %48, ptr %50, 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
  %.not109131 = icmp slt i32 %18, 2
  br i1 %.not109131, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %68, %49
  %51 = fmul float %25, 0x3E112E0BE0000000
  %52 = sitofp i32 %21 to float
  %53 = fdiv float %51, %52
  %54 = mul nsw i32 %21, %21
  %55 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %53, i32 noundef %54)
          to label %78 unwind label %94

56:                                               ; preds = %15
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %63

58:                                               ; preds = %46
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %62

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

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

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

.lr.ph:                                           ; preds = %49, %68
  %indvars.iv = phi i64 [ %indvars.iv.next, %68 ], [ 2, %49 ]
  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 %64 unwind label %70

64:                                               ; 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 %65 unwind label %72

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

68:                                               ; preds = %65
  %69 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv
  store ptr %67, ptr %69, 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, %43
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

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

72:                                               ; preds = %64
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

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

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

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

78:                                               ; preds = %._crit_edge
  %79 = fmul float %29, 0x3E112E0BE0000000
  %80 = fdiv float %79, %52
  %81 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %80, i32 noundef %54)
          to label %82 unwind label %96

82:                                               ; preds = %78
  %83 = fmul float %33, 0x3E112E0BE0000000
  %84 = fdiv float %83, %52
  %85 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %84, i32 noundef %54)
          to label %86 unwind label %98

86:                                               ; preds = %82
  %87 = fmul float %37, 0xBE112E0BE0000000
  %88 = fdiv float %87, %52
  %89 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef %88, i32 noundef %54)
          to label %90 unwind label %100

90:                                               ; preds = %86
  %91 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F1A36E2E0000000, i32 noundef %54)
          to label %92 unwind label %102

92:                                               ; preds = %90
  %93 = invoke noundef ptr @_Z13getConstArrayI9SpikeTypeEPT_S1_i(i32 noundef 1, i32 noundef %54)
          to label %.preheader130 unwind label %104

.preheader130:                                    ; preds = %92
  br i1 %.not109131, label %._crit_edge139, label %.lr.ph135

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

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

98:                                               ; preds = %82
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %159

100:                                              ; preds = %86
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %159

102:                                              ; preds = %90
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %159

104:                                              ; preds = %92
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %159

.lr.ph135:                                        ; preds = %.preheader130, %120
  %indvars.iv141 = phi i64 [ %indvars.iv.next142, %120 ], [ 2, %.preheader130 ]
  %106 = getelementptr ptr, ptr %45, i64 %indvars.iv141
  %107 = getelementptr i8, ptr %106, i64 -8
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load ptr, ptr %106, align 8, !tbaa !5
  %110 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %108, ptr noundef %109, ptr noundef %55, ptr noundef %91, ptr noundef null, i32 noundef %54)
          to label %111 unwind label %118

111:                                              ; preds = %.lr.ph135
  %112 = trunc nuw nsw i64 %indvars.iv141 to i32
  %113 = srem i32 %112, %40
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %115, label %120

115:                                              ; preds = %111
  %116 = load ptr, ptr %50, align 8, !tbaa !5
  %117 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %116, ptr noundef %109, ptr noundef %81, ptr noundef %91, ptr noundef null, i32 noundef %54)
          to label %120 unwind label %118

118:                                              ; preds = %115, %.lr.ph135
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %159

120:                                              ; preds = %111, %115
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %exitcond145.not = icmp eq i64 %indvars.iv.next142, %43
  br i1 %exitcond145.not, label %.lr.ph138, label %.lr.ph135, !llvm.loop !11

.lr.ph138:                                        ; preds = %120, %134
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %134 ], [ 1, %120 ]
  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 %121 unwind label %136

121:                                              ; preds = %.lr.ph138
  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 %122 unwind label %138

122:                                              ; preds = %121
  %123 = trunc i64 %indvars.iv146 to i32
  %124 = add i32 %18, %123
  %125 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef %124, i32 noundef %21, ptr noundef nonnull %8, i1 noundef zeroext false)
          to label %126 unwind label %140

126:                                              ; preds = %122
  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
  %127 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv146
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %128, ptr noundef %125, ptr noundef %85, ptr noundef %91, ptr noundef null, i32 noundef %54)
          to label %130 unwind label %144

130:                                              ; preds = %126
  %131 = getelementptr inbounds i8, ptr %127, i64 8
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %125, ptr noundef %132, ptr noundef %89, ptr noundef %91, ptr noundef %93, i32 noundef %54)
          to label %134 unwind label %144

134:                                              ; preds = %130
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 4
  %135 = trunc nuw i64 %indvars.iv.next147 to i32
  %.not111.not = icmp sgt i32 %18, %135
  br i1 %.not111.not, label %.lr.ph138, label %._crit_edge139, !llvm.loop !12

136:                                              ; preds = %.lr.ph138
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %143

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

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

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

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

144:                                              ; preds = %130, %126
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %159

._crit_edge139:                                   ; preds = %134, %.preheader130
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  invoke void @_ZN17MultiGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(28) %10, ptr noundef nonnull %3, float noundef 0x3F1A36E2E0000000)
          to label %146 unwind label %154

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

148:                                              ; preds = %146
  %149 = call i64 @clock() #8
  %150 = sub nsw i64 %149, %11
  %151 = sitofp i64 %150 to double
  %152 = fdiv double %151, 1.000000e+06
  %153 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %152)
  call void @_ZN17MultiGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %10) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  call void @llvm.stackrestore.p0(ptr %44)
  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 %160

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

156:                                              ; preds = %146
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN17MultiGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(28) %10) #8
  br label %158

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

159:                                              ; preds = %94, %98, %102, %143, %144, %158, %118, %104, %100, %96, %77, %63
  %.pn126.pn.pn = phi { ptr, i32 } [ %.pn126.pn, %77 ], [ %.pn.pn, %63 ], [ %95, %94 ], [ %97, %96 ], [ %99, %98 ], [ %101, %100 ], [ %103, %102 ], [ %119, %118 ], [ %105, %104 ], [ %145, %144 ], [ %.pn114.pn, %143 ], [ %.pn112, %158 ]
  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 } %.pn126.pn.pn

160:                                              ; preds = %148, %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 @_ZN17MultiGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(28), 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 @_ZN17MultiGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(28)) 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