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

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %class.Network, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.CompositeNeuron, align 8
  %6 = alloca %class.LIFENeuron, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %class.CompositeNeuron, align 8
  %11 = alloca %class.LIFENeuron, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %class.CompositeNeuron, align 8
  %14 = alloca %class.LIFENeuron, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %class.CompositeNeuron, align 8
  %17 = alloca %class.LIFENeuron, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %class.CompositeNeuron, align 8
  %20 = alloca %class.LIFENeuron, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %class.SingleThreadSimulator, align 8
  %25 = alloca %class.SingleGPUSimulator, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 500, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 224, ptr %3) #5
  call void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %6) #5
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %6, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3F747AE140000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 1.000000e+00)
          to label %29 unwind label %92

29:                                               ; preds = %0
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %5, ptr noundef nonnull align 8 dereferenceable(144) %6, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %30 unwind label %96

30:                                               ; preds = %29
  %31 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %3, i32 noundef 0, i32 noundef 500, ptr noundef %5, i1 noundef zeroext false)
          to label %32 unwind label %100

32:                                               ; preds = %30
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %5) #5
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %6) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %6) #5
  store ptr %31, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %11) #5
  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 0x3F747AE140000000, 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 %33 unwind label %106

33:                                               ; preds = %32
  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 %34 unwind label %110

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

36:                                               ; preds = %34
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %10) #5
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #5
  store ptr %35, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %14) #5
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %14, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3F747AE140000000, 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 %37 unwind label %120

37:                                               ; preds = %36
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %13, ptr noundef nonnull align 8 dereferenceable(144) %14, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %38 unwind label %124

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

40:                                               ; preds = %38
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %13) #5
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %14) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %14) #5
  store ptr %39, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %17) #5
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %17, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3F747AE140000000, 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 %41 unwind label %134

41:                                               ; preds = %40
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %16, ptr noundef nonnull align 8 dereferenceable(144) %17, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %42 unwind label %138

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

44:                                               ; preds = %42
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %16) #5
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #5
  store ptr %43, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 144, ptr %20) #5
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %20, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3F747AE140000000, 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 %45 unwind label %148

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

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

48:                                               ; preds = %46
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %19) #5
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %20) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #5
  store ptr %47, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %49 = invoke noundef ptr @_Z14getRandomArrayIfEPT_S0_i(float noundef 0x3F947AE140000000, i32 noundef 250000)
          to label %50 unwind label %162

50:                                               ; preds = %48
  store ptr %49, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %51 = invoke noundef ptr @_Z14getRandomArrayIfEPT_S0_i(float noundef 0x3F8EB851E0000000, i32 noundef 250000)
          to label %52 unwind label %166

52:                                               ; preds = %50
  store ptr %51, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %53 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F50624DE0000000, i32 noundef 250000)
          to label %54 unwind label %170

54:                                               ; preds = %52
  store ptr %53, ptr %23, align 8, !tbaa !9
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  %56 = load ptr, ptr %9, align 8, !tbaa !9
  %57 = load ptr, ptr %21, align 8, !tbaa !9
  %58 = load ptr, ptr %23, align 8, !tbaa !9
  %59 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef null, i32 noundef 250000)
          to label %60 unwind label %170

60:                                               ; preds = %54
  %61 = load ptr, ptr %9, align 8, !tbaa !9
  %62 = load ptr, ptr %12, align 8, !tbaa !9
  %63 = load ptr, ptr %22, align 8, !tbaa !9
  %64 = load ptr, ptr %23, align 8, !tbaa !9
  %65 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %61, ptr noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef null, i32 noundef 250000)
          to label %66 unwind label %170

66:                                               ; preds = %60
  %67 = load ptr, ptr %12, align 8, !tbaa !9
  %68 = load ptr, ptr %15, align 8, !tbaa !9
  %69 = load ptr, ptr %22, align 8, !tbaa !9
  %70 = load ptr, ptr %23, align 8, !tbaa !9
  %71 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef null, i32 noundef 250000)
          to label %72 unwind label %170

72:                                               ; preds = %66
  %73 = load ptr, ptr %15, align 8, !tbaa !9
  %74 = load ptr, ptr %18, align 8, !tbaa !9
  %75 = load ptr, ptr %22, align 8, !tbaa !9
  %76 = load ptr, ptr %23, align 8, !tbaa !9
  %77 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %3, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef null, i32 noundef 250000)
          to label %78 unwind label %170

78:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #5
  invoke void @_ZN21SingleThreadSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %24, ptr noundef %3, float noundef 0x3F50624DE0000000)
          to label %79 unwind label %174

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  invoke void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %25, ptr noundef %3, float noundef 0x3F50624DE0000000)
          to label %80 unwind label %178

80:                                               ; preds = %79
  %81 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %24, float noundef 0x3FB99999A0000000)
          to label %82 unwind label %182

82:                                               ; preds = %80
  %83 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %25, float noundef 0x3FB99999A0000000)
          to label %84 unwind label %182

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %85 = invoke noalias ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
          to label %86 unwind label %186

86:                                               ; preds = %84
  store ptr %85, ptr %26, align 8, !tbaa !9
  %87 = load ptr, ptr %26, align 8, !tbaa !9
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %190

89:                                               ; preds = %86
  %90 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %91 unwind label %186

91:                                               ; preds = %89
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %27, align 4
  br label %224

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

96:                                               ; preds = %29
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %7, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %8, align 4
  br label %104

100:                                              ; preds = %30
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %7, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %8, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %5) #5
  br label %104

104:                                              ; preds = %100, %96
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %6) #5
  br label %105

105:                                              ; preds = %104, %92
  call void @llvm.lifetime.end.p0(i64 144, ptr %6) #5
  br label %236

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

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

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

118:                                              ; preds = %114, %110
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #5
  br label %119

119:                                              ; preds = %118, %106
  call void @llvm.lifetime.end.p0(i64 144, ptr %11) #5
  br label %235

120:                                              ; preds = %36
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %7, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %8, align 4
  br label %133

124:                                              ; preds = %37
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %7, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %8, align 4
  br label %132

128:                                              ; preds = %38
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %13) #5
  br label %132

132:                                              ; preds = %128, %124
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %14) #5
  br label %133

133:                                              ; preds = %132, %120
  call void @llvm.lifetime.end.p0(i64 144, ptr %14) #5
  br label %234

134:                                              ; preds = %40
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %7, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %8, align 4
  br label %147

138:                                              ; preds = %41
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  br label %146

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

146:                                              ; preds = %142, %138
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #5
  br label %147

147:                                              ; preds = %146, %134
  call void @llvm.lifetime.end.p0(i64 144, ptr %17) #5
  br label %233

148:                                              ; preds = %44
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %7, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %8, align 4
  br label %161

152:                                              ; preds = %45
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %7, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %8, align 4
  br label %160

156:                                              ; preds = %46
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %19) #5
  br label %160

160:                                              ; preds = %156, %152
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %20) #5
  br label %161

161:                                              ; preds = %160, %148
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #5
  br label %232

162:                                              ; preds = %48
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %7, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %8, align 4
  br label %231

166:                                              ; preds = %50
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %7, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %8, align 4
  br label %230

170:                                              ; preds = %72, %66, %60, %54, %52
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %7, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %8, align 4
  br label %229

174:                                              ; preds = %78
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %7, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %8, align 4
  br label %228

178:                                              ; preds = %79
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %7, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %8, align 4
  br label %227

182:                                              ; preds = %82, %80
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %7, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %8, align 4
  br label %226

186:                                              ; preds = %220, %217, %89, %84
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %7, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %226

190:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %214, %190
  %192 = load i32, ptr %28, align 4, !tbaa !5
  %193 = icmp slt i32 %192, 10000
  br i1 %193, label %195, label %194

194:                                              ; preds = %191
  store i32 2, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %217

195:                                              ; preds = %191
  %196 = load ptr, ptr %26, align 8, !tbaa !9
  %197 = load ptr, ptr %21, align 8, !tbaa !9
  %198 = load i32, ptr %28, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds float, ptr %197, i64 %199
  %201 = load float, ptr %200, align 4, !tbaa !11
  %202 = fpext float %201 to double
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.3, double noundef %202) #5
  %204 = load i32, ptr %28, align 4, !tbaa !5
  %205 = srem i32 %204, 100
  %206 = icmp eq i32 %205, 99
  br i1 %206, label %207, label %210

207:                                              ; preds = %195
  %208 = load ptr, ptr %26, align 8, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.4) #5
  br label %213

210:                                              ; preds = %195
  %211 = load ptr, ptr %26, align 8, !tbaa !9
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %211, ptr noundef @.str.5) #5
  br label %213

213:                                              ; preds = %210, %207
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %28, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %28, align 4, !tbaa !5
  br label %191, !llvm.loop !13

217:                                              ; preds = %194
  %218 = load ptr, ptr %26, align 8, !tbaa !9
  %219 = invoke i32 @fflush(ptr noundef %218)
          to label %220 unwind label %186

220:                                              ; preds = %217
  %221 = load ptr, ptr %26, align 8, !tbaa !9
  %222 = invoke i32 @fclose(ptr noundef %221)
          to label %223 unwind label %186

223:                                              ; preds = %220
  store i32 0, ptr %1, align 4
  store i32 1, ptr %27, align 4
  br label %224

224:                                              ; preds = %223, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @_ZN21SingleThreadSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #5
  call void @llvm.lifetime.end.p0(i64 224, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %225 = load i32, ptr %1, align 4
  ret i32 %225

226:                                              ; preds = %186, %182
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %25) #5
  br label %227

227:                                              ; preds = %226, %178
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @_ZN21SingleThreadSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %24) #5
  br label %228

228:                                              ; preds = %227, %174
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  br label %229

229:                                              ; preds = %228, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %230

230:                                              ; preds = %229, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %231

231:                                              ; preds = %230, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %232

232:                                              ; preds = %231, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %233

233:                                              ; preds = %232, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %234

234:                                              ; preds = %233, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %235

235:                                              ; preds = %234, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %236

236:                                              ; preds = %235, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %3) #5
  call void @llvm.lifetime.end.p0(i64 224, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %237

237:                                              ; preds = %236
  %238 = load ptr, ptr %7, align 8
  %239 = load i32, ptr %8, align 4
  %240 = insertvalue { ptr, i32 } poison, ptr %238, 0
  %241 = insertvalue { ptr, i32 } %240, i32 %239, 1
  resume { ptr, i32 } %241
}

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

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

; 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) #3 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 #2

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

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

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

; 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 @_Z14getRandomArrayIfEPT_S0_i(float noundef, i32 noundef) #3

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

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

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

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

declare i32 @fflush(ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

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

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

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 = { "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 = { 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 #4 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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.SingleThreadSimulator = type { %class.SimulatorBase.base, [4 x i8] }
%class.SimulatorBase.base = type <{ ptr, ptr, float }>
%class.SingleGPUSimulator = type { %class.SimulatorBase.base, [4 x i8] }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 -1, 1) i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.Network, align 8
  %2 = alloca %class.CompositeNeuron, align 8
  %3 = alloca %class.LIFENeuron, 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.SingleThreadSimulator, align 8
  %13 = alloca %class.SingleGPUSimulator, align 8
  call void @llvm.lifetime.start.p0(i64 224, ptr nonnull %1) #6
  call void @_ZN7NetworkC1Ev(ptr noundef nonnull align 8 dereferenceable(224) %1)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %3) #6
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %3, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3F747AE140000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 1.000000e+00)
          to label %14 unwind label %58

14:                                               ; preds = %0
  invoke void @_ZN15CompositeNeuronI10LIFENeuron13StaticSynapseEC2ERKS0_ff(ptr noundef nonnull align 8 dereferenceable(152) %2, ptr noundef nonnull align 8 dereferenceable(144) %3, float noundef 1.000000e+00, float noundef 1.000000e+00)
          to label %15 unwind label %60

15:                                               ; preds = %14
  %16 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %1, i32 noundef 0, i32 noundef 500, ptr noundef nonnull %2, i1 noundef zeroext false)
          to label %17 unwind label %62

17:                                               ; preds = %15
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %2) #6
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %3) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #6
  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 0x3F747AE140000000, 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 %18 unwind label %66

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

19:                                               ; preds = %18
  %20 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %1, i32 noundef 1, i32 noundef 500, ptr noundef nonnull %4, i1 noundef zeroext false)
          to label %21 unwind label %70

21:                                               ; preds = %19
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %4) #6
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %7) #6
  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 0x3F747AE140000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %22 unwind label %74

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

23:                                               ; preds = %22
  %24 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %1, i32 noundef 2, i32 noundef 500, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %25 unwind label %78

25:                                               ; preds = %23
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %6) #6
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %7) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %9) #6
  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 0x3F747AE140000000, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 1.000000e+00, float noundef 0x3F8EB851E0000000, float noundef 0.000000e+00)
          to label %26 unwind label %82

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

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

29:                                               ; preds = %27
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %8) #6
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %11) #6
  invoke void @_ZN10LIFENeuronC1Effffffffff(ptr noundef nonnull align 8 dereferenceable(144) %11, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FB99999A0000000, float noundef 0x3F747AE140000000, 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 %30 unwind label %90

30:                                               ; preds = %29
  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 %31 unwind label %92

31:                                               ; preds = %30
  %32 = invoke noundef ptr @_ZN7Network16createPopulationI15CompositeNeuronI10LIFENeuron13StaticSynapseEEEP10PopulationIT_EiiS6_b(ptr noundef nonnull align 8 dereferenceable(224) %1, i32 noundef 4, i32 noundef 500, ptr noundef nonnull %10, i1 noundef zeroext false)
          to label %33 unwind label %94

33:                                               ; preds = %31
  call void @_ZN10LIFENeuronD2Ev(ptr noundef nonnull align 8 dereferenceable(152) %10) #6
  call void @_ZN10LIFENeuronD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %11) #6
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %11) #6
  %34 = invoke noundef ptr @_Z14getRandomArrayIfEPT_S0_i(float noundef 0x3F947AE140000000, i32 noundef 250000)
          to label %35 unwind label %98

35:                                               ; preds = %33
  %36 = invoke noundef ptr @_Z14getRandomArrayIfEPT_S0_i(float noundef 0x3F8EB851E0000000, i32 noundef 250000)
          to label %37 unwind label %100

37:                                               ; preds = %35
  %38 = invoke noundef ptr @_Z13getConstArrayIfEPT_S0_i(float noundef 0x3F50624DE0000000, i32 noundef 250000)
          to label %39 unwind label %102

39:                                               ; preds = %37
  %40 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %1, ptr noundef %16, ptr noundef %20, ptr noundef %34, ptr noundef %38, ptr noundef null, i32 noundef 250000)
          to label %41 unwind label %102

41:                                               ; preds = %39
  %42 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %1, ptr noundef %20, ptr noundef %24, ptr noundef %36, ptr noundef %38, ptr noundef null, i32 noundef 250000)
          to label %43 unwind label %102

43:                                               ; preds = %41
  %44 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %1, ptr noundef %24, ptr noundef %28, ptr noundef %36, ptr noundef %38, ptr noundef null, i32 noundef 250000)
          to label %45 unwind label %102

45:                                               ; preds = %43
  %46 = invoke noundef i32 @_ZN7Network7connectI15CompositeNeuronI10LIFENeuron13StaticSynapseES4_EEiP10PopulationIT_EPS5_IT0_EPfSC_P9SpikeTypei(ptr noundef nonnull align 8 dereferenceable(224) %1, ptr noundef %28, ptr noundef %32, ptr noundef %36, ptr noundef %38, ptr noundef null, i32 noundef 250000)
          to label %47 unwind label %102

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #6
  invoke void @_ZN21SingleThreadSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %12, ptr noundef nonnull %1, float noundef 0x3F50624DE0000000)
          to label %48 unwind label %104

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  invoke void @_ZN18SingleGPUSimulatorC1EP7Networkf(ptr noundef nonnull align 8 dereferenceable(20) %13, ptr noundef nonnull %1, float noundef 0x3F50624DE0000000)
          to label %49 unwind label %106

49:                                               ; preds = %48
  %50 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %12, float noundef 0x3FB99999A0000000)
          to label %51 unwind label %108

51:                                               ; preds = %49
  %52 = invoke noundef i32 @_ZN13SimulatorBase3runEf(ptr noundef nonnull align 8 dereferenceable(20) %13, float noundef 0x3FB99999A0000000)
          to label %53 unwind label %108

53:                                               ; preds = %51
  %54 = call noalias ptr @fopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
  %55 = icmp eq ptr %54, null
  br i1 %55, label %56, label %.preheader

56:                                               ; preds = %53
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %120

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

60:                                               ; preds = %14
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %64

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

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

65:                                               ; preds = %64, %58
  %.pn.pn = phi { ptr, i32 } [ %.pn, %64 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %3) #6
  br label %123

66:                                               ; preds = %17
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %73

68:                                               ; preds = %18
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %72

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

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

73:                                               ; preds = %72, %66
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %72 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #6
  br label %123

74:                                               ; preds = %21
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %81

76:                                               ; preds = %22
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %80

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

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

81:                                               ; preds = %80, %74
  %.pn57.pn = phi { ptr, i32 } [ %.pn57, %80 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %7) #6
  br label %123

82:                                               ; preds = %25
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %89

84:                                               ; preds = %26
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

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

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

89:                                               ; preds = %88, %82
  %.pn60.pn = phi { ptr, i32 } [ %.pn60, %88 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #6
  br label %123

90:                                               ; preds = %29
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %97

92:                                               ; preds = %30
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

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

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

97:                                               ; preds = %96, %90
  %.pn63.pn = phi { ptr, i32 } [ %.pn63, %96 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %11) #6
  br label %123

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

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

102:                                              ; preds = %45, %43, %41, %39, %37
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %123

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

106:                                              ; preds = %48
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %121

108:                                              ; preds = %51, %49
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %13) #6
  br label %121

110:                                              ; preds = %.preheader
  %111 = call i32 @fflush(ptr noundef nonnull %54)
  %112 = call i32 @fclose(ptr noundef nonnull %54)
  br label %120

.preheader:                                       ; preds = %53, %.preheader
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader ], [ 0, %53 ]
  %113 = getelementptr inbounds float, ptr %34, i64 %indvars.iv
  %114 = load float, ptr %113, align 4, !tbaa !5
  %115 = fpext float %114 to double
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %54, ptr noundef nonnull @.str.3, double noundef %115) #6
  %.lhs.trunc = trunc i64 %indvars.iv to i16
  %117 = urem i16 %.lhs.trunc, 100
  %118 = icmp eq i16 %117, 99
  %.str.4..str.5 = select i1 %118, ptr @.str.4, ptr @.str.5
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %54, ptr noundef nonnull %.str.4..str.5) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 10000
  br i1 %exitcond.not, label %110, label %.preheader, !llvm.loop !9

120:                                              ; preds = %110, %56
  %.029 = phi i32 [ -1, %56 ], [ 0, %110 ]
  call void @_ZN18SingleGPUSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZN21SingleThreadSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %1) #6
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %1) #6
  ret i32 %.029

121:                                              ; preds = %108, %106
  %.pn66 = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZN21SingleThreadSimulatorD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %12) #6
  br label %122

122:                                              ; preds = %121, %104
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %121 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #6
  br label %123

123:                                              ; preds = %73, %89, %98, %102, %122, %100, %97, %81, %65
  %.pn66.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %65 ], [ %.pn54.pn, %73 ], [ %.pn57.pn, %81 ], [ %.pn60.pn, %89 ], [ %.pn63.pn, %97 ], [ %99, %98 ], [ %101, %100 ], [ %.pn66.pn, %122 ], [ %103, %102 ]
  call void @_ZN7NetworkD1Ev(ptr noundef nonnull align 8 dereferenceable(224) %1) #6
  call void @llvm.lifetime.end.p0(i64 224, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn66.pn.pn.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

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

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

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

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

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

; 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 @_Z14getRandomArrayIfEPT_S0_i(float noundef, i32 noundef) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

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

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

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

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 = { "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 = { 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 #4 = { 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 #5 = { 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 #6 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass