; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnflow/psPrc (netStatistics)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const Elem *, std::allocator<const Elem *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Elem *, std::allocator<const Elem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Elem *, std::allocator<const Elem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Elem *, std::allocator<const Elem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }
%class.ElemGCmpRed = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIPK4ElemEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPK4ElemSaIS2_EEC2IN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEET_SB_RKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorIPK4ElemSaIS2_EE6insertIN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEENS7_IPS2_S4_EESA_T_SD_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr, ptr) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPK4ElemSt6vectorIS4_SaIS4_EEEE11ElemGCmpRedEvT_SB_T0_(ptr, ptr) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26printShapeFactorStatisticsRKSt6vectorIPK4ElemSaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %17 = alloca %class.ElemGCmpRed, align 1
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %30 = alloca %class.ElemGCmpRed, align 1
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca i64, align 8
  %35 = alloca double, align 8
  %36 = alloca %"class.std::vector", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca %"class.std::allocator", align 1
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %50 = alloca %class.ElemGCmpRed, align 1
  %51 = alloca double, align 8
  %52 = alloca double, align 8
  %53 = alloca double, align 8
  %54 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #5
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  %58 = load i32, ptr %5, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %59) #5
  %61 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %60, ptr %61, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #5
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %63, ptr %64, align 8
  %65 = load i32, ptr %6, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef %66) #5
  %68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %67, ptr %68, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  call void @_ZNSaIPK4ElemEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8
  invoke void @_ZNSt6vectorIPK4ElemSaIS2_EEC2IN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEET_SB_RKS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %70, ptr %72, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %73 unwind label %88

73:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %74 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %15, i32 0, i32 0
  store ptr %74, ptr %75, align 8
  %76 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %16, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %15, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %16, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPK4ElemSt6vectorIS4_SaIS4_EEEE11ElemGCmpRedEvT_SB_T0_(ptr %79, ptr %81)
          to label %82 unwind label %92

82:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store i64 0, ptr %21, align 8, !tbaa !13
  br label %83

83:                                               ; preds = %133, %82
  %84 = load i64, ptr %21, align 8, !tbaa !13
  %85 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %96, label %87

87:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %140

88:                                               ; preds = %3
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %13, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %203

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

96:                                               ; preds = %83
  %97 = load i64, ptr %21, align 8, !tbaa !13
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %97) #5
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = invoke noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %99)
          to label %101 unwind label %136

101:                                              ; preds = %96
  %102 = load double, ptr %20, align 8, !tbaa !11
  %103 = fadd double %102, %100
  store double %103, ptr %20, align 8, !tbaa !11
  %104 = load i64, ptr %21, align 8, !tbaa !13
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %104) #5
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = invoke noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %106)
          to label %108 unwind label %136

108:                                              ; preds = %101
  %109 = load i64, ptr %21, align 8, !tbaa !13
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %109) #5
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %111)
          to label %113 unwind label %136

113:                                              ; preds = %108
  %114 = load ptr, ptr %112, align 8, !tbaa !15
  %115 = getelementptr inbounds ptr, ptr %114, i64 16
  %116 = load ptr, ptr %115, align 8
  %117 = invoke noundef double %116(ptr noundef nonnull align 8 dereferenceable(152) %112)
          to label %118 unwind label %136

118:                                              ; preds = %113
  %119 = load double, ptr %19, align 8, !tbaa !11
  %120 = call double @llvm.fmuladd.f64(double %107, double %117, double %119)
  store double %120, ptr %19, align 8, !tbaa !11
  %121 = load i64, ptr %21, align 8, !tbaa !13
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %121) #5
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %123)
          to label %125 unwind label %136

125:                                              ; preds = %118
  %126 = load ptr, ptr %124, align 8, !tbaa !15
  %127 = getelementptr inbounds ptr, ptr %126, i64 16
  %128 = load ptr, ptr %127, align 8
  %129 = invoke noundef double %128(ptr noundef nonnull align 8 dereferenceable(152) %124)
          to label %130 unwind label %136

130:                                              ; preds = %125
  %131 = load double, ptr %18, align 8, !tbaa !11
  %132 = fadd double %131, %129
  store double %132, ptr %18, align 8, !tbaa !11
  br label %133

133:                                              ; preds = %130
  %134 = load i64, ptr %21, align 8, !tbaa !13
  %135 = add i64 %134, 1
  store i64 %135, ptr %21, align 8, !tbaa !13
  br label %83, !llvm.loop !17

136:                                              ; preds = %125, %118, %113, %108, %101, %96
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %13, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %201

140:                                              ; preds = %87
  %141 = load double, ptr %18, align 8, !tbaa !11
  %142 = load i32, ptr %6, align 4, !tbaa !9
  %143 = load i32, ptr %5, align 4, !tbaa !9
  %144 = sub nsw i32 %142, %143
  %145 = sitofp i32 %144 to double
  %146 = fdiv double %141, %145
  store double %146, ptr %18, align 8, !tbaa !11
  %147 = load double, ptr %19, align 8, !tbaa !11
  %148 = load double, ptr %20, align 8, !tbaa !11
  %149 = fdiv double %147, %148
  store double %149, ptr %19, align 8, !tbaa !11
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.19)
          to label %151 unwind label %197

151:                                              ; preds = %140
  %152 = load double, ptr %18, align 8, !tbaa !11
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %150, double noundef %152)
          to label %154 unwind label %197

154:                                              ; preds = %151
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef @.str.4)
          to label %156 unwind label %197

156:                                              ; preds = %154
  %157 = load double, ptr %19, align 8, !tbaa !11
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %155, double noundef %157)
          to label %159 unwind label %197

159:                                              ; preds = %156
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %161 unwind label %197

161:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #5
  %164 = load i32, ptr %6, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = sub i64 %163, %165
  %167 = uitofp i64 %166 to double
  store double %167, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #5
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  %171 = load i32, ptr %6, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %25, i64 noundef %172) #5
  %174 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #5
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  call void @_ZNSaIPK4ElemEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  %178 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8
  invoke void @_ZNSt6vectorIPK4ElemSaIS2_EEC2IN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEET_SB_RKS3_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %179, ptr %181, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %182 unwind label %204

182:                                              ; preds = %161
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  %183 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %184 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %28, i32 0, i32 0
  store ptr %183, ptr %184, align 8
  %185 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %186 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %29, i32 0, i32 0
  store ptr %185, ptr %186, align 8
  %187 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %28, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8
  %189 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %29, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPK4ElemSt6vectorIS4_SaIS4_EEEE11ElemGCmpRedEvT_SB_T0_(ptr %188, ptr %190)
          to label %191 unwind label %208

191:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  store double 0.000000e+00, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  store double 0.000000e+00, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  store i64 0, ptr %34, align 8, !tbaa !13
  br label %192

192:                                              ; preds = %249, %191
  %193 = load i64, ptr %34, align 8, !tbaa !13
  %194 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  %195 = icmp ult i64 %193, %194
  br i1 %195, label %212, label %196

196:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %256

197:                                              ; preds = %159, %156, %154, %151, %140
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %13, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %14, align 4
  br label %201

201:                                              ; preds = %197, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %202

202:                                              ; preds = %201, %92
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %203

203:                                              ; preds = %202, %88
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  br label %424

204:                                              ; preds = %161
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %13, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %341

208:                                              ; preds = %182
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %13, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %14, align 4
  br label %340

212:                                              ; preds = %192
  %213 = load i64, ptr %34, align 8, !tbaa !13
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %213) #5
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = invoke noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %215)
          to label %217 unwind label %252

217:                                              ; preds = %212
  %218 = load double, ptr %33, align 8, !tbaa !11
  %219 = fadd double %218, %216
  store double %219, ptr %33, align 8, !tbaa !11
  %220 = load i64, ptr %34, align 8, !tbaa !13
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %220) #5
  %222 = load ptr, ptr %221, align 8, !tbaa !5
  %223 = invoke noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %222)
          to label %224 unwind label %252

224:                                              ; preds = %217
  %225 = load i64, ptr %34, align 8, !tbaa !13
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %225) #5
  %227 = load ptr, ptr %226, align 8, !tbaa !5
  %228 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %227)
          to label %229 unwind label %252

229:                                              ; preds = %224
  %230 = load ptr, ptr %228, align 8, !tbaa !15
  %231 = getelementptr inbounds ptr, ptr %230, i64 16
  %232 = load ptr, ptr %231, align 8
  %233 = invoke noundef double %232(ptr noundef nonnull align 8 dereferenceable(152) %228)
          to label %234 unwind label %252

234:                                              ; preds = %229
  %235 = load double, ptr %32, align 8, !tbaa !11
  %236 = call double @llvm.fmuladd.f64(double %223, double %233, double %235)
  store double %236, ptr %32, align 8, !tbaa !11
  %237 = load i64, ptr %34, align 8, !tbaa !13
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %237) #5
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %239)
          to label %241 unwind label %252

241:                                              ; preds = %234
  %242 = load ptr, ptr %240, align 8, !tbaa !15
  %243 = getelementptr inbounds ptr, ptr %242, i64 16
  %244 = load ptr, ptr %243, align 8
  %245 = invoke noundef double %244(ptr noundef nonnull align 8 dereferenceable(152) %240)
          to label %246 unwind label %252

246:                                              ; preds = %241
  %247 = load double, ptr %31, align 8, !tbaa !11
  %248 = fadd double %247, %245
  store double %248, ptr %31, align 8, !tbaa !11
  br label %249

249:                                              ; preds = %246
  %250 = load i64, ptr %34, align 8, !tbaa !13
  %251 = add i64 %250, 1
  store i64 %251, ptr %34, align 8, !tbaa !13
  br label %192, !llvm.loop !19

252:                                              ; preds = %241, %234, %229, %224, %217, %212
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %13, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  br label %339

256:                                              ; preds = %196
  %257 = load double, ptr %31, align 8, !tbaa !11
  %258 = load double, ptr %22, align 8, !tbaa !11
  %259 = fdiv double %257, %258
  store double %259, ptr %31, align 8, !tbaa !11
  %260 = load double, ptr %32, align 8, !tbaa !11
  %261 = load double, ptr %33, align 8, !tbaa !11
  %262 = fdiv double %260, %261
  store double %262, ptr %32, align 8, !tbaa !11
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.20)
          to label %264 unwind label %335

264:                                              ; preds = %256
  %265 = load double, ptr %31, align 8, !tbaa !11
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %263, double noundef %265)
          to label %267 unwind label %335

267:                                              ; preds = %264
  %268 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %266, ptr noundef @.str.4)
          to label %269 unwind label %335

269:                                              ; preds = %267
  %270 = load double, ptr %32, align 8, !tbaa !11
  %271 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %268, double noundef %270)
          to label %272 unwind label %335

272:                                              ; preds = %269
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %271, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %274 unwind label %335

274:                                              ; preds = %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %275) #5
  %277 = load i32, ptr %5, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = sub i64 %276, %278
  %280 = uitofp i64 %279 to double
  store double %280, ptr %35, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %281) #5
  %283 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %38, i32 0, i32 0
  store ptr %282, ptr %283, align 8
  %284 = load i32, ptr %5, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %38, i64 noundef %285) #5
  %287 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %286, ptr %287, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %288) #5
  %290 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %289, ptr %290, align 8
  %291 = load i32, ptr %6, align 4, !tbaa !9
  %292 = sext i32 %291 to i64
  %293 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %40, i64 noundef %292) #5
  %294 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %293, ptr %294, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #5
  call void @_ZNSaIPK4ElemEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #5
  %295 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  %296 = load ptr, ptr %295, align 8
  %297 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  %298 = load ptr, ptr %297, align 8
  invoke void @_ZNSt6vectorIPK4ElemSaIS2_EEC2IN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEET_SB_RKS3_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr %296, ptr %298, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %299 unwind label %342

299:                                              ; preds = %274
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #5
  %300 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
  %301 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %43, i32 0, i32 0
  store ptr %300, ptr %301, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #5
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %302) #5
  %304 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %303, ptr %304, align 8
  %305 = load i32, ptr %6, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %45, i64 noundef %306) #5
  %308 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %307, ptr %308, align 8
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %309) #5
  %311 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  store ptr %310, ptr %311, align 8
  %312 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  %313 = load ptr, ptr %312, align 8
  %314 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  %315 = load ptr, ptr %314, align 8
  %316 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %46, i32 0, i32 0
  %317 = load ptr, ptr %316, align 8
  %318 = invoke ptr @_ZNSt6vectorIPK4ElemSaIS2_EE6insertIN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEENS7_IPS2_S4_EESA_T_SD_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr %313, ptr %315, ptr %317)
          to label %319 unwind label %346

319:                                              ; preds = %299
  %320 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %47, i32 0, i32 0
  store ptr %318, ptr %320, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #5
  %321 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
  %322 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %48, i32 0, i32 0
  store ptr %321, ptr %322, align 8
  %323 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
  %324 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %49, i32 0, i32 0
  store ptr %323, ptr %324, align 8
  %325 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %48, i32 0, i32 0
  %326 = load ptr, ptr %325, align 8
  %327 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %49, i32 0, i32 0
  %328 = load ptr, ptr %327, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPK4ElemSt6vectorIS4_SaIS4_EEEE11ElemGCmpRedEvT_SB_T0_(ptr %326, ptr %328)
          to label %329 unwind label %350

329:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #5
  store double 0.000000e+00, ptr %51, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #5
  store double 0.000000e+00, ptr %52, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #5
  store double 0.000000e+00, ptr %53, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #5
  store i64 0, ptr %54, align 8, !tbaa !13
  br label %330

330:                                              ; preds = %391, %329
  %331 = load i64, ptr %54, align 8, !tbaa !13
  %332 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
  %333 = icmp ult i64 %331, %332
  br i1 %333, label %354, label %334

334:                                              ; preds = %330
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #5
  br label %398

335:                                              ; preds = %272, %269, %267, %264, %256
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %13, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %14, align 4
  br label %339

339:                                              ; preds = %335, %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %340

340:                                              ; preds = %339, %208
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  br label %341

341:                                              ; preds = %340, %204
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %424

342:                                              ; preds = %274
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %13, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  br label %423

346:                                              ; preds = %299
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %13, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #5
  br label %422

350:                                              ; preds = %319
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %13, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %14, align 4
  br label %422

354:                                              ; preds = %330
  %355 = load i64, ptr %54, align 8, !tbaa !13
  %356 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %355) #5
  %357 = load ptr, ptr %356, align 8, !tbaa !5
  %358 = invoke noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %357)
          to label %359 unwind label %394

359:                                              ; preds = %354
  %360 = load double, ptr %53, align 8, !tbaa !11
  %361 = fadd double %360, %358
  store double %361, ptr %53, align 8, !tbaa !11
  %362 = load i64, ptr %54, align 8, !tbaa !13
  %363 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %362) #5
  %364 = load ptr, ptr %363, align 8, !tbaa !5
  %365 = invoke noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %364)
          to label %366 unwind label %394

366:                                              ; preds = %359
  %367 = load i64, ptr %54, align 8, !tbaa !13
  %368 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %367) #5
  %369 = load ptr, ptr %368, align 8, !tbaa !5
  %370 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %369)
          to label %371 unwind label %394

371:                                              ; preds = %366
  %372 = load ptr, ptr %370, align 8, !tbaa !15
  %373 = getelementptr inbounds ptr, ptr %372, i64 16
  %374 = load ptr, ptr %373, align 8
  %375 = invoke noundef double %374(ptr noundef nonnull align 8 dereferenceable(152) %370)
          to label %376 unwind label %394

376:                                              ; preds = %371
  %377 = load double, ptr %52, align 8, !tbaa !11
  %378 = call double @llvm.fmuladd.f64(double %365, double %375, double %377)
  store double %378, ptr %52, align 8, !tbaa !11
  %379 = load i64, ptr %54, align 8, !tbaa !13
  %380 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %379) #5
  %381 = load ptr, ptr %380, align 8, !tbaa !5
  %382 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %381)
          to label %383 unwind label %394

383:                                              ; preds = %376
  %384 = load ptr, ptr %382, align 8, !tbaa !15
  %385 = getelementptr inbounds ptr, ptr %384, i64 16
  %386 = load ptr, ptr %385, align 8
  %387 = invoke noundef double %386(ptr noundef nonnull align 8 dereferenceable(152) %382)
          to label %388 unwind label %394

388:                                              ; preds = %383
  %389 = load double, ptr %51, align 8, !tbaa !11
  %390 = fadd double %389, %387
  store double %390, ptr %51, align 8, !tbaa !11
  br label %391

391:                                              ; preds = %388
  %392 = load i64, ptr %54, align 8, !tbaa !13
  %393 = add i64 %392, 1
  store i64 %393, ptr %54, align 8, !tbaa !13
  br label %330, !llvm.loop !20

394:                                              ; preds = %383, %376, %371, %366, %359, %354
  %395 = landingpad { ptr, i32 }
          cleanup
  %396 = extractvalue { ptr, i32 } %395, 0
  store ptr %396, ptr %13, align 8
  %397 = extractvalue { ptr, i32 } %395, 1
  store i32 %397, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #5
  br label %421

398:                                              ; preds = %334
  %399 = load double, ptr %51, align 8, !tbaa !11
  %400 = load double, ptr %35, align 8, !tbaa !11
  %401 = fdiv double %399, %400
  store double %401, ptr %51, align 8, !tbaa !11
  %402 = load double, ptr %52, align 8, !tbaa !11
  %403 = load double, ptr %53, align 8, !tbaa !11
  %404 = fdiv double %402, %403
  store double %404, ptr %52, align 8, !tbaa !11
  %405 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.21)
          to label %406 unwind label %417

406:                                              ; preds = %398
  %407 = load double, ptr %51, align 8, !tbaa !11
  %408 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %405, double noundef %407)
          to label %409 unwind label %417

409:                                              ; preds = %406
  %410 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %408, ptr noundef @.str.4)
          to label %411 unwind label %417

411:                                              ; preds = %409
  %412 = load double, ptr %52, align 8, !tbaa !11
  %413 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %410, double noundef %412)
          to label %414 unwind label %417

414:                                              ; preds = %411
  %415 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %413, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %416 unwind label %417

416:                                              ; preds = %414
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #5
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  ret void

417:                                              ; preds = %414, %411, %409, %406, %398
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %13, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %14, align 4
  br label %421

421:                                              ; preds = %417, %394
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #5
  br label %422

422:                                              ; preds = %421, %350, %346
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #5
  br label %423

423:                                              ; preds = %422, %342
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %424

424:                                              ; preds = %423, %341, %203
  %425 = load ptr, ptr %13, align 8
  %426 = load i32, ptr %14, align 4
  %427 = insertvalue { ptr, i32 } poison, ptr %425, 0
  %428 = insertvalue { ptr, i32 } %427, i32 %426, 1
  resume { ptr, i32 } %428
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { inlinehint 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const Elem *, std::allocator<const Elem *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Elem *, std::allocator<const Elem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Elem *, std::allocator<const Elem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Elem *, std::allocator<const Elem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIPK4ElemEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPK4ElemSaIS2_EEC2IN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEET_SB_RKS3_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorIPK4ElemSaIS2_EE6insertIN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEENS7_IPS2_S4_EESA_T_SD_(ptr noundef nonnull align 8 dereferenceable(24), ptr, ptr, ptr) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPK4ElemSt6vectorIS4_SaIS4_EEEE11ElemGCmpRedEvT_SB_T0_(ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26printShapeFactorStatisticsRKSt6vectorIPK4ElemSaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %18 = tail call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %18, ptr %5, align 8
  %19 = sext i32 %1 to i64
  %20 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %21 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %21, ptr %6, align 8
  %22 = sext i32 %2 to i64
  %23 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #5
  call void @_ZNSaIPK4ElemEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  invoke void @_ZNSt6vectorIPK4ElemSaIS2_EEC2IN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEET_SB_RKS3_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr %20, ptr %23, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %24 unwind label %31

24:                                               ; preds = %3
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %25 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %26 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPK4ElemSt6vectorIS4_SaIS4_EEEE11ElemGCmpRedEvT_SB_T0_(ptr %25, ptr %26)
          to label %.preheader114 unwind label %33

.preheader114:                                    ; preds = %24
  %27 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %.not = icmp eq i64 %27, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge.loopexit:                             ; preds = %57
  %28 = fdiv double %58, %38
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader114
  %.093.lcssa = phi double [ 0.000000e+00, %.preheader114 ], [ %59, %._crit_edge.loopexit ]
  %29 = phi double [ 0x7FF8000000000000, %.preheader114 ], [ %28, %._crit_edge.loopexit ]
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.19)
          to label %65 unwind label %90

31:                                               ; preds = %3
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %93

33:                                               ; preds = %24
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %92

.lr.ph:                                           ; preds = %.preheader114, %57
  %.093127 = phi double [ %59, %57 ], [ 0.000000e+00, %.preheader114 ]
  %.094126 = phi double [ %58, %57 ], [ 0.000000e+00, %.preheader114 ]
  %.095125 = phi double [ %38, %57 ], [ 0.000000e+00, %.preheader114 ]
  %.096124 = phi i64 [ %60, %57 ], [ 0, %.preheader114 ]
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.096124) #5
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = call noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %36)
  %38 = fadd double %.095125, %37
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.096124) #5
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = call noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %40)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.096124) #5
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %43)
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %45, i64 128
  %47 = load ptr, ptr %46, align 8
  %48 = invoke noundef double %47(ptr noundef nonnull align 8 dereferenceable(152) %44)
          to label %49 unwind label %63

49:                                               ; preds = %.lr.ph
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.096124) #5
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %51)
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  %54 = getelementptr inbounds i8, ptr %53, i64 128
  %55 = load ptr, ptr %54, align 8
  %56 = invoke noundef double %55(ptr noundef nonnull align 8 dereferenceable(152) %52)
          to label %57 unwind label %63

57:                                               ; preds = %49
  %58 = call double @llvm.fmuladd.f64(double %41, double %48, double %.094126)
  %59 = fadd double %.093127, %56
  %60 = add nuw i64 %.096124, 1
  %61 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %62 = icmp ult i64 %60, %61
  br i1 %62, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !11

63:                                               ; preds = %49, %.lr.ph
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %92

65:                                               ; preds = %._crit_edge
  %66 = sub nsw i32 %2, %1
  %67 = sitofp i32 %66 to double
  %68 = fdiv double %.093.lcssa, %67
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %30, double noundef %68)
          to label %70 unwind label %90

70:                                               ; preds = %65
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @.str.4)
          to label %72 unwind label %90

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %71, double noundef %29)
          to label %74 unwind label %90

74:                                               ; preds = %72
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %76 unwind label %90

76:                                               ; preds = %74
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  %77 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %78 = sub i64 %77, %22
  %79 = uitofp i64 %78 to double
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %80 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %80, ptr %9, align 8
  %81 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %22) #5
  %82 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #5
  call void @_ZNSaIPK4ElemEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  invoke void @_ZNSt6vectorIPK4ElemSaIS2_EEC2IN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEET_SB_RKS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr %81, ptr %82, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %83 unwind label %94

83:                                               ; preds = %76
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %84 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %85 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPK4ElemSt6vectorIS4_SaIS4_EEEE11ElemGCmpRedEvT_SB_T0_(ptr %84, ptr %85)
          to label %.preheader113 unwind label %96

.preheader113:                                    ; preds = %83
  %86 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %.not148 = icmp eq i64 %86, 0
  br i1 %.not148, label %._crit_edge135, label %.lr.ph134

._crit_edge135.loopexit:                          ; preds = %120
  %87 = fdiv double %121, %101
  br label %._crit_edge135

._crit_edge135:                                   ; preds = %._crit_edge135.loopexit, %.preheader113
  %.097.lcssa = phi double [ 0.000000e+00, %.preheader113 ], [ %122, %._crit_edge135.loopexit ]
  %88 = phi double [ 0x7FF8000000000000, %.preheader113 ], [ %87, %._crit_edge135.loopexit ]
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.20)
          to label %128 unwind label %159

90:                                               ; preds = %74, %72, %70, %65, %._crit_edge
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %92

92:                                               ; preds = %63, %90, %33
  %.pn108.pn = phi { ptr, i32 } [ %34, %33 ], [ %64, %63 ], [ %91, %90 ]
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  br label %93

93:                                               ; preds = %92, %31
  %.pn108.pn.pn = phi { ptr, i32 } [ %.pn108.pn, %92 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  br label %213

94:                                               ; preds = %76
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %162

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

.lr.ph134:                                        ; preds = %.preheader113, %120
  %.097133 = phi double [ %122, %120 ], [ 0.000000e+00, %.preheader113 ]
  %.098132 = phi double [ %121, %120 ], [ 0.000000e+00, %.preheader113 ]
  %.099131 = phi i64 [ %123, %120 ], [ 0, %.preheader113 ]
  %.0100130 = phi double [ %101, %120 ], [ 0.000000e+00, %.preheader113 ]
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.099131) #5
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = call noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %99)
  %101 = fadd double %.0100130, %100
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.099131) #5
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = call noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %103)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.099131) #5
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %106)
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %108, i64 128
  %110 = load ptr, ptr %109, align 8
  %111 = invoke noundef double %110(ptr noundef nonnull align 8 dereferenceable(152) %107)
          to label %112 unwind label %126

112:                                              ; preds = %.lr.ph134
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.099131) #5
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  %115 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %114)
  %116 = load ptr, ptr %115, align 8, !tbaa !9
  %117 = getelementptr inbounds i8, ptr %116, i64 128
  %118 = load ptr, ptr %117, align 8
  %119 = invoke noundef double %118(ptr noundef nonnull align 8 dereferenceable(152) %115)
          to label %120 unwind label %126

120:                                              ; preds = %112
  %121 = call double @llvm.fmuladd.f64(double %104, double %111, double %.098132)
  %122 = fadd double %.097133, %119
  %123 = add nuw i64 %.099131, 1
  %124 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %125 = icmp ult i64 %123, %124
  br i1 %125, label %.lr.ph134, label %._crit_edge135.loopexit, !llvm.loop !13

126:                                              ; preds = %112, %.lr.ph134
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %161

128:                                              ; preds = %._crit_edge135
  %129 = fdiv double %.097.lcssa, %79
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %89, double noundef %129)
          to label %131 unwind label %159

131:                                              ; preds = %128
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.4)
          to label %133 unwind label %159

133:                                              ; preds = %131
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %132, double noundef %88)
          to label %135 unwind label %159

135:                                              ; preds = %133
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %137 unwind label %159

137:                                              ; preds = %135
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  %138 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %139 = sub i64 %138, %19
  %140 = uitofp i64 %139 to double
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %141 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %141, ptr %12, align 8
  %142 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %143 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %143, ptr %13, align 8
  %144 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %22) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSaIPK4ElemEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt6vectorIPK4ElemSaIS2_EEC2IN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEET_SB_RKS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr %142, ptr %144, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %145 unwind label %163

145:                                              ; preds = %137
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %146 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  store ptr %146, ptr %16, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEC2IPS3_vEERKNS0_IT_S8_EE(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %147 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  store ptr %147, ptr %17, align 8
  %148 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKPK4ElemSt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %22) #5
  %149 = call ptr @_ZNKSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %150 = load ptr, ptr %15, align 8
  %151 = invoke ptr @_ZNSt6vectorIPK4ElemSaIS2_EE6insertIN9__gnu_cxx17__normal_iteratorIPKS2_S4_EEvEENS7_IPS2_S4_EESA_T_SD_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr %150, ptr %148, ptr %149)
          to label %152 unwind label %165

152:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  %153 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %154 = call ptr @_ZNSt6vectorIPK4ElemSaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPK4ElemSt6vectorIS4_SaIS4_EEEE11ElemGCmpRedEvT_SB_T0_(ptr %153, ptr %154)
          to label %.preheader unwind label %167

.preheader:                                       ; preds = %152
  %155 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %.not149 = icmp eq i64 %155, 0
  br i1 %.not149, label %._crit_edge144, label %.lr.ph143

._crit_edge144.loopexit:                          ; preds = %191
  %156 = fdiv double %192, %172
  br label %._crit_edge144

._crit_edge144:                                   ; preds = %._crit_edge144.loopexit, %.preheader
  %.081.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %193, %._crit_edge144.loopexit ]
  %157 = phi double [ 0x7FF8000000000000, %.preheader ], [ %156, %._crit_edge144.loopexit ]
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.21)
          to label %199 unwind label %209

159:                                              ; preds = %135, %133, %131, %128, %._crit_edge135
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %161

161:                                              ; preds = %126, %159, %96
  %.pn104.pn = phi { ptr, i32 } [ %97, %96 ], [ %127, %126 ], [ %160, %159 ]
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %162

162:                                              ; preds = %161, %94
  %.pn104.pn.pn = phi { ptr, i32 } [ %.pn104.pn, %161 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %213

163:                                              ; preds = %137
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %212

165:                                              ; preds = %145
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br label %211

167:                                              ; preds = %152
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %211

.lr.ph143:                                        ; preds = %.preheader, %191
  %.0142 = phi i64 [ %194, %191 ], [ 0, %.preheader ]
  %.079141 = phi double [ %172, %191 ], [ 0.000000e+00, %.preheader ]
  %.080140 = phi double [ %192, %191 ], [ 0.000000e+00, %.preheader ]
  %.081139 = phi double [ %193, %191 ], [ 0.000000e+00, %.preheader ]
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.0142) #5
  %170 = load ptr, ptr %169, align 8, !tbaa !5
  %171 = call noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %170)
  %172 = fadd double %.079141, %171
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.0142) #5
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = call noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %174)
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.0142) #5
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %177)
  %179 = load ptr, ptr %178, align 8, !tbaa !9
  %180 = getelementptr inbounds i8, ptr %179, i64 128
  %181 = load ptr, ptr %180, align 8
  %182 = invoke noundef double %181(ptr noundef nonnull align 8 dereferenceable(152) %178)
          to label %183 unwind label %197

183:                                              ; preds = %.lr.ph143
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %.0142) #5
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %186 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %185)
  %187 = load ptr, ptr %186, align 8, !tbaa !9
  %188 = getelementptr inbounds i8, ptr %187, i64 128
  %189 = load ptr, ptr %188, align 8
  %190 = invoke noundef double %189(ptr noundef nonnull align 8 dereferenceable(152) %186)
          to label %191 unwind label %197

191:                                              ; preds = %183
  %192 = call double @llvm.fmuladd.f64(double %175, double %182, double %.080140)
  %193 = fadd double %.081139, %190
  %194 = add nuw i64 %.0142, 1
  %195 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %196 = icmp ult i64 %194, %195
  br i1 %196, label %.lr.ph143, label %._crit_edge144.loopexit, !llvm.loop !14

197:                                              ; preds = %183, %.lr.ph143
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %211

199:                                              ; preds = %._crit_edge144
  %200 = fdiv double %.081.lcssa, %140
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %158, double noundef %200)
          to label %202 unwind label %209

202:                                              ; preds = %199
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef nonnull @.str.4)
          to label %204 unwind label %209

204:                                              ; preds = %202
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %203, double noundef %157)
          to label %206 unwind label %209

206:                                              ; preds = %204
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %208 unwind label %209

208:                                              ; preds = %206
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  ret void

209:                                              ; preds = %206, %204, %202, %199, %._crit_edge144
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %211

211:                                              ; preds = %197, %209, %167, %165
  %.pn.pn = phi { ptr, i32 } [ %168, %167 ], [ %166, %165 ], [ %198, %197 ], [ %210, %209 ]
  call void @_ZNSt6vectorIPK4ElemSaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %212

212:                                              ; preds = %211, %163
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %211 ], [ %164, %163 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %213

213:                                              ; preds = %212, %162, %93
  %.pn108.pn.pn.pn = phi { ptr, i32 } [ %.pn108.pn.pn, %93 ], [ %.pn104.pn.pn, %162 ], [ %.pn.pn.pn, %212 ]
  resume { ptr, i32 } %.pn108.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIPK4ElemED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { inlinehint 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass