; 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::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"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 }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%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 }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<var2<double>, std::allocator<var2<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<var2<double>, std::allocator<var2<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<var2<double>, std::allocator<var2<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<var2<double>, std::allocator<var2<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.var2 = type { double, double }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.33 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [3 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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 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 uwtable
define dso_local void @_Z16setRadiiFromFileRSt6vectorIP4ElemSaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEddb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, double noundef %2, double noundef %3, i1 noundef zeroext %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i8, align 1
  %11 = alloca %"class.std::basic_ifstream", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.35", align 8
  %15 = alloca %class.var2, align 8
  %16 = alloca %class.var2, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca %class.var2, align 8
  %20 = alloca double, align 8
  %21 = alloca %"class.std::vector.35", align 8
  %22 = alloca %class.var2, align 8
  %23 = alloca i64, align 8
  %24 = alloca %class.var2, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca i32, align 4
  %33 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store double %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !9
  %34 = zext i1 %4 to i8
  store i8 %34, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 520, ptr %11) #7
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %11, ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef 8)
  %36 = load ptr, ptr %11, align 8, !tbaa !13
  %37 = getelementptr i8, ptr %36, i64 -24
  %38 = load i64, ptr %37, align 8
  %39 = getelementptr inbounds i8, ptr %11, i64 %38
  %40 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %39)
          to label %41 unwind label %58

41:                                               ; preds = %5
  br i1 %40, label %42, label %62

42:                                               ; preds = %41
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.35)
          to label %44 unwind label %58

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %46 unwind label %58

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @.str.49)
          to label %48 unwind label %58

48:                                               ; preds = %46
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(32) %49)
          to label %51 unwind label %58

51:                                               ; preds = %48
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %58

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.35)
          to label %55 unwind label %58

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %57 unwind label %58

57:                                               ; preds = %55
  call void @exit(i32 noundef -1) #8
  unreachable

58:                                               ; preds = %55, %53, %51, %48, %46, %44, %42, %5
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %12, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %13, align 4
  br label %401

62:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  invoke void @_ZN4var2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef 1.000000e+00, double noundef -1.000000e+00)
          to label %63 unwind label %105

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %118, %63
  %65 = getelementptr inbounds %class.var2, ptr %15, i32 0, i32 0
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %67 unwind label %105

67:                                               ; preds = %64
  %68 = load ptr, ptr %66, align 8, !tbaa !13
  %69 = getelementptr i8, ptr %68, i64 -24
  %70 = load i64, ptr %69, align 8
  %71 = getelementptr inbounds i8, ptr %66, i64 %70
  %72 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %71)
          to label %73 unwind label %105

73:                                               ; preds = %67
  br i1 %72, label %74, label %119

74:                                               ; preds = %73
  %75 = getelementptr inbounds %class.var2, ptr %15, i32 0, i32 1
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %77 unwind label %105

77:                                               ; preds = %74
  %78 = getelementptr inbounds %class.var2, ptr %15, i32 0, i32 0
  %79 = load double, ptr %78, align 8, !tbaa !15
  %80 = fmul double %79, 0x3EB0C6F7A0B5ED8D
  store double %80, ptr %78, align 8, !tbaa !15
  %81 = getelementptr inbounds %class.var2, ptr %15, i32 0, i32 1
  %82 = load double, ptr %81, align 8, !tbaa !17
  %83 = getelementptr inbounds %class.var2, ptr %16, i32 0, i32 1
  %84 = load double, ptr %83, align 8, !tbaa !17
  %85 = fcmp olt double %82, %84
  br i1 %85, label %92, label %86

86:                                               ; preds = %77
  %87 = getelementptr inbounds %class.var2, ptr %15, i32 0, i32 0
  %88 = load double, ptr %87, align 8, !tbaa !15
  %89 = getelementptr inbounds %class.var2, ptr %16, i32 0, i32 0
  %90 = load double, ptr %89, align 8, !tbaa !15
  %91 = fcmp oge double %88, %90
  br i1 %91, label %92, label %109

92:                                               ; preds = %86, %77
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.35)
          to label %94 unwind label %105

94:                                               ; preds = %92
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %96 unwind label %105

96:                                               ; preds = %94
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @.str.50)
          to label %98 unwind label %105

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %100 unwind label %105

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef @.str.35)
          to label %102 unwind label %105

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %104 unwind label %105

104:                                              ; preds = %102
  call void @exit(i32 noundef -1) #8
  unreachable

105:                                              ; preds = %283, %281, %279, %274, %272, %269, %267, %265, %263, %261, %259, %257, %255, %115, %102, %100, %98, %96, %94, %92, %74, %67, %64, %62
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  br label %400

109:                                              ; preds = %86
  %110 = getelementptr inbounds %class.var2, ptr %15, i32 0, i32 1
  %111 = load double, ptr %110, align 8, !tbaa !17
  %112 = getelementptr inbounds %class.var2, ptr %16, i32 0, i32 1
  %113 = load double, ptr %112, align 8, !tbaa !17
  %114 = fcmp une double %111, %113
  br i1 %114, label %115, label %117

115:                                              ; preds = %109
  invoke void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %116 unwind label %105

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116, %109
  br label %118

118:                                              ; preds = %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !18
  br label %64, !llvm.loop !19

119:                                              ; preds = %73
  %120 = load double, ptr %8, align 8, !tbaa !9
  %121 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %122 = getelementptr inbounds %class.var2, ptr %121, i32 0, i32 0
  %123 = load double, ptr %122, align 8, !tbaa !15
  %124 = fcmp ogt double %120, %123
  br i1 %124, label %125, label %175

125:                                              ; preds = %119
  %126 = load double, ptr %8, align 8, !tbaa !9
  %127 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %128 = getelementptr inbounds %class.var2, ptr %127, i32 0, i32 0
  %129 = load double, ptr %128, align 8, !tbaa !15
  %130 = fcmp olt double %126, %129
  br i1 %130, label %131, label %175

131:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %132 = load double, ptr %8, align 8, !tbaa !9
  %133 = invoke noundef double @_Z12tableLookUpYdRKSt6vectorI4var2IdESaIS1_EE(double noundef %132, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %134 unwind label %146

134:                                              ; preds = %131
  store double %133, ptr %17, align 8, !tbaa !9
  br label %135

135:                                              ; preds = %145, %134
  %136 = call noundef zeroext i1 @_ZNKSt6vectorI4var2IdESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br i1 %136, label %143, label %137

137:                                              ; preds = %135
  %138 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %139 = getelementptr inbounds %class.var2, ptr %138, i32 0, i32 0
  %140 = load double, ptr %139, align 8, !tbaa !15
  %141 = load double, ptr %8, align 8, !tbaa !9
  %142 = fcmp olt double %140, %141
  br label %143

143:                                              ; preds = %137, %135
  %144 = phi i1 [ false, %135 ], [ %142, %137 ]
  br i1 %144, label %145, label %150

145:                                              ; preds = %143
  call void @_ZNSt6vectorI4var2IdESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %135, !llvm.loop !21

146:                                              ; preds = %131
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %12, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %13, align 4
  br label %174

150:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !22
  br label %151

151:                                              ; preds = %163, %150
  %152 = load i64, ptr %18, align 8, !tbaa !22
  %153 = call noundef i64 @_ZNKSt6vectorI4var2IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %154 = icmp ult i64 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %166

156:                                              ; preds = %151
  %157 = load double, ptr %17, align 8, !tbaa !9
  %158 = load i64, ptr %18, align 8, !tbaa !22
  %159 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %158) #7
  %160 = getelementptr inbounds %class.var2, ptr %159, i32 0, i32 1
  %161 = load double, ptr %160, align 8, !tbaa !17
  %162 = fdiv double %161, %157
  store double %162, ptr %160, align 8, !tbaa !17
  br label %163

163:                                              ; preds = %156
  %164 = load i64, ptr %18, align 8, !tbaa !22
  %165 = add i64 %164, 1
  store i64 %165, ptr %18, align 8, !tbaa !22
  br label %151, !llvm.loop !24

166:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %167 = load double, ptr %8, align 8, !tbaa !9
  invoke void @_ZN4var2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %167, double noundef 1.000000e+00)
          to label %168 unwind label %170

168:                                              ; preds = %166
  invoke void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %169 unwind label %170

169:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %175

170:                                              ; preds = %168, %166
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %12, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  br label %174

174:                                              ; preds = %170, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %400

175:                                              ; preds = %169, %125, %119
  %176 = load double, ptr %9, align 8, !tbaa !9
  %177 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %178 = getelementptr inbounds %class.var2, ptr %177, i32 0, i32 0
  %179 = load double, ptr %178, align 8, !tbaa !15
  %180 = fcmp ogt double %176, %179
  br i1 %180, label %181, label %243

181:                                              ; preds = %175
  %182 = load double, ptr %9, align 8, !tbaa !9
  %183 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %184 = getelementptr inbounds %class.var2, ptr %183, i32 0, i32 0
  %185 = load double, ptr %184, align 8, !tbaa !15
  %186 = fcmp olt double %182, %185
  br i1 %186, label %187, label %243

187:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %188 = load double, ptr %9, align 8, !tbaa !9
  %189 = invoke noundef double @_Z12tableLookUpYdRKSt6vectorI4var2IdESaIS1_EE(double noundef %188, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %190 unwind label %199

190:                                              ; preds = %187
  store double %189, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %191 = load double, ptr %9, align 8, !tbaa !9
  invoke void @_ZN4var2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %22, double noundef %191, double noundef 0.000000e+00)
          to label %192 unwind label %203

192:                                              ; preds = %190
  invoke void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %193 unwind label %203

193:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 0, ptr %23, align 8, !tbaa !22
  br label %194

194:                                              ; preds = %235, %193
  %195 = load i64, ptr %23, align 8, !tbaa !22
  %196 = call noundef i64 @_ZNKSt6vectorI4var2IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %197 = icmp ult i64 %195, %196
  br i1 %197, label %207, label %198

198:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %238

199:                                              ; preds = %187
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %12, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %13, align 4
  br label %242

203:                                              ; preds = %238, %192, %190
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %12, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %13, align 4
  br label %241

207:                                              ; preds = %194
  %208 = load i64, ptr %23, align 8, !tbaa !22
  %209 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %208) #7
  %210 = getelementptr inbounds %class.var2, ptr %209, i32 0, i32 0
  %211 = load double, ptr %210, align 8, !tbaa !15
  %212 = load double, ptr %9, align 8, !tbaa !9
  %213 = fcmp olt double %211, %212
  br i1 %213, label %214, label %234

214:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  %215 = load i64, ptr %23, align 8, !tbaa !22
  %216 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %215) #7
  %217 = getelementptr inbounds %class.var2, ptr %216, i32 0, i32 0
  %218 = load double, ptr %217, align 8, !tbaa !15
  %219 = load i64, ptr %23, align 8, !tbaa !22
  %220 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %219) #7
  %221 = getelementptr inbounds %class.var2, ptr %220, i32 0, i32 1
  %222 = load double, ptr %221, align 8, !tbaa !17
  %223 = load double, ptr %20, align 8, !tbaa !9
  %224 = fsub double %222, %223
  %225 = load double, ptr %20, align 8, !tbaa !9
  %226 = fsub double 1.000000e+00, %225
  %227 = fdiv double %224, %226
  invoke void @_ZN4var2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %24, double noundef %218, double noundef %227)
          to label %228 unwind label %230

228:                                              ; preds = %214
  invoke void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %229 unwind label %230

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

230:                                              ; preds = %228, %214
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %12, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %241

234:                                              ; preds = %229, %207
  br label %235

235:                                              ; preds = %234
  %236 = load i64, ptr %23, align 8, !tbaa !22
  %237 = add i64 %236, 1
  store i64 %237, ptr %23, align 8, !tbaa !22
  br label %194, !llvm.loop !25

238:                                              ; preds = %198
  %239 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4var2IdESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %240 unwind label %203

240:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %243

241:                                              ; preds = %230, %203
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  br label %242

242:                                              ; preds = %241, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %400

243:                                              ; preds = %240, %181, %175
  %244 = call noundef zeroext i1 @_ZNKSt6vectorI4var2IdESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br i1 %244, label %255, label %245

245:                                              ; preds = %243
  %246 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %247 = getelementptr inbounds %class.var2, ptr %246, i32 0, i32 1
  %248 = load double, ptr %247, align 8, !tbaa !17
  %249 = fcmp une double %248, 0.000000e+00
  br i1 %249, label %255, label %250

250:                                              ; preds = %245
  %251 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %252 = getelementptr inbounds %class.var2, ptr %251, i32 0, i32 1
  %253 = load double, ptr %252, align 8, !tbaa !17
  %254 = fcmp une double %253, 1.000000e+00
  br i1 %254, label %255, label %286

255:                                              ; preds = %250, %245, %243
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %257 unwind label %105

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 @.str.51)
          to label %259 unwind label %105

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

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

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

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

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

269:                                              ; preds = %267
  %270 = call noundef i64 @_ZNKSt6vectorI4var2IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %271 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %268, i64 noundef %270)
          to label %272 unwind label %105

272:                                              ; preds = %269
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %271, ptr noundef @.str.53)
          to label %274 unwind label %105

274:                                              ; preds = %272
  %275 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  %276 = getelementptr inbounds %class.var2, ptr %275, i32 0, i32 1
  %277 = load double, ptr %276, align 8, !tbaa !17
  %278 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %273, double noundef %277)
          to label %279 unwind label %105

279:                                              ; preds = %274
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %278, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %281 unwind label %105

281:                                              ; preds = %279
  %282 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %280, ptr noundef @.str.51)
          to label %283 unwind label %105

283:                                              ; preds = %281
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %282, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %285 unwind label %105

285:                                              ; preds = %283
  call void @exit(i32 noundef -1) #8
  unreachable

286:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store double 0.000000e+00, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store double 0.000000e+00, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store i64 0, ptr %27, align 8, !tbaa !22
  br label %287

287:                                              ; preds = %302, %286
  %288 = load i64, ptr %27, align 8, !tbaa !22
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %289) #7
  %291 = icmp ult i64 %288, %290
  br i1 %291, label %293, label %292

292:                                              ; preds = %287
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %309

293:                                              ; preds = %287
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = load i64, ptr %27, align 8, !tbaa !22
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %294, i64 noundef %295) #7
  %297 = load ptr, ptr %296, align 8, !tbaa !5
  %298 = invoke noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %297)
          to label %299 unwind label %305

299:                                              ; preds = %293
  %300 = load double, ptr %25, align 8, !tbaa !9
  %301 = fadd double %300, %298
  store double %301, ptr %25, align 8, !tbaa !9
  br label %302

302:                                              ; preds = %299
  %303 = load i64, ptr %27, align 8, !tbaa !22
  %304 = add i64 %303, 1
  store i64 %304, ptr %27, align 8, !tbaa !22
  br label %287, !llvm.loop !26

305:                                              ; preds = %293
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %12, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %399

309:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store i64 0, ptr %28, align 8, !tbaa !22
  br label %310

310:                                              ; preds = %393, %309
  %311 = load i64, ptr %28, align 8, !tbaa !22
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %312) #7
  %314 = icmp ult i64 %311, %313
  br i1 %314, label %316, label %315

315:                                              ; preds = %310
  store i32 15, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %398

316:                                              ; preds = %310
  %317 = load ptr, ptr %6, align 8, !tbaa !5
  %318 = load i64, ptr %28, align 8, !tbaa !22
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %317, i64 noundef %318) #7
  %320 = load ptr, ptr %319, align 8, !tbaa !5
  %321 = invoke noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %320)
          to label %322 unwind label %345

322:                                              ; preds = %316
  %323 = load double, ptr %26, align 8, !tbaa !9
  %324 = fadd double %323, %321
  store double %324, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %325 = load double, ptr %26, align 8, !tbaa !9
  %326 = load double, ptr %25, align 8, !tbaa !9
  %327 = fdiv double %325, %326
  store double %327, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %328 = load double, ptr %30, align 8, !tbaa !9
  %329 = invoke noundef double @_Z12tableLookUpXdRKSt6vectorI4var2IdESaIS1_EE(double noundef %328, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %330 unwind label %349

330:                                              ; preds = %322
  %331 = fdiv double %329, 2.000000e+00
  store double %331, ptr %31, align 8, !tbaa !9
  %332 = load i8, ptr %10, align 1, !tbaa !11, !range !27, !noundef !28
  %333 = trunc i8 %332 to i1
  br i1 %333, label %334, label %381

334:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !29
  br label %335

335:                                              ; preds = %372, %334
  %336 = load i32, ptr %32, align 4, !tbaa !29
  %337 = load ptr, ptr %6, align 8, !tbaa !5
  %338 = load i64, ptr %28, align 8, !tbaa !22
  %339 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %337, i64 noundef %338) #7
  %340 = load ptr, ptr %339, align 8, !tbaa !5
  %341 = invoke noundef i32 @_ZNK4Elem6nCnctsEv(ptr noundef nonnull align 8 dereferenceable(408) %340)
          to label %342 unwind label %353

342:                                              ; preds = %335
  %343 = icmp slt i32 %336, %341
  br i1 %343, label %357, label %344

344:                                              ; preds = %342
  store i32 18, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %380

345:                                              ; preds = %316
  %346 = landingpad { ptr, i32 }
          cleanup
  %347 = extractvalue { ptr, i32 } %346, 0
  store ptr %347, ptr %12, align 8
  %348 = extractvalue { ptr, i32 } %346, 1
  store i32 %348, ptr %13, align 4
  br label %397

349:                                              ; preds = %387, %381, %322
  %350 = landingpad { ptr, i32 }
          cleanup
  %351 = extractvalue { ptr, i32 } %350, 0
  store ptr %351, ptr %12, align 8
  %352 = extractvalue { ptr, i32 } %350, 1
  store i32 %352, ptr %13, align 4
  br label %396

353:                                              ; preds = %335
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %12, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %13, align 4
  br label %379

357:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %358 = load ptr, ptr %6, align 8, !tbaa !5
  %359 = load i64, ptr %28, align 8, !tbaa !22
  %360 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %358, i64 noundef %359) #7
  %361 = load ptr, ptr %360, align 8, !tbaa !5
  %362 = load i32, ptr %32, align 4, !tbaa !29
  %363 = invoke noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %361, i32 noundef %362)
          to label %364 unwind label %375

364:                                              ; preds = %357
  %365 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %363)
          to label %366 unwind label %375

366:                                              ; preds = %364
  %367 = invoke noundef double @_ZNK9ElemModel3RRREv(ptr noundef nonnull align 8 dereferenceable(152) %365)
          to label %368 unwind label %375

368:                                              ; preds = %366
  store double %367, ptr %33, align 8, !tbaa !9
  %369 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %370 unwind label %375

370:                                              ; preds = %368
  %371 = load double, ptr %369, align 8, !tbaa !9
  store double %371, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %372

372:                                              ; preds = %370
  %373 = load i32, ptr %32, align 4, !tbaa !29
  %374 = add nsw i32 %373, 1
  store i32 %374, ptr %32, align 4, !tbaa !29
  br label %335, !llvm.loop !31

375:                                              ; preds = %368, %366, %364, %357
  %376 = landingpad { ptr, i32 }
          cleanup
  %377 = extractvalue { ptr, i32 } %376, 0
  store ptr %377, ptr %12, align 8
  %378 = extractvalue { ptr, i32 } %376, 1
  store i32 %378, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %379

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

380:                                              ; preds = %344
  br label %381

381:                                              ; preds = %380, %330
  %382 = load ptr, ptr %6, align 8, !tbaa !5
  %383 = load i64, ptr %28, align 8, !tbaa !22
  %384 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %382, i64 noundef %383) #7
  %385 = load ptr, ptr %384, align 8, !tbaa !5
  %386 = invoke noundef ptr @_ZN4Elem7ChModelEv(ptr noundef nonnull align 8 dereferenceable(408) %385)
          to label %387 unwind label %349

387:                                              ; preds = %381
  %388 = load double, ptr %31, align 8, !tbaa !9
  %389 = load ptr, ptr %386, align 8, !tbaa !13
  %390 = getelementptr inbounds ptr, ptr %389, i64 15
  %391 = load ptr, ptr %390, align 8
  invoke void %391(ptr noundef nonnull align 8 dereferenceable(152) %386, double noundef %388)
          to label %392 unwind label %349

392:                                              ; preds = %387
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %393

393:                                              ; preds = %392
  %394 = load i64, ptr %28, align 8, !tbaa !22
  %395 = add i64 %394, 1
  store i64 %395, ptr %28, align 8, !tbaa !22
  br label %310, !llvm.loop !32

396:                                              ; preds = %379, %349
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %397

397:                                              ; preds = %396, %345
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %399

398:                                              ; preds = %315
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %11) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr %11) #7
  ret void

399:                                              ; preds = %397, %305
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %400

400:                                              ; preds = %399, %242, %174, %105
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %401

401:                                              ; preds = %400, %58
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %11) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr %11) #7
  br label %402

402:                                              ; preds = %401
  %403 = load ptr, ptr %12, align 8
  %404 = load i32, ptr %13, align 4
  %405 = insertvalue { ptr, i32 } poison, ptr %403, 0
  %406 = insertvalue { ptr, i32 } %405, i32 %404, 1
  resume { ptr, i32 } %406
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #8 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"_ZTS4var2IdE", !10, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}
!18 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!30, !30, i64 0}
!30 = !{!"int", !7, i64 0}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !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::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"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 }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%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 }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<var2<double>, std::allocator<var2<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<var2<double>, std::allocator<var2<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<var2<double>, std::allocator<var2<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<var2<double>, std::allocator<var2<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.var2 = type { double, double }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.33 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [3 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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #4 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 uwtable
define dso_local void @_Z16setRadiiFromFileRSt6vectorIP4ElemSaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEddb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, double noundef %2, double noundef %3, i1 noundef zeroext %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::basic_ifstream", align 8
  %7 = alloca %"class.std::vector.35", align 8
  %8 = alloca %class.var2, align 8
  %9 = alloca %class.var2, align 8
  %10 = alloca %class.var2, align 8
  %11 = alloca %"class.std::vector.35", align 8
  %12 = alloca %class.var2, align 8
  %13 = alloca %class.var2, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %6) #7
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 8)
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr %6, i64 %18
  %20 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264) %19)
          to label %21 unwind label %37

21:                                               ; preds = %5
  br i1 %20, label %22, label %39

22:                                               ; preds = %21
  %23 = 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.35)
          to label %24 unwind label %37

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %26 unwind label %37

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str.49)
          to label %28 unwind label %37

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %30 unwind label %37

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %32 unwind label %37

32:                                               ; preds = %30
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @.str.35)
          to label %34 unwind label %37

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %36 unwind label %37

36:                                               ; preds = %34
  call void @exit(i32 noundef -1) #8
  unreachable

37:                                               ; preds = %34, %32, %30, %28, %26, %24, %22, %5
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %230

39:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @_ZN4var2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 1.000000e+00, double noundef -1.000000e+00)
  %40 = getelementptr inbounds i8, ptr %8, i64 8
  %41 = getelementptr inbounds i8, ptr %9, i64 8
  br label %42

42:                                               ; preds = %77, %39
  %43 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %44 unwind label %.loopexit72

44:                                               ; preds = %42
  %45 = load ptr, ptr %43, align 8, !tbaa !5
  %46 = getelementptr i8, ptr %45, i64 -24
  %47 = load i64, ptr %46, align 8
  %48 = getelementptr inbounds i8, ptr %43, i64 %47
  %49 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %48)
          to label %50 unwind label %.loopexit72

50:                                               ; preds = %44
  br i1 %49, label %51, label %78

51:                                               ; preds = %50
  %52 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %53 unwind label %.loopexit72

53:                                               ; preds = %51
  %54 = load double, ptr %8, align 8, !tbaa !8
  %55 = fmul double %54, 0x3EB0C6F7A0B5ED8D
  store double %55, ptr %8, align 8, !tbaa !8
  %56 = load double, ptr %40, align 8, !tbaa !12
  %57 = load double, ptr %41, align 8, !tbaa !12
  %58 = fcmp uge double %56, %57
  %59 = load double, ptr %9, align 8
  %60 = fcmp ult double %55, %59
  %or.cond = select i1 %58, i1 %60, i1 false
  br i1 %or.cond, label %74, label %61

61:                                               ; preds = %53
  %62 = 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.35)
          to label %63 unwind label %.loopexit.split-lp

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %65 unwind label %.loopexit.split-lp

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @.str.50)
          to label %67 unwind label %.loopexit.split-lp

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %69 unwind label %.loopexit.split-lp

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @.str.35)
          to label %71 unwind label %.loopexit.split-lp

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %73 unwind label %.loopexit.split-lp

73:                                               ; preds = %71
  call void @exit(i32 noundef -1) #8
  unreachable

.loopexit72:                                      ; preds = %42, %44, %51, %76
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %229

.loopexit.split-lp:                               ; preds = %61, %63, %65, %67, %69, %71, %154, %156, %158, %160, %162, %164, %166, %168, %171, %173, %178, %180, %182
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %229

74:                                               ; preds = %53
  %75 = fcmp une double %56, %57
  br i1 %75, label %76, label %77

76:                                               ; preds = %74
  invoke void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %77 unwind label %.loopexit72

77:                                               ; preds = %74, %76
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !13
  br label %42, !llvm.loop !15

78:                                               ; preds = %50
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %80 = load double, ptr %79, align 8, !tbaa !8
  %81 = fcmp olt double %80, %2
  br i1 %81, label %82, label %105

82:                                               ; preds = %78
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %84 = load double, ptr %83, align 8, !tbaa !8
  %85 = fcmp ogt double %84, %2
  br i1 %85, label %86, label %105

86:                                               ; preds = %82
  %87 = call noundef double @_Z12tableLookUpYdRKSt6vectorI4var2IdESaIS1_EE(double noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %7)
  %88 = call noundef zeroext i1 @_ZNKSt6vectorI4var2IdESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br i1 %88, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %86, %92
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %90 = load double, ptr %89, align 8, !tbaa !8
  %91 = fcmp olt double %90, %2
  br i1 %91, label %92, label %.critedge

92:                                               ; preds = %.lr.ph
  call void @_ZNSt6vectorI4var2IdESaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %93 = call noundef zeroext i1 @_ZNKSt6vectorI4var2IdESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br i1 %93, label %.critedge, label %.lr.ph, !llvm.loop !17

.critedge:                                        ; preds = %.lr.ph, %92, %86
  %94 = call noundef i64 @_ZNKSt6vectorI4var2IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %.not = icmp eq i64 %94, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph75

._crit_edge:                                      ; preds = %.lr.ph75, %.critedge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @_ZN4var2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef %2, double noundef 1.000000e+00)
  invoke void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %102 unwind label %103

.lr.ph75:                                         ; preds = %.critedge, %.lr.ph75
  %.05874 = phi i64 [ %99, %.lr.ph75 ], [ 0, %.critedge ]
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.05874) #7
  %96 = getelementptr inbounds i8, ptr %95, i64 8
  %97 = load double, ptr %96, align 8, !tbaa !12
  %98 = fdiv double %97, %87
  store double %98, ptr %96, align 8, !tbaa !12
  %99 = add nuw i64 %.05874, 1
  %100 = call noundef i64 @_ZNKSt6vectorI4var2IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %101 = icmp ult i64 %99, %100
  br i1 %101, label %.lr.ph75, label %._crit_edge, !llvm.loop !18

102:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %105

103:                                              ; preds = %._crit_edge
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %229

105:                                              ; preds = %102, %82, %78
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %107 = load double, ptr %106, align 8, !tbaa !8
  %108 = fcmp olt double %107, %3
  br i1 %108, label %109, label %141

109:                                              ; preds = %105
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %111 = load double, ptr %110, align 8, !tbaa !8
  %112 = fcmp ogt double %111, %3
  br i1 %112, label %113, label %141

113:                                              ; preds = %109
  %114 = call noundef double @_Z12tableLookUpYdRKSt6vectorI4var2IdESaIS1_EE(double noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  call void @_ZN4var2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef %3, double noundef 0.000000e+00)
  invoke void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %.preheader71 unwind label %118

.preheader71:                                     ; preds = %113
  %115 = call noundef i64 @_ZNKSt6vectorI4var2IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %.not89 = icmp eq i64 %115, 0
  br i1 %.not89, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %.preheader71
  %116 = fsub double 1.000000e+00, %114
  br label %120

._crit_edge78:                                    ; preds = %135, %.preheader71
  %117 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI4var2IdESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %139 unwind label %118

118:                                              ; preds = %._crit_edge78, %113
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %140

120:                                              ; preds = %.lr.ph77, %135
  %.05476 = phi i64 [ 0, %.lr.ph77 ], [ %136, %135 ]
  %121 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.05476) #7
  %122 = load double, ptr %121, align 8, !tbaa !8
  %123 = fcmp olt double %122, %3
  br i1 %123, label %124, label %135

124:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  %125 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.05476) #7
  %126 = load double, ptr %125, align 8, !tbaa !8
  %127 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.05476) #7
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  %129 = load double, ptr %128, align 8, !tbaa !12
  %130 = fsub double %129, %114
  %131 = fdiv double %130, %116
  call void @_ZN4var2IdEC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %13, double noundef %126, double noundef %131)
  invoke void @_ZNSt6vectorI4var2IdESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %132 unwind label %133

132:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %135

133:                                              ; preds = %124
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  br label %140

135:                                              ; preds = %120, %132
  %136 = add nuw i64 %.05476, 1
  %137 = call noundef i64 @_ZNKSt6vectorI4var2IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %138 = icmp ult i64 %136, %137
  br i1 %138, label %120, label %._crit_edge78, !llvm.loop !19

139:                                              ; preds = %._crit_edge78
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %141

140:                                              ; preds = %133, %118
  %.pn = phi { ptr, i32 } [ %134, %133 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %229

141:                                              ; preds = %139, %109, %105
  %142 = call noundef zeroext i1 @_ZNKSt6vectorI4var2IdESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br i1 %142, label %154, label %143

143:                                              ; preds = %141
  %144 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %145 = getelementptr inbounds i8, ptr %144, i64 8
  %146 = load double, ptr %145, align 8, !tbaa !12
  %147 = fcmp une double %146, 0.000000e+00
  br i1 %147, label %154, label %148

148:                                              ; preds = %143
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %150 = getelementptr inbounds i8, ptr %149, i64 8
  %151 = load double, ptr %150, align 8, !tbaa !12
  %152 = fcmp une double %151, 1.000000e+00
  br i1 %152, label %154, label %.preheader70

.preheader70:                                     ; preds = %148
  %153 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %.not90 = icmp eq i64 %153, 0
  br i1 %.not90, label %.preheader69, label %.lr.ph81

154:                                              ; preds = %148, %143, %141
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %156 unwind label %.loopexit.split-lp

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull @.str.51)
          to label %158 unwind label %.loopexit.split-lp

158:                                              ; preds = %156
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %160 unwind label %.loopexit.split-lp

160:                                              ; preds = %158
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull @.str.33)
          to label %162 unwind label %.loopexit.split-lp

162:                                              ; preds = %160
  %163 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %164 unwind label %.loopexit.split-lp

164:                                              ; preds = %162
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %163, ptr noundef nonnull @.str.52)
          to label %166 unwind label %.loopexit.split-lp

166:                                              ; preds = %164
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %168 unwind label %.loopexit.split-lp

168:                                              ; preds = %166
  %169 = call noundef i64 @_ZNKSt6vectorI4var2IdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %167, i64 noundef %169)
          to label %171 unwind label %.loopexit.split-lp

171:                                              ; preds = %168
  %172 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef nonnull @.str.53)
          to label %173 unwind label %.loopexit.split-lp

173:                                              ; preds = %171
  %174 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI4var2IdESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %175 = getelementptr inbounds i8, ptr %174, i64 8
  %176 = load double, ptr %175, align 8, !tbaa !12
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %172, double noundef %176)
          to label %178 unwind label %.loopexit.split-lp

178:                                              ; preds = %173
  %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 %.loopexit.split-lp

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.51)
          to label %182 unwind label %.loopexit.split-lp

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 %.loopexit.split-lp

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

.preheader69:                                     ; preds = %.lr.ph81, %.preheader70
  %.053.lcssa = phi double [ 0.000000e+00, %.preheader70 ], [ %189, %.lr.ph81 ]
  %185 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %.not91 = icmp eq i64 %185, 0
  br i1 %.not91, label %._crit_edge88, label %.lr.ph87

.lr.ph81:                                         ; preds = %.preheader70, %.lr.ph81
  %.05180 = phi i64 [ %190, %.lr.ph81 ], [ 0, %.preheader70 ]
  %.05379 = phi double [ %189, %.lr.ph81 ], [ 0.000000e+00, %.preheader70 ]
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.05180) #7
  %187 = load ptr, ptr %186, align 8, !tbaa !20
  %188 = call noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %187)
  %189 = fadd double %.05379, %188
  %190 = add nuw i64 %.05180, 1
  %191 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %192 = icmp ult i64 %190, %191
  br i1 %192, label %.lr.ph81, label %.preheader69, !llvm.loop !22

._crit_edge88:                                    ; preds = %225, %.preheader69
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %6) #7
  ret void

.lr.ph87:                                         ; preds = %.preheader69, %225
  %.05085 = phi i64 [ %226, %225 ], [ 0, %.preheader69 ]
  %.05284 = phi double [ %196, %225 ], [ 0.000000e+00, %.preheader69 ]
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.05085) #7
  %194 = load ptr, ptr %193, align 8, !tbaa !20
  %195 = call noundef double @_ZNK4Elem10flowVolumeEv(ptr noundef nonnull align 8 dereferenceable(408) %194)
  %196 = fadd double %.05284, %195
  %197 = fdiv double %196, %.053.lcssa
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %198 = call noundef double @_Z12tableLookUpXdRKSt6vectorI4var2IdESaIS1_EE(double noundef %197, ptr noundef nonnull align 8 dereferenceable(24) %7)
  %199 = fmul double %198, 5.000000e-01
  store double %199, ptr %14, align 8, !tbaa !14
  br i1 %4, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.lr.ph87
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.05085) #7
  %201 = load ptr, ptr %200, align 8, !tbaa !20
  %202 = call noundef i32 @_ZNK4Elem6nCnctsEv(ptr noundef nonnull align 8 dereferenceable(408) %201)
  %203 = icmp sgt i32 %202, 0
  br i1 %203, label %.lr.ph83, label %.loopexit

204:                                              ; preds = %.loopexit
  %205 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %229

.lr.ph83:                                         ; preds = %.preheader, %.lr.ph83
  %.082 = phi i32 [ %213, %.lr.ph83 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.05085) #7
  %207 = load ptr, ptr %206, align 8, !tbaa !20
  %208 = call noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %207, i32 noundef %.082)
  %209 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %208)
  %210 = call noundef double @_ZNK9ElemModel3RRREv(ptr noundef nonnull align 8 dereferenceable(152) %209)
  store double %210, ptr %15, align 8, !tbaa !14
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %212 = load double, ptr %211, align 8, !tbaa !14
  store double %212, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  %213 = add nuw nsw i32 %.082, 1
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.05085) #7
  %215 = load ptr, ptr %214, align 8, !tbaa !20
  %216 = call noundef i32 @_ZNK4Elem6nCnctsEv(ptr noundef nonnull align 8 dereferenceable(408) %215)
  %217 = icmp slt i32 %213, %216
  br i1 %217, label %.lr.ph83, label %.loopexit, !llvm.loop !23

.loopexit:                                        ; preds = %.lr.ph83, %.preheader, %.lr.ph87
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP4ElemSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.05085) #7
  %219 = load ptr, ptr %218, align 8, !tbaa !20
  %220 = call noundef ptr @_ZN4Elem7ChModelEv(ptr noundef nonnull align 8 dereferenceable(408) %219)
  %221 = load double, ptr %14, align 8, !tbaa !14
  %222 = load ptr, ptr %220, align 8, !tbaa !5
  %223 = getelementptr inbounds i8, ptr %222, i64 120
  %224 = load ptr, ptr %223, align 8
  invoke void %224(ptr noundef nonnull align 8 dereferenceable(152) %220, double noundef %221)
          to label %225 unwind label %204

225:                                              ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %226 = add nuw i64 %.05085, 1
  %227 = call noundef i64 @_ZNKSt6vectorIP4ElemSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %228 = icmp ult i64 %226, %227
  br i1 %228, label %.lr.ph87, label %._crit_edge88, !llvm.loop !24

229:                                              ; preds = %.loopexit72, %.loopexit.split-lp, %204, %140, %103
  %.pn64 = phi { ptr, i32 } [ %.pn, %140 ], [ %205, %204 ], [ %104, %103 ], [ %lpad.loopexit, %.loopexit72 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @_ZNSt6vectorI4var2IdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %230

230:                                              ; preds = %229, %37
  %.pn66 = phi { ptr, i32 } [ %38, %37 ], [ %.pn64, %229 ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #7
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn66
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEntEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTS4var2IdE", !10, i64 0, !10, i64 8}
!10 = !{!"double", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!9, !10, i64 8}
!13 = !{i64 0, i64 8, !14, i64 8, i64 8, !14}
!14 = !{!10, !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !11, i64 0}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}


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