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

; 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::__cxx11::basic_istringstream" = type { %"class.std::basic_istream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.ElemGCmpRed = type { i8 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.35 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1

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

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) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #1 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)) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #8

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20setShapeFactFromFileRSt6vectorIP4ElemSaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), double noundef, double noundef) #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) #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17modifyShapeFactoriRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt6vectorIP4ElemSaIS9_EES6_bi(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i1 noundef zeroext %4, i32 noundef %5) #1 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_istringstream", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca i64, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %class.ElemGCmpRed, align 1
  %28 = alloca double, align 8
  %29 = alloca i64, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca i64, align 8
  %36 = alloca %"class.std::basic_ofstream", align 8
  %37 = alloca i32, align 4
  %38 = alloca i64, align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca %class.ElemGCmpRed, align 1
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca i32, align 4
  %45 = alloca i64, align 8
  %46 = alloca double, align 8
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !9
  %47 = zext i1 %4 to i8
  store i8 %47, ptr %11, align 1, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 384, ptr %13) #9
  %48 = load ptr, ptr %8, align 8, !tbaa !9
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120) %13, ptr noundef nonnull align 8 dereferenceable(32) %48, i32 noundef 8)
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %6
  br label %334

52:                                               ; preds = %6
  %53 = load i32, ptr %7, align 4, !tbaa !5
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %70

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %57 unwind label %66

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %59 unwind label %66

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %61 unwind label %66

61:                                               ; preds = %59
  %62 = load ptr, ptr %9, align 8, !tbaa !9
  %63 = load double, ptr %15, align 8, !tbaa !13
  %64 = load double, ptr %16, align 8, !tbaa !13
  invoke void @_Z20setShapeFactFromFileRSt6vectorIP4ElemSaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdd(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(32) %14, double noundef %63, double noundef %64)
          to label %65 unwind label %66

65:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #9
  br label %333

66:                                               ; preds = %61, %59, %57, %55
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %17, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #9
  br label %495

70:                                               ; preds = %52
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = icmp eq i32 %71, 3
  br i1 %72, label %73, label %131

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %74 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %75 unwind label %82

75:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  store i64 0, ptr %20, align 8, !tbaa !15
  br label %76

76:                                               ; preds = %117, %75
  %77 = load i64, ptr %20, align 8, !tbaa !15
  %78 = load ptr, ptr %9, align 8, !tbaa !9
  %79 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #9
  %80 = icmp ult i64 %77, %79
  br i1 %80, label %86, label %81

81:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %129

82:                                               ; preds = %73
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %17, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %18, align 4
  br label %130

86:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %87 = call double @sqrt(double noundef 3.000000e+00) #9
  %88 = fdiv double %87, 3.600000e+01
  %89 = fsub double %88, 0x3EB0C6F7A0B5ED8D
  store double %89, ptr %22, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %90 = load ptr, ptr %9, align 8, !tbaa !9
  %91 = load i64, ptr %20, align 8, !tbaa !15
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91) #9
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %93)
          to label %95 unwind label %120

95:                                               ; preds = %86
  %96 = load ptr, ptr %94, align 8, !tbaa !17
  %97 = getelementptr inbounds ptr, ptr %96, i64 16
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef double %98(ptr noundef nonnull align 8 dereferenceable(152) %94)
          to label %100 unwind label %120

100:                                              ; preds = %95
  %101 = load double, ptr %19, align 8, !tbaa !13
  %102 = fmul double %99, %101
  store double %102, ptr %23, align 8, !tbaa !13
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %104 unwind label %120

104:                                              ; preds = %100
  %105 = load double, ptr %103, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  store double %105, ptr %21, align 8, !tbaa !13
  %106 = load ptr, ptr %9, align 8, !tbaa !9
  %107 = load i64, ptr %20, align 8, !tbaa !15
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %107) #9
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = invoke noundef ptr @_ZN4Elem7ChModelEv(ptr noundef nonnull align 8 dereferenceable(408) %109)
          to label %111 unwind label %124

111:                                              ; preds = %104
  %112 = load double, ptr %21, align 8, !tbaa !13
  %113 = load ptr, ptr %110, align 8, !tbaa !17
  %114 = getelementptr inbounds ptr, ptr %113, i64 11
  %115 = load ptr, ptr %114, align 8
  invoke void %115(ptr noundef nonnull align 8 dereferenceable(152) %110, double noundef %112)
          to label %116 unwind label %124

116:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %117

117:                                              ; preds = %116
  %118 = load i64, ptr %20, align 8, !tbaa !15
  %119 = add i64 %118, 1
  store i64 %119, ptr %20, align 8, !tbaa !15
  br label %76, !llvm.loop !19

120:                                              ; preds = %100, %95, %86
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %17, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %128

124:                                              ; preds = %111, %104
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %17, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %18, align 4
  br label %128

128:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %130

129:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %332

130:                                              ; preds = %128, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %495

131:                                              ; preds = %70
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = icmp eq i32 %132, 4
  br i1 %133, label %134, label %236

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %135 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %136 unwind label %167

136:                                              ; preds = %134
  %137 = load ptr, ptr %9, align 8, !tbaa !9
  %138 = call ptr @_ZNSt6vectorIP4ElemSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #9
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = load ptr, ptr %9, align 8, !tbaa !9
  %141 = call ptr @_ZNSt6vectorIP4ElemSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #9
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %141, ptr %142, align 8
  %143 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8
  %145 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4ElemSt6vectorIS3_SaIS3_EEEE11ElemGCmpRedEvT_SA_T0_(ptr %144, ptr %146)
          to label %147 unwind label %167

147:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %148 = load ptr, ptr %9, align 8, !tbaa !9
  %149 = load ptr, ptr %9, align 8, !tbaa !9
  %150 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %149) #9
  %151 = udiv i64 %150, 2
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef %151) #9
  %153 = load ptr, ptr %152, align 8, !tbaa !9
  %154 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %153)
          to label %155 unwind label %171

155:                                              ; preds = %147
  %156 = load ptr, ptr %154, align 8, !tbaa !17
  %157 = getelementptr inbounds ptr, ptr %156, i64 16
  %158 = load ptr, ptr %157, align 8
  %159 = invoke noundef double %158(ptr noundef nonnull align 8 dereferenceable(152) %154)
          to label %160 unwind label %171

160:                                              ; preds = %155
  store double %159, ptr %28, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  store i64 0, ptr %29, align 8, !tbaa !15
  br label %161

161:                                              ; preds = %230, %160
  %162 = load i64, ptr %29, align 8, !tbaa !15
  %163 = load ptr, ptr %9, align 8, !tbaa !9
  %164 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %163) #9
  %165 = icmp ult i64 %162, %164
  br i1 %165, label %175, label %166

166:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %233

167:                                              ; preds = %136, %134
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %17, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %18, align 4
  br label %235

171:                                              ; preds = %155, %147
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %17, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %18, align 4
  br label %234

175:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %176 = load double, ptr %24, align 8, !tbaa !13
  %177 = load ptr, ptr %9, align 8, !tbaa !9
  %178 = load i64, ptr %29, align 8, !tbaa !15
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %178) #9
  %180 = load ptr, ptr %179, align 8, !tbaa !9
  %181 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %180)
          to label %182 unwind label %210

182:                                              ; preds = %175
  %183 = load ptr, ptr %181, align 8, !tbaa !17
  %184 = getelementptr inbounds ptr, ptr %183, i64 16
  %185 = load ptr, ptr %184, align 8
  %186 = invoke noundef double %185(ptr noundef nonnull align 8 dereferenceable(152) %181)
          to label %187 unwind label %210

187:                                              ; preds = %182
  %188 = load double, ptr %28, align 8, !tbaa !13
  %189 = fsub double %186, %188
  %190 = load ptr, ptr %9, align 8, !tbaa !9
  %191 = load i64, ptr %29, align 8, !tbaa !15
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %191) #9
  %193 = load ptr, ptr %192, align 8, !tbaa !9
  %194 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %193)
          to label %195 unwind label %210

195:                                              ; preds = %187
  %196 = load ptr, ptr %194, align 8, !tbaa !17
  %197 = getelementptr inbounds ptr, ptr %196, i64 16
  %198 = load ptr, ptr %197, align 8
  %199 = invoke noundef double %198(ptr noundef nonnull align 8 dereferenceable(152) %194)
          to label %200 unwind label %210

200:                                              ; preds = %195
  %201 = call double @llvm.fmuladd.f64(double %176, double %189, double %199)
  store double %201, ptr %30, align 8, !tbaa !13
  %202 = load double, ptr %30, align 8, !tbaa !13
  %203 = call double @sqrt(double noundef 3.000000e+00) #9
  %204 = fdiv double %203, 3.600000e+01
  %205 = fcmp ogt double %202, %204
  br i1 %205, label %206, label %214

206:                                              ; preds = %200
  %207 = call double @sqrt(double noundef 3.000000e+00) #9
  %208 = fdiv double %207, 3.600000e+01
  %209 = fsub double %208, 0x3EB0C6F7A0B5ED8D
  store double %209, ptr %30, align 8, !tbaa !13
  br label %214

210:                                              ; preds = %224, %218, %195, %187, %182, %175
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %17, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %234

214:                                              ; preds = %206, %200
  %215 = load double, ptr %30, align 8, !tbaa !13
  %216 = fcmp ole double %215, 0.000000e+00
  br i1 %216, label %217, label %218

217:                                              ; preds = %214
  store double 1.000000e-04, ptr %30, align 8, !tbaa !13
  br label %218

218:                                              ; preds = %217, %214
  %219 = load ptr, ptr %9, align 8, !tbaa !9
  %220 = load i64, ptr %29, align 8, !tbaa !15
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef %220) #9
  %222 = load ptr, ptr %221, align 8, !tbaa !9
  %223 = invoke noundef ptr @_ZN4Elem7ChModelEv(ptr noundef nonnull align 8 dereferenceable(408) %222)
          to label %224 unwind label %210

224:                                              ; preds = %218
  %225 = load double, ptr %30, align 8, !tbaa !13
  %226 = load ptr, ptr %223, align 8, !tbaa !17
  %227 = getelementptr inbounds ptr, ptr %226, i64 11
  %228 = load ptr, ptr %227, align 8
  invoke void %228(ptr noundef nonnull align 8 dereferenceable(152) %223, double noundef %225)
          to label %229 unwind label %210

229:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %230

230:                                              ; preds = %229
  %231 = load i64, ptr %29, align 8, !tbaa !15
  %232 = add i64 %231, 1
  store i64 %232, ptr %29, align 8, !tbaa !15
  br label %161, !llvm.loop !21

233:                                              ; preds = %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %331

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

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

236:                                              ; preds = %131
  %237 = load i32, ptr %7, align 4, !tbaa !5
  %238 = icmp eq i32 %237, 5
  br i1 %238, label %239, label %313

239:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %240 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %241 unwind label %276

241:                                              ; preds = %239
  %242 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %240, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %243 unwind label %276

243:                                              ; preds = %241
  %244 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %242, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %245 unwind label %276

245:                                              ; preds = %243
  %246 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %244, ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %247 unwind label %276

247:                                              ; preds = %245
  %248 = load double, ptr %32, align 8, !tbaa !13
  %249 = call double @sqrt(double noundef 3.000000e+00) #9
  %250 = fdiv double %249, 3.600000e+01
  %251 = fcmp ogt double %248, %250
  br i1 %251, label %252, label %280

252:                                              ; preds = %247
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %254 unwind label %276

254:                                              ; preds = %252
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef @.str.35)
          to label %256 unwind label %276

256:                                              ; preds = %254
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %258 unwind label %276

258:                                              ; preds = %256
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %257, ptr noundef @.str.36)
          to label %260 unwind label %276

260:                                              ; preds = %258
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %259, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %262 unwind label %276

262:                                              ; preds = %260
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %261, ptr noundef @.str.37)
          to label %264 unwind label %276

264:                                              ; preds = %262
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %263, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %266 unwind label %276

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

268:                                              ; preds = %266
  %269 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %267, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %270 unwind label %276

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

272:                                              ; preds = %270
  %273 = call double @sqrt(double noundef 3.000000e+00) #9
  %274 = fdiv double %273, 3.600000e+01
  %275 = fsub double %274, 0x3EB0C6F7A0B5ED8D
  store double %275, ptr %32, align 8, !tbaa !13
  br label %280

276:                                              ; preds = %270, %268, %266, %264, %262, %260, %258, %256, %254, %252, %245, %243, %241, %239
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %17, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %18, align 4
  br label %312

280:                                              ; preds = %272, %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  store i64 0, ptr %35, align 8, !tbaa !15
  br label %281

281:                                              ; preds = %304, %280
  %282 = load i64, ptr %35, align 8, !tbaa !15
  %283 = load ptr, ptr %9, align 8, !tbaa !9
  %284 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %283) #9
  %285 = icmp ult i64 %282, %284
  br i1 %285, label %287, label %286

286:                                              ; preds = %281
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %311

287:                                              ; preds = %281
  %288 = load ptr, ptr %9, align 8, !tbaa !9
  %289 = load i64, ptr %35, align 8, !tbaa !15
  %290 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %288, i64 noundef %289) #9
  %291 = load ptr, ptr %290, align 8, !tbaa !9
  %292 = invoke noundef ptr @_ZN4Elem7ChModelEv(ptr noundef nonnull align 8 dereferenceable(408) %291)
          to label %293 unwind label %307

293:                                              ; preds = %287
  %294 = load double, ptr %31, align 8, !tbaa !13
  %295 = load double, ptr %32, align 8, !tbaa !13
  %296 = load double, ptr %33, align 8, !tbaa !13
  %297 = load double, ptr %34, align 8, !tbaa !13
  %298 = invoke noundef double @_Z7weibulldddd(double noundef %294, double noundef %295, double noundef %296, double noundef %297)
          to label %299 unwind label %307

299:                                              ; preds = %293
  %300 = load ptr, ptr %292, align 8, !tbaa !17
  %301 = getelementptr inbounds ptr, ptr %300, i64 11
  %302 = load ptr, ptr %301, align 8
  invoke void %302(ptr noundef nonnull align 8 dereferenceable(152) %292, double noundef %298)
          to label %303 unwind label %307

303:                                              ; preds = %299
  br label %304

304:                                              ; preds = %303
  %305 = load i64, ptr %35, align 8, !tbaa !15
  %306 = add i64 %305, 1
  store i64 %306, ptr %35, align 8, !tbaa !15
  br label %281, !llvm.loop !22

307:                                              ; preds = %299, %293, %287
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %17, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %312

311:                                              ; preds = %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %330

312:                                              ; preds = %307, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %495

313:                                              ; preds = %236
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.38)
          to label %315 unwind label %326

315:                                              ; preds = %313
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %314, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %317 unwind label %326

317:                                              ; preds = %315
  %318 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %316, ptr noundef @.str.39)
          to label %319 unwind label %326

319:                                              ; preds = %317
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %318, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %321 unwind label %326

321:                                              ; preds = %319
  %322 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %320, ptr noundef @.str.38)
          to label %323 unwind label %326

323:                                              ; preds = %321
  %324 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %322, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %325 unwind label %326

325:                                              ; preds = %323
  call void @exit(i32 noundef -1) #10
  unreachable

326:                                              ; preds = %323, %321, %319, %317, %315, %313
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %17, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %18, align 4
  br label %495

330:                                              ; preds = %311
  br label %331

331:                                              ; preds = %330, %233
  br label %332

332:                                              ; preds = %331, %129
  br label %333

333:                                              ; preds = %332, %65
  br label %334

334:                                              ; preds = %333, %51
  %335 = load i8, ptr %11, align 1, !tbaa !11, !range !23, !noundef !24
  %336 = trunc i8 %335 to i1
  br i1 %336, label %337, label %494

337:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 512, ptr %36) #9
  %338 = load ptr, ptr %10, align 8, !tbaa !9
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %36, ptr noundef nonnull align 8 dereferenceable(32) %338, i32 noundef 16)
          to label %339 unwind label %364

339:                                              ; preds = %337
  %340 = load ptr, ptr %36, align 8, !tbaa !17
  %341 = getelementptr i8, ptr %340, i64 -24
  %342 = load i64, ptr %341, align 8
  %343 = getelementptr inbounds i8, ptr %36, i64 %342
  %344 = invoke noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216) %343, i32 noundef 1024)
          to label %345 unwind label %368

345:                                              ; preds = %339
  %346 = load ptr, ptr %36, align 8, !tbaa !17
  %347 = getelementptr i8, ptr %346, i64 -24
  %348 = load i64, ptr %347, align 8
  %349 = getelementptr inbounds i8, ptr %36, i64 %348
  %350 = invoke noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216) %349, i32 noundef 256)
          to label %351 unwind label %368

351:                                              ; preds = %345
  %352 = load ptr, ptr %36, align 8, !tbaa !17
  %353 = getelementptr i8, ptr %352, i64 -24
  %354 = load i64, ptr %353, align 8
  %355 = getelementptr inbounds i8, ptr %36, i64 %354
  %356 = invoke noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %355, i64 noundef 6)
          to label %357 unwind label %368

357:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  store i32 0, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  store i64 0, ptr %38, align 8, !tbaa !15
  br label %358

358:                                              ; preds = %395, %357
  %359 = load i64, ptr %38, align 8, !tbaa !15
  %360 = load ptr, ptr %9, align 8, !tbaa !9
  %361 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %360) #9
  %362 = icmp ult i64 %359, %361
  br i1 %362, label %372, label %363

363:                                              ; preds = %358
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br label %398

364:                                              ; preds = %337
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %17, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %18, align 4
  br label %493

368:                                              ; preds = %351, %345, %339
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %17, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %18, align 4
  br label %492

372:                                              ; preds = %358
  %373 = load ptr, ptr %9, align 8, !tbaa !9
  %374 = load i64, ptr %38, align 8, !tbaa !15
  %375 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %373, i64 noundef %374) #9
  %376 = load ptr, ptr %375, align 8, !tbaa !9
  %377 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %376)
          to label %378 unwind label %390

378:                                              ; preds = %372
  %379 = load ptr, ptr %377, align 8, !tbaa !17
  %380 = getelementptr inbounds ptr, ptr %379, i64 16
  %381 = load ptr, ptr %380, align 8
  %382 = invoke noundef double %381(ptr noundef nonnull align 8 dereferenceable(152) %377)
          to label %383 unwind label %390

383:                                              ; preds = %378
  %384 = call double @sqrt(double noundef 3.000000e+00) #9
  %385 = fdiv double %384, 3.600000e+01
  %386 = fcmp ole double %382, %385
  br i1 %386, label %387, label %394

387:                                              ; preds = %383
  %388 = load i32, ptr %37, align 4, !tbaa !5
  %389 = add nsw i32 %388, 1
  store i32 %389, ptr %37, align 4, !tbaa !5
  br label %394

390:                                              ; preds = %378, %372
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %17, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br label %491

394:                                              ; preds = %387, %383
  br label %395

395:                                              ; preds = %394
  %396 = load i64, ptr %38, align 8, !tbaa !15
  %397 = add i64 %396, 1
  store i64 %397, ptr %38, align 8, !tbaa !15
  br label %358, !llvm.loop !25

398:                                              ; preds = %363
  %399 = load ptr, ptr %9, align 8, !tbaa !9
  %400 = call ptr @_ZNSt6vectorIP4ElemSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %399) #9
  %401 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %400, ptr %401, align 8
  %402 = load ptr, ptr %9, align 8, !tbaa !9
  %403 = call ptr @_ZNSt6vectorIP4ElemSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %402) #9
  %404 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %403, ptr %404, align 8
  %405 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  %406 = load ptr, ptr %405, align 8
  %407 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  %408 = load ptr, ptr %407, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4ElemSt6vectorIS3_SaIS3_EEEE11ElemGCmpRedEvT_SA_T0_(ptr %406, ptr %408)
          to label %409 unwind label %419

409:                                              ; preds = %398
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  store double 0.000000e+00, ptr %42, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #9
  %410 = load i32, ptr %12, align 4, !tbaa !5
  %411 = sitofp i32 %410 to double
  %412 = fdiv double 1.000000e+00, %411
  store double %412, ptr %43, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #9
  store i32 0, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #9
  store i64 0, ptr %45, align 8, !tbaa !15
  br label %413

413:                                              ; preds = %486, %409
  %414 = load i64, ptr %45, align 8, !tbaa !15
  %415 = load ptr, ptr %9, align 8, !tbaa !9
  %416 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %415) #9
  %417 = icmp ult i64 %414, %416
  br i1 %417, label %423, label %418

418:                                              ; preds = %413
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  br label %490

419:                                              ; preds = %398
  %420 = landingpad { ptr, i32 }
          cleanup
  %421 = extractvalue { ptr, i32 } %420, 0
  store ptr %421, ptr %17, align 8
  %422 = extractvalue { ptr, i32 } %420, 1
  store i32 %422, ptr %18, align 4
  br label %491

423:                                              ; preds = %413
  %424 = load ptr, ptr %9, align 8, !tbaa !9
  %425 = load i64, ptr %45, align 8, !tbaa !15
  %426 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %424, i64 noundef %425) #9
  %427 = load ptr, ptr %426, align 8, !tbaa !9
  %428 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %427)
          to label %429 unwind label %476

429:                                              ; preds = %423
  %430 = load ptr, ptr %428, align 8, !tbaa !17
  %431 = getelementptr inbounds ptr, ptr %430, i64 16
  %432 = load ptr, ptr %431, align 8
  %433 = invoke noundef double %432(ptr noundef nonnull align 8 dereferenceable(152) %428)
          to label %434 unwind label %476

434:                                              ; preds = %429
  %435 = call double @sqrt(double noundef 3.000000e+00) #9
  %436 = fdiv double %435, 3.600000e+01
  %437 = fcmp ole double %433, %436
  br i1 %437, label %438, label %485

438:                                              ; preds = %434
  %439 = load i32, ptr %44, align 4, !tbaa !5
  %440 = add nsw i32 %439, 1
  store i32 %440, ptr %44, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #9
  %441 = load i32, ptr %44, align 4, !tbaa !5
  %442 = sitofp i32 %441 to double
  %443 = load i32, ptr %37, align 4, !tbaa !5
  %444 = sitofp i32 %443 to double
  %445 = fdiv double %442, %444
  store double %445, ptr %46, align 8, !tbaa !13
  %446 = load double, ptr %46, align 8, !tbaa !13
  %447 = load double, ptr %42, align 8, !tbaa !13
  %448 = fcmp ogt double %446, %447
  br i1 %448, label %452, label %449

449:                                              ; preds = %438
  %450 = load double, ptr %46, align 8, !tbaa !13
  %451 = fcmp oeq double %450, 1.000000e+00
  br i1 %451, label %452, label %484

452:                                              ; preds = %449, %438
  %453 = load ptr, ptr %9, align 8, !tbaa !9
  %454 = load i64, ptr %45, align 8, !tbaa !15
  %455 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %453, i64 noundef %454) #9
  %456 = load ptr, ptr %455, align 8, !tbaa !9
  %457 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %456)
          to label %458 unwind label %480

458:                                              ; preds = %452
  %459 = load ptr, ptr %457, align 8, !tbaa !17
  %460 = getelementptr inbounds ptr, ptr %459, i64 16
  %461 = load ptr, ptr %460, align 8
  %462 = invoke noundef double %461(ptr noundef nonnull align 8 dereferenceable(152) %457)
          to label %463 unwind label %480

463:                                              ; preds = %458
  %464 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %36, double noundef %462)
          to label %465 unwind label %480

465:                                              ; preds = %463
  %466 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %464, ptr noundef @.str.40)
          to label %467 unwind label %480

467:                                              ; preds = %465
  %468 = load double, ptr %46, align 8, !tbaa !13
  %469 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %466, double noundef %468)
          to label %470 unwind label %480

470:                                              ; preds = %467
  %471 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %469, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %472 unwind label %480

472:                                              ; preds = %470
  %473 = load double, ptr %43, align 8, !tbaa !13
  %474 = load double, ptr %42, align 8, !tbaa !13
  %475 = fadd double %474, %473
  store double %475, ptr %42, align 8, !tbaa !13
  br label %484

476:                                              ; preds = %429, %423
  %477 = landingpad { ptr, i32 }
          cleanup
  %478 = extractvalue { ptr, i32 } %477, 0
  store ptr %478, ptr %17, align 8
  %479 = extractvalue { ptr, i32 } %477, 1
  store i32 %479, ptr %18, align 4
  br label %489

480:                                              ; preds = %470, %467, %465, %463, %458, %452
  %481 = landingpad { ptr, i32 }
          cleanup
  %482 = extractvalue { ptr, i32 } %481, 0
  store ptr %482, ptr %17, align 8
  %483 = extractvalue { ptr, i32 } %481, 1
  store i32 %483, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  br label %489

484:                                              ; preds = %472, %449
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #9
  br label %485

485:                                              ; preds = %484, %434
  br label %486

486:                                              ; preds = %485
  %487 = load i64, ptr %45, align 8, !tbaa !15
  %488 = add i64 %487, 1
  store i64 %488, ptr %45, align 8, !tbaa !15
  br label %413, !llvm.loop !26

489:                                              ; preds = %480, %476
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br label %491

490:                                              ; preds = %418
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %36) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr %36) #9
  br label %494

491:                                              ; preds = %489, %419, %390
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %492

492:                                              ; preds = %491, %368
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %36) #9
  br label %493

493:                                              ; preds = %492, %364
  call void @llvm.lifetime.end.p0(i64 512, ptr %36) #9
  br label %495

494:                                              ; preds = %490, %334
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #9
  call void @llvm.lifetime.end.p0(i64 384, ptr %13) #9
  ret void

495:                                              ; preds = %493, %326, %312, %235, %130, %66
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #9
  call void @llvm.lifetime.end.p0(i64 384, ptr %13) #9
  br label %496

496:                                              ; preds = %495
  %497 = load ptr, ptr %17, align 8
  %498 = load i32, ptr %18, align 4
  %499 = insertvalue { ptr, i32 } poison, ptr %497, 0
  %500 = insertvalue { ptr, i32 } %499, i32 %498, 1
  resume { ptr, i32 } %500
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z7weibulldddd(double noundef, double noundef, double noundef, double noundef) #6

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef) #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { inlinehint 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}


; 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::__cxx11::basic_istringstream" = type { %"class.std::basic_istream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.35 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [5 x i8], align 1

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

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) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 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)) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z20setShapeFactFromFileRSt6vectorIP4ElemSaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdd(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32), double noundef, double noundef) local_unnamed_addr #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 #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 #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17modifyShapeFactoriRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERSt6vectorIP4ElemSaIS9_EES6_bi(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %3, i1 noundef zeroext %4, i32 noundef %5) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::__cxx11::basic_istringstream", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.std::basic_ofstream", align 8
  call void @llvm.lifetime.start.p0(i64 384, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120) %7, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 8)
  switch i32 %0, label %172 [
    i32 0, label %187
    i32 1, label %20
    i32 3, label %32
    i32 4, label %64
    i32 5, label %118
  ]

20:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %21 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %22 unwind label %30

22:                                               ; preds = %20
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %24 unwind label %30

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %26 unwind label %30

26:                                               ; preds = %24
  %27 = load double, ptr %9, align 8, !tbaa !5
  %28 = load double, ptr %10, align 8, !tbaa !5
  invoke void @_Z20setShapeFactFromFileRSt6vectorIP4ElemSaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdd(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(32) %8, double noundef %27, double noundef %28)
          to label %29 unwind label %30

29:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %187

30:                                               ; preds = %26, %24, %22, %20
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %276

32:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %.preheader unwind label %35

.preheader:                                       ; preds = %32
  %34 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %.not128 = icmp eq i64 %34, 0
  br i1 %.not128, label %._crit_edge115, label %.lr.ph114

._crit_edge115:                                   ; preds = %55, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %187

35:                                               ; preds = %32
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %63

.lr.ph114:                                        ; preds = %.preheader, %55
  %.084113 = phi i64 [ %56, %55 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  store double 0x3FA8A212CED102B9, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.084113) #8
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %38)
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds i8, ptr %40, i64 128
  %42 = load ptr, ptr %41, align 8
  %43 = invoke noundef double %42(ptr noundef nonnull align 8 dereferenceable(152) %39)
          to label %44 unwind label %59

44:                                               ; preds = %.lr.ph114
  %45 = load double, ptr %11, align 8, !tbaa !5
  %46 = fmul double %43, %45
  store double %46, ptr %13, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %48 = load double, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.084113) #8
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = call noundef ptr @_ZN4Elem7ChModelEv(ptr noundef nonnull align 8 dereferenceable(408) %50)
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %52, i64 88
  %54 = load ptr, ptr %53, align 8
  invoke void %54(ptr noundef nonnull align 8 dereferenceable(152) %51, double noundef %48)
          to label %55 unwind label %61

55:                                               ; preds = %44
  %56 = add nuw i64 %.084113, 1
  %57 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %.lr.ph114, label %._crit_edge115, !llvm.loop !13

59:                                               ; preds = %.lr.ph114
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %63

61:                                               ; preds = %44
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %63

63:                                               ; preds = %59, %61, %35
  %.pn98.pn = phi { ptr, i32 } [ %36, %35 ], [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %276

64:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %65 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %66 unwind label %80

66:                                               ; preds = %64
  %67 = call ptr @_ZNSt6vectorIP4ElemSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %68 = call ptr @_ZNSt6vectorIP4ElemSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4ElemSt6vectorIS3_SaIS3_EEEE11ElemGCmpRedEvT_SA_T0_(ptr %67, ptr %68)
          to label %69 unwind label %80

69:                                               ; preds = %66
  %70 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %71 = lshr i64 %70, 1
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %71) #8
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  %74 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %73)
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  %76 = getelementptr inbounds i8, ptr %75, i64 128
  %77 = load ptr, ptr %76, align 8
  %78 = invoke noundef double %77(ptr noundef nonnull align 8 dereferenceable(152) %74)
          to label %.preheader107 unwind label %82

.preheader107:                                    ; preds = %69
  %79 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %.not127 = icmp eq i64 %79, 0
  br i1 %.not127, label %._crit_edge112, label %.lr.ph111

._crit_edge112:                                   ; preds = %113, %.preheader107
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %187

80:                                               ; preds = %66, %64
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %117

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

.lr.ph111:                                        ; preds = %.preheader107, %113
  %.085110 = phi i64 [ %114, %113 ], [ 0, %.preheader107 ]
  %84 = load double, ptr %14, align 8, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.085110) #8
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %86)
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = getelementptr inbounds i8, ptr %88, i64 128
  %90 = load ptr, ptr %89, align 8
  %91 = invoke noundef double %90(ptr noundef nonnull align 8 dereferenceable(152) %87)
          to label %92 unwind label %111

92:                                               ; preds = %.lr.ph111
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.085110) #8
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %94)
  %96 = load ptr, ptr %95, align 8, !tbaa !11
  %97 = getelementptr inbounds i8, ptr %96, i64 128
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef double %98(ptr noundef nonnull align 8 dereferenceable(152) %95)
          to label %100 unwind label %111

100:                                              ; preds = %92
  %101 = fsub double %91, %78
  %102 = call double @llvm.fmuladd.f64(double %84, double %101, double %99)
  %103 = fcmp ogt double %102, 0x3FA8A2345CC04425
  %.090 = select i1 %103, double 0x3FA8A212CED102B9, double %102
  %104 = fcmp ugt double %.090, 0.000000e+00
  %.191 = select i1 %104, double %.090, double 1.000000e-04
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.085110) #8
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = call noundef ptr @_ZN4Elem7ChModelEv(ptr noundef nonnull align 8 dereferenceable(408) %106)
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds i8, ptr %108, i64 88
  %110 = load ptr, ptr %109, align 8
  invoke void %110(ptr noundef nonnull align 8 dereferenceable(152) %107, double noundef %.191)
          to label %113 unwind label %111

111:                                              ; preds = %100, %92, %.lr.ph111
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %117

113:                                              ; preds = %100
  %114 = add nuw i64 %.085110, 1
  %115 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %116 = icmp ult i64 %114, %115
  br i1 %116, label %.lr.ph111, label %._crit_edge112, !llvm.loop !15

117:                                              ; preds = %82, %111, %80
  %.pn95.pn = phi { ptr, i32 } [ %81, %80 ], [ %112, %111 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %276

118:                                              ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %119 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %120 unwind label %150

120:                                              ; preds = %118
  %121 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %119, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %122 unwind label %150

122:                                              ; preds = %120
  %123 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %121, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %124 unwind label %150

124:                                              ; preds = %122
  %125 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %123, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %126 unwind label %150

126:                                              ; preds = %124
  %127 = load double, ptr %16, align 8, !tbaa !5
  %128 = fcmp ogt double %127, 0x3FA8A2345CC04425
  br i1 %128, label %129, label %152

129:                                              ; preds = %126
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %131 unwind label %150

131:                                              ; preds = %129
  %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.35)
          to label %133 unwind label %150

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

135:                                              ; preds = %133
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull @.str.36)
          to label %137 unwind label %150

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

139:                                              ; preds = %137
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %138, ptr noundef nonnull @.str.37)
          to label %141 unwind label %150

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %143 unwind label %150

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %142, ptr noundef nonnull @.str.35)
          to label %145 unwind label %150

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %147 unwind label %150

147:                                              ; preds = %145
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %149 unwind label %150

149:                                              ; preds = %147
  store double 0x3FA8A212CED102B9, ptr %16, align 8, !tbaa !5
  br label %152

150:                                              ; preds = %147, %145, %143, %141, %139, %137, %135, %133, %131, %129, %124, %122, %120, %118
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %171

152:                                              ; preds = %149, %126
  %153 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %.not = icmp eq i64 %153, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %165, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %187

.lr.ph:                                           ; preds = %152, %165
  %.089109 = phi i64 [ %166, %165 ], [ 0, %152 ]
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.089109) #8
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = call noundef ptr @_ZN4Elem7ChModelEv(ptr noundef nonnull align 8 dereferenceable(408) %155)
  %157 = load double, ptr %15, align 8, !tbaa !5
  %158 = load double, ptr %16, align 8, !tbaa !5
  %159 = load double, ptr %17, align 8, !tbaa !5
  %160 = load double, ptr %18, align 8, !tbaa !5
  %161 = call noundef double @_Z7weibulldddd(double noundef %157, double noundef %158, double noundef %159, double noundef %160)
  %162 = load ptr, ptr %156, align 8, !tbaa !11
  %163 = getelementptr inbounds i8, ptr %162, i64 88
  %164 = load ptr, ptr %163, align 8
  invoke void %164(ptr noundef nonnull align 8 dereferenceable(152) %156, double noundef %161)
          to label %165 unwind label %169

165:                                              ; preds = %.lr.ph
  %166 = add nuw i64 %.089109, 1
  %167 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %168 = icmp ult i64 %166, %167
  br i1 %168, label %.lr.ph, label %._crit_edge, !llvm.loop !16

169:                                              ; preds = %.lr.ph
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %171

171:                                              ; preds = %169, %150
  %.pn = phi { ptr, i32 } [ %170, %169 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  br label %276

172:                                              ; preds = %6
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.38)
          to label %174 unwind label %185

174:                                              ; preds = %172
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %176 unwind label %185

176:                                              ; preds = %174
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull @.str.39)
          to label %178 unwind label %185

178:                                              ; preds = %176
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %180 unwind label %185

180:                                              ; preds = %178
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef nonnull @.str.38)
          to label %182 unwind label %185

182:                                              ; preds = %180
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %184 unwind label %185

184:                                              ; preds = %182
  call void @exit(i32 noundef -1) #9
  unreachable

185:                                              ; preds = %182, %180, %178, %176, %174, %172
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %276

187:                                              ; preds = %6, %29, %._crit_edge112, %._crit_edge, %._crit_edge115
  br i1 %4, label %188, label %275

188:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %19) #8
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %19, ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef 16)
          to label %189 unwind label %209

189:                                              ; preds = %188
  %190 = load ptr, ptr %19, align 8, !tbaa !11
  %191 = getelementptr i8, ptr %190, i64 -24
  %192 = load i64, ptr %191, align 8
  %193 = getelementptr inbounds i8, ptr %19, i64 %192
  %194 = call noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216) %193, i32 noundef 1024)
  %195 = load ptr, ptr %19, align 8, !tbaa !11
  %196 = getelementptr i8, ptr %195, i64 -24
  %197 = load i64, ptr %196, align 8
  %198 = getelementptr inbounds i8, ptr %19, i64 %197
  %199 = call noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216) %198, i32 noundef 256)
  %200 = load ptr, ptr %19, align 8, !tbaa !11
  %201 = getelementptr i8, ptr %200, i64 -24
  %202 = load i64, ptr %201, align 8
  %203 = getelementptr inbounds i8, ptr %19, i64 %202
  %204 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %203, i64 noundef 6)
  %205 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %.not129 = icmp eq i64 %205, 0
  br i1 %.not129, label %._crit_edge120, label %.lr.ph119

._crit_edge120.loopexit:                          ; preds = %218
  %206 = uitofp nneg i32 %.188 to double
  br label %._crit_edge120

._crit_edge120:                                   ; preds = %._crit_edge120.loopexit, %189
  %.087.lcssa = phi double [ 0.000000e+00, %189 ], [ %206, %._crit_edge120.loopexit ]
  %207 = call ptr @_ZNSt6vectorIP4ElemSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %208 = call ptr @_ZNSt6vectorIP4ElemSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP4ElemSt6vectorIS3_SaIS3_EEEE11ElemGCmpRedEvT_SA_T0_(ptr %207, ptr %208)
          to label %226 unwind label %230

209:                                              ; preds = %188
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %274

.lr.ph119:                                        ; preds = %189, %218
  %.086117 = phi i64 [ %221, %218 ], [ 0, %189 ]
  %.087116 = phi i32 [ %.188, %218 ], [ 0, %189 ]
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.086117) #8
  %212 = load ptr, ptr %211, align 8, !tbaa !9
  %213 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %212)
  %214 = load ptr, ptr %213, align 8, !tbaa !11
  %215 = getelementptr inbounds i8, ptr %214, i64 128
  %216 = load ptr, ptr %215, align 8
  %217 = invoke noundef double %216(ptr noundef nonnull align 8 dereferenceable(152) %213)
          to label %218 unwind label %224

218:                                              ; preds = %.lr.ph119
  %219 = fcmp ole double %217, 0x3FA8A2345CC04425
  %220 = zext i1 %219 to i32
  %.188 = add nuw nsw i32 %.087116, %220
  %221 = add nuw i64 %.086117, 1
  %222 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %223 = icmp ult i64 %221, %222
  br i1 %223, label %.lr.ph119, label %._crit_edge120.loopexit, !llvm.loop !17

224:                                              ; preds = %.lr.ph119
  %225 = landingpad { ptr, i32 }
          cleanup
  br label %273

226:                                              ; preds = %._crit_edge120
  %227 = sitofp i32 %5 to double
  %228 = fdiv double 1.000000e+00, %227
  %229 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %.not130 = icmp eq i64 %229, 0
  br i1 %.not130, label %._crit_edge126, label %.lr.ph125

._crit_edge126:                                   ; preds = %269, %226
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %19) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %19) #8
  br label %275

230:                                              ; preds = %._crit_edge120
  %231 = landingpad { ptr, i32 }
          cleanup
  br label %273

.lr.ph125:                                        ; preds = %226, %269
  %.069123 = phi i64 [ %270, %269 ], [ 0, %226 ]
  %.070122 = phi i32 [ %.171, %269 ], [ 0, %226 ]
  %.081121 = phi double [ %.283, %269 ], [ 0.000000e+00, %226 ]
  %232 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.069123) #8
  %233 = load ptr, ptr %232, align 8, !tbaa !9
  %234 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %233)
  %235 = load ptr, ptr %234, align 8, !tbaa !11
  %236 = getelementptr inbounds i8, ptr %235, i64 128
  %237 = load ptr, ptr %236, align 8
  %238 = invoke noundef double %237(ptr noundef nonnull align 8 dereferenceable(152) %234)
          to label %239 unwind label %265

239:                                              ; preds = %.lr.ph125
  %240 = fcmp ugt double %238, 0x3FA8A2345CC04425
  br i1 %240, label %269, label %241

241:                                              ; preds = %239
  %242 = add nsw i32 %.070122, 1
  %243 = sitofp i32 %242 to double
  %244 = fdiv double %243, %.087.lcssa
  %245 = fcmp ogt double %244, %.081121
  %246 = fcmp oeq double %244, 1.000000e+00
  %or.cond = or i1 %245, %246
  br i1 %or.cond, label %247, label %269

247:                                              ; preds = %241
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.069123) #8
  %249 = load ptr, ptr %248, align 8, !tbaa !9
  %250 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %249)
  %251 = load ptr, ptr %250, align 8, !tbaa !11
  %252 = getelementptr inbounds i8, ptr %251, i64 128
  %253 = load ptr, ptr %252, align 8
  %254 = invoke noundef double %253(ptr noundef nonnull align 8 dereferenceable(152) %250)
          to label %255 unwind label %267

255:                                              ; preds = %247
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %19, double noundef %254)
          to label %257 unwind label %267

257:                                              ; preds = %255
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef nonnull @.str.40)
          to label %259 unwind label %267

259:                                              ; preds = %257
  %260 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %258, double noundef %244)
          to label %261 unwind label %267

261:                                              ; preds = %259
  %262 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %260, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %263 unwind label %267

263:                                              ; preds = %261
  %264 = fadd double %228, %.081121
  br label %269

265:                                              ; preds = %.lr.ph125
  %266 = landingpad { ptr, i32 }
          cleanup
  br label %273

267:                                              ; preds = %261, %259, %257, %255, %247
  %268 = landingpad { ptr, i32 }
          cleanup
  br label %273

269:                                              ; preds = %263, %241, %239
  %.283 = phi double [ %.081121, %239 ], [ %264, %263 ], [ %.081121, %241 ]
  %.171 = phi i32 [ %.070122, %239 ], [ %242, %263 ], [ %242, %241 ]
  %270 = add nuw i64 %.069123, 1
  %271 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #8
  %272 = icmp ult i64 %270, %271
  br i1 %272, label %.lr.ph125, label %._crit_edge126, !llvm.loop !18

273:                                              ; preds = %265, %267, %230, %224
  %.pn103 = phi { ptr, i32 } [ %225, %224 ], [ %231, %230 ], [ %268, %267 ], [ %266, %265 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %19) #8
  br label %274

274:                                              ; preds = %273, %209
  %.pn103.pn = phi { ptr, i32 } [ %.pn103, %273 ], [ %210, %209 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %19) #8
  br label %276

275:                                              ; preds = %._crit_edge126, %187
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %7) #8
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %7) #8
  ret void

276:                                              ; preds = %274, %185, %171, %117, %63, %30
  %.pn103.pn.pn = phi { ptr, i32 } [ %.pn103.pn, %274 ], [ %31, %30 ], [ %.pn98.pn, %63 ], [ %.pn95.pn, %117 ], [ %.pn, %171 ], [ %186, %185 ]
  call void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(120) %7) #8
  call void @llvm.lifetime.end.p0(i64 384, ptr nonnull %7) #8
  resume { ptr, i32 } %.pn103.pn.pn
}

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_Z7weibulldddd(double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { inlinehint 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"double", !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 = !{!"vtable pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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