; LLVM IR from mackorone/mms :: old/v2/src/sim/Polygon.ll (ZNK3sim7Polygon8centroidEv)

; 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.sim::MetersSquared" = type { %"class.sim::Area" }
%"class.sim::Area" = type { ptr, double }
%"class.sim::Meters" = type { %"class.sim::Distance" }
%"class.sim::Distance" = type { ptr, double }
%"class.sim::Cartesian" = type { %"class.sim::Coordinate" }
%"class.sim::Coordinate" = type { ptr, %"class.sim::Meters", %"class.sim::Meters" }
%"class.sim::Polygon" = type { %"class.std::vector.55", %"class.std::vector.60" }
%"class.std::vector.55" = type { %"struct.std::_Vector_base.56" }
%"struct.std::_Vector_base.56" = type { %"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Cartesian, std::allocator<sim::Cartesian>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = type { %"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Triangle, std::allocator<sim::Triangle>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3sim7Polygon4areaEv(ptr dead_on_unwind noalias writable sret(%"class.sim::MetersSquared") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

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

declare void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #3

declare noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16)) #3

declare void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: nounwind
declare void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3sim7Polygon8centroidEv(ptr dead_on_unwind noalias writable sret(%"class.sim::Cartesian") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.sim::Meters", align 8
  %6 = alloca %"class.sim::Meters", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.sim::Meters", align 8
  %12 = alloca %"class.sim::Meters", align 8
  %13 = alloca %"class.sim::Meters", align 8
  %14 = alloca %"class.sim::Meters", align 8
  %15 = alloca %"class.sim::MetersSquared", align 8
  %16 = alloca %"class.sim::MetersSquared", align 8
  %17 = alloca %"class.sim::Meters", align 8
  %18 = alloca %"class.sim::Meters", align 8
  %19 = alloca %"class.sim::MetersSquared", align 8
  %20 = alloca %"class.sim::Meters", align 8
  %21 = alloca %"class.sim::Meters", align 8
  %22 = alloca %"class.sim::Meters", align 8
  %23 = alloca %"class.sim::Meters", align 8
  %24 = alloca %"class.sim::Meters", align 8
  %25 = alloca %"class.sim::Meters", align 8
  %26 = alloca %"class.sim::MetersSquared", align 8
  %27 = alloca %"class.sim::MetersSquared", align 8
  %28 = alloca %"class.sim::Meters", align 8
  %29 = alloca %"class.sim::Meters", align 8
  %30 = alloca %"class.sim::MetersSquared", align 8
  %31 = alloca %"class.sim::Meters", align 8
  %32 = alloca %"class.sim::Meters", align 8
  %33 = alloca %"class.sim::Meters", align 8
  %34 = alloca %"class.sim::Meters", align 8
  %35 = alloca %"class.sim::Meters", align 8
  %36 = alloca %"class.sim::MetersSquared", align 8
  %37 = alloca %"class.sim::MetersSquared", align 8
  %38 = alloca %"class.sim::Meters", align 8
  %39 = alloca %"class.sim::MetersSquared", align 8
  %40 = alloca %"class.sim::MetersSquared", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %41 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef 0.000000e+00)
          to label %42 unwind label %50

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %150, %42
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %47 = call noundef i64 @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = icmp ult i64 %45, %47
  br i1 %48, label %54, label %49

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

50:                                               ; preds = %2
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  br label %339

54:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %59 = call noundef i64 @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #6
  %60 = urem i64 %57, %59
  %61 = trunc i64 %60 to i32
  store i32 %61, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %62 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64)
          to label %66 unwind label %153

66:                                               ; preds = %54
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %65)
          to label %67 unwind label %153

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %68 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70)
          to label %72 unwind label %157

72:                                               ; preds = %67
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %14, ptr noundef nonnull align 8 dereferenceable(40) %71)
          to label %73 unwind label %157

73:                                               ; preds = %72
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %74 unwind label %161

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %75 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77)
          to label %79 unwind label %165

79:                                               ; preds = %74
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %17, ptr noundef nonnull align 8 dereferenceable(40) %78)
          to label %80 unwind label %165

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %81 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %83)
          to label %85 unwind label %169

85:                                               ; preds = %80
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %84)
          to label %86 unwind label %169

86:                                               ; preds = %85
  invoke void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %87 unwind label %173

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %88 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90)
          to label %92 unwind label %177

92:                                               ; preds = %87
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %91)
          to label %93 unwind label %177

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  %94 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %96)
          to label %98 unwind label %181

98:                                               ; preds = %93
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %21, ptr noundef nonnull align 8 dereferenceable(40) %97)
          to label %99 unwind label %181

99:                                               ; preds = %98
  invoke void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %100 unwind label %185

100:                                              ; preds = %99
  invoke void @_ZNK3sim13MetersSquaredmiERKNS_4AreaE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %101 unwind label %189

101:                                              ; preds = %100
  %102 = invoke noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %103 unwind label %193

103:                                              ; preds = %101
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef %102)
          to label %104 unwind label %193

104:                                              ; preds = %103
  invoke void @_ZN3sim6MeterspLERKNS_8DistanceE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %105 unwind label %197

105:                                              ; preds = %104
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  %106 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %108)
          to label %110 unwind label %212

110:                                              ; preds = %105
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %24, ptr noundef nonnull align 8 dereferenceable(40) %109)
          to label %111 unwind label %212

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %112 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114)
          to label %116 unwind label %216

116:                                              ; preds = %111
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %25, ptr noundef nonnull align 8 dereferenceable(40) %115)
          to label %117 unwind label %216

117:                                              ; preds = %116
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %118 unwind label %220

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %119 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121)
          to label %123 unwind label %224

123:                                              ; preds = %118
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %28, ptr noundef nonnull align 8 dereferenceable(40) %122)
          to label %124 unwind label %224

124:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  %125 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %127)
          to label %129 unwind label %228

129:                                              ; preds = %124
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %29, ptr noundef nonnull align 8 dereferenceable(40) %128)
          to label %130 unwind label %228

130:                                              ; preds = %129
  invoke void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %131 unwind label %232

131:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  %132 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134)
          to label %136 unwind label %236

136:                                              ; preds = %131
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %31, ptr noundef nonnull align 8 dereferenceable(40) %135)
          to label %137 unwind label %236

137:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  %138 = getelementptr inbounds %"class.sim::Polygon", ptr %41, i32 0, i32 0
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140)
          to label %142 unwind label %240

142:                                              ; preds = %137
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %32, ptr noundef nonnull align 8 dereferenceable(40) %141)
          to label %143 unwind label %240

143:                                              ; preds = %142
  invoke void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %144 unwind label %244

144:                                              ; preds = %143
  invoke void @_ZNK3sim13MetersSquaredmiERKNS_4AreaE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %145 unwind label %248

145:                                              ; preds = %144
  %146 = invoke noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %147 unwind label %252

147:                                              ; preds = %145
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef %146)
          to label %148 unwind label %252

148:                                              ; preds = %147
  invoke void @_ZN3sim6MeterspLERKNS_8DistanceE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %149 unwind label %256

149:                                              ; preds = %148
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %9, align 4, !tbaa !9
  br label %43, !llvm.loop !11

153:                                              ; preds = %66, %54
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %7, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %8, align 4
  br label %211

157:                                              ; preds = %72, %67
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %7, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %8, align 4
  br label %210

161:                                              ; preds = %73
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %7, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %8, align 4
  br label %209

165:                                              ; preds = %79, %74
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %7, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %8, align 4
  br label %208

169:                                              ; preds = %85, %80
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %7, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %8, align 4
  br label %207

173:                                              ; preds = %86
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %7, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %8, align 4
  br label %206

177:                                              ; preds = %92, %87
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %7, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %8, align 4
  br label %205

181:                                              ; preds = %98, %93
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %7, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %8, align 4
  br label %204

185:                                              ; preds = %99
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  br label %203

189:                                              ; preds = %100
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %7, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %8, align 4
  br label %202

193:                                              ; preds = %103, %101
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %7, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %8, align 4
  br label %201

197:                                              ; preds = %104
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %7, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %8, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %201

201:                                              ; preds = %197, %193
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %202

202:                                              ; preds = %201, %189
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %203

203:                                              ; preds = %202, %185
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %204

204:                                              ; preds = %203, %181
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  br label %205

205:                                              ; preds = %204, %177
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %206

206:                                              ; preds = %205, %173
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %207

207:                                              ; preds = %206, %169
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %208

208:                                              ; preds = %207, %165
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %209

209:                                              ; preds = %208, %161
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  br label %210

210:                                              ; preds = %209, %157
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %211

211:                                              ; preds = %210, %153
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %271

212:                                              ; preds = %110, %105
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %7, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %8, align 4
  br label %270

216:                                              ; preds = %116, %111
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %7, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %8, align 4
  br label %269

220:                                              ; preds = %117
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %7, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %8, align 4
  br label %268

224:                                              ; preds = %123, %118
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %7, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %8, align 4
  br label %267

228:                                              ; preds = %129, %124
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %7, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %8, align 4
  br label %266

232:                                              ; preds = %130
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %7, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %8, align 4
  br label %265

236:                                              ; preds = %136, %131
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %7, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %8, align 4
  br label %264

240:                                              ; preds = %142, %137
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %7, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %8, align 4
  br label %263

244:                                              ; preds = %143
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %7, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %8, align 4
  br label %262

248:                                              ; preds = %144
  %249 = landingpad { ptr, i32 }
          cleanup
  %250 = extractvalue { ptr, i32 } %249, 0
  store ptr %250, ptr %7, align 8
  %251 = extractvalue { ptr, i32 } %249, 1
  store i32 %251, ptr %8, align 4
  br label %261

252:                                              ; preds = %147, %145
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %7, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %8, align 4
  br label %260

256:                                              ; preds = %148
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %7, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %8, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  br label %260

260:                                              ; preds = %256, %252
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %261

261:                                              ; preds = %260, %248
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  br label %262

262:                                              ; preds = %261, %244
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  br label %263

263:                                              ; preds = %262, %240
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  br label %264

264:                                              ; preds = %263, %236
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  br label %265

265:                                              ; preds = %264, %232
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  br label %266

266:                                              ; preds = %265, %228
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  br label %267

267:                                              ; preds = %266, %224
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  br label %268

268:                                              ; preds = %267, %220
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  br label %269

269:                                              ; preds = %268, %216
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  br label %270

270:                                              ; preds = %269, %212
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  br label %271

271:                                              ; preds = %270, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %338

272:                                              ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %273 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %274 unwind label %296

274:                                              ; preds = %272
  %275 = invoke noundef double @_ZSt3absd(double noundef %273)
          to label %276 unwind label %296

276:                                              ; preds = %274
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %33, double noundef %275)
          to label %277 unwind label %296

277:                                              ; preds = %276
  %278 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #6
  %279 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %280 unwind label %300

280:                                              ; preds = %277
  %281 = invoke noundef double @_ZSt3absd(double noundef %279)
          to label %282 unwind label %300

282:                                              ; preds = %280
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %34, double noundef %281)
          to label %283 unwind label %300

283:                                              ; preds = %282
  %284 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %34) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  invoke void @_ZNK3sim7Polygon4areaEv(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %37, ptr noundef nonnull align 8 dereferenceable(48) %41)
          to label %285 unwind label %304

285:                                              ; preds = %283
  invoke void @_ZNK3sim13MetersSquaredmlEd(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %36, ptr noundef nonnull align 8 dereferenceable(16) %37, double noundef 6.000000e+00)
          to label %286 unwind label %308

286:                                              ; preds = %285
  %287 = invoke noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %36)
          to label %288 unwind label %312

288:                                              ; preds = %286
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %287)
          to label %289 unwind label %312

289:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  invoke void @_ZNK3sim7Polygon4areaEv(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %40, ptr noundef nonnull align 8 dereferenceable(48) %41)
          to label %290 unwind label %316

290:                                              ; preds = %289
  invoke void @_ZNK3sim13MetersSquaredmlEd(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8 %39, ptr noundef nonnull align 8 dereferenceable(16) %40, double noundef 6.000000e+00)
          to label %291 unwind label %320

291:                                              ; preds = %290
  %292 = invoke noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %39)
          to label %293 unwind label %324

293:                                              ; preds = %291
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %38, ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %292)
          to label %294 unwind label %324

294:                                              ; preds = %293
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %38)
          to label %295 unwind label %328

295:                                              ; preds = %294
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  ret void

296:                                              ; preds = %276, %274, %272
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %7, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %338

300:                                              ; preds = %282, %280, %277
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %7, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %338

304:                                              ; preds = %283
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %7, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %8, align 4
  br label %337

308:                                              ; preds = %285
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %7, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %8, align 4
  br label %336

312:                                              ; preds = %288, %286
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %7, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %8, align 4
  br label %335

316:                                              ; preds = %289
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %7, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %8, align 4
  br label %334

320:                                              ; preds = %290
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %7, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %8, align 4
  br label %333

324:                                              ; preds = %293, %291
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %7, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %8, align 4
  br label %332

328:                                              ; preds = %294
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %7, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %8, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #6
  br label %332

332:                                              ; preds = %328, %324
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #6
  br label %333

333:                                              ; preds = %332, %320
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #6
  br label %334

334:                                              ; preds = %333, %316
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  br label %335

335:                                              ; preds = %334, %312
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #6
  br label %336

336:                                              ; preds = %335, %308
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #6
  br label %337

337:                                              ; preds = %336, %304
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  br label %338

338:                                              ; preds = %337, %300, %296, %271
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %339

339:                                              ; preds = %338, %50
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  br label %340

340:                                              ; preds = %339
  %341 = load ptr, ptr %7, align 8
  %342 = load i32, ptr %8, align 4
  %343 = insertvalue { ptr, i32 } poison, ptr %341, 0
  %344 = insertvalue { ptr, i32 } %343, i32 %342, 1
  resume { ptr, i32 } %344
}

declare void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #3

declare void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3

declare void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare void @_ZNK3sim13MetersSquaredmiERKNS_4AreaE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16)) #3

declare void @_ZN3sim6MeterspLERKNS_8DistanceE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: nounwind
declare void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

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

declare void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3

declare void @_ZNK3sim13MetersSquaredmlEd(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3

declare void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

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


; 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.sim::MetersSquared" = type { %"class.sim::Area" }
%"class.sim::Area" = type { ptr, double }
%"class.sim::Meters" = type { %"class.sim::Distance" }
%"class.sim::Distance" = type { ptr, double }
%"class.sim::Cartesian" = type { %"class.sim::Coordinate" }
%"class.sim::Coordinate" = type { ptr, %"class.sim::Meters", %"class.sim::Meters" }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3sim7Polygon4areaEv(ptr dead_on_unwind noalias writable sret(%"class.sim::MetersSquared") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

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

declare void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

declare noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3sim7Polygon8centroidEv(ptr dead_on_unwind noalias writable sret(%"class.sim::Cartesian") align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.sim::Meters", align 8
  %4 = alloca %"class.sim::Meters", align 8
  %5 = alloca %"class.sim::Meters", align 8
  %6 = alloca %"class.sim::Meters", align 8
  %7 = alloca %"class.sim::Meters", align 8
  %8 = alloca %"class.sim::Meters", align 8
  %9 = alloca %"class.sim::MetersSquared", align 8
  %10 = alloca %"class.sim::MetersSquared", align 8
  %11 = alloca %"class.sim::Meters", align 8
  %12 = alloca %"class.sim::Meters", align 8
  %13 = alloca %"class.sim::MetersSquared", align 8
  %14 = alloca %"class.sim::Meters", align 8
  %15 = alloca %"class.sim::Meters", align 8
  %16 = alloca %"class.sim::Meters", align 8
  %17 = alloca %"class.sim::Meters", align 8
  %18 = alloca %"class.sim::Meters", align 8
  %19 = alloca %"class.sim::Meters", align 8
  %20 = alloca %"class.sim::MetersSquared", align 8
  %21 = alloca %"class.sim::MetersSquared", align 8
  %22 = alloca %"class.sim::Meters", align 8
  %23 = alloca %"class.sim::Meters", align 8
  %24 = alloca %"class.sim::MetersSquared", align 8
  %25 = alloca %"class.sim::Meters", align 8
  %26 = alloca %"class.sim::Meters", align 8
  %27 = alloca %"class.sim::Meters", align 8
  %28 = alloca %"class.sim::Meters", align 8
  %29 = alloca %"class.sim::Meters", align 8
  %30 = alloca %"class.sim::MetersSquared", align 8
  %31 = alloca %"class.sim::MetersSquared", align 8
  %32 = alloca %"class.sim::Meters", align 8
  %33 = alloca %"class.sim::MetersSquared", align 8
  %34 = alloca %"class.sim::MetersSquared", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef 0.000000e+00)
          to label %.preheader unwind label %37

.preheader:                                       ; preds = %2
  %35 = call noundef i64 @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %.not = icmp eq i64 %35, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %92, %.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #6
  %36 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %165 unwind label %185

37:                                               ; preds = %2
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %210

.lr.ph:                                           ; preds = %.preheader, %92
  %indvars.iv = phi i64 [ %indvars.iv.next, %92 ], [ 0, %.preheader ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = call noundef i64 @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %40 = urem i64 %indvars.iv.next, %39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %41 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv)
          to label %42 unwind label %95

42:                                               ; preds = %.lr.ph
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %41)
          to label %43 unwind label %95

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %44 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40)
          to label %45 unwind label %97

45:                                               ; preds = %43
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %44)
          to label %46 unwind label %97

46:                                               ; preds = %45
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %47 unwind label %99

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  %48 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv)
          to label %49 unwind label %101

49:                                               ; preds = %47
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %48)
          to label %50 unwind label %101

50:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %51 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40)
          to label %52 unwind label %103

52:                                               ; preds = %50
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %51)
          to label %53 unwind label %103

53:                                               ; preds = %52
  invoke void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %54 unwind label %105

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %55 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40)
          to label %56 unwind label %107

56:                                               ; preds = %54
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %14, ptr noundef nonnull align 8 dereferenceable(40) %55)
          to label %57 unwind label %107

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %58 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv)
          to label %59 unwind label %109

59:                                               ; preds = %57
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %58)
          to label %60 unwind label %109

60:                                               ; preds = %59
  invoke void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %61 unwind label %111

61:                                               ; preds = %60
  invoke void @_ZNK3sim13MetersSquaredmiERKNS_4AreaE(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %62 unwind label %113

62:                                               ; preds = %61
  %63 = invoke noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %64 unwind label %115

64:                                               ; preds = %62
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %5, ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %63)
          to label %65 unwind label %115

65:                                               ; preds = %64
  invoke void @_ZN3sim6MeterspLERKNS_8DistanceE(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %66 unwind label %117

66:                                               ; preds = %65
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  %67 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv)
          to label %68 unwind label %130

68:                                               ; preds = %66
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %67)
          to label %69 unwind label %130

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %70 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40)
          to label %71 unwind label %132

71:                                               ; preds = %69
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %19, ptr noundef nonnull align 8 dereferenceable(40) %70)
          to label %72 unwind label %132

72:                                               ; preds = %71
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %73 unwind label %134

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  %74 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv)
          to label %75 unwind label %136

75:                                               ; preds = %73
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %22, ptr noundef nonnull align 8 dereferenceable(40) %74)
          to label %76 unwind label %136

76:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  %77 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40)
          to label %78 unwind label %138

78:                                               ; preds = %76
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %23, ptr noundef nonnull align 8 dereferenceable(40) %77)
          to label %79 unwind label %138

79:                                               ; preds = %78
  invoke void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %80 unwind label %140

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #6
  %81 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40)
          to label %82 unwind label %142

82:                                               ; preds = %80
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %25, ptr noundef nonnull align 8 dereferenceable(40) %81)
          to label %83 unwind label %142

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #6
  %84 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv)
          to label %85 unwind label %144

85:                                               ; preds = %83
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %26, ptr noundef nonnull align 8 dereferenceable(40) %84)
          to label %86 unwind label %144

86:                                               ; preds = %85
  invoke void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %87 unwind label %146

87:                                               ; preds = %86
  invoke void @_ZNK3sim13MetersSquaredmiERKNS_4AreaE(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %88 unwind label %148

88:                                               ; preds = %87
  %89 = invoke noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %90 unwind label %150

90:                                               ; preds = %88
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef %89)
          to label %91 unwind label %150

91:                                               ; preds = %90
  invoke void @_ZN3sim6MeterspLERKNS_8DistanceE(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %92 unwind label %152

92:                                               ; preds = %91
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  %93 = call noundef i64 @_ZNKSt6vectorIN3sim9CartesianESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %94 = icmp ugt i64 %93, %indvars.iv.next
  br i1 %94, label %.lr.ph, label %._crit_edge, !llvm.loop !5

95:                                               ; preds = %42, %.lr.ph
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %129

97:                                               ; preds = %45, %43
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %128

99:                                               ; preds = %46
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %127

101:                                              ; preds = %49, %47
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %126

103:                                              ; preds = %52, %50
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %125

105:                                              ; preds = %53
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %124

107:                                              ; preds = %56, %54
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %123

109:                                              ; preds = %59, %57
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %122

111:                                              ; preds = %60
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %121

113:                                              ; preds = %61
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %120

115:                                              ; preds = %64, %62
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %119

117:                                              ; preds = %65
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  br label %119

119:                                              ; preds = %117, %115
  %.pn56 = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #6
  br label %120

120:                                              ; preds = %119, %113
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %119 ], [ %114, %113 ]
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %121

121:                                              ; preds = %120, %111
  %.pn56.pn.pn = phi { ptr, i32 } [ %.pn56.pn, %120 ], [ %112, %111 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  br label %122

122:                                              ; preds = %121, %109
  %.pn56.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn, %121 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  br label %123

123:                                              ; preds = %122, %107
  %.pn56.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn, %122 ], [ %108, %107 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %124

124:                                              ; preds = %123, %105
  %.pn56.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn, %123 ], [ %106, %105 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  br label %125

125:                                              ; preds = %124, %103
  %.pn56.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn.pn, %124 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %126

126:                                              ; preds = %125, %101
  %.pn56.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn.pn.pn, %125 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  br label %127

127:                                              ; preds = %126, %99
  %.pn56.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn.pn.pn.pn, %126 ], [ %100, %99 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %128

128:                                              ; preds = %127, %97
  %.pn56.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn.pn.pn.pn.pn, %127 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %129

129:                                              ; preds = %128, %95
  %.pn56.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn.pn.pn.pn.pn.pn, %128 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %209

130:                                              ; preds = %68, %66
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %164

132:                                              ; preds = %71, %69
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %163

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

136:                                              ; preds = %75, %73
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %161

138:                                              ; preds = %78, %76
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %160

140:                                              ; preds = %79
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %159

142:                                              ; preds = %82, %80
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %158

144:                                              ; preds = %85, %83
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %157

146:                                              ; preds = %86
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %156

148:                                              ; preds = %87
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %155

150:                                              ; preds = %90, %88
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %154

152:                                              ; preds = %91
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %154

154:                                              ; preds = %152, %150
  %.pn68 = phi { ptr, i32 } [ %153, %152 ], [ %151, %150 ]
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  br label %155

155:                                              ; preds = %154, %148
  %.pn68.pn = phi { ptr, i32 } [ %.pn68, %154 ], [ %149, %148 ]
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #6
  br label %156

156:                                              ; preds = %155, %146
  %.pn68.pn.pn = phi { ptr, i32 } [ %.pn68.pn, %155 ], [ %147, %146 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %157

157:                                              ; preds = %156, %144
  %.pn68.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn, %156 ], [ %145, %144 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #6
  br label %158

158:                                              ; preds = %157, %142
  %.pn68.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn, %157 ], [ %143, %142 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %159

159:                                              ; preds = %158, %140
  %.pn68.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn.pn, %158 ], [ %141, %140 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #6
  br label %160

160:                                              ; preds = %159, %138
  %.pn68.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn.pn.pn, %159 ], [ %139, %138 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  br label %161

161:                                              ; preds = %160, %136
  %.pn68.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn.pn.pn.pn, %160 ], [ %137, %136 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %162

162:                                              ; preds = %161, %134
  %.pn68.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn.pn.pn.pn.pn, %161 ], [ %135, %134 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %163

163:                                              ; preds = %162, %132
  %.pn68.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn.pn.pn.pn.pn.pn, %162 ], [ %133, %132 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %164

164:                                              ; preds = %163, %130
  %.pn68.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn.pn.pn.pn.pn.pn.pn, %163 ], [ %131, %130 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #6
  br label %209

165:                                              ; preds = %._crit_edge
  %166 = call noundef double @_ZSt3absd(double noundef %36)
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef %166)
          to label %167 unwind label %185

167:                                              ; preds = %165
  %168 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  %169 = invoke noundef double @_ZNK3sim8Distance9getMetersEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %170 unwind label %187

170:                                              ; preds = %167
  %171 = call noundef double @_ZSt3absd(double noundef %169)
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %171)
          to label %172 unwind label %187

172:                                              ; preds = %170
  %173 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %30) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %31) #6
  invoke void @_ZNK3sim7Polygon4areaEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %31, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %174 unwind label %189

174:                                              ; preds = %172
  invoke void @_ZNK3sim13MetersSquaredmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %31, double noundef 6.000000e+00)
          to label %175 unwind label %191

175:                                              ; preds = %174
  %176 = invoke noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %177 unwind label %193

177:                                              ; preds = %175
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %3, double noundef %176)
          to label %178 unwind label %193

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %33) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #6
  invoke void @_ZNK3sim7Polygon4areaEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %34, ptr noundef nonnull align 8 dereferenceable(48) %1)
          to label %179 unwind label %195

179:                                              ; preds = %178
  invoke void @_ZNK3sim13MetersSquaredmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::MetersSquared") align 8 %33, ptr noundef nonnull align 8 dereferenceable(16) %34, double noundef 6.000000e+00)
          to label %180 unwind label %197

180:                                              ; preds = %179
  %181 = invoke noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %182 unwind label %199

182:                                              ; preds = %180
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %181)
          to label %183 unwind label %199

183:                                              ; preds = %182
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %184 unwind label %201

184:                                              ; preds = %183
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  ret void

185:                                              ; preds = %165, %._crit_edge
  %186 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  br label %209

187:                                              ; preds = %170, %167
  %188 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  br label %209

189:                                              ; preds = %172
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %208

191:                                              ; preds = %174
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %207

193:                                              ; preds = %177, %175
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %206

195:                                              ; preds = %178
  %196 = landingpad { ptr, i32 }
          cleanup
  br label %205

197:                                              ; preds = %179
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %204

199:                                              ; preds = %182, %180
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %203

201:                                              ; preds = %183
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  br label %203

203:                                              ; preds = %201, %199
  %.pn = phi { ptr, i32 } [ %202, %201 ], [ %200, %199 ]
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #6
  br label %204

204:                                              ; preds = %203, %197
  %.pn.pn = phi { ptr, i32 } [ %.pn, %203 ], [ %198, %197 ]
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #6
  br label %205

205:                                              ; preds = %204, %195
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %204 ], [ %196, %195 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  br label %206

206:                                              ; preds = %205, %193
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %205 ], [ %194, %193 ]
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  br label %207

207:                                              ; preds = %206, %191
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %206 ], [ %192, %191 ]
  call void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  br label %208

208:                                              ; preds = %207, %189
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %207 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #6
  br label %209

209:                                              ; preds = %129, %164, %208, %187, %185
  %.pn68.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %208 ], [ %188, %187 ], [ %186, %185 ], [ %.pn68.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %164 ], [ %.pn56.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %129 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  br label %210

210:                                              ; preds = %209, %37
  %.pn68.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn68.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %209 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn68.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

declare void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16), double noundef) unnamed_addr #3

declare void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #3

declare void @_ZNK3sim6MetersmlERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZNK3sim13MetersSquaredmiERKNS_4AreaE(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare noundef double @_ZNK3sim4Area16getMetersSquaredEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare void @_ZN3sim6MeterspLERKNS_8DistanceE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN3sim4AreaD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

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

declare void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #3

declare void @_ZNK3sim13MetersSquaredmlEd(ptr dead_on_unwind writable sret(%"class.sim::MetersSquared") align 8, ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #3

declare void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass