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

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::valarray" = type { i64, ptr }
%"class.std::valarray.8" = type { i64, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZTI4Elem = external constant ptr
@_ZTI6Throat = external constant ptr
@_ZTI9ElemModel = external dso_local constant { ptr, ptr }, align 8
@_ZTI7Polygon = external constant ptr
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26printDistanceMapStatisticsRKSt6vectorIPK4ElemSaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2) #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca ptr, align 8
  %11 = alloca { i64, i64 }, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca %"class.std::valarray", align 8
  %16 = alloca %"class.std::valarray.8", align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca ptr, align 8
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::valarray", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  store ptr @_ZSt3maxIdERKT_S2_S2_, ptr %10, align 8, !tbaa !5
  call void @_ZNSt8functionIFdddEEC2IPFRKdS4_S4_EvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNK4Elem3RRREv to i64), i64 0 }, ptr %11, align 8, !tbaa !11
  %36 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %37 = load i64, ptr %36, align 8
  %38 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %39 = load i64, ptr %38, align 8
  %40 = invoke noundef double @_Z10accumulateI4ElemS0_EdSt8functionIFdddEERKSt6vectorIPKT_SaIS7_EEMT0_KFdvEd(ptr noundef %9, ptr noundef nonnull align 8 dereferenceable(24) %35, i64 %37, i64 %39, double noundef 0.000000e+00)
          to label %41 unwind label %63

41:                                               ; preds = %3
  %42 = fadd double %40, 1.000000e-15
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  store double %42, ptr %8, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %43 = load double, ptr %8, align 8, !tbaa !12
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = sitofp i32 %44 to double
  %46 = fdiv double %43, %45
  %47 = fmul double %46, 0x3FF000000000002D
  store double %47, ptr %14, align 8, !tbaa !12
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  %49 = load double, ptr %14, align 8, !tbaa !12
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %48, double noundef %49)
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.7)
  %52 = load double, ptr %8, align 8, !tbaa !12
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %51, double noundef %52)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store double 0.000000e+00, ptr %17, align 8, !tbaa !12
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  call void @_ZNSt8valarrayIdEC2ERKdm(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, i64 noundef %56)
  invoke void @_ZNSt8valarrayIS_IdEEC2ERKS0_m(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef 2)
          to label %57 unwind label %67

57:                                               ; preds = %41
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %83, %57
  %59 = load i32, ptr %18, align 4, !tbaa !9
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %71, label %62

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  br label %86

63:                                               ; preds = %3
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %12, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %13, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %483

67:                                               ; preds = %41
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %12, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %13, align 4
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #9
  br label %482

71:                                               ; preds = %58
  %72 = load double, ptr %14, align 8, !tbaa !12
  %73 = fdiv double %72, 2.000000e+00
  %74 = fadd double 0.000000e+00, %73
  %75 = load i32, ptr %18, align 4, !tbaa !9
  %76 = sitofp i32 %75 to double
  %77 = load double, ptr %14, align 8, !tbaa !12
  %78 = call double @llvm.fmuladd.f64(double %76, double %77, double %74)
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef 0) #9
  %80 = load i32, ptr %18, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %79, i64 noundef %81) #9
  store double %78, ptr %82, align 8, !tbaa !12
  br label %83

83:                                               ; preds = %71
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %18, align 4, !tbaa !9
  br label %58, !llvm.loop !14

86:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %87 = load i32, ptr %6, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  store i64 %88, ptr %19, align 8, !tbaa !16
  br label %89

89:                                               ; preds = %440, %86
  %90 = load i64, ptr %19, align 8, !tbaa !16
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #9
  %93 = icmp ult i64 %90, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %89
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %444

95:                                               ; preds = %89
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load i64, ptr %19, align 8, !tbaa !16
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %97) #9
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = invoke noundef i32 @_ZNK4Elem6nCnctsEv(ptr noundef nonnull align 8 dereferenceable(408) %99)
          to label %101 unwind label %111

101:                                              ; preds = %95
  %102 = icmp eq i32 %100, 2
  br i1 %102, label %103, label %439

103:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load i64, ptr %19, align 8, !tbaa !16
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %104, i64 noundef %105) #9
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = icmp eq ptr %107, null
  br i1 %108, label %115, label %109

109:                                              ; preds = %103
  %110 = call ptr @__dynamic_cast(ptr %107, ptr @_ZTI4Elem, ptr @_ZTI6Throat, i64 0) #9
  br label %116

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

115:                                              ; preds = %103
  br label %116

116:                                              ; preds = %115, %109
  %117 = phi ptr [ %110, %109 ], [ null, %115 ]
  store ptr %117, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = load i64, ptr %19, align 8, !tbaa !16
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %119) #9
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %121)
          to label %123 unwind label %127

123:                                              ; preds = %116
  %124 = icmp eq ptr %122, null
  br i1 %124, label %131, label %125

125:                                              ; preds = %123
  %126 = call ptr @__dynamic_cast(ptr %122, ptr @_ZTI9ElemModel, ptr @_ZTI7Polygon, i64 0) #9
  br label %132

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

131:                                              ; preds = %123
  br label %132

132:                                              ; preds = %131, %125
  %133 = phi ptr [ %126, %125 ], [ null, %131 ]
  store ptr %133, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %134 = load ptr, ptr %21, align 8, !tbaa !5
  %135 = invoke noundef double @_ZNK4Elem3RRREv(ptr noundef nonnull align 8 dereferenceable(408) %134)
          to label %136 unwind label %144

136:                                              ; preds = %132
  store double %135, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %137 = load double, ptr %14, align 8, !tbaa !12
  %138 = fmul double 5.000000e-01, %137
  store double %138, ptr %24, align 8, !tbaa !12
  br label %139

139:                                              ; preds = %221, %136
  %140 = load double, ptr %24, align 8, !tbaa !12
  %141 = load double, ptr %23, align 8, !tbaa !12
  %142 = fcmp olt double %140, %141
  br i1 %142, label %148, label %143

143:                                              ; preds = %139
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %226

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

148:                                              ; preds = %139
  %149 = load ptr, ptr %22, align 8, !tbaa !5
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %200

151:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %191, %151
  %153 = load i32, ptr %25, align 4, !tbaa !9
  %154 = load ptr, ptr %22, align 8, !tbaa !5
  %155 = load ptr, ptr %154, align 8, !tbaa !18
  %156 = getelementptr inbounds ptr, ptr %155, i64 24
  %157 = load ptr, ptr %156, align 8
  %158 = invoke noundef i32 %157(ptr noundef nonnull align 8 dereferenceable(248) %154)
          to label %159 unwind label %162

159:                                              ; preds = %152
  %160 = icmp slt i32 %153, %158
  br i1 %160, label %166, label %161

161:                                              ; preds = %159
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %199

162:                                              ; preds = %166, %152
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %12, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %13, align 4
  br label %198

166:                                              ; preds = %159
  %167 = load double, ptr %23, align 8, !tbaa !12
  %168 = load double, ptr %24, align 8, !tbaa !12
  %169 = fsub double %167, %168
  %170 = load ptr, ptr %22, align 8, !tbaa !5
  %171 = load i32, ptr %25, align 4, !tbaa !9
  %172 = invoke noundef double @_ZNK7Polygon16cornerHalfAnglesEi(ptr noundef nonnull align 8 dereferenceable(248) %170, i32 noundef %171)
          to label %173 unwind label %162

173:                                              ; preds = %166
  %174 = call double @tan(double noundef %172) #9
  %175 = fdiv double %169, %174
  %176 = fmul double 2.000000e+00, %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  store double 0.000000e+00, ptr %26, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %177 = load ptr, ptr %21, align 8, !tbaa !5
  %178 = invoke noundef double @_ZNK6Throat12throatLengthEv(ptr noundef nonnull align 8 dereferenceable(456) %177)
          to label %179 unwind label %194

179:                                              ; preds = %173
  store double %178, ptr %27, align 8, !tbaa !12
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %181 unwind label %194

181:                                              ; preds = %179
  %182 = load double, ptr %180, align 8, !tbaa !12
  %183 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef 1) #9
  %184 = load double, ptr %24, align 8, !tbaa !12
  %185 = load double, ptr %14, align 8, !tbaa !12
  %186 = fdiv double %184, %185
  %187 = fptoui double %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %183, i64 noundef %187) #9
  %189 = load double, ptr %188, align 8, !tbaa !12
  %190 = call double @llvm.fmuladd.f64(double %176, double %182, double %189)
  store double %190, ptr %188, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %191

191:                                              ; preds = %181
  %192 = load i32, ptr %25, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %25, align 4, !tbaa !9
  br label %152, !llvm.loop !20

194:                                              ; preds = %179, %173
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %12, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %198

198:                                              ; preds = %194, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %225

199:                                              ; preds = %161
  br label %220

200:                                              ; preds = %148
  %201 = load double, ptr %23, align 8, !tbaa !12
  %202 = load double, ptr %24, align 8, !tbaa !12
  %203 = fsub double %201, %202
  %204 = fmul double 0x401921FB54442D11, %203
  %205 = load ptr, ptr %21, align 8, !tbaa !5
  %206 = invoke noundef double @_ZNK6Throat12throatLengthEv(ptr noundef nonnull align 8 dereferenceable(456) %205)
          to label %207 unwind label %216

207:                                              ; preds = %200
  %208 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef 1) #9
  %209 = load double, ptr %24, align 8, !tbaa !12
  %210 = load double, ptr %14, align 8, !tbaa !12
  %211 = fdiv double %209, %210
  %212 = fptoui double %211 to i64
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %208, i64 noundef %212) #9
  %214 = load double, ptr %213, align 8, !tbaa !12
  %215 = call double @llvm.fmuladd.f64(double %204, double %206, double %214)
  store double %215, ptr %213, align 8, !tbaa !12
  br label %220

216:                                              ; preds = %200
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %12, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %13, align 4
  br label %225

220:                                              ; preds = %207, %199
  br label %221

221:                                              ; preds = %220
  %222 = load double, ptr %14, align 8, !tbaa !12
  %223 = load double, ptr %24, align 8, !tbaa !12
  %224 = fadd double %223, %222
  store double %224, ptr %24, align 8, !tbaa !12
  br label %139, !llvm.loop !21

225:                                              ; preds = %216, %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %437

226:                                              ; preds = %143
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = load i64, ptr %19, align 8, !tbaa !16
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %227, i64 noundef %228) #9
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = invoke noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %230, i32 noundef 0)
          to label %232 unwind label %144

232:                                              ; preds = %226
  %233 = invoke noundef double @_ZNK4Elem3RRREv(ptr noundef nonnull align 8 dereferenceable(408) %231)
          to label %234 unwind label %144

234:                                              ; preds = %232
  store double %233, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = load i64, ptr %19, align 8, !tbaa !16
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %236) #9
  %238 = load ptr, ptr %237, align 8, !tbaa !5
  %239 = invoke noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %238, i32 noundef 0)
          to label %240 unwind label %246

240:                                              ; preds = %234
  %241 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %239)
          to label %242 unwind label %246

242:                                              ; preds = %240
  %243 = icmp eq ptr %241, null
  br i1 %243, label %250, label %244

244:                                              ; preds = %242
  %245 = call ptr @__dynamic_cast(ptr %241, ptr @_ZTI9ElemModel, ptr @_ZTI7Polygon, i64 0) #9
  br label %251

246:                                              ; preds = %336, %330, %240, %234
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %12, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %13, align 4
  br label %436

250:                                              ; preds = %242
  br label %251

251:                                              ; preds = %250, %244
  %252 = phi ptr [ %245, %244 ], [ null, %250 ]
  store ptr %252, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %253 = load double, ptr %14, align 8, !tbaa !12
  %254 = fmul double 5.000000e-01, %253
  store double %254, ptr %29, align 8, !tbaa !12
  br label %255

255:                                              ; preds = %325, %251
  %256 = load double, ptr %29, align 8, !tbaa !12
  %257 = load double, ptr %23, align 8, !tbaa !12
  %258 = fcmp olt double %256, %257
  br i1 %258, label %260, label %259

259:                                              ; preds = %255
  store i32 14, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %330

260:                                              ; preds = %255
  %261 = load ptr, ptr %28, align 8, !tbaa !5
  %262 = icmp ne ptr %261, null
  br i1 %262, label %263, label %304

263:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %300, %263
  %265 = load i32, ptr %30, align 4, !tbaa !9
  %266 = load ptr, ptr %28, align 8, !tbaa !5
  %267 = load ptr, ptr %266, align 8, !tbaa !18
  %268 = getelementptr inbounds ptr, ptr %267, i64 24
  %269 = load ptr, ptr %268, align 8
  %270 = invoke noundef i32 %269(ptr noundef nonnull align 8 dereferenceable(248) %266)
          to label %271 unwind label %274

271:                                              ; preds = %264
  %272 = icmp slt i32 %265, %270
  br i1 %272, label %278, label %273

273:                                              ; preds = %271
  store i32 17, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %303

274:                                              ; preds = %285, %278, %264
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %12, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %329

278:                                              ; preds = %271
  %279 = load double, ptr %23, align 8, !tbaa !12
  %280 = load double, ptr %29, align 8, !tbaa !12
  %281 = fsub double %279, %280
  %282 = load ptr, ptr %28, align 8, !tbaa !5
  %283 = load i32, ptr %30, align 4, !tbaa !9
  %284 = invoke noundef double @_ZNK7Polygon16cornerHalfAnglesEi(ptr noundef nonnull align 8 dereferenceable(248) %282, i32 noundef %283)
          to label %285 unwind label %274

285:                                              ; preds = %278
  %286 = call double @tan(double noundef %284) #9
  %287 = fdiv double %281, %286
  %288 = fmul double 2.000000e+00, %287
  %289 = load ptr, ptr %21, align 8, !tbaa !5
  %290 = invoke noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456) %289, i32 noundef 0)
          to label %291 unwind label %274

291:                                              ; preds = %285
  %292 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef 1) #9
  %293 = load double, ptr %29, align 8, !tbaa !12
  %294 = load double, ptr %14, align 8, !tbaa !12
  %295 = fdiv double %293, %294
  %296 = fptoui double %295 to i64
  %297 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %292, i64 noundef %296) #9
  %298 = load double, ptr %297, align 8, !tbaa !12
  %299 = call double @llvm.fmuladd.f64(double %288, double %290, double %298)
  store double %299, ptr %297, align 8, !tbaa !12
  br label %300

300:                                              ; preds = %291
  %301 = load i32, ptr %30, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %30, align 4, !tbaa !9
  br label %264, !llvm.loop !22

303:                                              ; preds = %273
  br label %324

304:                                              ; preds = %260
  %305 = load double, ptr %23, align 8, !tbaa !12
  %306 = load double, ptr %29, align 8, !tbaa !12
  %307 = fsub double %305, %306
  %308 = fmul double 0x401921FB54442D11, %307
  %309 = load ptr, ptr %21, align 8, !tbaa !5
  %310 = invoke noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456) %309, i32 noundef 0)
          to label %311 unwind label %320

311:                                              ; preds = %304
  %312 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef 1) #9
  %313 = load double, ptr %29, align 8, !tbaa !12
  %314 = load double, ptr %14, align 8, !tbaa !12
  %315 = fdiv double %313, %314
  %316 = fptoui double %315 to i64
  %317 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %312, i64 noundef %316) #9
  %318 = load double, ptr %317, align 8, !tbaa !12
  %319 = call double @llvm.fmuladd.f64(double %308, double %310, double %318)
  store double %319, ptr %317, align 8, !tbaa !12
  br label %324

320:                                              ; preds = %304
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %12, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %13, align 4
  br label %329

324:                                              ; preds = %311, %303
  br label %325

325:                                              ; preds = %324
  %326 = load double, ptr %14, align 8, !tbaa !12
  %327 = load double, ptr %29, align 8, !tbaa !12
  %328 = fadd double %327, %326
  store double %328, ptr %29, align 8, !tbaa !12
  br label %255, !llvm.loop !23

329:                                              ; preds = %320, %274
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %436

330:                                              ; preds = %259
  %331 = load ptr, ptr %4, align 8, !tbaa !5
  %332 = load i64, ptr %19, align 8, !tbaa !16
  %333 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %331, i64 noundef %332) #9
  %334 = load ptr, ptr %333, align 8, !tbaa !5
  %335 = invoke noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %334, i32 noundef 1)
          to label %336 unwind label %246

336:                                              ; preds = %330
  %337 = invoke noundef double @_ZNK4Elem3RRREv(ptr noundef nonnull align 8 dereferenceable(408) %335)
          to label %338 unwind label %246

338:                                              ; preds = %336
  store double %337, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %339 = load ptr, ptr %4, align 8, !tbaa !5
  %340 = load i64, ptr %19, align 8, !tbaa !16
  %341 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %339, i64 noundef %340) #9
  %342 = load ptr, ptr %341, align 8, !tbaa !5
  %343 = invoke noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %342, i32 noundef 1)
          to label %344 unwind label %350

344:                                              ; preds = %338
  %345 = invoke noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %343)
          to label %346 unwind label %350

346:                                              ; preds = %344
  %347 = icmp eq ptr %345, null
  br i1 %347, label %354, label %348

348:                                              ; preds = %346
  %349 = call ptr @__dynamic_cast(ptr %345, ptr @_ZTI9ElemModel, ptr @_ZTI7Polygon, i64 0) #9
  br label %355

350:                                              ; preds = %344, %338
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %12, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %13, align 4
  br label %435

354:                                              ; preds = %346
  br label %355

355:                                              ; preds = %354, %348
  %356 = phi ptr [ %349, %348 ], [ null, %354 ]
  store ptr %356, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  %357 = load double, ptr %14, align 8, !tbaa !12
  %358 = fmul double 5.000000e-01, %357
  store double %358, ptr %32, align 8, !tbaa !12
  br label %359

359:                                              ; preds = %429, %355
  %360 = load double, ptr %32, align 8, !tbaa !12
  %361 = load double, ptr %23, align 8, !tbaa !12
  %362 = fcmp olt double %360, %361
  br i1 %362, label %364, label %363

363:                                              ; preds = %359
  store i32 20, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %434

364:                                              ; preds = %359
  %365 = load ptr, ptr %31, align 8, !tbaa !5
  %366 = icmp ne ptr %365, null
  br i1 %366, label %367, label %408

367:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %368

368:                                              ; preds = %404, %367
  %369 = load i32, ptr %33, align 4, !tbaa !9
  %370 = load ptr, ptr %31, align 8, !tbaa !5
  %371 = load ptr, ptr %370, align 8, !tbaa !18
  %372 = getelementptr inbounds ptr, ptr %371, i64 24
  %373 = load ptr, ptr %372, align 8
  %374 = invoke noundef i32 %373(ptr noundef nonnull align 8 dereferenceable(248) %370)
          to label %375 unwind label %378

375:                                              ; preds = %368
  %376 = icmp slt i32 %369, %374
  br i1 %376, label %382, label %377

377:                                              ; preds = %375
  store i32 23, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %407

378:                                              ; preds = %389, %382, %368
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %12, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %433

382:                                              ; preds = %375
  %383 = load double, ptr %23, align 8, !tbaa !12
  %384 = load double, ptr %32, align 8, !tbaa !12
  %385 = fsub double %383, %384
  %386 = load ptr, ptr %31, align 8, !tbaa !5
  %387 = load i32, ptr %33, align 4, !tbaa !9
  %388 = invoke noundef double @_ZNK7Polygon16cornerHalfAnglesEi(ptr noundef nonnull align 8 dereferenceable(248) %386, i32 noundef %387)
          to label %389 unwind label %378

389:                                              ; preds = %382
  %390 = call double @tan(double noundef %388) #9
  %391 = fdiv double %385, %390
  %392 = fmul double 2.000000e+00, %391
  %393 = load ptr, ptr %21, align 8, !tbaa !5
  %394 = invoke noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456) %393, i32 noundef 1)
          to label %395 unwind label %378

395:                                              ; preds = %389
  %396 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef 1) #9
  %397 = load double, ptr %32, align 8, !tbaa !12
  %398 = load double, ptr %14, align 8, !tbaa !12
  %399 = fdiv double %397, %398
  %400 = fptoui double %399 to i64
  %401 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %396, i64 noundef %400) #9
  %402 = load double, ptr %401, align 8, !tbaa !12
  %403 = call double @llvm.fmuladd.f64(double %392, double %394, double %402)
  store double %403, ptr %401, align 8, !tbaa !12
  br label %404

404:                                              ; preds = %395
  %405 = load i32, ptr %33, align 4, !tbaa !9
  %406 = add nsw i32 %405, 1
  store i32 %406, ptr %33, align 4, !tbaa !9
  br label %368, !llvm.loop !24

407:                                              ; preds = %377
  br label %428

408:                                              ; preds = %364
  %409 = load double, ptr %23, align 8, !tbaa !12
  %410 = load double, ptr %32, align 8, !tbaa !12
  %411 = fsub double %409, %410
  %412 = fmul double 0x401921FB54442D11, %411
  %413 = load ptr, ptr %21, align 8, !tbaa !5
  %414 = invoke noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456) %413, i32 noundef 1)
          to label %415 unwind label %424

415:                                              ; preds = %408
  %416 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef 1) #9
  %417 = load double, ptr %32, align 8, !tbaa !12
  %418 = load double, ptr %14, align 8, !tbaa !12
  %419 = fdiv double %417, %418
  %420 = fptoui double %419 to i64
  %421 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %416, i64 noundef %420) #9
  %422 = load double, ptr %421, align 8, !tbaa !12
  %423 = call double @llvm.fmuladd.f64(double %412, double %414, double %422)
  store double %423, ptr %421, align 8, !tbaa !12
  br label %428

424:                                              ; preds = %408
  %425 = landingpad { ptr, i32 }
          cleanup
  %426 = extractvalue { ptr, i32 } %425, 0
  store ptr %426, ptr %12, align 8
  %427 = extractvalue { ptr, i32 } %425, 1
  store i32 %427, ptr %13, align 4
  br label %433

428:                                              ; preds = %415, %407
  br label %429

429:                                              ; preds = %428
  %430 = load double, ptr %14, align 8, !tbaa !12
  %431 = load double, ptr %32, align 8, !tbaa !12
  %432 = fadd double %431, %430
  store double %432, ptr %32, align 8, !tbaa !12
  br label %359, !llvm.loop !25

433:                                              ; preds = %424, %378
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %435

434:                                              ; preds = %363
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %439

435:                                              ; preds = %433, %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %436

436:                                              ; preds = %435, %329, %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %437

437:                                              ; preds = %436, %225, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %438

438:                                              ; preds = %437, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  br label %443

439:                                              ; preds = %434, %101
  br label %440

440:                                              ; preds = %439
  %441 = load i64, ptr %19, align 8, !tbaa !16
  %442 = add i64 %441, 1
  store i64 %442, ptr %19, align 8, !tbaa !16
  br label %89, !llvm.loop !26

443:                                              ; preds = %438, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %481

444:                                              ; preds = %94
  %445 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.8)
          to label %446 unwind label %468

446:                                              ; preds = %444
  %447 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %445, ptr noundef @.str.9)
          to label %448 unwind label %468

448:                                              ; preds = %446
  %449 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %447, ptr noundef @.str.10)
          to label %450 unwind label %468

450:                                              ; preds = %448
  %451 = load double, ptr %8, align 8, !tbaa !12
  %452 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %449, double noundef %451)
          to label %453 unwind label %468

453:                                              ; preds = %450
  %454 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %452, ptr noundef @.str.11)
          to label %455 unwind label %468

455:                                              ; preds = %453
  %456 = load double, ptr %14, align 8, !tbaa !12
  %457 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %454, double noundef %456)
          to label %458 unwind label %468

458:                                              ; preds = %455
  %459 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %457, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %460 unwind label %468

460:                                              ; preds = %458
  %461 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
          to label %462 unwind label %468

462:                                              ; preds = %460
  %463 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %461, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %464 unwind label %468

464:                                              ; preds = %462
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  invoke void @_Z9transposeIdESt8valarrayIS0_IT_EERKS3_(ptr dead_on_unwind writable sret(%"class.std::valarray") align 8 %34, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %465 unwind label %472

465:                                              ; preds = %464
  %466 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsISt8valarrayIdEERSoS2_RKS0_IT_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %467 unwind label %476

467:                                              ; preds = %465
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  ret void

468:                                              ; preds = %462, %460, %458, %455, %453, %450, %448, %446, %444
  %469 = landingpad { ptr, i32 }
          cleanup
  %470 = extractvalue { ptr, i32 } %469, 0
  store ptr %470, ptr %12, align 8
  %471 = extractvalue { ptr, i32 } %469, 1
  store i32 %471, ptr %13, align 4
  br label %481

472:                                              ; preds = %464
  %473 = landingpad { ptr, i32 }
          cleanup
  %474 = extractvalue { ptr, i32 } %473, 0
  store ptr %474, ptr %12, align 8
  %475 = extractvalue { ptr, i32 } %473, 1
  store i32 %475, ptr %13, align 4
  br label %480

476:                                              ; preds = %465
  %477 = landingpad { ptr, i32 }
          cleanup
  %478 = extractvalue { ptr, i32 } %477, 0
  store ptr %478, ptr %12, align 8
  %479 = extractvalue { ptr, i32 } %477, 1
  store i32 %479, ptr %13, align 4
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #9
  br label %480

480:                                              ; preds = %476, %472
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  br label %481

481:                                              ; preds = %480, %468, %443
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #9
  br label %482

482:                                              ; preds = %481, %67
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %483

483:                                              ; preds = %482, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %484

484:                                              ; preds = %483
  %485 = load ptr, ptr %12, align 8
  %486 = load i32, ptr %13, align 4
  %487 = insertvalue { ptr, i32 } poison, ptr %485, 0
  %488 = insertvalue { ptr, i32 } %487, i32 %486, 1
  resume { ptr, i32 } %488
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z10accumulateI4ElemS0_EdSt8functionIFdddEERKSt6vectorIPKT_SaIS7_EEMT0_KFdvEd(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), i64, i64, double noundef) #4

; 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)) #5

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

declare noundef double @_ZNK4Elem3RRREv(ptr noundef nonnull align 8 dereferenceable(408)) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIdEC2ERKdm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIS_IdEEC2ERKS0_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7Polygon16cornerHalfAnglesEi(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsISt8valarrayIdEERSoS2_RKS0_IT_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9transposeIdESt8valarrayIS0_IT_EERKS3_(ptr dead_on_unwind noalias writable sret(%"class.std::valarray") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

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

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

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


; 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::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::valarray" = type { i64, ptr }
%"class.std::valarray.8" = type { i64, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZTI4Elem = external constant ptr
@_ZTI6Throat = external constant ptr
@_ZTI9ElemModel = external dso_local constant { ptr, ptr }, align 8
@_ZTI7Polygon = external constant ptr
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z26printDistanceMapStatisticsRKSt6vectorIPK4ElemSaIS2_EEii(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::function", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::valarray", align 8
  %7 = alloca %"class.std::valarray.8", align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca %"class.std::valarray", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store ptr @_ZSt3maxIdERKT_S2_S2_, ptr %5, align 8, !tbaa !5
  call void @_ZNSt8functionIFdddEEC2IPFRKdS4_S4_EvEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  %12 = invoke noundef double @_Z10accumulateI4ElemS0_EdSt8functionIFdddEERKSt6vectorIPKT_SaIS7_EEMT0_KFdvEd(ptr noundef nonnull %4, ptr noundef nonnull align 8 dereferenceable(24) %0, i64 ptrtoint (ptr @_ZNK4Elem3RRREv to i64), i64 0, double noundef 0.000000e+00)
          to label %13 unwind label %29

13:                                               ; preds = %3
  %14 = fadd double %12, 1.000000e-15
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  %15 = fmul double %14, 3.125000e-02
  %16 = fmul double %15, 0x3FF000000000002D
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %17, double noundef %16)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.7)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %19, double noundef %14)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @_ZNSt8valarrayIdEC2ERKdm(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 32)
  invoke void @_ZNSt8valarrayIS_IdEEC2ERKS0_m(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 2)
          to label %22 unwind label %31

22:                                               ; preds = %13
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  %23 = fmul double %16, 5.000000e-01
  %24 = fadd double %23, 0.000000e+00
  br label %33

25:                                               ; preds = %33
  %26 = sext i32 %2 to i64
  %27 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %28 = icmp ugt i64 %27, %26
  br i1 %28, label %.lr.ph148, label %._crit_edge149

29:                                               ; preds = %3
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %237

31:                                               ; preds = %13
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  br label %236

33:                                               ; preds = %22, %33
  %indvars.iv = phi i64 [ 0, %22 ], [ %indvars.iv.next, %33 ]
  %34 = trunc nuw nsw i64 %indvars.iv to i32
  %35 = uitofp nneg i32 %34 to double
  %36 = call double @llvm.fmuladd.f64(double %35, double %16, double %24)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 0) #9
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %37, i64 noundef %indvars.iv) #9
  store double %36, ptr %38, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 32
  br i1 %exitcond.not, label %25, label %33, !llvm.loop !11

._crit_edge149:                                   ; preds = %.loopexit136, %25
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.8)
          to label %208 unwind label %228

.lr.ph148:                                        ; preds = %25, %.loopexit136
  %.0111146 = phi i64 [ %205, %.loopexit136 ], [ %26, %25 ]
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0111146) #9
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = call noundef i32 @_ZNK4Elem6nCnctsEv(ptr noundef nonnull align 8 dereferenceable(408) %41)
  %43 = icmp eq i32 %42, 2
  br i1 %43, label %44, label %.loopexit136

44:                                               ; preds = %.lr.ph148
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0111146) #9
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %50, label %48

48:                                               ; preds = %44
  %49 = call ptr @__dynamic_cast(ptr nonnull %46, ptr nonnull @_ZTI4Elem, ptr nonnull @_ZTI6Throat, i64 0) #9
  br label %50

50:                                               ; preds = %44, %48
  %51 = phi ptr [ %49, %48 ], [ null, %44 ]
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0111146) #9
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %53)
  %55 = icmp eq ptr %54, null
  br i1 %55, label %58, label %56

56:                                               ; preds = %50
  %57 = call ptr @__dynamic_cast(ptr nonnull %54, ptr nonnull @_ZTI9ElemModel, ptr nonnull @_ZTI7Polygon, i64 0) #9
  br label %58

58:                                               ; preds = %50, %56
  %59 = phi ptr [ %57, %56 ], [ null, %50 ]
  %60 = invoke noundef double @_ZNK4Elem3RRREv(ptr noundef nonnull align 8 dereferenceable(408) %51)
          to label %61 unwind label %78

61:                                               ; preds = %58
  %62 = fcmp olt double %23, %60
  br i1 %62, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %61
  %.not126 = icmp eq ptr %59, null
  br i1 %.not126, label %.lr.ph.split.us, label %.preheader134

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %.0109138.us = phi double [ %72, %.lr.ph.split.us ], [ %23, %.lr.ph ]
  %63 = fsub double %60, %.0109138.us
  %64 = fmul double %63, 0x401921FB54442D11
  %65 = call noundef double @_ZNK6Throat12throatLengthEv(ptr noundef nonnull align 8 dereferenceable(456) %51)
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 1) #9
  %67 = fdiv double %.0109138.us, %16
  %68 = fptoui double %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %66, i64 noundef %68) #9
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = call double @llvm.fmuladd.f64(double %64, double %65, double %70)
  store double %71, ptr %69, align 8, !tbaa !9
  %72 = fadd double %16, %.0109138.us
  %73 = fcmp olt double %72, %60
  br i1 %73, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.loopexit135, %.lr.ph.split.us, %61
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0111146) #9
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = call noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %75, i32 noundef 0)
  %77 = invoke noundef double @_ZNK4Elem3RRREv(ptr noundef nonnull align 8 dereferenceable(408) %76)
          to label %107 unwind label %78

78:                                               ; preds = %._crit_edge, %58
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %235

.preheader134:                                    ; preds = %.lr.ph, %.loopexit135
  %.0109138 = phi double [ %105, %.loopexit135 ], [ %23, %.lr.ph ]
  %80 = fsub double %60, %.0109138
  %81 = fdiv double %.0109138, %16
  %82 = fptoui double %81 to i64
  br label %83

83:                                               ; preds = %.preheader134, %92
  %.0108 = phi i32 [ %104, %92 ], [ 0, %.preheader134 ]
  %84 = load ptr, ptr %59, align 8, !tbaa !14
  %85 = getelementptr inbounds i8, ptr %84, i64 192
  %86 = load ptr, ptr %85, align 8
  %87 = invoke noundef i32 %86(ptr noundef nonnull align 8 dereferenceable(248) %59)
          to label %88 unwind label %90

88:                                               ; preds = %83
  %89 = icmp slt i32 %.0108, %87
  br i1 %89, label %92, label %.loopexit135

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

92:                                               ; preds = %88
  %93 = call noundef double @_ZNK7Polygon16cornerHalfAnglesEi(ptr noundef nonnull align 8 dereferenceable(248) %59, i32 noundef %.0108)
  %94 = call double @tan(double noundef %93) #9
  %95 = fdiv double %80, %94
  %96 = fmul double %95, 2.000000e+00
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %97 = call noundef double @_ZNK6Throat12throatLengthEv(ptr noundef nonnull align 8 dereferenceable(456) %51)
  store double %97, ptr %10, align 8, !tbaa !9
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 1) #9
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %100, i64 noundef %82) #9
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = call double @llvm.fmuladd.f64(double %96, double %99, double %102)
  store double %103, ptr %101, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  %104 = add nuw nsw i32 %.0108, 1
  br label %83, !llvm.loop !16

.loopexit135:                                     ; preds = %88
  %105 = fadd double %16, %.0109138
  %106 = fcmp olt double %105, %60
  br i1 %106, label %.preheader134, label %._crit_edge, !llvm.loop !13

107:                                              ; preds = %._crit_edge
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0111146) #9
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = call noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %109, i32 noundef 0)
  %111 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %110)
  %112 = icmp eq ptr %111, null
  br i1 %112, label %.thread, label %115

113:                                              ; preds = %._crit_edge142
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %235

115:                                              ; preds = %107
  %116 = call ptr @__dynamic_cast(ptr nonnull %111, ptr nonnull @_ZTI9ElemModel, ptr nonnull @_ZTI7Polygon, i64 0) #9
  %117 = fcmp olt double %23, %77
  br i1 %117, label %.lr.ph141, label %._crit_edge142

.thread:                                          ; preds = %107
  %118 = fcmp olt double %23, %77
  br i1 %118, label %.lr.ph141.split.us.preheader, label %._crit_edge142

.lr.ph141:                                        ; preds = %115
  %.not123 = icmp eq ptr %116, null
  br i1 %.not123, label %.lr.ph141.split.us.preheader, label %.preheader132

.lr.ph141.split.us.preheader:                     ; preds = %.thread, %.lr.ph141
  br label %.lr.ph141.split.us

.lr.ph141.split.us:                               ; preds = %.lr.ph141.split.us.preheader, %.lr.ph141.split.us
  %.0101139.us = phi double [ %128, %.lr.ph141.split.us ], [ %23, %.lr.ph141.split.us.preheader ]
  %119 = fsub double %77, %.0101139.us
  %120 = fmul double %119, 0x401921FB54442D11
  %121 = call noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456) %51, i32 noundef 0)
  %122 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 1) #9
  %123 = fdiv double %.0101139.us, %16
  %124 = fptoui double %123 to i64
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %122, i64 noundef %124) #9
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = call double @llvm.fmuladd.f64(double %120, double %121, double %126)
  store double %127, ptr %125, align 8, !tbaa !9
  %128 = fadd double %16, %.0101139.us
  %129 = fcmp olt double %128, %77
  br i1 %129, label %.lr.ph141.split.us, label %._crit_edge142, !llvm.loop !17

._crit_edge142:                                   ; preds = %.loopexit133, %.lr.ph141.split.us, %.thread, %115
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0111146) #9
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = call noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %131, i32 noundef 1)
  %133 = invoke noundef double @_ZNK4Elem3RRREv(ptr noundef nonnull align 8 dereferenceable(408) %132)
          to label %159 unwind label %113

.preheader132:                                    ; preds = %.lr.ph141, %.loopexit133
  %.0101139 = phi double [ %157, %.loopexit133 ], [ %23, %.lr.ph141 ]
  %134 = fsub double %77, %.0101139
  %135 = fdiv double %.0101139, %16
  %136 = fptoui double %135 to i64
  br label %137

137:                                              ; preds = %.preheader132, %146
  %.0100 = phi i32 [ %156, %146 ], [ 0, %.preheader132 ]
  %138 = load ptr, ptr %116, align 8, !tbaa !14
  %139 = getelementptr inbounds i8, ptr %138, i64 192
  %140 = load ptr, ptr %139, align 8
  %141 = invoke noundef i32 %140(ptr noundef nonnull align 8 dereferenceable(248) %116)
          to label %142 unwind label %144

142:                                              ; preds = %137
  %143 = icmp slt i32 %.0100, %141
  br i1 %143, label %146, label %.loopexit133

144:                                              ; preds = %137
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %235

146:                                              ; preds = %142
  %147 = call noundef double @_ZNK7Polygon16cornerHalfAnglesEi(ptr noundef nonnull align 8 dereferenceable(248) %116, i32 noundef %.0100)
  %148 = call double @tan(double noundef %147) #9
  %149 = fdiv double %134, %148
  %150 = fmul double %149, 2.000000e+00
  %151 = call noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456) %51, i32 noundef 0)
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 1) #9
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %152, i64 noundef %136) #9
  %154 = load double, ptr %153, align 8, !tbaa !9
  %155 = call double @llvm.fmuladd.f64(double %150, double %151, double %154)
  store double %155, ptr %153, align 8, !tbaa !9
  %156 = add nuw nsw i32 %.0100, 1
  br label %137, !llvm.loop !18

.loopexit133:                                     ; preds = %142
  %157 = fadd double %16, %.0101139
  %158 = fcmp olt double %157, %77
  br i1 %158, label %.preheader132, label %._crit_edge142, !llvm.loop !17

159:                                              ; preds = %._crit_edge142
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPK4ElemSaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0111146) #9
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = call noundef ptr @_ZNK4Elem4neibEi(ptr noundef nonnull align 8 dereferenceable(408) %161, i32 noundef 1)
  %163 = call noundef ptr @_ZNK4Elem5modelEv(ptr noundef nonnull align 8 dereferenceable(408) %162)
  %164 = icmp eq ptr %163, null
  br i1 %164, label %.thread155, label %165

165:                                              ; preds = %159
  %166 = call ptr @__dynamic_cast(ptr nonnull %163, ptr nonnull @_ZTI9ElemModel, ptr nonnull @_ZTI7Polygon, i64 0) #9
  %167 = fcmp olt double %23, %133
  br i1 %167, label %.lr.ph145, label %.loopexit136

.thread155:                                       ; preds = %159
  %168 = fcmp olt double %23, %133
  br i1 %168, label %.lr.ph145.split.us.preheader, label %.loopexit136

.lr.ph145:                                        ; preds = %165
  %.not = icmp eq ptr %166, null
  br i1 %.not, label %.lr.ph145.split.us.preheader, label %.preheader

.lr.ph145.split.us.preheader:                     ; preds = %.thread155, %.lr.ph145
  br label %.lr.ph145.split.us

.lr.ph145.split.us:                               ; preds = %.lr.ph145.split.us.preheader, %.lr.ph145.split.us
  %.098143.us = phi double [ %178, %.lr.ph145.split.us ], [ %23, %.lr.ph145.split.us.preheader ]
  %169 = fsub double %133, %.098143.us
  %170 = fmul double %169, 0x401921FB54442D11
  %171 = call noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456) %51, i32 noundef 1)
  %172 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 1) #9
  %173 = fdiv double %.098143.us, %16
  %174 = fptoui double %173 to i64
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %172, i64 noundef %174) #9
  %176 = load double, ptr %175, align 8, !tbaa !9
  %177 = call double @llvm.fmuladd.f64(double %170, double %171, double %176)
  store double %177, ptr %175, align 8, !tbaa !9
  %178 = fadd double %16, %.098143.us
  %179 = fcmp olt double %178, %133
  br i1 %179, label %.lr.ph145.split.us, label %.loopexit136, !llvm.loop !19

.preheader:                                       ; preds = %.lr.ph145, %.loopexit
  %.098143 = phi double [ %203, %.loopexit ], [ %23, %.lr.ph145 ]
  %180 = fsub double %133, %.098143
  %181 = fdiv double %.098143, %16
  %182 = fptoui double %181 to i64
  br label %183

183:                                              ; preds = %.preheader, %192
  %.0 = phi i32 [ %202, %192 ], [ 0, %.preheader ]
  %184 = load ptr, ptr %166, align 8, !tbaa !14
  %185 = getelementptr inbounds i8, ptr %184, i64 192
  %186 = load ptr, ptr %185, align 8
  %187 = invoke noundef i32 %186(ptr noundef nonnull align 8 dereferenceable(248) %166)
          to label %188 unwind label %190

188:                                              ; preds = %183
  %189 = icmp slt i32 %.0, %187
  br i1 %189, label %192, label %.loopexit

190:                                              ; preds = %183
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %235

192:                                              ; preds = %188
  %193 = call noundef double @_ZNK7Polygon16cornerHalfAnglesEi(ptr noundef nonnull align 8 dereferenceable(248) %166, i32 noundef %.0)
  %194 = call double @tan(double noundef %193) #9
  %195 = fdiv double %180, %194
  %196 = fmul double %195, 2.000000e+00
  %197 = call noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456) %51, i32 noundef 1)
  %198 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIS_IdEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef 1) #9
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %198, i64 noundef %182) #9
  %200 = load double, ptr %199, align 8, !tbaa !9
  %201 = call double @llvm.fmuladd.f64(double %196, double %197, double %200)
  store double %201, ptr %199, align 8, !tbaa !9
  %202 = add nuw nsw i32 %.0, 1
  br label %183, !llvm.loop !20

.loopexit:                                        ; preds = %188
  %203 = fadd double %16, %.098143
  %204 = fcmp olt double %203, %133
  br i1 %204, label %.preheader, label %.loopexit136, !llvm.loop !19

.loopexit136:                                     ; preds = %.loopexit, %.lr.ph145.split.us, %.thread155, %165, %.lr.ph148
  %205 = add nuw i64 %.0111146, 1
  %206 = call noundef i64 @_ZNKSt6vectorIPK4ElemSaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %207 = icmp ult i64 %205, %206
  br i1 %207, label %.lr.ph148, label %._crit_edge149, !llvm.loop !21

208:                                              ; preds = %._crit_edge149
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.9)
          to label %210 unwind label %228

210:                                              ; preds = %208
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef nonnull @.str.10)
          to label %212 unwind label %228

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %211, double noundef %14)
          to label %214 unwind label %228

214:                                              ; preds = %212
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %213, ptr noundef nonnull @.str.11)
          to label %216 unwind label %228

216:                                              ; preds = %214
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %215, double noundef %16)
          to label %218 unwind label %228

218:                                              ; preds = %216
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %220 unwind label %228

220:                                              ; preds = %218
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.12)
          to label %222 unwind label %228

222:                                              ; preds = %220
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %224 unwind label %228

224:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #9
  invoke void @_Z9transposeIdESt8valarrayIS0_IT_EERKS3_(ptr dead_on_unwind nonnull writable sret(%"class.std::valarray") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %225 unwind label %230

225:                                              ; preds = %224
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZlsISt8valarrayIdEERSoS2_RKS0_IT_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %227 unwind label %232

227:                                              ; preds = %225
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  ret void

228:                                              ; preds = %222, %220, %218, %216, %214, %212, %210, %208, %._crit_edge149
  %229 = landingpad { ptr, i32 }
          cleanup
  br label %235

230:                                              ; preds = %224
  %231 = landingpad { ptr, i32 }
          cleanup
  br label %234

232:                                              ; preds = %225
  %233 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #9
  br label %234

234:                                              ; preds = %232, %230
  %.pn = phi { ptr, i32 } [ %233, %232 ], [ %231, %230 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #9
  br label %235

235:                                              ; preds = %78, %90, %190, %144, %113, %234, %228
  %.pn127.pn = phi { ptr, i32 } [ %.pn, %234 ], [ %229, %228 ], [ %91, %90 ], [ %79, %78 ], [ %145, %144 ], [ %191, %190 ], [ %114, %113 ]
  call void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #9
  br label %236

236:                                              ; preds = %235, %31
  %.pn127.pn.pn = phi { ptr, i32 } [ %.pn127.pn, %235 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  br label %237

237:                                              ; preds = %236, %29
  %.pn127.pn.pn.pn = phi { ptr, i32 } [ %.pn127.pn.pn, %236 ], [ %30, %29 ]
  resume { ptr, i32 } %.pn127.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z10accumulateI4ElemS0_EdSt8functionIFdddEERKSt6vectorIPKT_SaIS7_EEMT0_KFdvEd(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), i64, i64, double noundef) local_unnamed_addr #4

; 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)) #5

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

declare noundef double @_ZNK4Elem3RRREv(ptr noundef nonnull align 8 dereferenceable(408)) #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIdEC2ERKdm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIS_IdEEC2ERKS0_m(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare ptr @__dynamic_cast(ptr, ptr, ptr, i64) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @tan(double noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7Polygon16cornerHalfAnglesEi(ptr noundef nonnull align 8 dereferenceable(248), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Throat12throatLengthEv(ptr noundef nonnull align 8 dereferenceable(456)) local_unnamed_addr #2 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 #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Throat10poreLengthEi(ptr noundef nonnull align 8 dereferenceable(456), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZlsISt8valarrayIdEERSoS2_RKS0_IT_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z9transposeIdESt8valarrayIS0_IT_EERKS3_(ptr dead_on_unwind noalias writable sret(%"class.std::valarray") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayIS_IdEED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

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

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}


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