; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnflow/polygon/polygonImb.ll (ZNK7Polygon20Pc_pistonType_ImbnwwEv)

; 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::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.VoidElem = type { %class.ElemModel, double, double, double, double }
%class.ElemModel = type { ptr, double, double, ptr, ptr, double, ptr, i8, i8, i8, i8, i32, double, double, double, double, double, double, double, %"struct.std::pair", %"struct.std::pair" }
%"struct.std::pair" = type { double, double }
%class.Polygon = type { %class.VoidElem, i32, %"class.std::vector.16", ptr, ptr, i16, i8, double }
%class.CornerApex = type { %class.Apex, ptr, double, double, double, ptr }
%class.Apex = type { ptr, i8, double, double, ptr, i32, double, double, double, double, i8, i8, i8, i8, %"struct.std::pair.0" }
%"struct.std::pair.0" = type { i32, double }
%class.LayerApex = type { %class.Apex, i32, ptr, double, ptr, double }

@_ZN9ElemModel2PIE = external constant double, align 8
@_ZN9ElemModel11INF_NEG_NUME = external constant double, align 8

; 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 dso_local noundef double @_ZNK7GNMData7sigmaOWEv(ptr noundef nonnull align 8 dereferenceable(984)) #1 align 2

; Function Attrs: nounwind
declare double @cos(double noundef) #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)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10CornerApex12cornerExistsEv(ptr noundef nonnull align 8 dereferenceable(144)) #5 align 2

; Function Attrs: nounwind
declare double @sin(double noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK7Polygon20Pc_pistonType_ImbnwwEv(ptr noundef nonnull align 8 dereferenceable(248) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca double, align 8
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca %"class.std::vector.16", align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %22 = load double, ptr @_ZN9ElemModel2PIE, align 8, !tbaa !9
  %23 = getelementptr inbounds %class.VoidElem, ptr %21, i32 0, i32 3
  %24 = load double, ptr %23, align 8, !tbaa !11
  %25 = fsub double %22, %24
  store double %25, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store double 0.000000e+00, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !17
  br label %26

26:                                               ; preds = %164, %1
  %27 = load i32, ptr %9, align 4, !tbaa !17
  %28 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !18
  %30 = icmp slt i32 %27, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %167

32:                                               ; preds = %26
  %33 = getelementptr inbounds %class.VoidElem, ptr %21, i32 0, i32 3
  %34 = load double, ptr %33, align 8, !tbaa !11
  %35 = load double, ptr @_ZN9ElemModel2PIE, align 8, !tbaa !9
  %36 = fdiv double %35, 2.000000e+00
  %37 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 2
  %38 = load i32, ptr %9, align 4, !tbaa !17
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #6
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = fadd double %36, %41
  %43 = fcmp ogt double %34, %42
  br i1 %43, label %44, label %163

44:                                               ; preds = %32
  %45 = load double, ptr %4, align 8, !tbaa !9
  %46 = call double @cos(double noundef %45) #6
  %47 = load double, ptr %4, align 8, !tbaa !9
  %48 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 2
  %49 = load i32, ptr %9, align 4, !tbaa !17
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50) #6
  %52 = load double, ptr %51, align 8, !tbaa !9
  %53 = fadd double %47, %52
  %54 = call double @cos(double noundef %53) #6
  %55 = fmul double %46, %54
  %56 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 2
  %57 = load i32, ptr %9, align 4, !tbaa !17
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %58) #6
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = call double @sin(double noundef %60) #6
  %62 = fdiv double %55, %61
  %63 = load double, ptr @_ZN9ElemModel2PIE, align 8, !tbaa !9
  %64 = fdiv double %63, 2.000000e+00
  %65 = load double, ptr %4, align 8, !tbaa !9
  %66 = fsub double %64, %65
  %67 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 2
  %68 = load i32, ptr %9, align 4, !tbaa !17
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %69) #6
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = fsub double %66, %71
  %73 = fsub double %62, %72
  %74 = load double, ptr %6, align 8, !tbaa !9
  %75 = fadd double %74, %73
  store double %75, ptr %6, align 8, !tbaa !9
  %76 = load double, ptr %4, align 8, !tbaa !9
  %77 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 2
  %78 = load i32, ptr %9, align 4, !tbaa !17
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %79) #6
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fadd double %76, %81
  %83 = call double @cos(double noundef %82) #6
  %84 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 2
  %85 = load i32, ptr %9, align 4, !tbaa !17
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #6
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = call double @sin(double noundef %88) #6
  %90 = fdiv double %83, %89
  %91 = load double, ptr %7, align 8, !tbaa !9
  %92 = fadd double %91, %90
  store double %92, ptr %7, align 8, !tbaa !9
  %93 = load double, ptr @_ZN9ElemModel2PIE, align 8, !tbaa !9
  %94 = fdiv double %93, 2.000000e+00
  %95 = load double, ptr %4, align 8, !tbaa !9
  %96 = fsub double %94, %95
  %97 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 2
  %98 = load i32, ptr %9, align 4, !tbaa !17
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #6
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = fsub double %96, %101
  %103 = load double, ptr %8, align 8, !tbaa !9
  %104 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %102, double %103)
  store double %104, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %105 = load double, ptr %6, align 8, !tbaa !9
  %106 = load double, ptr %7, align 8, !tbaa !9
  %107 = fmul double 2.000000e+00, %106
  %108 = load double, ptr %4, align 8, !tbaa !9
  %109 = call double @cos(double noundef %108) #6
  %110 = fneg double %107
  %111 = call double @llvm.fmuladd.f64(double %110, double %109, double %105)
  %112 = load double, ptr %8, align 8, !tbaa !9
  %113 = fadd double %111, %112
  store double %113, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %114 = getelementptr inbounds %class.VoidElem, ptr %21, i32 0, i32 1
  %115 = load double, ptr %114, align 8, !tbaa !25
  %116 = fmul double 4.000000e+00, %115
  %117 = load double, ptr %10, align 8, !tbaa !9
  %118 = fmul double %116, %117
  %119 = load double, ptr %4, align 8, !tbaa !9
  %120 = call double @cos(double noundef %119) #6
  %121 = load double, ptr %4, align 8, !tbaa !9
  %122 = call double @cos(double noundef %121) #6
  %123 = fmul double %120, %122
  %124 = fdiv double %118, %123
  %125 = fadd double 1.000000e+00, %124
  store double %125, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %126 = getelementptr inbounds %class.ElemModel, ptr %21, i32 0, i32 5
  %127 = load double, ptr %126, align 8, !tbaa !26
  %128 = load double, ptr %4, align 8, !tbaa !9
  %129 = call double @cos(double noundef %128) #6
  %130 = fmul double %127, %129
  %131 = load double, ptr %11, align 8, !tbaa !9
  %132 = call double @sqrt(double noundef %131) #6
  %133 = fsub double 1.000000e+00, %132
  %134 = fmul double %130, %133
  %135 = getelementptr inbounds %class.VoidElem, ptr %21, i32 0, i32 1
  %136 = load double, ptr %135, align 8, !tbaa !25
  %137 = fmul double 4.000000e+00, %136
  %138 = load double, ptr %10, align 8, !tbaa !9
  %139 = fmul double %137, %138
  %140 = fdiv double %134, %139
  store double %140, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %141 = getelementptr inbounds %class.ElemModel, ptr %21, i32 0, i32 5
  %142 = load double, ptr %141, align 8, !tbaa !26
  %143 = load double, ptr %4, align 8, !tbaa !9
  %144 = call double @cos(double noundef %143) #6
  %145 = fmul double %142, %144
  %146 = load double, ptr %11, align 8, !tbaa !9
  %147 = call double @sqrt(double noundef %146) #6
  %148 = fadd double 1.000000e+00, %147
  %149 = fmul double %145, %148
  %150 = getelementptr inbounds %class.VoidElem, ptr %21, i32 0, i32 1
  %151 = load double, ptr %150, align 8, !tbaa !25
  %152 = fmul double 4.000000e+00, %151
  %153 = load double, ptr %10, align 8, !tbaa !9
  %154 = fmul double %152, %153
  %155 = fdiv double %149, %154
  store double %155, ptr %13, align 8, !tbaa !9
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %157 unwind label %159

157:                                              ; preds = %44
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %156)
          to label %158 unwind label %159

158:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %163

159:                                              ; preds = %157, %44
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %14, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %253

163:                                              ; preds = %158, %32
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %9, align 4, !tbaa !17
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %9, align 4, !tbaa !17
  br label %26, !llvm.loop !27

167:                                              ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %168 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %169 = sub i64 %168, 1
  %170 = trunc i64 %169 to i32
  store i32 %170, ptr %16, align 4, !tbaa !17
  br label %171

171:                                              ; preds = %228, %167
  %172 = load i32, ptr %16, align 4, !tbaa !17
  %173 = icmp sge i32 %172, 0
  br i1 %173, label %175, label %174

174:                                              ; preds = %171
  store i32 5, ptr %17, align 4
  br label %232

175:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %176 = getelementptr inbounds %class.ElemModel, ptr %21, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !29
  %178 = invoke noundef double @_ZNK7GNMData7sigmaOWEv(ptr noundef nonnull align 8 dereferenceable(984) %177)
          to label %179 unwind label %202

179:                                              ; preds = %175
  store double %178, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %180 = load double, ptr %18, align 8, !tbaa !9
  %181 = load i32, ptr %16, align 4, !tbaa !17
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %182) #6
  %184 = load double, ptr %183, align 8, !tbaa !9
  %185 = fdiv double %180, %184
  store double %185, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %186 = load double, ptr @_ZN9ElemModel11INF_NEG_NUME, align 8, !tbaa !9
  store double %186, ptr %20, align 8, !tbaa !9
  %187 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 3
  %188 = load ptr, ptr %187, align 8, !tbaa !30
  %189 = load i32, ptr %16, align 4, !tbaa !17
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds %class.CornerApex, ptr %188, i64 %190
  %192 = invoke noundef zeroext i1 @_ZNK10CornerApex12cornerExistsEv(ptr noundef nonnull align 8 dereferenceable(144) %191)
          to label %193 unwind label %206

193:                                              ; preds = %179
  br i1 %192, label %194, label %210

194:                                              ; preds = %193
  %195 = getelementptr inbounds %class.Polygon, ptr %21, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !31
  %197 = load i32, ptr %16, align 4, !tbaa !17
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %class.LayerApex, ptr %196, i64 %198
  %200 = invoke noundef double @_ZNK4Apex7entryPcEv(ptr noundef nonnull align 8 dereferenceable(104) %199)
          to label %201 unwind label %206

201:                                              ; preds = %194
  store double %200, ptr %20, align 8, !tbaa !9
  br label %210

202:                                              ; preds = %175
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %14, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %15, align 4
  br label %231

206:                                              ; preds = %214, %194, %179
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %14, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %231

210:                                              ; preds = %201, %193
  %211 = load double, ptr %19, align 8, !tbaa !9
  %212 = load double, ptr %20, align 8, !tbaa !9
  %213 = fcmp ogt double %211, %212
  br i1 %213, label %214, label %224

214:                                              ; preds = %210
  %215 = getelementptr inbounds %class.ElemModel, ptr %21, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !29
  %217 = invoke noundef double @_ZNK7GNMData7sigmaOWEv(ptr noundef nonnull align 8 dereferenceable(984) %216)
          to label %218 unwind label %206

218:                                              ; preds = %214
  %219 = load i32, ptr %16, align 4, !tbaa !17
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %220) #6
  %222 = load double, ptr %221, align 8, !tbaa !9
  %223 = fdiv double %217, %222
  store double %223, ptr %2, align 8
  store i32 1, ptr %17, align 4
  br label %225

224:                                              ; preds = %210
  store i32 0, ptr %17, align 4
  br label %225

225:                                              ; preds = %224, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %226 = load i32, ptr %17, align 4
  switch i32 %226, label %232 [
    i32 0, label %227
  ]

227:                                              ; preds = %225
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %16, align 4, !tbaa !17
  %230 = add nsw i32 %229, -1
  store i32 %230, ptr %16, align 4, !tbaa !17
  br label %171, !llvm.loop !32

231:                                              ; preds = %206, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %253

232:                                              ; preds = %225, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %233 = load i32, ptr %17, align 4
  switch i32 %233, label %251 [
    i32 5, label %234
  ]

234:                                              ; preds = %232
  %235 = getelementptr inbounds %class.ElemModel, ptr %21, i32 0, i32 4
  %236 = load ptr, ptr %235, align 8, !tbaa !29
  %237 = invoke noundef double @_ZNK7GNMData7sigmaOWEv(ptr noundef nonnull align 8 dereferenceable(984) %236)
          to label %238 unwind label %247

238:                                              ; preds = %234
  %239 = getelementptr inbounds %class.VoidElem, ptr %21, i32 0, i32 3
  %240 = load double, ptr %239, align 8, !tbaa !11
  %241 = call double @cos(double noundef %240) #6
  %242 = fmul double 2.000000e+00, %241
  %243 = fmul double %237, %242
  %244 = getelementptr inbounds %class.ElemModel, ptr %21, i32 0, i32 5
  %245 = load double, ptr %244, align 8, !tbaa !26
  %246 = fdiv double %243, %245
  store double %246, ptr %2, align 8
  store i32 1, ptr %17, align 4
  br label %251

247:                                              ; preds = %234
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %14, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %15, align 4
  br label %253

251:                                              ; preds = %238, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %252 = load double, ptr %2, align 8
  ret double %252

253:                                              ; preds = %247, %231, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %254

254:                                              ; preds = %253
  %255 = load ptr, ptr %14, align 8
  %256 = load i32, ptr %15, align 4
  %257 = insertvalue { ptr, i32 } poison, ptr %255, 0
  %258 = insertvalue { ptr, i32 } %257, i32 %256, 1
  resume { ptr, i32 } %258
}

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !10, i64 168}
!12 = !{!"_ZTS8VoidElem", !13, i64 0, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176}
!13 = !{!"_ZTS9ElemModel", !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !14, i64 56, !14, i64 57, !14, i64 58, !14, i64 59, !15, i64 60, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !16, i64 120, !16, i64 136}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt4pairIddE", !10, i64 0, !10, i64 8}
!17 = !{!15, !15, i64 0}
!18 = !{!19, !15, i64 184}
!19 = !{!"_ZTS7Polygon", !12, i64 0, !15, i64 184, !20, i64 192, !6, i64 216, !6, i64 224, !24, i64 232, !7, i64 234, !10, i64 240}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"short", !7, i64 0}
!25 = !{!12, !10, i64 152}
!26 = !{!13, !10, i64 40}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!13, !6, i64 32}
!30 = !{!19, !6, i64 216}
!31 = !{!19, !6, i64 224}
!32 = distinct !{!32, !28}


; 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::vector.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.CornerApex = type { %class.Apex, ptr, double, double, double, ptr }
%class.Apex = type { ptr, i8, double, double, ptr, i32, double, double, double, double, i8, i8, i8, i8, %"struct.std::pair.0" }
%"struct.std::pair.0" = type { i32, double }
%class.LayerApex = type { %class.Apex, i32, ptr, double, ptr, double }

@_ZN9ElemModel2PIE = external local_unnamed_addr constant double, align 8
@_ZN9ElemModel11INF_NEG_NUME = external local_unnamed_addr constant double, align 8

; 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 dso_local noundef double @_ZNK7GNMData7sigmaOWEv(ptr noundef nonnull align 8 dereferenceable(984)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #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 #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10CornerApex12cornerExistsEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZNK7Polygon20Pc_pistonType_ImbnwwEv(ptr noundef nonnull align 8 dereferenceable(248) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.16", align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = load double, ptr @_ZN9ElemModel2PIE, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 168
  %7 = load double, ptr %6, align 8, !tbaa !9
  %8 = fsub double %5, %7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %9 = getelementptr inbounds i8, ptr %0, i64 184
  %10 = load i32, ptr %9, align 8, !tbaa !16
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %12 = fmul double %5, 5.000000e-01
  %13 = getelementptr inbounds i8, ptr %0, i64 192
  %14 = fsub double %12, %8
  %15 = getelementptr inbounds i8, ptr %0, i64 152
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  br label %23

._crit_edge:                                      ; preds = %94, %1
  %17 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = load double, ptr @_ZN9ElemModel11INF_NEG_NUME, align 8
  %20 = getelementptr inbounds i8, ptr %0, i64 216
  %21 = getelementptr inbounds i8, ptr %0, i64 224
  %22 = and i64 %17, 4294967295
  br label %98

23:                                               ; preds = %.lr.ph, %94
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %94 ]
  %.04671 = phi double [ 0.000000e+00, %.lr.ph ], [ %.147, %94 ]
  %.05570 = phi double [ 0.000000e+00, %.lr.ph ], [ %.156, %94 ]
  %.05769 = phi double [ 0.000000e+00, %.lr.ph ], [ %.158, %94 ]
  %24 = load double, ptr %6, align 8, !tbaa !9
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = fadd double %12, %26
  %28 = fcmp ogt double %24, %27
  br i1 %28, label %29, label %94

29:                                               ; preds = %23
  %30 = call double @cos(double noundef %8) #6
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %32 = load double, ptr %31, align 8, !tbaa !5
  %33 = fadd double %8, %32
  %34 = call double @cos(double noundef %33) #6
  %35 = fmul double %30, %34
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %37 = load double, ptr %36, align 8, !tbaa !5
  %38 = call double @sin(double noundef %37) #6
  %39 = fdiv double %35, %38
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %41 = load double, ptr %40, align 8, !tbaa !5
  %42 = fsub double %14, %41
  %43 = fsub double %39, %42
  %44 = fadd double %.04671, %43
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = fadd double %8, %46
  %48 = call double @cos(double noundef %47) #6
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = call double @sin(double noundef %50) #6
  %52 = fdiv double %48, %51
  %53 = fadd double %.05570, %52
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %indvars.iv) #6
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = fsub double %14, %55
  %57 = call double @llvm.fmuladd.f64(double %56, double 2.000000e+00, double %.05769)
  %58 = call double @cos(double noundef %8) #6
  %59 = fmul double %53, -2.000000e+00
  %60 = call double @llvm.fmuladd.f64(double %59, double %58, double %44)
  %61 = fadd double %60, %57
  %62 = load double, ptr %15, align 8, !tbaa !23
  %63 = fmul double %62, 4.000000e+00
  %64 = fmul double %63, %61
  %65 = call double @cos(double noundef %8) #6
  %66 = call double @cos(double noundef %8) #6
  %67 = fmul double %65, %66
  %68 = fdiv double %64, %67
  %69 = fadd double %68, 1.000000e+00
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %70 = load double, ptr %16, align 8, !tbaa !24
  %71 = call double @cos(double noundef %8) #6
  %72 = fmul double %70, %71
  %73 = call double @sqrt(double noundef %69) #6
  %74 = fsub double 1.000000e+00, %73
  %75 = fmul double %72, %74
  %76 = load double, ptr %15, align 8, !tbaa !23
  %77 = fmul double %76, 4.000000e+00
  %78 = fmul double %61, %77
  %79 = fdiv double %75, %78
  store double %79, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %80 = load double, ptr %16, align 8, !tbaa !24
  %81 = call double @cos(double noundef %8) #6
  %82 = fmul double %80, %81
  %83 = call double @sqrt(double noundef %69) #6
  %84 = fadd double %83, 1.000000e+00
  %85 = fmul double %82, %84
  %86 = load double, ptr %15, align 8, !tbaa !23
  %87 = fmul double %86, 4.000000e+00
  %88 = fmul double %61, %87
  %89 = fdiv double %85, %88
  store double %89, ptr %4, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4)
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(8) %90)
          to label %91 unwind label %92

91:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %94

92:                                               ; preds = %29
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %139

94:                                               ; preds = %23, %91
  %.158 = phi double [ %57, %91 ], [ %.05769, %23 ]
  %.156 = phi double [ %53, %91 ], [ %.05570, %23 ]
  %.147 = phi double [ %44, %91 ], [ %.04671, %23 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %95 = load i32, ptr %9, align 8, !tbaa !16
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %indvars.iv.next, %96
  br i1 %97, label %23, label %._crit_edge, !llvm.loop !25

98:                                               ; preds = %119, %._crit_edge
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %119 ], [ %22, %._crit_edge ]
  %indvars.iv.next74 = add nsw i64 %indvars.iv73, -1
  %99 = and i64 %indvars.iv.next74, 2147483648
  %.not = icmp eq i64 %99, 0
  %100 = load ptr, ptr %18, align 8, !tbaa !27
  br i1 %.not, label %101, label %126

101:                                              ; preds = %98
  %102 = invoke noundef double @_ZNK7GNMData7sigmaOWEv(ptr noundef nonnull align 8 dereferenceable(984) %100)
          to label %103 unwind label %115

103:                                              ; preds = %101
  %104 = and i64 %indvars.iv.next74, 2147483647
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %104) #6
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = fdiv double %102, %106
  %108 = load ptr, ptr %20, align 8, !tbaa !28
  %109 = getelementptr inbounds %class.CornerApex, ptr %108, i64 %104
  %110 = call noundef zeroext i1 @_ZNK10CornerApex12cornerExistsEv(ptr noundef nonnull align 8 dereferenceable(144) %109)
  br i1 %110, label %111, label %119

111:                                              ; preds = %103
  %112 = load ptr, ptr %21, align 8, !tbaa !29
  %113 = getelementptr inbounds %class.LayerApex, ptr %112, i64 %104
  %114 = call noundef double @_ZNK4Apex7entryPcEv(ptr noundef nonnull align 8 dereferenceable(104) %113)
  br label %119

115:                                              ; preds = %101
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %139

117:                                              ; preds = %121
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %139

119:                                              ; preds = %111, %103
  %.0 = phi double [ %114, %111 ], [ %19, %103 ]
  %120 = fcmp ule double %107, %.0
  br i1 %120, label %98, label %121

121:                                              ; preds = %119
  %122 = load ptr, ptr %18, align 8, !tbaa !27
  %123 = invoke noundef double @_ZNK7GNMData7sigmaOWEv(ptr noundef nonnull align 8 dereferenceable(984) %122)
          to label %124 unwind label %117

124:                                              ; preds = %121
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %104) #6
  br label %136

126:                                              ; preds = %98
  %127 = invoke noundef double @_ZNK7GNMData7sigmaOWEv(ptr noundef nonnull align 8 dereferenceable(984) %100)
          to label %128 unwind label %134

128:                                              ; preds = %126
  %129 = load double, ptr %6, align 8, !tbaa !9
  %130 = call double @cos(double noundef %129) #6
  %131 = fmul double %130, 2.000000e+00
  %132 = fmul double %127, %131
  %133 = getelementptr inbounds i8, ptr %0, i64 40
  br label %136

134:                                              ; preds = %126
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %139

136:                                              ; preds = %124, %128
  %.sink77 = phi ptr [ %125, %124 ], [ %133, %128 ]
  %.sink = phi double [ %123, %124 ], [ %132, %128 ]
  %137 = load double, ptr %.sink77, align 8, !tbaa !5
  %138 = fdiv double %.sink, %137
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret double %138

139:                                              ; preds = %115, %117, %134, %92
  %.pn61 = phi { ptr, i32 } [ %93, %92 ], [ %135, %134 ], [ %118, %117 ], [ %116, %115 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn61
}

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 168}
!10 = !{!"_ZTS8VoidElem", !11, i64 0, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!11 = !{!"_ZTS9ElemModel", !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !12, i64 48, !13, i64 56, !13, i64 57, !13, i64 58, !13, i64 59, !14, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !15, i64 120, !15, i64 136}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSSt4pairIddE", !6, i64 0, !6, i64 8}
!16 = !{!17, !14, i64 184}
!17 = !{!"_ZTS7Polygon", !10, i64 0, !14, i64 184, !18, i64 192, !12, i64 216, !12, i64 224, !22, i64 232, !7, i64 234, !6, i64 240}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!22 = !{!"short", !7, i64 0}
!23 = !{!10, !6, i64 152}
!24 = !{!11, !6, i64 40}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!11, !12, i64 32}
!28 = !{!17, !12, i64 216}
!29 = !{!17, !12, i64 224}


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