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

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

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

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

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

37:                                               ; preds = %2
  %38 = load ptr, ptr %5, align 8, !tbaa !9
  %39 = getelementptr inbounds ptr, ptr %38, i64 1
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = call i32 @strcmp(ptr noundef %40, ptr noundef @.str) #9
  %42 = icmp eq i32 0, %41
  br i1 %42, label %43, label %44

43:                                               ; preds = %37
  store i8 1, ptr %6, align 1, !tbaa !11
  br label %44

44:                                               ; preds = %43, %37, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 500, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 224, ptr %8) #8
  call void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 144, ptr %11) #8
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %11, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0x3F2A36E2E0000000, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 1.000000e+00)
          to label %45 unwind label %84

45:                                               ; preds = %44
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %10, ptr noundef nonnull align 8 dereferenceable(144) %11, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %46 unwind label %88

46:                                               ; preds = %45
  %47 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 0, i32 noundef 500, ptr noundef %10, i1 noundef zeroext false)
          to label %48 unwind label %92

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

49:                                               ; preds = %48
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %15, ptr noundef nonnull align 8 dereferenceable(144) %16, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %50 unwind label %102

50:                                               ; preds = %49
  %51 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 1, i32 noundef 500, ptr noundef %15, i1 noundef zeroext false)
          to label %52 unwind label %106

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

53:                                               ; preds = %52
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %18, ptr noundef nonnull align 8 dereferenceable(144) %19, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %54 unwind label %116

54:                                               ; preds = %53
  %55 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 2, i32 noundef 500, ptr noundef %18, i1 noundef zeroext false)
          to label %56 unwind label %120

56:                                               ; preds = %54
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %18) #8
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %19) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %19) #8
  store ptr %55, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 144, ptr %22) #8
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %22, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %57 unwind label %126

57:                                               ; preds = %56
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %21, ptr noundef nonnull align 8 dereferenceable(144) %22, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %58 unwind label %130

58:                                               ; preds = %57
  %59 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 3, i32 noundef 500, ptr noundef %21, i1 noundef zeroext false)
          to label %60 unwind label %134

60:                                               ; preds = %58
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %21) #8
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %22) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %22) #8
  store ptr %59, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 144, ptr %25) #8
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %25, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %61 unwind label %140

61:                                               ; preds = %60
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %24, ptr noundef nonnull align 8 dereferenceable(144) %25, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %62 unwind label %144

62:                                               ; preds = %61
  %63 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 4, i32 noundef 500, ptr noundef %24, i1 noundef zeroext false)
          to label %64 unwind label %148

64:                                               ; preds = %62
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %24) #8
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %25) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %25) #8
  store ptr %63, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 144, ptr %28) #8
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %28, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %65 unwind label %154

65:                                               ; preds = %64
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %27, ptr noundef nonnull align 8 dereferenceable(144) %28, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %66 unwind label %158

66:                                               ; preds = %65
  %67 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %8, i32 noundef 5, i32 noundef 500, ptr noundef %27, i1 noundef zeroext false)
          to label %68 unwind label %162

68:                                               ; preds = %66
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %27) #8
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %28) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %28) #8
  store ptr %67, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store ptr null, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  store ptr null, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  store ptr null, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  store ptr null, ptr %32, align 8, !tbaa !9
  %69 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %172

71:                                               ; preds = %68
  %72 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %73 unwind label %168

73:                                               ; preds = %71
  %74 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.2, i32 noundef 250000)
          to label %75 unwind label %168

75:                                               ; preds = %73
  store ptr %74, ptr %29, align 8, !tbaa !9
  %76 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.3, i32 noundef 250000)
          to label %77 unwind label %168

77:                                               ; preds = %75
  store ptr %76, ptr %30, align 8, !tbaa !9
  %78 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.4, i32 noundef 250000)
          to label %79 unwind label %168

79:                                               ; preds = %77
  store ptr %78, ptr %31, align 8, !tbaa !9
  %80 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef @.str.5, i32 noundef 250000)
          to label %81 unwind label %168

81:                                               ; preds = %79
  store ptr %80, ptr %32, align 8, !tbaa !9
  %82 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.6)
          to label %83 unwind label %168

83:                                               ; preds = %81
  br label %211

84:                                               ; preds = %44
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %12, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %13, align 4
  br label %97

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

92:                                               ; preds = %46
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %12, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %10) #8
  br label %96

96:                                               ; preds = %92, %88
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #8
  br label %97

97:                                               ; preds = %96, %84
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #8
  br label %281

98:                                               ; preds = %48
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %12, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %13, align 4
  br label %111

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

106:                                              ; preds = %50
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %12, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %15) #8
  br label %110

110:                                              ; preds = %106, %102
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #8
  br label %111

111:                                              ; preds = %110, %98
  call void @llvm.lifetime.end.p0(i64 144, ptr %16) #8
  br label %280

112:                                              ; preds = %52
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %12, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %13, align 4
  br label %125

116:                                              ; preds = %53
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %12, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %13, align 4
  br label %124

120:                                              ; preds = %54
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %12, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %18) #8
  br label %124

124:                                              ; preds = %120, %116
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %19) #8
  br label %125

125:                                              ; preds = %124, %112
  call void @llvm.lifetime.end.p0(i64 144, ptr %19) #8
  br label %279

126:                                              ; preds = %56
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %12, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %13, align 4
  br label %139

130:                                              ; preds = %57
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %12, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %13, align 4
  br label %138

134:                                              ; preds = %58
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %12, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %21) #8
  br label %138

138:                                              ; preds = %134, %130
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %22) #8
  br label %139

139:                                              ; preds = %138, %126
  call void @llvm.lifetime.end.p0(i64 144, ptr %22) #8
  br label %278

140:                                              ; preds = %60
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %12, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %13, align 4
  br label %153

144:                                              ; preds = %61
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %12, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %13, align 4
  br label %152

148:                                              ; preds = %62
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %12, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %24) #8
  br label %152

152:                                              ; preds = %148, %144
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %25) #8
  br label %153

153:                                              ; preds = %152, %140
  call void @llvm.lifetime.end.p0(i64 144, ptr %25) #8
  br label %277

154:                                              ; preds = %64
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %12, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %13, align 4
  br label %167

158:                                              ; preds = %65
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %12, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %13, align 4
  br label %166

162:                                              ; preds = %66
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %12, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %13, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %27) #8
  br label %166

166:                                              ; preds = %162, %158
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %28) #8
  br label %167

167:                                              ; preds = %166, %154
  call void @llvm.lifetime.end.p0(i64 144, ptr %28) #8
  br label %276

168:                                              ; preds = %235, %229, %223, %217, %211, %208, %206, %204, %172, %81, %79, %77, %75, %73, %71
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %12, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %13, align 4
  br label %275

172:                                              ; preds = %68
  %173 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.7)
          to label %174 unwind label %168

174:                                              ; preds = %172
  %175 = call noalias ptr @malloc(i64 noundef 1000000) #10
  store ptr %175, ptr %29, align 8, !tbaa !9
  %176 = call noalias ptr @malloc(i64 noundef 1000000) #10
  store ptr %176, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %177

177:                                              ; preds = %201, %174
  %178 = load i32, ptr %33, align 4, !tbaa !5
  %179 = icmp slt i32 %178, 250000
  br i1 %179, label %181, label %180

180:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %204

181:                                              ; preds = %177
  %182 = load i32, ptr %33, align 4, !tbaa !5
  %183 = sitofp i32 %182 to double
  %184 = fdiv double %183, 2.500000e+05
  %185 = call double @llvm.fmuladd.f64(double %184, double 2.000000e-02, double 2.000000e-03)
  %186 = fptrunc double %185 to float
  %187 = load ptr, ptr %29, align 8, !tbaa !9
  %188 = load i32, ptr %33, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds float, ptr %187, i64 %189
  store float %186, ptr %190, align 4, !tbaa !15
  %191 = load i32, ptr %33, align 4, !tbaa !5
  %192 = sitofp i32 %191 to double
  %193 = fdiv double %192, 2.500000e+05
  %194 = fneg double %193
  %195 = call double @llvm.fmuladd.f64(double %194, double 2.000000e-02, double 2.200000e-02)
  %196 = fptrunc double %195 to float
  %197 = load ptr, ptr %30, align 8, !tbaa !9
  %198 = load i32, ptr %33, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds float, ptr %197, i64 %199
  store float %196, ptr %200, align 4, !tbaa !15
  br label %201

201:                                              ; preds = %181
  %202 = load i32, ptr %33, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %33, align 4, !tbaa !5
  br label %177, !llvm.loop !17

204:                                              ; preds = %180
  %205 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F1A36E2E0000000, i32 noundef 250000)
          to label %206 unwind label %168

206:                                              ; preds = %204
  store ptr %205, ptr %31, align 8, !tbaa !9
  %207 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F2A36E2E0000000, i32 noundef 250000)
          to label %208 unwind label %168

208:                                              ; preds = %206
  store ptr %207, ptr %32, align 8, !tbaa !9
  %209 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.8)
          to label %210 unwind label %168

210:                                              ; preds = %208
  br label %211

211:                                              ; preds = %210, %83
  %212 = load ptr, ptr %9, align 8, !tbaa !9
  %213 = load ptr, ptr %14, align 8, !tbaa !9
  %214 = load ptr, ptr %29, align 8, !tbaa !9
  %215 = load ptr, ptr %31, align 8, !tbaa !9
  %216 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %212, ptr noundef %213, ptr noundef %214, ptr noundef %215, ptr noundef null, i32 noundef 250000)
          to label %217 unwind label %168

217:                                              ; preds = %211
  %218 = load ptr, ptr %14, align 8, !tbaa !9
  %219 = load ptr, ptr %17, align 8, !tbaa !9
  %220 = load ptr, ptr %29, align 8, !tbaa !9
  %221 = load ptr, ptr %31, align 8, !tbaa !9
  %222 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %218, ptr noundef %219, ptr noundef %220, ptr noundef %221, ptr noundef null, i32 noundef 250000)
          to label %223 unwind label %168

223:                                              ; preds = %217
  %224 = load ptr, ptr %17, align 8, !tbaa !9
  %225 = load ptr, ptr %20, align 8, !tbaa !9
  %226 = load ptr, ptr %29, align 8, !tbaa !9
  %227 = load ptr, ptr %31, align 8, !tbaa !9
  %228 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %224, ptr noundef %225, ptr noundef %226, ptr noundef %227, ptr noundef null, i32 noundef 250000)
          to label %229 unwind label %168

229:                                              ; preds = %223
  %230 = load ptr, ptr %20, align 8, !tbaa !9
  %231 = load ptr, ptr %23, align 8, !tbaa !9
  %232 = load ptr, ptr %30, align 8, !tbaa !9
  %233 = load ptr, ptr %31, align 8, !tbaa !9
  %234 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %230, ptr noundef %231, ptr noundef %232, ptr noundef %233, ptr noundef null, i32 noundef 250000)
          to label %235 unwind label %168

235:                                              ; preds = %229
  %236 = load ptr, ptr %23, align 8, !tbaa !9
  %237 = load ptr, ptr %26, align 8, !tbaa !9
  %238 = load ptr, ptr %30, align 8, !tbaa !9
  %239 = load ptr, ptr %31, align 8, !tbaa !9
  %240 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %8, ptr noundef %236, ptr noundef %237, ptr noundef %238, ptr noundef %239, ptr noundef null, i32 noundef 250000)
          to label %241 unwind label %168

241:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #8
  invoke void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %34, ptr noundef %8, float noundef 0x3F1A36E2E0000000)
          to label %242 unwind label %264

242:                                              ; preds = %241
  %243 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %34, float noundef 0x3FB99999A0000000)
          to label %244 unwind label %268

244:                                              ; preds = %242
  %245 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %246 = trunc i8 %245 to i1
  br i1 %246, label %272, label %247

247:                                              ; preds = %244
  %248 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.9)
          to label %249 unwind label %268

249:                                              ; preds = %247
  %250 = load ptr, ptr %29, align 8, !tbaa !9
  %251 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.2, ptr noundef %250, i32 noundef 250000)
          to label %252 unwind label %268

252:                                              ; preds = %249
  %253 = load ptr, ptr %30, align 8, !tbaa !9
  %254 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.3, ptr noundef %253, i32 noundef 250000)
          to label %255 unwind label %268

255:                                              ; preds = %252
  %256 = load ptr, ptr %31, align 8, !tbaa !9
  %257 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.4, ptr noundef %256, i32 noundef 250000)
          to label %258 unwind label %268

258:                                              ; preds = %255
  %259 = load ptr, ptr %32, align 8, !tbaa !9
  %260 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef @.str.5, ptr noundef %259, i32 noundef 250000)
          to label %261 unwind label %268

261:                                              ; preds = %258
  %262 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.10)
          to label %263 unwind label %268

263:                                              ; preds = %261
  br label %272

264:                                              ; preds = %241
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %12, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %13, align 4
  br label %274

268:                                              ; preds = %261, %258, %255, %252, %249, %247, %242
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %12, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %13, align 4
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %34) #8
  br label %274

272:                                              ; preds = %263, %244
  store i32 0, ptr %3, align 4
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %8) #8
  call void @llvm.lifetime.end.p0(i64 224, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  %273 = load i32, ptr %3, align 4
  ret i32 %273

274:                                              ; preds = %268, %264
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  br label %275

275:                                              ; preds = %274, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %276

276:                                              ; preds = %275, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %277

277:                                              ; preds = %276, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %278

278:                                              ; preds = %277, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %279

279:                                              ; preds = %278, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %280

280:                                              ; preds = %279, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %281

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

282:                                              ; preds = %281
  %283 = load ptr, ptr %12, align 8
  %284 = load i32, ptr %13, align 4
  %285 = insertvalue { ptr, i32 } poison, ptr %283, 0
  %286 = insertvalue { ptr, i32 } %285, i32 %284, 1
  resume { ptr, i32 } %286
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

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

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

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

18:                                               ; preds = %2
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %20, ptr noundef nonnull dereferenceable(1) @.str) #9
  %22 = icmp eq i32 %21, 0
  br label %23

23:                                               ; preds = %18, %2
  %.042 = phi i1 [ false, %2 ], [ %22, %18 ]
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %3) #10
  call void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #10
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %5, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0x3F2A36E2E0000000, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 1.000000e+00)
          to label %24 unwind label %57

24:                                               ; preds = %23
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %4, ptr noundef nonnull align 8 dereferenceable(144) %5, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %25 unwind label %59

25:                                               ; preds = %24
  %26 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 0, i32 noundef 500, ptr noundef nonnull %4, i1 noundef zeroext false)
          to label %27 unwind label %61

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

28:                                               ; preds = %27
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %6, ptr noundef nonnull align 8 dereferenceable(144) %7, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %29 unwind label %67

29:                                               ; preds = %28
  %30 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 1, i32 noundef 500, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %31 unwind label %69

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

32:                                               ; preds = %31
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %8, ptr noundef nonnull align 8 dereferenceable(144) %9, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %33 unwind label %75

33:                                               ; preds = %32
  %34 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 2, i32 noundef 500, ptr noundef nonnull %8, i1 noundef zeroext false)
          to label %35 unwind label %77

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

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

37:                                               ; preds = %36
  %38 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 3, i32 noundef 500, ptr noundef nonnull %10, i1 noundef zeroext false)
          to label %39 unwind label %85

39:                                               ; preds = %37
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %10) #10
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %13) #10
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %13, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %40 unwind label %89

40:                                               ; preds = %39
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %12, ptr noundef nonnull align 8 dereferenceable(144) %13, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %41 unwind label %91

41:                                               ; preds = %40
  %42 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 4, i32 noundef 500, ptr noundef nonnull %12, i1 noundef zeroext false)
          to label %43 unwind label %93

43:                                               ; preds = %41
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %12) #10
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %15) #10
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %15, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3FA99999A0000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %44 unwind label %97

44:                                               ; preds = %43
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %14, ptr noundef nonnull align 8 dereferenceable(144) %15, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %45 unwind label %99

45:                                               ; preds = %44
  %46 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 5, i32 noundef 500, ptr noundef nonnull %14, i1 noundef zeroext false)
          to label %47 unwind label %101

47:                                               ; preds = %45
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %14) #10
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %15) #10
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %15) #10
  br i1 %.042, label %48, label %vector.ph

48:                                               ; preds = %47
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %50 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.2, i32 noundef 250000)
          to label %51 unwind label %105

51:                                               ; preds = %48
  %52 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.3, i32 noundef 250000)
          to label %53 unwind label %105

53:                                               ; preds = %51
  %54 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.4, i32 noundef 250000)
          to label %55 unwind label %105

55:                                               ; preds = %53
  %56 = invoke noundef ptr @_Z9loadArrayPKci(ptr noundef nonnull @.str.5, i32 noundef 250000)
          to label %123 unwind label %105

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

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

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

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

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

65:                                               ; preds = %27
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %72

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

69:                                               ; preds = %29
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %6) #10
  br label %71

71:                                               ; preds = %69, %67
  %.pn66 = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %7) #10
  br label %72

72:                                               ; preds = %71, %65
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %71 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #10
  br label %155

73:                                               ; preds = %31
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %80

75:                                               ; preds = %32
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %33
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #10
  br label %79

79:                                               ; preds = %77, %75
  %.pn69 = phi { ptr, i32 } [ %78, %77 ], [ %76, %75 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #10
  br label %80

80:                                               ; preds = %79, %73
  %.pn69.pn = phi { ptr, i32 } [ %.pn69, %79 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #10
  br label %155

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

83:                                               ; preds = %36
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %87

85:                                               ; preds = %37
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %10) #10
  br label %87

87:                                               ; preds = %85, %83
  %.pn72 = phi { ptr, i32 } [ %86, %85 ], [ %84, %83 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #10
  br label %88

88:                                               ; preds = %87, %81
  %.pn72.pn = phi { ptr, i32 } [ %.pn72, %87 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %11) #10
  br label %155

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

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

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

95:                                               ; preds = %93, %91
  %.pn75 = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #10
  br label %96

96:                                               ; preds = %95, %89
  %.pn75.pn = phi { ptr, i32 } [ %.pn75, %95 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %13) #10
  br label %155

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

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

101:                                              ; preds = %45
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %14) #10
  br label %103

103:                                              ; preds = %101, %99
  %.pn78 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %15) #10
  br label %104

104:                                              ; preds = %103, %97
  %.pn78.pn = phi { ptr, i32 } [ %.pn78, %103 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %15) #10
  br label %155

105:                                              ; preds = %132, %130, %128, %126, %123, %121, %middle.block, %55, %53, %51, %48
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %155

vector.ph:                                        ; preds = %47
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %108 = call noalias dereferenceable_or_null(1000000) ptr @malloc(i64 noundef 1000000) #11
  %109 = call noalias dereferenceable_or_null(1000000) ptr @malloc(i64 noundef 1000000) #11
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %110 = uitofp <4 x i32> %vec.ind to <4 x double>
  %111 = fdiv <4 x double> %110, <double 2.500000e+05, double 2.500000e+05, double 2.500000e+05, double 2.500000e+05>
  %112 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %111, <4 x double> <double 2.000000e-02, double 2.000000e-02, double 2.000000e-02, double 2.000000e-02>, <4 x double> <double 2.000000e-03, double 2.000000e-03, double 2.000000e-03, double 2.000000e-03>)
  %113 = fptrunc <4 x double> %112 to <4 x float>
  %114 = getelementptr inbounds float, ptr %108, i64 %index
  store <4 x float> %113, ptr %114, align 4, !tbaa !9
  %115 = fneg <4 x double> %111
  %116 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %115, <4 x double> <double 2.000000e-02, double 2.000000e-02, double 2.000000e-02, double 2.000000e-02>, <4 x double> <double 2.200000e-02, double 2.200000e-02, double 2.200000e-02, double 2.200000e-02>)
  %117 = fptrunc <4 x double> %116 to <4 x float>
  %118 = getelementptr inbounds float, ptr %109, i64 %index
  store <4 x float> %117, ptr %118, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %119 = icmp eq i64 %index.next, 250000
  br i1 %119, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %120 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F1A36E2E0000000, i32 noundef 250000)
          to label %121 unwind label %105

121:                                              ; preds = %middle.block
  %122 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F2A36E2E0000000, i32 noundef 250000)
          to label %123 unwind label %105

123:                                              ; preds = %121, %55
  %.str.8.sink = phi ptr [ @.str.6, %55 ], [ @.str.8, %121 ]
  %.041 = phi ptr [ %50, %55 ], [ %108, %121 ]
  %.040 = phi ptr [ %52, %55 ], [ %109, %121 ]
  %.039 = phi ptr [ %54, %55 ], [ %120, %121 ]
  %.038 = phi ptr [ %56, %55 ], [ %122, %121 ]
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.8.sink)
  %125 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %26, ptr noundef %30, ptr noundef %.041, ptr noundef %.039, ptr noundef null, i32 noundef 250000)
          to label %126 unwind label %105

126:                                              ; preds = %123
  %127 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %30, ptr noundef %34, ptr noundef %.041, ptr noundef %.039, ptr noundef null, i32 noundef 250000)
          to label %128 unwind label %105

128:                                              ; preds = %126
  %129 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %34, ptr noundef %38, ptr noundef %.041, ptr noundef %.039, ptr noundef null, i32 noundef 250000)
          to label %130 unwind label %105

130:                                              ; preds = %128
  %131 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %38, ptr noundef %42, ptr noundef %.040, ptr noundef %.039, ptr noundef null, i32 noundef 250000)
          to label %132 unwind label %105

132:                                              ; preds = %130
  %133 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %42, ptr noundef %46, ptr noundef %.040, ptr noundef %.039, ptr noundef null, i32 noundef 250000)
          to label %134 unwind label %105

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

135:                                              ; preds = %134
  %136 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %16, float noundef 0x3FB99999A0000000)
          to label %137 unwind label %151

137:                                              ; preds = %135
  br i1 %.042, label %153, label %138

138:                                              ; preds = %137
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %140 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.2, ptr noundef %.041, i32 noundef 250000)
          to label %141 unwind label %151

141:                                              ; preds = %138
  %142 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.3, ptr noundef %.040, i32 noundef 250000)
          to label %143 unwind label %151

143:                                              ; preds = %141
  %144 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.4, ptr noundef %.039, i32 noundef 250000)
          to label %145 unwind label %151

145:                                              ; preds = %143
  %146 = invoke noundef i32 @_Z9saveArrayPKcPfi(ptr noundef nonnull @.str.5, ptr noundef %.038, i32 noundef 250000)
          to label %147 unwind label %151

147:                                              ; preds = %145
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  br label %153

149:                                              ; preds = %134
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %154

151:                                              ; preds = %145, %143, %141, %138, %135
  %152 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %16) #10
  br label %154

153:                                              ; preds = %147, %137
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #10
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #10
  ret i32 0

154:                                              ; preds = %151, %149
  %.pn81 = phi { ptr, i32 } [ %152, %151 ], [ %150, %149 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  br label %155

155:                                              ; preds = %72, %88, %104, %154, %105, %96, %80, %64
  %.pn81.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %64 ], [ %.pn66.pn, %72 ], [ %.pn69.pn, %80 ], [ %.pn72.pn, %88 ], [ %.pn75.pn, %96 ], [ %.pn78.pn, %104 ], [ %.pn81, %154 ], [ %106, %105 ]
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #10
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn81.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #7

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x double> @llvm.fmuladd.v4f64(<4 x double>, <4 x double>, <4 x double>) #8

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopLoadEliminationPass,LoopRotatePass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass