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

; 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::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.std::vector.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = 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.sim::Polygon" = type { %"class.std::vector.60", %"class.std::vector.65" }
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = 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 }
%"class.std::initializer_list.86" = type { ptr, i64 }
%"class.std::allocator.62" = type { i8 }
%"class.sim::Tile" = type { i32, i32, %"class.std::map.55", i32, %"class.sim::Polygon", %"class.sim::Polygon", %"class.std::map.70", %"class.std::vector.75" }
%"class.std::map.55" = type { %"class.std::_Rb_tree.56" }
%"class.std::_Rb_tree.56" = type { %"struct.std::_Rb_tree<sim::Direction, std::pair<const sim::Direction, bool>, std::_Select1st<std::pair<const sim::Direction, bool>>, std::less<sim::Direction>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::Direction, std::pair<const sim::Direction, bool>, std::_Select1st<std::pair<const sim::Direction, bool>>, std::less<sim::Direction>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.70" = type { %"class.std::_Rb_tree.71" }
%"class.std::_Rb_tree.71" = type { %"struct.std::_Rb_tree<sim::Direction, std::pair<const sim::Direction, sim::Polygon>, std::_Select1st<std::pair<const sim::Direction, sim::Polygon>>, std::less<sim::Direction>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::Direction, std::pair<const sim::Direction, sim::Polygon>, std::_Select1st<std::pair<const sim::Direction, sim::Polygon>>, std::less<sim::Direction>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.75" = type { %"struct.std::_Vector_base.76" }
%"struct.std::_Vector_base.76" = type { %"struct.std::_Vector_base<sim::Polygon, std::allocator<sim::Polygon>>::_Vector_impl" }
%"struct.std::_Vector_base<sim::Polygon, std::allocator<sim::Polygon>>::_Vector_impl" = type { %"struct.std::_Vector_base<sim::Polygon, std::allocator<sim::Polygon>>::_Vector_impl_data" }
%"struct.std::_Vector_base<sim::Polygon, std::allocator<sim::Polygon>>::_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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim4Tile19initInteriorPolygonEii(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.sim::Meters", align 8
  %8 = alloca %"class.sim::Meters", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.sim::Cartesian", align 8
  %12 = alloca %"class.std::vector.60", align 8
  %13 = alloca %"class.sim::Cartesian", align 8
  %14 = alloca %"class.std::vector.60", align 8
  %15 = alloca %"class.sim::Cartesian", align 8
  %16 = alloca %"class.std::vector.60", align 8
  %17 = alloca %"class.sim::Cartesian", align 8
  %18 = alloca %"class.std::vector.60", align 8
  %19 = alloca %"class.sim::Polygon", align 8
  %20 = alloca %"class.std::vector.60", align 8
  %21 = alloca %"class.std::initializer_list.86", align 8
  %22 = alloca [4 x %"class.sim::Cartesian"], align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.sim::Cartesian", align 8
  %25 = alloca %"class.sim::Meters", align 8
  %26 = alloca %"class.sim::Meters", align 8
  %27 = alloca %"class.sim::Cartesian", align 8
  %28 = alloca %"class.sim::Meters", align 8
  %29 = alloca %"class.sim::Meters", align 8
  %30 = alloca %"class.sim::Cartesian", align 8
  %31 = alloca %"class.sim::Meters", align 8
  %32 = alloca %"class.sim::Meters", align 8
  %33 = alloca %"class.sim::Cartesian", align 8
  %34 = alloca %"class.sim::Meters", align 8
  %35 = alloca %"class.sim::Meters", align 8
  %36 = alloca i1, align 1
  %37 = alloca %"class.std::allocator.62", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %39 = call noundef ptr @_ZN3sim1PEv()
  %40 = call noundef double @_ZN3sim5Param9wallWidthEv(ptr noundef nonnull align 8 dereferenceable(1056) %39)
  call void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %40)
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 2.000000e+00)
          to label %41 unwind label %143

41:                                               ; preds = %3
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  %42 = getelementptr inbounds %"class.sim::Tile", ptr %38, i32 0, i32 4
  invoke void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8 %12, ptr noundef nonnull align 8 dereferenceable(48) %42)
          to label %43 unwind label %147

43:                                               ; preds = %41
  %44 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef 0)
          to label %45 unwind label %151

45:                                               ; preds = %43
  call void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(40) %44) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  %46 = getelementptr inbounds %"class.sim::Tile", ptr %38, i32 0, i32 4
  invoke void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %46)
          to label %47 unwind label %156

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 1)
          to label %49 unwind label %160

49:                                               ; preds = %47
  call void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(40) %48) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  %50 = getelementptr inbounds %"class.sim::Tile", ptr %38, i32 0, i32 4
  invoke void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %50)
          to label %51 unwind label %165

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 2)
          to label %53 unwind label %169

53:                                               ; preds = %51
  call void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %52) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  %54 = getelementptr inbounds %"class.sim::Tile", ptr %38, i32 0, i32 4
  invoke void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8 %18, ptr noundef nonnull align 8 dereferenceable(48) %54)
          to label %55 unwind label %174

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef 3)
          to label %57 unwind label %178

57:                                               ; preds = %55
  call void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(40) %56) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr %22) #7
  store i1 true, ptr %36, align 1
  store ptr %22, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %58 = call noundef i32 @_ZNK3sim4Tile4getXEv(ptr noundef nonnull align 8 dereferenceable(232) %38)
  %59 = icmp eq i32 %58, 0
  %60 = zext i1 %59 to i64
  %61 = select i1 %59, i32 2, i32 1
  %62 = sitofp i32 %61 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %62)
          to label %63 unwind label %183

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %64 = call noundef i32 @_ZNK3sim4Tile4getYEv(ptr noundef nonnull align 8 dereferenceable(232) %38)
  %65 = icmp eq i32 %64, 0
  %66 = zext i1 %65 to i64
  %67 = select i1 %65, i32 2, i32 1
  %68 = sitofp i32 %67 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %68)
          to label %69 unwind label %187

69:                                               ; preds = %63
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %70 unwind label %191

70:                                               ; preds = %69
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %22, ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %71 unwind label %195

71:                                               ; preds = %70
  %72 = getelementptr inbounds %"class.sim::Cartesian", ptr %22, i64 1
  store ptr %72, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %73 = call noundef i32 @_ZNK3sim4Tile4getXEv(ptr noundef nonnull align 8 dereferenceable(232) %38)
  %74 = icmp eq i32 %73, 0
  %75 = zext i1 %74 to i64
  %76 = select i1 %74, i32 2, i32 1
  %77 = sitofp i32 %76 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %77)
          to label %78 unwind label %199

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  %79 = call noundef i32 @_ZNK3sim4Tile4getYEv(ptr noundef nonnull align 8 dereferenceable(232) %38)
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = sub nsw i32 %80, 1
  %82 = icmp eq i32 %79, %81
  %83 = zext i1 %82 to i64
  %84 = select i1 %82, i32 -2, i32 -1
  %85 = sitofp i32 %84 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %85)
          to label %86 unwind label %203

86:                                               ; preds = %78
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %27, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %87 unwind label %207

87:                                               ; preds = %86
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %72, ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(40) %27)
          to label %88 unwind label %211

88:                                               ; preds = %87
  %89 = getelementptr inbounds %"class.sim::Cartesian", ptr %22, i64 2
  store ptr %89, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %90 = call noundef i32 @_ZNK3sim4Tile4getXEv(ptr noundef nonnull align 8 dereferenceable(232) %38)
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = sub nsw i32 %91, 1
  %93 = icmp eq i32 %90, %92
  %94 = zext i1 %93 to i64
  %95 = select i1 %93, i32 -2, i32 -1
  %96 = sitofp i32 %95 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %96)
          to label %97 unwind label %215

97:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #7
  %98 = call noundef i32 @_ZNK3sim4Tile4getYEv(ptr noundef nonnull align 8 dereferenceable(232) %38)
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = sub nsw i32 %99, 1
  %101 = icmp eq i32 %98, %100
  %102 = zext i1 %101 to i64
  %103 = select i1 %101, i32 -2, i32 -1
  %104 = sitofp i32 %103 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %104)
          to label %105 unwind label %219

105:                                              ; preds = %97
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %106 unwind label %223

106:                                              ; preds = %105
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %89, ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %107 unwind label %227

107:                                              ; preds = %106
  %108 = getelementptr inbounds %"class.sim::Cartesian", ptr %22, i64 3
  store ptr %108, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  %109 = call noundef i32 @_ZNK3sim4Tile4getXEv(ptr noundef nonnull align 8 dereferenceable(232) %38)
  %110 = load i32, ptr %5, align 4, !tbaa !9
  %111 = sub nsw i32 %110, 1
  %112 = icmp eq i32 %109, %111
  %113 = zext i1 %112 to i64
  %114 = select i1 %112, i32 -2, i32 -1
  %115 = sitofp i32 %114 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %34, ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %115)
          to label %116 unwind label %231

116:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #7
  %117 = call noundef i32 @_ZNK3sim4Tile4getYEv(ptr noundef nonnull align 8 dereferenceable(232) %38)
  %118 = icmp eq i32 %117, 0
  %119 = zext i1 %118 to i64
  %120 = select i1 %118, i32 2, i32 1
  %121 = sitofp i32 %120 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %7, double noundef %121)
          to label %122 unwind label %235

122:                                              ; preds = %116
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %33, ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %123 unwind label %239

123:                                              ; preds = %122
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %108, ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %124 unwind label %243

124:                                              ; preds = %123
  store i1 false, ptr %36, align 1
  %125 = getelementptr inbounds %"class.std::initializer_list.86", ptr %21, i32 0, i32 0
  store ptr %22, ptr %125, align 8, !tbaa !11
  %126 = getelementptr inbounds %"class.std::initializer_list.86", ptr %21, i32 0, i32 1
  store i64 4, ptr %126, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %37) #7
  call void @_ZNSaIN3sim9CartesianEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #7
  %127 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8
  %129 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %130 = load i64, ptr %129, align 8
  invoke void @_ZNSt6vectorIN3sim9CartesianESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr %128, i64 %130, ptr noundef nonnull align 1 dereferenceable(1) %37)
          to label %131 unwind label %247

131:                                              ; preds = %124
  invoke void @_ZN3sim7PolygonC1ERKSt6vectorINS_9CartesianESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %132 unwind label %251

132:                                              ; preds = %131
  %133 = getelementptr inbounds %"class.sim::Tile", ptr %38, i32 0, i32 5
  %134 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3sim7PolygonaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %133, ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %135 unwind label %255

135:                                              ; preds = %132
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @_ZNSt15__new_allocatorIN3sim9CartesianEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #7
  %136 = getelementptr inbounds [4 x %"class.sim::Cartesian"], ptr %22, i32 0, i32 0
  %137 = getelementptr inbounds %"class.sim::Cartesian", ptr %136, i64 4
  br label %138

138:                                              ; preds = %138, %135
  %139 = phi ptr [ %137, %135 ], [ %140, %138 ]
  %140 = getelementptr inbounds %"class.sim::Cartesian", ptr %139, i64 -1
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %140) #7
  %141 = icmp eq ptr %140, %136
  br i1 %141, label %142, label %138

142:                                              ; preds = %138
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  ret void

143:                                              ; preds = %3
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %9, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %10, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  br label %298

147:                                              ; preds = %41
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %9, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %10, align 4
  br label %155

151:                                              ; preds = %43
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %9, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %10, align 4
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  br label %155

155:                                              ; preds = %151, %147
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  br label %297

156:                                              ; preds = %45
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %10, align 4
  br label %164

160:                                              ; preds = %47
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %9, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %10, align 4
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %164

164:                                              ; preds = %160, %156
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %296

165:                                              ; preds = %49
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %9, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %10, align 4
  br label %173

169:                                              ; preds = %51
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %9, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %10, align 4
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  br label %173

173:                                              ; preds = %169, %165
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  br label %295

174:                                              ; preds = %53
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %9, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %10, align 4
  br label %182

178:                                              ; preds = %55
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %9, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %10, align 4
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %182

182:                                              ; preds = %178, %174
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  br label %294

183:                                              ; preds = %57
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %9, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %10, align 4
  br label %283

187:                                              ; preds = %63
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %9, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %10, align 4
  br label %282

191:                                              ; preds = %69
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %9, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %10, align 4
  br label %281

195:                                              ; preds = %70
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %9, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %10, align 4
  br label %280

199:                                              ; preds = %71
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %9, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %10, align 4
  br label %279

203:                                              ; preds = %78
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %9, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %10, align 4
  br label %278

207:                                              ; preds = %86
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %9, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %10, align 4
  br label %277

211:                                              ; preds = %87
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %9, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %10, align 4
  br label %276

215:                                              ; preds = %88
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %9, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %10, align 4
  br label %275

219:                                              ; preds = %97
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %9, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %10, align 4
  br label %274

223:                                              ; preds = %105
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %9, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %10, align 4
  br label %273

227:                                              ; preds = %106
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %9, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %10, align 4
  br label %272

231:                                              ; preds = %107
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %9, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %10, align 4
  br label %271

235:                                              ; preds = %116
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %9, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %10, align 4
  br label %270

239:                                              ; preds = %122
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %9, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %10, align 4
  br label %269

243:                                              ; preds = %123
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %9, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %10, align 4
  br label %268

247:                                              ; preds = %124
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %9, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %10, align 4
  br label %260

251:                                              ; preds = %131
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %9, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %10, align 4
  br label %259

255:                                              ; preds = %132
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %9, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %10, align 4
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #7
  br label %259

259:                                              ; preds = %255, %251
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %260

260:                                              ; preds = %259, %247
  call void @_ZNSt15__new_allocatorIN3sim9CartesianEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %37) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #7
  %261 = getelementptr inbounds [4 x %"class.sim::Cartesian"], ptr %22, i32 0, i32 0
  %262 = getelementptr inbounds %"class.sim::Cartesian", ptr %261, i64 4
  br label %263

263:                                              ; preds = %263, %260
  %264 = phi ptr [ %262, %260 ], [ %265, %263 ]
  %265 = getelementptr inbounds %"class.sim::Cartesian", ptr %264, i64 -1
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %265) #7
  %266 = icmp eq ptr %265, %261
  br i1 %266, label %267, label %263

267:                                              ; preds = %263
  br label %268

268:                                              ; preds = %267, %243
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #7
  br label %269

269:                                              ; preds = %268, %239
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #7
  br label %270

270:                                              ; preds = %269, %235
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #7
  br label %271

271:                                              ; preds = %270, %231
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #7
  br label %272

272:                                              ; preds = %271, %227
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %30) #7
  br label %273

273:                                              ; preds = %272, %223
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #7
  br label %274

274:                                              ; preds = %273, %219
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #7
  br label %275

275:                                              ; preds = %274, %215
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #7
  br label %276

276:                                              ; preds = %275, %211
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %27) #7
  br label %277

277:                                              ; preds = %276, %207
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  br label %278

278:                                              ; preds = %277, %203
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  br label %279

279:                                              ; preds = %278, %199
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #7
  br label %280

280:                                              ; preds = %279, %195
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #7
  br label %281

281:                                              ; preds = %280, %191
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #7
  br label %282

282:                                              ; preds = %281, %187
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  br label %283

283:                                              ; preds = %282, %183
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #7
  %284 = load i1, ptr %36, align 1
  br i1 %284, label %285, label %293

285:                                              ; preds = %283
  %286 = load ptr, ptr %23, align 8
  %287 = icmp eq ptr %22, %286
  br i1 %287, label %292, label %288

288:                                              ; preds = %288, %285
  %289 = phi ptr [ %286, %285 ], [ %290, %288 ]
  %290 = getelementptr inbounds %"class.sim::Cartesian", ptr %289, i64 -1
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %290) #7
  %291 = icmp eq ptr %290, %22
  br i1 %291, label %292, label %288

292:                                              ; preds = %288, %285
  br label %293

293:                                              ; preds = %292, %283
  call void @llvm.lifetime.end.p0(i64 160, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #7
  br label %294

294:                                              ; preds = %293, %182
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #7
  br label %295

295:                                              ; preds = %294, %173
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #7
  br label %296

296:                                              ; preds = %295, %164
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #7
  br label %297

297:                                              ; preds = %296, %155
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  br label %298

298:                                              ; preds = %297, %143
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #7
  br label %299

299:                                              ; preds = %298
  %300 = load ptr, ptr %9, align 8
  %301 = load i32, ptr %10, align 4
  %302 = insertvalue { ptr, i32 } poison, ptr %300, 0
  %303 = insertvalue { ptr, i32 } %302, i32 %301, 1
  resume { ptr, i32 } %303
}

declare noundef ptr @_ZN3sim1PEv() #4

declare noundef double @_ZN3sim5Param9wallWidthEv(ptr noundef nonnull align 8 dereferenceable(1056)) #4

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

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

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

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

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 #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

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

declare void @_ZN3sim7PolygonC1ERKSt6vectorINS_9CartesianESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

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

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

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

; Function Attrs: nounwind
declare void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5

declare void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #4

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

declare void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #4

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


; 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::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.std::vector.60" = type { %"struct.std::_Vector_base.61" }
%"struct.std::_Vector_base.61" = 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.sim::Polygon" = type { %"class.std::vector.60", %"class.std::vector.65" }
%"class.std::vector.65" = type { %"struct.std::_Vector_base.66" }
%"struct.std::_Vector_base.66" = 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 }
%"class.std::allocator.62" = type { i8 }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim4Tile19initInteriorPolygonEii(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.sim::Meters", align 8
  %5 = alloca %"class.sim::Meters", align 8
  %6 = alloca %"class.sim::Cartesian", align 8
  %7 = alloca %"class.std::vector.60", align 8
  %8 = alloca %"class.sim::Cartesian", align 8
  %9 = alloca %"class.std::vector.60", align 8
  %10 = alloca %"class.sim::Cartesian", align 8
  %11 = alloca %"class.std::vector.60", align 8
  %12 = alloca %"class.sim::Cartesian", align 8
  %13 = alloca %"class.std::vector.60", align 8
  %14 = alloca %"class.sim::Polygon", align 8
  %15 = alloca %"class.std::vector.60", align 8
  %16 = alloca [4 x %"class.sim::Cartesian"], align 8
  %17 = alloca %"class.sim::Cartesian", align 8
  %18 = alloca %"class.sim::Meters", align 8
  %19 = alloca %"class.sim::Meters", align 8
  %20 = alloca %"class.sim::Cartesian", align 8
  %21 = alloca %"class.sim::Meters", align 8
  %22 = alloca %"class.sim::Meters", align 8
  %23 = alloca %"class.sim::Cartesian", align 8
  %24 = alloca %"class.sim::Meters", align 8
  %25 = alloca %"class.sim::Meters", align 8
  %26 = alloca %"class.sim::Cartesian", align 8
  %27 = alloca %"class.sim::Meters", align 8
  %28 = alloca %"class.sim::Meters", align 8
  %29 = alloca %"class.std::allocator.62", align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  %30 = tail call noundef ptr @_ZN3sim1PEv()
  %31 = tail call noundef double @_ZN3sim5Param9wallWidthEv(ptr noundef nonnull align 8 dereferenceable(1056) %30)
  call void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %31)
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef 2.000000e+00)
          to label %32 unwind label %107

32:                                               ; preds = %3
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  %33 = getelementptr inbounds i8, ptr %0, i64 64
  invoke void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.60") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %33)
          to label %34 unwind label %109

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
          to label %36 unwind label %111

36:                                               ; preds = %34
  call void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %35) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  invoke void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.60") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %33)
          to label %37 unwind label %114

37:                                               ; preds = %36
  %38 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 1)
          to label %39 unwind label %116

39:                                               ; preds = %37
  call void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %38) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  invoke void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.60") align 8 %11, ptr noundef nonnull align 8 dereferenceable(48) %33)
          to label %40 unwind label %119

40:                                               ; preds = %39
  %41 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 2)
          to label %42 unwind label %121

42:                                               ; preds = %40
  call void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %41) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  invoke void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.60") align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %33)
          to label %43 unwind label %124

43:                                               ; preds = %42
  %44 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3sim9CartesianESaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 3)
          to label %45 unwind label %126

45:                                               ; preds = %43
  call void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %44) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %46 = call noundef i32 @_ZNK3sim4Tile4getXEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %47 = icmp eq i32 %46, 0
  %48 = select i1 %47, i32 2, i32 1
  %49 = uitofp nneg i32 %48 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %49)
          to label %50 unwind label %.thread

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #7
  %51 = call noundef i32 @_ZNK3sim4Tile4getYEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %52 = icmp eq i32 %51, 0
  %53 = select i1 %52, i32 2, i32 1
  %54 = uitofp nneg i32 %53 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %54)
          to label %55 unwind label %.thread101

55:                                               ; preds = %50
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %56 unwind label %131

56:                                               ; preds = %55
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %16, ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %57 unwind label %133

57:                                               ; preds = %56
  %58 = getelementptr inbounds i8, ptr %16, i64 40
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #7
  %59 = call noundef i32 @_ZNK3sim4Tile4getXEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %60 = icmp eq i32 %59, 0
  %61 = select i1 %60, i32 2, i32 1
  %62 = uitofp nneg i32 %61 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %62)
          to label %63 unwind label %135

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #7
  %64 = call noundef i32 @_ZNK3sim4Tile4getYEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %65 = add nsw i32 %2, -1
  %66 = icmp eq i32 %64, %65
  %67 = select i1 %66, i32 -2, i32 -1
  %68 = sitofp i32 %67 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %68)
          to label %69 unwind label %137

69:                                               ; preds = %63
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %70 unwind label %139

70:                                               ; preds = %69
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %58, ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %71 unwind label %141

71:                                               ; preds = %70
  %72 = getelementptr inbounds i8, ptr %16, i64 80
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #7
  %73 = call noundef i32 @_ZNK3sim4Tile4getXEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %74 = add nsw i32 %1, -1
  %75 = icmp eq i32 %73, %74
  %76 = select i1 %75, i32 -2, i32 -1
  %77 = sitofp i32 %76 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %77)
          to label %78 unwind label %143

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #7
  %79 = call noundef i32 @_ZNK3sim4Tile4getYEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %80 = icmp eq i32 %79, %65
  %81 = select i1 %80, i32 -2, i32 -1
  %82 = sitofp i32 %81 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %82)
          to label %83 unwind label %145

83:                                               ; preds = %78
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %84 unwind label %147

84:                                               ; preds = %83
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %72, ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %85 unwind label %149

85:                                               ; preds = %84
  %86 = getelementptr inbounds i8, ptr %16, i64 120
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #7
  %87 = call noundef i32 @_ZNK3sim4Tile4getXEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %88 = icmp eq i32 %87, %74
  %89 = select i1 %88, i32 -2, i32 -1
  %90 = sitofp i32 %89 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %27, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %90)
          to label %91 unwind label %151

91:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #7
  %92 = call noundef i32 @_ZNK3sim4Tile4getYEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
  %93 = icmp eq i32 %92, 0
  %94 = select i1 %93, i32 2, i32 1
  %95 = uitofp nneg i32 %94 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %4, double noundef %95)
          to label %96 unwind label %153

96:                                               ; preds = %91
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %97 unwind label %155

97:                                               ; preds = %96
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %86, ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %26)
          to label %98 unwind label %157

98:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %29) #7
  call void @_ZNSaIN3sim9CartesianEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  invoke void @_ZNSt6vectorIN3sim9CartesianESaIS1_EEC2ESt16initializer_listIS1_ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr nonnull %16, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %29)
          to label %99 unwind label %159

99:                                               ; preds = %98
  invoke void @_ZN3sim7PolygonC1ERKSt6vectorINS_9CartesianESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %100 unwind label %161

100:                                              ; preds = %99
  %101 = getelementptr inbounds i8, ptr %0, i64 112
  %102 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3sim7PolygonaSERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %101, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %103 unwind label %163

103:                                              ; preds = %100
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  call void @_ZNSt15__new_allocatorIN3sim9CartesianEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #7
  %104 = getelementptr inbounds i8, ptr %16, i64 120
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %104) #7
  %105 = getelementptr inbounds i8, ptr %16, i64 80
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %105) #7
  %106 = getelementptr inbounds i8, ptr %16, i64 40
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %106) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %26) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  ret void

107:                                              ; preds = %3
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  br label %191

109:                                              ; preds = %32
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %113

111:                                              ; preds = %34
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %113

113:                                              ; preds = %111, %109
  %.pn = phi { ptr, i32 } [ %112, %111 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %190

114:                                              ; preds = %36
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %118

116:                                              ; preds = %37
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  br label %118

118:                                              ; preds = %116, %114
  %.pn66 = phi { ptr, i32 } [ %117, %116 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %189

119:                                              ; preds = %39
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %123

121:                                              ; preds = %40
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %123

123:                                              ; preds = %121, %119
  %.pn68 = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %188

124:                                              ; preds = %42
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %128

126:                                              ; preds = %43
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #7
  br label %128

128:                                              ; preds = %126, %124
  %.pn70 = phi { ptr, i32 } [ %127, %126 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  br label %187

.thread:                                          ; preds = %45
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  br label %.loopexit

.thread101:                                       ; preds = %50
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  br label %.loopexit

131:                                              ; preds = %55
  %132 = landingpad { ptr, i32 }
          cleanup
  br label %182

133:                                              ; preds = %56
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %181

135:                                              ; preds = %57
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %180

137:                                              ; preds = %63
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %179

139:                                              ; preds = %69
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %178

141:                                              ; preds = %70
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %177

143:                                              ; preds = %71
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %176

145:                                              ; preds = %78
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %175

147:                                              ; preds = %83
  %148 = landingpad { ptr, i32 }
          cleanup
  br label %174

149:                                              ; preds = %84
  %150 = landingpad { ptr, i32 }
          cleanup
  br label %173

151:                                              ; preds = %85
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %172

153:                                              ; preds = %91
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %171

155:                                              ; preds = %96
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %170

157:                                              ; preds = %97
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit106

159:                                              ; preds = %98
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit106.loopexit

161:                                              ; preds = %99
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %165

163:                                              ; preds = %100
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim7PolygonD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #7
  br label %165

165:                                              ; preds = %163, %161
  %.pn72 = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  call void @_ZNSt6vectorIN3sim9CartesianESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #7
  br label %.loopexit106.loopexit

.loopexit106.loopexit:                            ; preds = %165, %159
  %.pn72.pn = phi { ptr, i32 } [ %.pn72, %165 ], [ %160, %159 ]
  call void @_ZNSt15__new_allocatorIN3sim9CartesianEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %29) #7
  %166 = getelementptr inbounds i8, ptr %16, i64 120
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %166) #7
  %167 = getelementptr inbounds i8, ptr %16, i64 80
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %167) #7
  %168 = getelementptr inbounds i8, ptr %16, i64 40
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %168) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #7
  br label %.loopexit106

.loopexit106:                                     ; preds = %.loopexit106.loopexit, %157
  %.pn72.pn.pn = phi { ptr, i32 } [ %158, %157 ], [ %.pn72.pn, %.loopexit106.loopexit ]
  %169 = phi i1 [ false, %157 ], [ true, %.loopexit106.loopexit ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #7
  br label %170

170:                                              ; preds = %.loopexit106, %155
  %.pn72.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn, %.loopexit106 ], [ %156, %155 ]
  %.1 = phi i1 [ %169, %.loopexit106 ], [ false, %155 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #7
  br label %171

171:                                              ; preds = %170, %153
  %.pn72.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn, %170 ], [ %154, %153 ]
  %.2 = phi i1 [ %.1, %170 ], [ false, %153 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  br label %172

172:                                              ; preds = %171, %151
  %.pn72.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn, %171 ], [ %152, %151 ]
  %.3 = phi i1 [ %.2, %171 ], [ false, %151 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %26) #7
  br label %173

173:                                              ; preds = %172, %149
  %.pn72.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn, %172 ], [ %150, %149 ]
  %.09 = phi ptr [ %86, %172 ], [ %72, %149 ]
  %.4 = phi i1 [ %.3, %172 ], [ false, %149 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #7
  br label %174

174:                                              ; preds = %173, %147
  %.pn72.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn, %173 ], [ %148, %147 ]
  %.110 = phi ptr [ %.09, %173 ], [ %72, %147 ]
  %.5 = phi i1 [ %.4, %173 ], [ false, %147 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  br label %175

175:                                              ; preds = %174, %145
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn, %174 ], [ %146, %145 ]
  %.211 = phi ptr [ %.110, %174 ], [ %72, %145 ]
  %.6 = phi i1 [ %.5, %174 ], [ false, %145 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #7
  br label %176

176:                                              ; preds = %175, %143
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn, %175 ], [ %144, %143 ]
  %.312 = phi ptr [ %.211, %175 ], [ %72, %143 ]
  %.7 = phi i1 [ %.6, %175 ], [ false, %143 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %23) #7
  br label %177

177:                                              ; preds = %176, %141
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn, %176 ], [ %142, %141 ]
  %.413 = phi ptr [ %.312, %176 ], [ %58, %141 ]
  %.8 = phi i1 [ %.7, %176 ], [ false, %141 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #7
  br label %178

178:                                              ; preds = %177, %139
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %177 ], [ %140, %139 ]
  %.514 = phi ptr [ %.413, %177 ], [ %58, %139 ]
  %.9 = phi i1 [ %.8, %177 ], [ false, %139 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  br label %179

179:                                              ; preds = %178, %137
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %178 ], [ %138, %137 ]
  %.615 = phi ptr [ %.514, %178 ], [ %58, %137 ]
  %.10 = phi i1 [ %.9, %178 ], [ false, %137 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  br label %180

180:                                              ; preds = %179, %135
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %179 ], [ %136, %135 ]
  %.716 = phi ptr [ %.615, %179 ], [ %58, %135 ]
  %.11 = phi i1 [ %.10, %179 ], [ false, %135 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #7
  br label %181

181:                                              ; preds = %180, %133
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %180 ], [ %134, %133 ]
  %.817 = phi ptr [ %.716, %180 ], [ %16, %133 ]
  %.12 = phi i1 [ %.11, %180 ], [ false, %133 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #7
  br label %182

182:                                              ; preds = %131, %181
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %181 ], [ %132, %131 ]
  %.918 = phi ptr [ %.817, %181 ], [ %16, %131 ]
  %.13 = phi i1 [ %.12, %181 ], [ false, %131 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #7
  %183 = icmp eq ptr %16, %.918
  %or.cond = select i1 %.13, i1 true, i1 %183
  br i1 %or.cond, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %182, %.preheader
  %184 = phi ptr [ %185, %.preheader ], [ %.918, %182 ]
  %185 = getelementptr inbounds i8, ptr %184, i64 -40
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %185) #7
  %186 = icmp eq ptr %185, %16
  br i1 %186, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.thread101, %.thread, %182
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn100 = phi { ptr, i32 } [ %129, %.thread ], [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %182 ], [ %130, %.thread101 ], [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %.preheader ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #7
  br label %187

187:                                              ; preds = %.loopexit, %128
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn100, %.loopexit ], [ %.pn70, %128 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #7
  br label %188

188:                                              ; preds = %187, %123
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %187 ], [ %.pn68, %123 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %189

189:                                              ; preds = %188, %118
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %188 ], [ %.pn66, %118 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #7
  br label %190

190:                                              ; preds = %189, %113
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %189 ], [ %.pn, %113 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  br label %191

191:                                              ; preds = %190, %107
  %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %190 ], [ %108, %107 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn72.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

declare noundef ptr @_ZN3sim1PEv() local_unnamed_addr #4

declare noundef double @_ZN3sim5Param9wallWidthEv(ptr noundef nonnull align 8 dereferenceable(1056)) local_unnamed_addr #4

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

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 #4

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

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 #4

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 #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3sim9CartesianC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

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

declare void @_ZN3sim7PolygonC1ERKSt6vectorINS_9CartesianESaIS2_EE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4

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

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

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

; Function Attrs: nounwind
declare void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #5

declare void @_ZNK3sim7Polygon11getVerticesEv(ptr dead_on_unwind writable sret(%"class.std::vector.60") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass