; LLVM IR from mackorone/mms :: old/v2/src/sim (TileGraphicTextCache)

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

%"class.std::set" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<sim::TileTextAlignment, sim::TileTextAlignment, std::_Identity<sim::TileTextAlignment>, std::less<sim::TileTextAlignment>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::TileTextAlignment, sim::TileTextAlignment, std::_Identity<sim::TileTextAlignment>, std::less<sim::TileTextAlignment>>::_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.28" = type { %"class.std::_Rb_tree.29" }
%"class.std::_Rb_tree.29" = type { %"struct.std::_Rb_tree<std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<const std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<sim::Cartesian, sim::Cartesian>>, std::_Select1st<std::pair<const std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<sim::Cartesian, sim::Cartesian>>>, std::less<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<const std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<sim::Cartesian, sim::Cartesian>>, std::_Select1st<std::pair<const std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<sim::Cartesian, sim::Cartesian>>>, std::less<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.sim::Cartesian" = type { %"class.sim::Coordinate" }
%"class.sim::Coordinate" = type { ptr, %"class.sim::Meters", %"class.sim::Meters" }
%"class.sim::Meters" = type { %"class.sim::Distance" }
%"class.sim::Distance" = type { ptr, double }
%"struct.std::pair.42" = type { %"struct.std::pair.38", %"struct.std::pair.36" }
%"struct.std::pair.38" = type { %"struct.std::pair.20", %"struct.std::pair.20" }
%"struct.std::pair.20" = type { i32, i32 }
%"struct.std::pair.36" = type { %"class.sim::Cartesian", %"class.sim::Cartesian" }
%"struct.std::pair.40" = type <{ %"struct.std::_Rb_tree_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.sim::TileGraphicTextCache" = type { %"class.sim::Meters", %"class.sim::Meters", %"struct.std::pair.20", %"class.std::map.22", %"class.std::map.28" }
%"class.std::map.22" = type { %"class.std::_Rb_tree.23" }
%"class.std::_Rb_tree.23" = type { %"struct.std::_Rb_tree<char, std::pair<const char, std::pair<double, double>>, std::_Select1st<std::pair<const char, std::pair<double, double>>>, std::less<char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<char, std::pair<const char, std::pair<double, double>>, std::_Select1st<std::pair<const char, std::pair<double, double>>>, std::less<char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }

@_ZN3simL21UPPER_STAR_ALIGNMENTSE = external hidden global %"class.std::set", align 8
@_ZN3simL22CENTER_STAR_ALIGNMENTSE = external hidden global %"class.std::set", align 8
@_ZN3simL22STAR_CENTER_ALIGNMENTSE = external hidden global %"class.std::set", align 8
@_ZN3simL21STAR_RIGHT_ALIGNMENTSE = external hidden global %"class.std::set", align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: 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)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim20TileGraphicTextCache18buildPositionCacheEdNS_17TileTextAlignmentE(ptr dead_on_unwind noalias writable sret(%"class.std::map.28") align 8 %0, ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %2, i32 noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i1, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.sim::Cartesian", align 8
  %13 = alloca %"class.sim::Meters", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.sim::Meters", align 8
  %17 = alloca %"class.sim::Cartesian", align 8
  %18 = alloca %"class.sim::Cartesian", align 8
  %19 = alloca %"class.sim::Cartesian", align 8
  %20 = alloca %"class.sim::Cartesian", align 8
  %21 = alloca %"class.sim::Cartesian", align 8
  %22 = alloca %"class.sim::Cartesian", align 8
  %23 = alloca %"class.sim::Cartesian", align 8
  %24 = alloca %"class.sim::Cartesian", align 8
  %25 = alloca %"class.sim::Cartesian", 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::Meters", 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 %"class.sim::Meters", align 8
  %37 = alloca %"class.sim::Meters", align 8
  %38 = alloca %"class.sim::Meters", align 8
  %39 = alloca %"class.sim::Meters", align 8
  %40 = alloca %"class.sim::Meters", align 8
  %41 = alloca %"class.sim::Meters", align 8
  %42 = alloca %"class.sim::Cartesian", align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca %"class.sim::Cartesian", align 8
  %49 = alloca %"class.sim::Meters", align 8
  %50 = alloca %"class.sim::Meters", align 8
  %51 = alloca %"class.sim::Cartesian", align 8
  %52 = alloca %"class.sim::Meters", align 8
  %53 = alloca %"class.sim::Meters", align 8
  %54 = alloca double, align 8
  %55 = alloca double, align 8
  %56 = alloca %"class.sim::Cartesian", align 8
  %57 = alloca %"class.sim::Meters", align 8
  %58 = alloca %"class.sim::Meters", align 8
  %59 = alloca %"class.sim::Meters", align 8
  %60 = alloca %"class.sim::Meters", align 8
  %61 = alloca %"class.sim::Meters", align 8
  %62 = alloca %"class.sim::Meters", align 8
  %63 = alloca %"class.sim::Cartesian", align 8
  %64 = alloca %"class.sim::Meters", align 8
  %65 = alloca %"class.sim::Meters", align 8
  %66 = alloca %"class.sim::Meters", align 8
  %67 = alloca %"class.sim::Meters", align 8
  %68 = alloca %"class.sim::Meters", align 8
  %69 = alloca %"class.sim::Meters", align 8
  %70 = alloca %"struct.std::pair.42", align 8
  %71 = alloca %"struct.std::pair.38", align 4
  %72 = alloca %"struct.std::pair.20", align 4
  %73 = alloca %"struct.std::pair.20", align 4
  %74 = alloca %"struct.std::pair.36", align 8
  %75 = alloca %"struct.std::pair.40", align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store double %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  %76 = load ptr, ptr %6, align 8
  store i1 false, ptr %9, align 1
  call void @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %77 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 2
  %78 = getelementptr inbounds %"struct.std::pair.20", ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !13
  store i32 %79, ptr %10, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %80 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 2
  %81 = getelementptr inbounds %"struct.std::pair.20", ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 4, !tbaa !34
  store i32 %82, ptr %11, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %83 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 1
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %83, double noundef 2.000000e+00)
          to label %84 unwind label %119

84:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %85 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 1
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %85, double noundef 2.000000e+00)
          to label %86 unwind label %123

86:                                               ; preds = %84
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %87 unwind label %127

87:                                               ; preds = %86
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #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.start.p0(i64 40, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #6
  %88 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 0
  %89 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 0
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 8 dereferenceable(16) %88, ptr noundef nonnull align 8 dereferenceable(16) %89)
          to label %90 unwind label %133

90:                                               ; preds = %87
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %17, ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %91 unwind label %137

91:                                               ; preds = %90
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #6
  %92 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 0
  %93 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 0
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(16) %93)
          to label %94 unwind label %142

94:                                               ; preds = %91
  %95 = load double, ptr %7, align 8, !tbaa !9
  invoke void @_ZNK3sim9CartesianmlEd(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %21, double noundef %95)
          to label %96 unwind label %146

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

97:                                               ; preds = %96
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #6
  %98 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 0
  %99 = getelementptr inbounds %"class.sim::TileGraphicTextCache", ptr %76, i32 0, i32 0
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef nonnull align 8 dereferenceable(16) %98, ptr noundef nonnull align 8 dereferenceable(16) %99)
          to label %100 unwind label %156

100:                                              ; preds = %97
  %101 = load double, ptr %7, align 8, !tbaa !9
  invoke void @_ZNK3sim9CartesianmlEd(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %23, ptr noundef nonnull align 8 dereferenceable(40) %24, double noundef %101)
          to label %102 unwind label %160

102:                                              ; preds = %100
  invoke void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %22, ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %103 unwind label %164

103:                                              ; preds = %102
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #6
  invoke void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %25, ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %104 unwind label %170

104:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %27, ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %105 unwind label %174

105:                                              ; preds = %104
  %106 = load i32, ptr %11, align 4, !tbaa !33
  %107 = sitofp i32 %106 to double
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %27, double noundef %107)
          to label %108 unwind label %178

108:                                              ; preds = %105
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #6
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %29, ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %109 unwind label %183

109:                                              ; preds = %108
  %110 = load i32, ptr %10, align 4, !tbaa !33
  %111 = sitofp i32 %110 to double
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %29, double noundef %111)
          to label %112 unwind label %187

112:                                              ; preds = %109
  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 @llvm.lifetime.start.p0(i64 16, ptr %30) #6
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef 2.000000e+00)
          to label %113 unwind label %192

113:                                              ; preds = %112
  %114 = invoke noundef zeroext i1 @_ZNK3sim8DistanceltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %115 unwind label %196

115:                                              ; preds = %113
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br i1 %114, label %116, label %205

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %31, ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef 2.000000e+00)
          to label %117 unwind label %201

117:                                              ; preds = %116
  %118 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %212

119:                                              ; preds = %4
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  br label %132

123:                                              ; preds = %84
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %14, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %15, align 4
  br label %131

127:                                              ; preds = %86
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %14, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  br label %132

132:                                              ; preds = %131, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  br label %571

133:                                              ; preds = %87
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %14, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %15, align 4
  br label %141

137:                                              ; preds = %90
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %14, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %15, align 4
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  br label %141

141:                                              ; preds = %137, %133
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  br label %570

142:                                              ; preds = %91
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %14, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %15, align 4
  br label %155

146:                                              ; preds = %94
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %14, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %15, align 4
  br label %154

150:                                              ; preds = %96
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %14, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %15, align 4
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #6
  br label %154

154:                                              ; preds = %150, %146
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #6
  br label %155

155:                                              ; preds = %154, %142
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #6
  br label %569

156:                                              ; preds = %97
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %14, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %15, align 4
  br label %169

160:                                              ; preds = %100
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %14, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %15, align 4
  br label %168

164:                                              ; preds = %102
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %14, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %15, align 4
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %23) #6
  br label %168

168:                                              ; preds = %164, %160
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #6
  br label %169

169:                                              ; preds = %168, %156
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #6
  br label %568

170:                                              ; preds = %103
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %14, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %15, align 4
  br label %567

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

178:                                              ; preds = %105
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %14, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  br label %182

182:                                              ; preds = %178, %174
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %566

183:                                              ; preds = %108
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %14, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %15, align 4
  br label %191

187:                                              ; preds = %109
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %14, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  br label %191

191:                                              ; preds = %187, %183
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #6
  br label %565

192:                                              ; preds = %112
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %14, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %15, align 4
  br label %200

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

200:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #6
  br label %564

201:                                              ; preds = %116
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %14, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  br label %564

205:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #6
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef 2.000000e+00)
          to label %206 unwind label %208

206:                                              ; preds = %205
  %207 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br label %212

208:                                              ; preds = %205
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %14, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #6
  br label %564

212:                                              ; preds = %206, %117
  call void @llvm.lifetime.start.p0(i64 40, ptr %33) #6
  call void @llvm.lifetime.start.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
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %36, ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %213 unwind label %232

213:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %214 = load i32, ptr %11, align 4, !tbaa !33
  %215 = sitofp i32 %214 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %37, ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %215)
          to label %216 unwind label %236

216:                                              ; preds = %213
  invoke void @_ZNK3sim6MetersmiERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %35, ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %217 unwind label %240

217:                                              ; preds = %216
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %34, ptr noundef nonnull align 8 dereferenceable(16) %35, double noundef 2.000000e+00)
          to label %218 unwind label %244

218:                                              ; preds = %217
  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 @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %40, ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %219 unwind label %248

219:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  %220 = load i32, ptr %10, align 4, !tbaa !33
  %221 = sitofp i32 %220 to double
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %41, ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %221)
          to label %222 unwind label %252

222:                                              ; preds = %219
  invoke void @_ZNK3sim6MetersmiERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %39, ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(16) %41)
          to label %223 unwind label %256

223:                                              ; preds = %222
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %38, ptr noundef nonnull align 8 dereferenceable(16) %39, double noundef 2.000000e+00)
          to label %224 unwind label %260

224:                                              ; preds = %223
  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) %38)
          to label %225 unwind label %264

225:                                              ; preds = %224
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  call void @_ZN3sim8DistanceD2Ev(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) %34) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #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 @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %42) #6
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind writable sret(%"class.sim::Cartesian") align 8 %42, ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %226 unwind label %276

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

227:                                              ; preds = %557, %226
  %228 = load i32, ptr %43, align 4, !tbaa !33
  %229 = load i32, ptr %10, align 4, !tbaa !33
  %230 = icmp sle i32 %228, %229
  br i1 %230, label %280, label %231

231:                                              ; preds = %227
  store i32 2, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %560

232:                                              ; preds = %212
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %14, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %15, align 4
  br label %275

236:                                              ; preds = %213
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %14, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %15, align 4
  br label %274

240:                                              ; preds = %216
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %14, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %15, align 4
  br label %273

244:                                              ; preds = %217
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %14, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %15, align 4
  br label %272

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

252:                                              ; preds = %219
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %14, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %15, align 4
  br label %270

256:                                              ; preds = %222
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %14, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %15, align 4
  br label %269

260:                                              ; preds = %223
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %14, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %15, align 4
  br label %268

264:                                              ; preds = %224
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %14, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %38) #6
  br label %268

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

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

270:                                              ; preds = %269, %252
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #6
  br label %271

271:                                              ; preds = %270, %248
  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) %34) #6
  br label %272

272:                                              ; preds = %271, %244
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #6
  br label %273

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

274:                                              ; preds = %273, %236
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #6
  br label %275

275:                                              ; preds = %274, %232
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #6
  br label %563

276:                                              ; preds = %225
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %14, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %15, align 4
  br label %562

280:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  store i32 0, ptr %45, align 4, !tbaa !33
  br label %281

281:                                              ; preds = %553, %280
  %282 = load i32, ptr %45, align 4, !tbaa !33
  %283 = load i32, ptr %11, align 4, !tbaa !33
  %284 = icmp sle i32 %282, %283
  br i1 %284, label %286, label %285

285:                                              ; preds = %281
  store i32 5, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  br label %556

286:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  store i32 0, ptr %46, align 4, !tbaa !33
  br label %287

287:                                              ; preds = %549, %286
  %288 = load i32, ptr %46, align 4, !tbaa !33
  %289 = load i32, ptr %10, align 4, !tbaa !33
  %290 = icmp sle i32 %288, %289
  br i1 %290, label %292, label %291

291:                                              ; preds = %287
  store i32 8, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  br label %552

292:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  store i32 0, ptr %47, align 4, !tbaa !33
  br label %293

293:                                              ; preds = %518, %292
  %294 = load i32, ptr %47, align 4, !tbaa !33
  %295 = load i32, ptr %11, align 4, !tbaa !33
  %296 = icmp sle i32 %294, %295
  br i1 %296, label %298, label %297

297:                                              ; preds = %293
  store i32 11, ptr %44, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  br label %548

298:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 40, ptr %48) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %49) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %49, double noundef 0.000000e+00)
          to label %299 unwind label %322

299:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %50, double noundef 0.000000e+00)
          to label %300 unwind label %326

300:                                              ; preds = %299
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %50)
          to label %301 unwind label %330

301:                                              ; preds = %300
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %49) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %51) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %52, double noundef 0.000000e+00)
          to label %302 unwind label %336

302:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %53, double noundef 0.000000e+00)
          to label %303 unwind label %340

303:                                              ; preds = %302
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %51, ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %53)
          to label %304 unwind label %344

304:                                              ; preds = %303
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %53) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %52) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  %305 = load i32, ptr %46, align 4, !tbaa !33
  %306 = load i32, ptr %43, align 4, !tbaa !33
  %307 = icmp slt i32 %305, %306
  br i1 %307, label %308, label %499

308:                                              ; preds = %304
  %309 = load i32, ptr %47, align 4, !tbaa !33
  %310 = load i32, ptr %45, align 4, !tbaa !33
  %311 = icmp slt i32 %309, %310
  br i1 %311, label %312, label %499

312:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  store double 0.000000e+00, ptr %54, align 8, !tbaa !9
  %313 = load i32, ptr %8, align 4, !tbaa !11
  %314 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL22CENTER_STAR_ALIGNMENTSE, i32 noundef %313)
          to label %315 unwind label %350

315:                                              ; preds = %312
  br i1 %314, label %316, label %354

316:                                              ; preds = %315
  %317 = load i32, ptr %10, align 4, !tbaa !33
  %318 = load i32, ptr %43, align 4, !tbaa !33
  %319 = sub nsw i32 %317, %318
  %320 = sitofp i32 %319 to double
  %321 = fdiv double %320, 2.000000e+00
  store double %321, ptr %54, align 8, !tbaa !9
  br label %364

322:                                              ; preds = %298
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %14, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %15, align 4
  br label %335

326:                                              ; preds = %299
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %14, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %15, align 4
  br label %334

330:                                              ; preds = %300
  %331 = landingpad { ptr, i32 }
          cleanup
  %332 = extractvalue { ptr, i32 } %331, 0
  store ptr %332, ptr %14, align 8
  %333 = extractvalue { ptr, i32 } %331, 1
  store i32 %333, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50) #6
  br label %334

334:                                              ; preds = %330, %326
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %49) #6
  br label %335

335:                                              ; preds = %334, %322
  call void @llvm.lifetime.end.p0(i64 16, ptr %49) #6
  br label %547

336:                                              ; preds = %301
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %14, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %15, align 4
  br label %349

340:                                              ; preds = %302
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %14, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %15, align 4
  br label %348

344:                                              ; preds = %303
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %14, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %53) #6
  br label %348

348:                                              ; preds = %344, %340
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %52) #6
  br label %349

349:                                              ; preds = %348, %336
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  br label %546

350:                                              ; preds = %354, %312
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %14, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %15, align 4
  br label %498

354:                                              ; preds = %315
  %355 = load i32, ptr %8, align 4, !tbaa !11
  %356 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL21UPPER_STAR_ALIGNMENTSE, i32 noundef %355)
          to label %357 unwind label %350

357:                                              ; preds = %354
  br i1 %356, label %358, label %363

358:                                              ; preds = %357
  %359 = load i32, ptr %10, align 4, !tbaa !33
  %360 = load i32, ptr %43, align 4, !tbaa !33
  %361 = sub nsw i32 %359, %360
  %362 = sitofp i32 %361 to double
  store double %362, ptr %54, align 8, !tbaa !9
  br label %363

363:                                              ; preds = %358, %357
  br label %364

364:                                              ; preds = %363, %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  store double 0.000000e+00, ptr %55, align 8, !tbaa !9
  %365 = load i32, ptr %8, align 4, !tbaa !11
  %366 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL22STAR_CENTER_ALIGNMENTSE, i32 noundef %365)
          to label %367 unwind label %374

367:                                              ; preds = %364
  br i1 %366, label %368, label %378

368:                                              ; preds = %367
  %369 = load i32, ptr %11, align 4, !tbaa !33
  %370 = load i32, ptr %45, align 4, !tbaa !33
  %371 = sub nsw i32 %369, %370
  %372 = sitofp i32 %371 to double
  %373 = fdiv double %372, 2.000000e+00
  store double %373, ptr %55, align 8, !tbaa !9
  br label %388

374:                                              ; preds = %378, %364
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %14, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %15, align 4
  br label %497

378:                                              ; preds = %367
  %379 = load i32, ptr %8, align 4, !tbaa !11
  %380 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL21STAR_RIGHT_ALIGNMENTSE, i32 noundef %379)
          to label %381 unwind label %374

381:                                              ; preds = %378
  br i1 %380, label %382, label %387

382:                                              ; preds = %381
  %383 = load i32, ptr %11, align 4, !tbaa !33
  %384 = load i32, ptr %45, align 4, !tbaa !33
  %385 = sub nsw i32 %383, %384
  %386 = sitofp i32 %385 to double
  store double %386, ptr %55, align 8, !tbaa !9
  br label %387

387:                                              ; preds = %382, %381
  br label %388

388:                                              ; preds = %387, %368
  call void @llvm.lifetime.start.p0(i64 40, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %57) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %58) #6
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %58, ptr noundef nonnull align 8 dereferenceable(40) %42)
          to label %389 unwind label %429

389:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #6
  %390 = load i32, ptr %47, align 4, !tbaa !33
  %391 = sitofp i32 %390 to double
  %392 = load double, ptr %55, align 8, !tbaa !9
  %393 = fadd double %391, %392
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %59, ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %393)
          to label %394 unwind label %433

394:                                              ; preds = %389
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %57, ptr noundef nonnull align 8 dereferenceable(16) %58, ptr noundef nonnull align 8 dereferenceable(16) %59)
          to label %395 unwind label %437

395:                                              ; preds = %394
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %61) #6
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %61, ptr noundef nonnull align 8 dereferenceable(40) %42)
          to label %396 unwind label %441

396:                                              ; preds = %395
  call void @llvm.lifetime.start.p0(i64 16, ptr %62) #6
  %397 = load i32, ptr %43, align 4, !tbaa !33
  %398 = load i32, ptr %46, align 4, !tbaa !33
  %399 = sub nsw i32 %397, %398
  %400 = sub nsw i32 %399, 1
  %401 = sitofp i32 %400 to double
  %402 = load double, ptr %54, align 8, !tbaa !9
  %403 = fadd double %401, %402
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %62, ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %403)
          to label %404 unwind label %445

404:                                              ; preds = %396
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %60, ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull align 8 dereferenceable(16) %62)
          to label %405 unwind label %449

405:                                              ; preds = %404
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %56, ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %60)
          to label %406 unwind label %453

406:                                              ; preds = %405
  %407 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3sim9CartesianaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull align 8 dereferenceable(40) %56) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %56) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %60) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %62) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %61) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %57) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %59) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %56) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %63) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %64) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %65) #6
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %65, ptr noundef nonnull align 8 dereferenceable(40) %42)
          to label %408 unwind label %463

408:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 16, ptr %66) #6
  %409 = load i32, ptr %47, align 4, !tbaa !33
  %410 = sitofp i32 %409 to double
  %411 = load double, ptr %55, align 8, !tbaa !9
  %412 = fadd double %410, %411
  %413 = fadd double %412, 1.000000e+00
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %66, ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef %413)
          to label %414 unwind label %467

414:                                              ; preds = %408
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %64, ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 8 dereferenceable(16) %66)
          to label %415 unwind label %471

415:                                              ; preds = %414
  call void @llvm.lifetime.start.p0(i64 16, ptr %67) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #6
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %68, ptr noundef nonnull align 8 dereferenceable(40) %42)
          to label %416 unwind label %475

416:                                              ; preds = %415
  call void @llvm.lifetime.start.p0(i64 16, ptr %69) #6
  %417 = load i32, ptr %43, align 4, !tbaa !33
  %418 = load i32, ptr %46, align 4, !tbaa !33
  %419 = sub nsw i32 %417, %418
  %420 = sub nsw i32 %419, 1
  %421 = sitofp i32 %420 to double
  %422 = load double, ptr %54, align 8, !tbaa !9
  %423 = fadd double %421, %422
  %424 = fadd double %423, 1.000000e+00
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %69, ptr noundef nonnull align 8 dereferenceable(16) %28, double noundef %424)
          to label %425 unwind label %479

425:                                              ; preds = %416
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind writable sret(%"class.sim::Meters") align 8 %67, ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef nonnull align 8 dereferenceable(16) %69)
          to label %426 unwind label %483

426:                                              ; preds = %425
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %63, ptr noundef nonnull align 8 dereferenceable(16) %64, ptr noundef nonnull align 8 dereferenceable(16) %67)
          to label %427 unwind label %487

427:                                              ; preds = %426
  %428 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3sim9CartesianaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %51, ptr noundef nonnull align 8 dereferenceable(40) %63) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %63) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %67) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %69) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %68) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %67) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %64) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %66) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %65) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  br label %499

429:                                              ; preds = %388
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %14, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %15, align 4
  br label %462

433:                                              ; preds = %389
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %14, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %15, align 4
  br label %461

437:                                              ; preds = %394
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %14, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %15, align 4
  br label %460

441:                                              ; preds = %395
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %14, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %15, align 4
  br label %459

445:                                              ; preds = %396
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %14, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %15, align 4
  br label %458

449:                                              ; preds = %404
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %14, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %15, align 4
  br label %457

453:                                              ; preds = %405
  %454 = landingpad { ptr, i32 }
          cleanup
  %455 = extractvalue { ptr, i32 } %454, 0
  store ptr %455, ptr %14, align 8
  %456 = extractvalue { ptr, i32 } %454, 1
  store i32 %456, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %60) #6
  br label %457

457:                                              ; preds = %453, %449
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %62) #6
  br label %458

458:                                              ; preds = %457, %445
  call void @llvm.lifetime.end.p0(i64 16, ptr %62) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %61) #6
  br label %459

459:                                              ; preds = %458, %441
  call void @llvm.lifetime.end.p0(i64 16, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %57) #6
  br label %460

460:                                              ; preds = %459, %437
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %59) #6
  br label %461

461:                                              ; preds = %460, %433
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %58) #6
  br label %462

462:                                              ; preds = %461, %429
  call void @llvm.lifetime.end.p0(i64 16, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %56) #6
  br label %497

463:                                              ; preds = %406
  %464 = landingpad { ptr, i32 }
          cleanup
  %465 = extractvalue { ptr, i32 } %464, 0
  store ptr %465, ptr %14, align 8
  %466 = extractvalue { ptr, i32 } %464, 1
  store i32 %466, ptr %15, align 4
  br label %496

467:                                              ; preds = %408
  %468 = landingpad { ptr, i32 }
          cleanup
  %469 = extractvalue { ptr, i32 } %468, 0
  store ptr %469, ptr %14, align 8
  %470 = extractvalue { ptr, i32 } %468, 1
  store i32 %470, ptr %15, align 4
  br label %495

471:                                              ; preds = %414
  %472 = landingpad { ptr, i32 }
          cleanup
  %473 = extractvalue { ptr, i32 } %472, 0
  store ptr %473, ptr %14, align 8
  %474 = extractvalue { ptr, i32 } %472, 1
  store i32 %474, ptr %15, align 4
  br label %494

475:                                              ; preds = %415
  %476 = landingpad { ptr, i32 }
          cleanup
  %477 = extractvalue { ptr, i32 } %476, 0
  store ptr %477, ptr %14, align 8
  %478 = extractvalue { ptr, i32 } %476, 1
  store i32 %478, ptr %15, align 4
  br label %493

479:                                              ; preds = %416
  %480 = landingpad { ptr, i32 }
          cleanup
  %481 = extractvalue { ptr, i32 } %480, 0
  store ptr %481, ptr %14, align 8
  %482 = extractvalue { ptr, i32 } %480, 1
  store i32 %482, ptr %15, align 4
  br label %492

483:                                              ; preds = %425
  %484 = landingpad { ptr, i32 }
          cleanup
  %485 = extractvalue { ptr, i32 } %484, 0
  store ptr %485, ptr %14, align 8
  %486 = extractvalue { ptr, i32 } %484, 1
  store i32 %486, ptr %15, align 4
  br label %491

487:                                              ; preds = %426
  %488 = landingpad { ptr, i32 }
          cleanup
  %489 = extractvalue { ptr, i32 } %488, 0
  store ptr %489, ptr %14, align 8
  %490 = extractvalue { ptr, i32 } %488, 1
  store i32 %490, ptr %15, align 4
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %67) #6
  br label %491

491:                                              ; preds = %487, %483
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %69) #6
  br label %492

492:                                              ; preds = %491, %479
  call void @llvm.lifetime.end.p0(i64 16, ptr %69) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %68) #6
  br label %493

493:                                              ; preds = %492, %475
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %67) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %64) #6
  br label %494

494:                                              ; preds = %493, %471
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %66) #6
  br label %495

495:                                              ; preds = %494, %467
  call void @llvm.lifetime.end.p0(i64 16, ptr %66) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %65) #6
  br label %496

496:                                              ; preds = %495, %463
  call void @llvm.lifetime.end.p0(i64 16, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %63) #6
  br label %497

497:                                              ; preds = %496, %462, %374
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  br label %498

498:                                              ; preds = %497, %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  br label %545

499:                                              ; preds = %427, %308, %304
  call void @llvm.lifetime.start.p0(i64 96, ptr %70) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #6
  %500 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %45)
          to label %501 unwind label %521

501:                                              ; preds = %499
  store i64 %500, ptr %72, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #6
  %502 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %503 unwind label %525

503:                                              ; preds = %501
  store i64 %502, ptr %73, align 4
  %504 = invoke { i64, i64 } @_ZSt9make_pairISt4pairIiiES1_ES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(8) %73)
          to label %505 unwind label %525

505:                                              ; preds = %503
  %506 = getelementptr inbounds { i64, i64 }, ptr %71, i32 0, i32 0
  %507 = extractvalue { i64, i64 } %504, 0
  store i64 %507, ptr %506, align 4
  %508 = getelementptr inbounds { i64, i64 }, ptr %71, i32 0, i32 1
  %509 = extractvalue { i64, i64 } %504, 1
  store i64 %509, ptr %508, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr %74) #6
  invoke void @_ZSt9make_pairIRN3sim9CartesianES2_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind writable sret(%"struct.std::pair.36") align 8 %74, ptr noundef nonnull align 8 dereferenceable(40) %48, ptr noundef nonnull align 8 dereferenceable(40) %51)
          to label %510 unwind label %529

510:                                              ; preds = %505
  invoke void @_ZSt9make_pairISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_EES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind writable sret(%"struct.std::pair.42") align 8 %70, ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 8 dereferenceable(80) %74)
          to label %511 unwind label %533

511:                                              ; preds = %510
  %512 = invoke { ptr, i8 } @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEE6insertIS0_IS2_S5_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES0_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(96) %70)
          to label %513 unwind label %537

513:                                              ; preds = %511
  %514 = getelementptr inbounds { ptr, i8 }, ptr %75, i32 0, i32 0
  %515 = extractvalue { ptr, i8 } %512, 0
  store ptr %515, ptr %514, align 8
  %516 = getelementptr inbounds { ptr, i8 }, ptr %75, i32 0, i32 1
  %517 = extractvalue { ptr, i8 } %512, 1
  store i8 %517, ptr %516, align 8
  call void @_ZNSt4pairIS_IS_IiiES0_ES_IN3sim9CartesianES3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %70) #6
  call void @_ZNSt4pairIN3sim9CartesianES1_ED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %74) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %74) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %70) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %51) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %51) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %48) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %48) #6
  br label %518

518:                                              ; preds = %513
  %519 = load i32, ptr %47, align 4, !tbaa !33
  %520 = add nsw i32 %519, 1
  store i32 %520, ptr %47, align 4, !tbaa !33
  br label %293, !llvm.loop !35

521:                                              ; preds = %499
  %522 = landingpad { ptr, i32 }
          cleanup
  %523 = extractvalue { ptr, i32 } %522, 0
  store ptr %523, ptr %14, align 8
  %524 = extractvalue { ptr, i32 } %522, 1
  store i32 %524, ptr %15, align 4
  br label %544

525:                                              ; preds = %503, %501
  %526 = landingpad { ptr, i32 }
          cleanup
  %527 = extractvalue { ptr, i32 } %526, 0
  store ptr %527, ptr %14, align 8
  %528 = extractvalue { ptr, i32 } %526, 1
  store i32 %528, ptr %15, align 4
  br label %543

529:                                              ; preds = %505
  %530 = landingpad { ptr, i32 }
          cleanup
  %531 = extractvalue { ptr, i32 } %530, 0
  store ptr %531, ptr %14, align 8
  %532 = extractvalue { ptr, i32 } %530, 1
  store i32 %532, ptr %15, align 4
  br label %542

533:                                              ; preds = %510
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %14, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %15, align 4
  br label %541

537:                                              ; preds = %511
  %538 = landingpad { ptr, i32 }
          cleanup
  %539 = extractvalue { ptr, i32 } %538, 0
  store ptr %539, ptr %14, align 8
  %540 = extractvalue { ptr, i32 } %538, 1
  store i32 %540, ptr %15, align 4
  call void @_ZNSt4pairIS_IS_IiiES0_ES_IN3sim9CartesianES3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %70) #6
  br label %541

541:                                              ; preds = %537, %533
  call void @_ZNSt4pairIN3sim9CartesianES1_ED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %74) #6
  br label %542

542:                                              ; preds = %541, %529
  call void @llvm.lifetime.end.p0(i64 80, ptr %74) #6
  br label %543

543:                                              ; preds = %542, %525
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #6
  br label %544

544:                                              ; preds = %543, %521
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %70) #6
  br label %545

545:                                              ; preds = %544, %498
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %51) #6
  br label %546

546:                                              ; preds = %545, %349
  call void @llvm.lifetime.end.p0(i64 40, ptr %51) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %48) #6
  br label %547

547:                                              ; preds = %546, %335
  call void @llvm.lifetime.end.p0(i64 40, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %42) #6
  br label %562

548:                                              ; preds = %297
  br label %549

549:                                              ; preds = %548
  %550 = load i32, ptr %46, align 4, !tbaa !33
  %551 = add nsw i32 %550, 1
  store i32 %551, ptr %46, align 4, !tbaa !33
  br label %287, !llvm.loop !37

552:                                              ; preds = %291
  br label %553

553:                                              ; preds = %552
  %554 = load i32, ptr %45, align 4, !tbaa !33
  %555 = add nsw i32 %554, 1
  store i32 %555, ptr %45, align 4, !tbaa !33
  br label %281, !llvm.loop !38

556:                                              ; preds = %285
  br label %557

557:                                              ; preds = %556
  %558 = load i32, ptr %43, align 4, !tbaa !33
  %559 = add nsw i32 %558, 1
  store i32 %559, ptr %43, align 4, !tbaa !33
  br label %227, !llvm.loop !39

560:                                              ; preds = %231
  store i1 true, ptr %9, align 1
  store i32 1, ptr %44, align 4
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %42) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %42) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #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 @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %25) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %561 = load i1, ptr %9, align 1
  br i1 %561, label %573, label %572

562:                                              ; preds = %547, %276
  call void @llvm.lifetime.end.p0(i64 40, ptr %42) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #6
  br label %563

563:                                              ; preds = %562, %275
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #6
  br label %564

564:                                              ; preds = %563, %208, %201, %200
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  br label %565

565:                                              ; preds = %564, %191
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %566

566:                                              ; preds = %565, %182
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %25) #6
  br label %567

567:                                              ; preds = %566, %170
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #6
  br label %568

568:                                              ; preds = %567, %169
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %19) #6
  br label %569

569:                                              ; preds = %568, %155
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #6
  br label %570

570:                                              ; preds = %569, %141
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  br label %571

571:                                              ; preds = %570, %132
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %574

572:                                              ; preds = %560
  call void @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %573

573:                                              ; preds = %572, %560
  ret void

574:                                              ; preds = %571
  %575 = load ptr, ptr %14, align 8
  %576 = load i32, ptr %15, align 4
  %577 = insertvalue { ptr, i32 } poison, ptr %575, 0
  %578 = insertvalue { ptr, i32 } %577, i32 %576, 1
  resume { ptr, i32 } %578
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairISt4pairIiiES1_ES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #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)) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRN3sim9CartesianES2_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.36") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 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) #5

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

declare void @_ZNK3sim9CartesianmiERKNS_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)) #5

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

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

declare noundef zeroext i1 @_ZNK3sim8DistanceltERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

declare void @_ZNK3sim6MetersmiERKNS_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)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEE6insertIS0_IS2_S5_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES0_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(96)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_EES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.42") align 8, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(80)) #3

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

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3sim17TileTextAlignmentE", !7, i64 0}
!13 = !{!14, !18, i64 32}
!14 = !{!"_ZTSN3sim20TileGraphicTextCacheE", !15, i64 0, !15, i64 16, !17, i64 32, !19, i64 40, !28, i64 88}
!15 = !{!"_ZTSN3sim6MetersE", !16, i64 0}
!16 = !{!"_ZTSN3sim8DistanceE", !10, i64 8}
!17 = !{!"_ZTSSt4pairIiiE", !18, i64 0, !18, i64 4}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSSt3mapIcSt4pairIddESt4lessIcESaIS0_IKcS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeIcSt4pairIKcS0_IddEESt10_Select1stIS3_ESt4lessIcESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeIcSt4pairIKcS0_IddEESt10_Select1stIS3_ESt4lessIcESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIcEE", !23, i64 0}
!23 = !{!"_ZTSSt4lessIcE"}
!24 = !{!"_ZTSSt15_Rb_tree_header", !25, i64 0, !27, i64 32}
!25 = !{!"_ZTSSt18_Rb_tree_node_base", !26, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{!"_ZTSSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEE", !29, i64 0}
!29 = !{!"_ZTSSt8_Rb_treeISt4pairIS0_IiiES1_ES0_IKS2_S0_IN3sim9CartesianES5_EESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE", !30, i64 0}
!30 = !{!"_ZTSNSt8_Rb_treeISt4pairIS0_IiiES1_ES0_IKS2_S0_IN3sim9CartesianES5_EESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE13_Rb_tree_implISB_Lb1EEE", !31, i64 0, !24, i64 8}
!31 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIS1_IiiES2_EEE", !32, i64 0}
!32 = !{!"_ZTSSt4lessISt4pairIS0_IiiES1_EE"}
!33 = !{!18, !18, i64 0}
!34 = !{!14, !18, i64 36}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = distinct !{!38, !36}
!39 = distinct !{!39, !36}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::set" = type { %"class.std::_Rb_tree.12" }
%"class.std::_Rb_tree.12" = type { %"struct.std::_Rb_tree<sim::TileTextAlignment, sim::TileTextAlignment, std::_Identity<sim::TileTextAlignment>, std::less<sim::TileTextAlignment>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<sim::TileTextAlignment, sim::TileTextAlignment, std::_Identity<sim::TileTextAlignment>, std::less<sim::TileTextAlignment>>::_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.28" = type { %"class.std::_Rb_tree.29" }
%"class.std::_Rb_tree.29" = type { %"struct.std::_Rb_tree<std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<const std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<sim::Cartesian, sim::Cartesian>>, std::_Select1st<std::pair<const std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<sim::Cartesian, sim::Cartesian>>>, std::less<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<const std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<sim::Cartesian, sim::Cartesian>>, std::_Select1st<std::pair<const std::pair<std::pair<int, int>, std::pair<int, int>>, std::pair<sim::Cartesian, sim::Cartesian>>>, std::less<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.sim::Cartesian" = type { %"class.sim::Coordinate" }
%"class.sim::Coordinate" = type { ptr, %"class.sim::Meters", %"class.sim::Meters" }
%"class.sim::Meters" = type { %"class.sim::Distance" }
%"class.sim::Distance" = type { ptr, double }
%"struct.std::pair.42" = type { %"struct.std::pair.38", %"struct.std::pair.36" }
%"struct.std::pair.38" = type { %"struct.std::pair.20", %"struct.std::pair.20" }
%"struct.std::pair.20" = type { i32, i32 }
%"struct.std::pair.36" = type { %"class.sim::Cartesian", %"class.sim::Cartesian" }

@_ZN3simL21UPPER_STAR_ALIGNMENTSE = external hidden global %"class.std::set", align 8
@_ZN3simL22CENTER_STAR_ALIGNMENTSE = external hidden global %"class.std::set", align 8
@_ZN3simL22STAR_CENTER_ALIGNMENTSE = external hidden global %"class.std::set", align 8
@_ZN3simL21STAR_RIGHT_ALIGNMENTSE = external hidden global %"class.std::set", align 8

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: 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 #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3sim20TileGraphicTextCache18buildPositionCacheEdNS_17TileTextAlignmentE(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::map.28") align 8 %0, ptr noundef nonnull align 8 dereferenceable(136) %1, double noundef %2, i32 noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.sim::Cartesian", align 8
  %6 = alloca %"class.sim::Meters", align 8
  %7 = alloca %"class.sim::Meters", align 8
  %8 = alloca %"class.sim::Cartesian", align 8
  %9 = alloca %"class.sim::Cartesian", align 8
  %10 = alloca %"class.sim::Cartesian", align 8
  %11 = alloca %"class.sim::Cartesian", align 8
  %12 = alloca %"class.sim::Cartesian", align 8
  %13 = alloca %"class.sim::Cartesian", align 8
  %14 = alloca %"class.sim::Cartesian", align 8
  %15 = alloca %"class.sim::Cartesian", align 8
  %16 = alloca %"class.sim::Cartesian", 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::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::Cartesian", 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::Meters", 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 i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.sim::Cartesian", align 8
  %39 = alloca %"class.sim::Meters", align 8
  %40 = alloca %"class.sim::Meters", align 8
  %41 = alloca %"class.sim::Cartesian", align 8
  %42 = alloca %"class.sim::Meters", align 8
  %43 = alloca %"class.sim::Meters", align 8
  %44 = alloca %"class.sim::Cartesian", align 8
  %45 = alloca %"class.sim::Meters", align 8
  %46 = alloca %"class.sim::Meters", align 8
  %47 = alloca %"class.sim::Meters", align 8
  %48 = alloca %"class.sim::Meters", align 8
  %49 = alloca %"class.sim::Meters", align 8
  %50 = alloca %"class.sim::Meters", align 8
  %51 = alloca %"class.sim::Cartesian", align 8
  %52 = alloca %"class.sim::Meters", align 8
  %53 = alloca %"class.sim::Meters", align 8
  %54 = alloca %"class.sim::Meters", align 8
  %55 = alloca %"class.sim::Meters", align 8
  %56 = alloca %"class.sim::Meters", align 8
  %57 = alloca %"class.sim::Meters", align 8
  %58 = alloca %"struct.std::pair.42", align 8
  %59 = alloca %"struct.std::pair.38", align 8
  %60 = alloca %"struct.std::pair.20", align 8
  %61 = alloca %"struct.std::pair.20", align 8
  %62 = alloca %"struct.std::pair.36", align 8
  tail call void @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  %63 = getelementptr inbounds i8, ptr %1, i64 32
  %64 = load i32, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %1, i64 36
  %66 = load i32, ptr %65, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %67 = getelementptr inbounds i8, ptr %1, i64 16
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %67, double noundef 2.000000e+00)
          to label %68 unwind label %92

68:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %67, double noundef 2.000000e+00)
          to label %69 unwind label %94

69:                                               ; preds = %68
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %70 unwind label %96

70:                                               ; preds = %69
  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 @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #6
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %71 unwind label %100

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

72:                                               ; preds = %71
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #6
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %73 unwind label %105

73:                                               ; preds = %72
  invoke void @_ZNK3sim9CartesianmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %11, ptr noundef nonnull align 8 dereferenceable(40) %12, double noundef %2)
          to label %74 unwind label %107

74:                                               ; preds = %73
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %10, ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %75 unwind label %109

75:                                               ; preds = %74
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #6
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %1)
          to label %76 unwind label %113

76:                                               ; preds = %75
  invoke void @_ZNK3sim9CartesianmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %14, ptr noundef nonnull align 8 dereferenceable(40) %15, double noundef %2)
          to label %77 unwind label %115

77:                                               ; preds = %76
  invoke void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %13, ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %78 unwind label %117

78:                                               ; preds = %77
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #6
  invoke void @_ZNK3sim9CartesianmiERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %16, ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %79 unwind label %121

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %80 unwind label %123

80:                                               ; preds = %79
  %81 = sitofp i32 %66 to double
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %17, ptr noundef nonnull align 8 dereferenceable(16) %18, double noundef %81)
          to label %82 unwind label %125

82:                                               ; preds = %80
  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.start.p0(i64 16, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %20, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %83 unwind label %128

83:                                               ; preds = %82
  %84 = sitofp i32 %64 to double
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef %84)
          to label %85 unwind label %130

85:                                               ; preds = %83
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 2.000000e+00)
          to label %86 unwind label %133

86:                                               ; preds = %85
  %87 = invoke noundef zeroext i1 @_ZNK3sim8DistanceltERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %88 unwind label %135

88:                                               ; preds = %86
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br i1 %87, label %89, label %140

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #6
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef 2.000000e+00)
          to label %90 unwind label %138

90:                                               ; preds = %89
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %22) #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
  br label %145

92:                                               ; preds = %4
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %99

94:                                               ; preds = %68
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %98

96:                                               ; preds = %69
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %98

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

99:                                               ; preds = %98, %92
  %.pn.pn = phi { ptr, i32 } [ %.pn, %98 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %373

100:                                              ; preds = %70
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %71
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  br label %104

104:                                              ; preds = %102, %100
  %.pn84 = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  br label %372

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

107:                                              ; preds = %73
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %111

109:                                              ; preds = %74
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  br label %111

111:                                              ; preds = %109, %107
  %.pn86 = phi { ptr, i32 } [ %110, %109 ], [ %108, %107 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #6
  br label %112

112:                                              ; preds = %111, %105
  %.pn86.pn = phi { ptr, i32 } [ %.pn86, %111 ], [ %106, %105 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  br label %371

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

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

117:                                              ; preds = %77
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #6
  br label %119

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

120:                                              ; preds = %119, %113
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %119 ], [ %114, %113 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #6
  br label %370

121:                                              ; preds = %78
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %369

123:                                              ; preds = %79
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %127

125:                                              ; preds = %80
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %127

127:                                              ; preds = %125, %123
  %.pn92 = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  br label %368

128:                                              ; preds = %82
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %83
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #6
  br label %132

132:                                              ; preds = %130, %128
  %.pn94 = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %367

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

135:                                              ; preds = %86
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  br label %137

137:                                              ; preds = %135, %133
  %.pn96 = phi { ptr, i32 } [ %136, %135 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %366

138:                                              ; preds = %89
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #6
  br label %366

140:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #6
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef 2.000000e+00)
          to label %141 unwind label %143

141:                                              ; preds = %140
  %142 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3sim6MetersaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %23) #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
  br label %145

143:                                              ; preds = %140
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #6
  br label %366

145:                                              ; preds = %141, %90
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #6
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %27, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %146 unwind label %157

146:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #6
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef %81)
          to label %147 unwind label %159

147:                                              ; preds = %146
  invoke void @_ZNK3sim6MetersmiERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %148 unwind label %161

148:                                              ; preds = %147
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %26, double noundef 2.000000e+00)
          to label %149 unwind label %163

149:                                              ; preds = %148
  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 @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %31, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %150 unwind label %165

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #6
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %32, ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %84)
          to label %151 unwind label %167

151:                                              ; preds = %150
  invoke void @_ZNK3sim6MetersmiERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %30, ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %152 unwind label %169

152:                                              ; preds = %151
  invoke void @_ZNK3sim6MetersdvEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %30, double noundef 2.000000e+00)
          to label %153 unwind label %171

153:                                              ; preds = %152
  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) %29)
          to label %154 unwind label %173

154:                                              ; preds = %153
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #6
  call void @_ZN3sim8DistanceD2Ev(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 nonnull %32) #6
  call void @_ZN3sim8DistanceD2Ev(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) %25) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #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 @_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.end.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %33) #6
  invoke void @_ZNK3sim9CartesianplERKNS_10CoordinateE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Cartesian") align 8 %33, ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %155 unwind label %183

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #6
  store i32 0, ptr %34, align 4, !tbaa !30
  %.not165 = icmp slt i32 %64, 0
  br i1 %.not165, label %._crit_edge168, label %.lr.ph167

.lr.ph167:                                        ; preds = %155
  %.not108158 = icmp slt i32 %66, 0
  %156 = getelementptr inbounds i8, ptr %59, i64 8
  br i1 %.not108158, label %._crit_edge168, label %.lr.ph160

._crit_edge168:                                   ; preds = %._crit_edge161.split.split, %.lr.ph167, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %33) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %24) #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) %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  ret void

157:                                              ; preds = %145
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %182

159:                                              ; preds = %146
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %181

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

163:                                              ; preds = %148
  %164 = landingpad { ptr, i32 }
          cleanup
  br label %179

165:                                              ; preds = %149
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %178

167:                                              ; preds = %150
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %177

169:                                              ; preds = %151
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %176

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

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

175:                                              ; preds = %173, %171
  %.pn98 = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #6
  br label %176

176:                                              ; preds = %175, %169
  %.pn98.pn = phi { ptr, i32 } [ %.pn98, %175 ], [ %170, %169 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #6
  br label %177

177:                                              ; preds = %176, %167
  %.pn98.pn.pn = phi { ptr, i32 } [ %.pn98.pn, %176 ], [ %168, %167 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #6
  br label %178

178:                                              ; preds = %177, %165
  %.pn98.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn, %177 ], [ %166, %165 ]
  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) %25) #6
  br label %179

179:                                              ; preds = %178, %163
  %.pn98.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn, %178 ], [ %164, %163 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #6
  br label %180

180:                                              ; preds = %179, %161
  %.pn98.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn.pn, %179 ], [ %162, %161 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  br label %181

181:                                              ; preds = %180, %159
  %.pn98.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn.pn.pn, %180 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  br label %182

182:                                              ; preds = %181, %157
  %.pn98.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn.pn.pn.pn.pn, %181 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #6
  br label %365

183:                                              ; preds = %154
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %364

.lr.ph160:                                        ; preds = %.lr.ph167, %._crit_edge161.split.split
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #6
  store i32 0, ptr %35, align 4, !tbaa !30
  br label %.lr.ph156

._crit_edge161.split.split:                       ; preds = %._crit_edge157.split
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #6
  %185 = load i32, ptr %34, align 4, !tbaa !30
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %34, align 4, !tbaa !30
  %.not.not = icmp slt i32 %185, %64
  br i1 %.not.not, label %.lr.ph160, label %._crit_edge168, !llvm.loop !31

.lr.ph156:                                        ; preds = %.lr.ph160, %._crit_edge157.split
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #6
  store i32 0, ptr %36, align 4, !tbaa !30
  br label %.lr.ph

._crit_edge157.split:                             ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #6
  %187 = load i32, ptr %35, align 4, !tbaa !30
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %35, align 4, !tbaa !30
  %.not108.not = icmp slt i32 %187, %66
  br i1 %.not108.not, label %.lr.ph156, label %._crit_edge161.split.split, !llvm.loop !33

.lr.ph:                                           ; preds = %.lr.ph156, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #6
  store i32 0, ptr %37, align 4, !tbaa !30
  br label %191

._crit_edge:                                      ; preds = %344
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #6
  %189 = load i32, ptr %36, align 4, !tbaa !30
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %36, align 4, !tbaa !30
  %.not110.not = icmp slt i32 %189, %64
  br i1 %.not110.not, label %.lr.ph, label %._crit_edge157.split, !llvm.loop !34

191:                                              ; preds = %.lr.ph, %344
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %38) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %39) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %39, double noundef 0.000000e+00)
          to label %192 unwind label %213

192:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %40, double noundef 0.000000e+00)
          to label %193 unwind label %215

193:                                              ; preds = %192
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %40)
          to label %194 unwind label %217

194:                                              ; preds = %193
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %41) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %42) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %42, double noundef 0.000000e+00)
          to label %195 unwind label %221

195:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %43) #6
  invoke void @_ZN3sim6MetersC1Ed(ptr noundef nonnull align 8 dereferenceable(16) %43, double noundef 0.000000e+00)
          to label %196 unwind label %223

196:                                              ; preds = %195
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %41, ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %197 unwind label %225

197:                                              ; preds = %196
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %43) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #6
  %198 = load i32, ptr %36, align 4, !tbaa !30
  %199 = load i32, ptr %34, align 4, !tbaa !30
  %200 = icmp slt i32 %198, %199
  br i1 %200, label %201, label %332

201:                                              ; preds = %197
  %202 = load i32, ptr %37, align 4, !tbaa !30
  %203 = load i32, ptr %35, align 4, !tbaa !30
  %204 = icmp slt i32 %202, %203
  br i1 %204, label %205, label %332

205:                                              ; preds = %201
  %206 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL22CENTER_STAR_ALIGNMENTSE, i32 noundef %3)
          to label %207 unwind label %229

207:                                              ; preds = %205
  br i1 %206, label %208, label %231

208:                                              ; preds = %207
  %209 = load i32, ptr %34, align 4, !tbaa !30
  %210 = sub nsw i32 %64, %209
  %211 = sitofp i32 %210 to double
  %212 = fmul double %211, 5.000000e-01
  br label %238

213:                                              ; preds = %191
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %220

215:                                              ; preds = %192
  %216 = landingpad { ptr, i32 }
          cleanup
  br label %219

217:                                              ; preds = %193
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #6
  br label %219

219:                                              ; preds = %217, %215
  %.pn113 = phi { ptr, i32 } [ %218, %217 ], [ %216, %215 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #6
  br label %220

220:                                              ; preds = %219, %213
  %.pn113.pn = phi { ptr, i32 } [ %.pn113, %219 ], [ %214, %213 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %39) #6
  br label %363

221:                                              ; preds = %194
  %222 = landingpad { ptr, i32 }
          cleanup
  br label %228

223:                                              ; preds = %195
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %227

225:                                              ; preds = %196
  %226 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %43) #6
  br label %227

227:                                              ; preds = %225, %223
  %.pn116 = phi { ptr, i32 } [ %226, %225 ], [ %224, %223 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %43) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %42) #6
  br label %228

228:                                              ; preds = %227, %221
  %.pn116.pn = phi { ptr, i32 } [ %.pn116, %227 ], [ %222, %221 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %42) #6
  br label %362

229:                                              ; preds = %231, %205
  %230 = landingpad { ptr, i32 }
          cleanup
  br label %361

231:                                              ; preds = %207
  %232 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL21UPPER_STAR_ALIGNMENTSE, i32 noundef %3)
          to label %233 unwind label %229

233:                                              ; preds = %231
  br i1 %232, label %234, label %238

234:                                              ; preds = %233
  %235 = load i32, ptr %34, align 4, !tbaa !30
  %236 = sub nsw i32 %64, %235
  %237 = sitofp i32 %236 to double
  br label %238

238:                                              ; preds = %233, %234, %208
  %.026 = phi double [ %212, %208 ], [ %237, %234 ], [ 0.000000e+00, %233 ]
  %239 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL22STAR_CENTER_ALIGNMENTSE, i32 noundef %3)
          to label %240 unwind label %246

240:                                              ; preds = %238
  br i1 %239, label %241, label %248

241:                                              ; preds = %240
  %242 = load i32, ptr %35, align 4, !tbaa !30
  %243 = sub nsw i32 %66, %242
  %244 = sitofp i32 %243 to double
  %245 = fmul double %244, 5.000000e-01
  br label %255

246:                                              ; preds = %248, %238
  %247 = landingpad { ptr, i32 }
          cleanup
  br label %361

248:                                              ; preds = %240
  %249 = invoke noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48) @_ZN3simL21STAR_RIGHT_ALIGNMENTSE, i32 noundef %3)
          to label %250 unwind label %246

250:                                              ; preds = %248
  br i1 %249, label %251, label %255

251:                                              ; preds = %250
  %252 = load i32, ptr %35, align 4, !tbaa !30
  %253 = sub nsw i32 %66, %252
  %254 = sitofp i32 %253 to double
  br label %255

255:                                              ; preds = %250, %251, %241
  %.025 = phi double [ %245, %241 ], [ %254, %251 ], [ 0.000000e+00, %250 ]
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %44) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %45) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %46) #6
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %46, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %256 unwind label %292

256:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %47) #6
  %257 = load i32, ptr %37, align 4, !tbaa !30
  %258 = sitofp i32 %257 to double
  %259 = fadd double %.025, %258
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %47, ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef %259)
          to label %260 unwind label %294

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

261:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %48) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %49) #6
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %49, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %262 unwind label %298

262:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %50) #6
  %263 = load i32, ptr %34, align 4, !tbaa !30
  %264 = load i32, ptr %36, align 4, !tbaa !30
  %265 = xor i32 %264, -1
  %266 = add i32 %263, %265
  %267 = sitofp i32 %266 to double
  %268 = fadd double %.026, %267
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %50, ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %268)
          to label %269 unwind label %300

269:                                              ; preds = %262
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %48, ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %50)
          to label %270 unwind label %302

270:                                              ; preds = %269
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %44, ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %48)
          to label %271 unwind label %304

271:                                              ; preds = %270
  %272 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3sim9CartesianaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(40) %44) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %44) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %48) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %49) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %49) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %48) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %45) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %44) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %51) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %52) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %53) #6
  invoke void @_ZNK3sim10Coordinate4getXEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %53, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %273 unwind label %312

273:                                              ; preds = %271
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %54) #6
  %274 = load i32, ptr %37, align 4, !tbaa !30
  %275 = sitofp i32 %274 to double
  %276 = fadd double %.025, %275
  %277 = fadd double %276, 1.000000e+00
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %54, ptr noundef nonnull align 8 dereferenceable(16) %17, double noundef %277)
          to label %278 unwind label %314

278:                                              ; preds = %273
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %52, ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 8 dereferenceable(16) %54)
          to label %279 unwind label %316

279:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %55) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %56) #6
  invoke void @_ZNK3sim10Coordinate4getYEv(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %56, ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %280 unwind label %318

280:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %57) #6
  %281 = load i32, ptr %34, align 4, !tbaa !30
  %282 = load i32, ptr %36, align 4, !tbaa !30
  %283 = xor i32 %282, -1
  %284 = add i32 %281, %283
  %285 = sitofp i32 %284 to double
  %286 = fadd double %.026, %285
  %287 = fadd double %286, 1.000000e+00
  invoke void @_ZNK3sim6MetersmlEd(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %57, ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %287)
          to label %288 unwind label %320

288:                                              ; preds = %280
  invoke void @_ZNK3sim6MetersplERKNS_8DistanceE(ptr dead_on_unwind nonnull writable sret(%"class.sim::Meters") align 8 %55, ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(16) %57)
          to label %289 unwind label %322

289:                                              ; preds = %288
  invoke void @_ZN3sim9CartesianC1ERKNS_8DistanceES3_(ptr noundef nonnull align 8 dereferenceable(40) %51, ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 8 dereferenceable(16) %55)
          to label %290 unwind label %324

290:                                              ; preds = %289
  %291 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN3sim9CartesianaSEOS0_(ptr noundef nonnull align 8 dereferenceable(40) %41, ptr noundef nonnull align 8 dereferenceable(40) %51) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %51) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %55) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %57) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %56) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %55) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %52) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %54) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %53) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %52) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %51) #6
  br label %332

292:                                              ; preds = %255
  %293 = landingpad { ptr, i32 }
          cleanup
  br label %311

294:                                              ; preds = %256
  %295 = landingpad { ptr, i32 }
          cleanup
  br label %310

296:                                              ; preds = %260
  %297 = landingpad { ptr, i32 }
          cleanup
  br label %309

298:                                              ; preds = %261
  %299 = landingpad { ptr, i32 }
          cleanup
  br label %308

300:                                              ; preds = %262
  %301 = landingpad { ptr, i32 }
          cleanup
  br label %307

302:                                              ; preds = %269
  %303 = landingpad { ptr, i32 }
          cleanup
  br label %306

304:                                              ; preds = %270
  %305 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %48) #6
  br label %306

306:                                              ; preds = %304, %302
  %.pn119 = phi { ptr, i32 } [ %305, %304 ], [ %303, %302 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %50) #6
  br label %307

307:                                              ; preds = %306, %300
  %.pn119.pn = phi { ptr, i32 } [ %.pn119, %306 ], [ %301, %300 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %50) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %49) #6
  br label %308

308:                                              ; preds = %307, %298
  %.pn119.pn.pn = phi { ptr, i32 } [ %.pn119.pn, %307 ], [ %299, %298 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %49) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %48) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %45) #6
  br label %309

309:                                              ; preds = %308, %296
  %.pn119.pn.pn.pn = phi { ptr, i32 } [ %.pn119.pn.pn, %308 ], [ %297, %296 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %47) #6
  br label %310

310:                                              ; preds = %309, %294
  %.pn119.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn119.pn.pn.pn, %309 ], [ %295, %294 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %46) #6
  br label %311

311:                                              ; preds = %310, %292
  %.pn119.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn119.pn.pn.pn.pn, %310 ], [ %293, %292 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %44) #6
  br label %361

312:                                              ; preds = %271
  %313 = landingpad { ptr, i32 }
          cleanup
  br label %331

314:                                              ; preds = %273
  %315 = landingpad { ptr, i32 }
          cleanup
  br label %330

316:                                              ; preds = %278
  %317 = landingpad { ptr, i32 }
          cleanup
  br label %329

318:                                              ; preds = %279
  %319 = landingpad { ptr, i32 }
          cleanup
  br label %328

320:                                              ; preds = %280
  %321 = landingpad { ptr, i32 }
          cleanup
  br label %327

322:                                              ; preds = %288
  %323 = landingpad { ptr, i32 }
          cleanup
  br label %326

324:                                              ; preds = %289
  %325 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %55) #6
  br label %326

326:                                              ; preds = %324, %322
  %.pn126 = phi { ptr, i32 } [ %325, %324 ], [ %323, %322 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %57) #6
  br label %327

327:                                              ; preds = %326, %320
  %.pn126.pn = phi { ptr, i32 } [ %.pn126, %326 ], [ %321, %320 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %57) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %56) #6
  br label %328

328:                                              ; preds = %327, %318
  %.pn126.pn.pn = phi { ptr, i32 } [ %.pn126.pn, %327 ], [ %319, %318 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %55) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %52) #6
  br label %329

329:                                              ; preds = %328, %316
  %.pn126.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn, %328 ], [ %317, %316 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %54) #6
  br label %330

330:                                              ; preds = %329, %314
  %.pn126.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn.pn, %329 ], [ %315, %314 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %53) #6
  br label %331

331:                                              ; preds = %330, %312
  %.pn126.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn126.pn.pn.pn.pn, %330 ], [ %313, %312 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %53) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %52) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %51) #6
  br label %361

332:                                              ; preds = %290, %201, %197
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %58) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %59) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %60) #6
  %333 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %334 unwind label %347

334:                                              ; preds = %332
  store i64 %333, ptr %60, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %61) #6
  %335 = invoke i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %336 unwind label %349

336:                                              ; preds = %334
  store i64 %335, ptr %61, align 8
  %337 = invoke { i64, i64 } @_ZSt9make_pairISt4pairIiiES1_ES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(8) %61)
          to label %338 unwind label %349

338:                                              ; preds = %336
  %339 = extractvalue { i64, i64 } %337, 0
  store i64 %339, ptr %59, align 8
  %340 = extractvalue { i64, i64 } %337, 1
  store i64 %340, ptr %156, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %62) #6
  invoke void @_ZSt9make_pairIRN3sim9CartesianES2_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.36") align 8 %62, ptr noundef nonnull align 8 dereferenceable(40) %38, ptr noundef nonnull align 8 dereferenceable(40) %41)
          to label %341 unwind label %351

341:                                              ; preds = %338
  invoke void @_ZSt9make_pairISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_EES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.42") align 8 %58, ptr noundef nonnull align 4 dereferenceable(16) %59, ptr noundef nonnull align 8 dereferenceable(80) %62)
          to label %342 unwind label %353

342:                                              ; preds = %341
  %343 = invoke { ptr, i8 } @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEE6insertIS0_IS2_S5_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES0_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(96) %58)
          to label %344 unwind label %355

344:                                              ; preds = %342
  call void @_ZNSt4pairIS_IS_IiiES0_ES_IN3sim9CartesianES3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %58) #6
  call void @_ZNSt4pairIN3sim9CartesianES1_ED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %62) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %62) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %61) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %59) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %58) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %41) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %41) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %38) #6
  %345 = load i32, ptr %37, align 4, !tbaa !30
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %37, align 4, !tbaa !30
  %.not112.not = icmp slt i32 %345, %66
  br i1 %.not112.not, label %191, label %._crit_edge, !llvm.loop !35

347:                                              ; preds = %332
  %348 = landingpad { ptr, i32 }
          cleanup
  br label %360

349:                                              ; preds = %336, %334
  %350 = landingpad { ptr, i32 }
          cleanup
  br label %359

351:                                              ; preds = %338
  %352 = landingpad { ptr, i32 }
          cleanup
  br label %358

353:                                              ; preds = %341
  %354 = landingpad { ptr, i32 }
          cleanup
  br label %357

355:                                              ; preds = %342
  %356 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIS_IS_IiiES0_ES_IN3sim9CartesianES3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(96) %58) #6
  br label %357

357:                                              ; preds = %355, %353
  %.pn135 = phi { ptr, i32 } [ %356, %355 ], [ %354, %353 ]
  call void @_ZNSt4pairIN3sim9CartesianES1_ED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %62) #6
  br label %358

358:                                              ; preds = %357, %351
  %.pn135.pn = phi { ptr, i32 } [ %.pn135, %357 ], [ %352, %351 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %62) #6
  br label %359

359:                                              ; preds = %358, %349
  %.pn135.pn.pn = phi { ptr, i32 } [ %.pn135.pn, %358 ], [ %350, %349 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %61) #6
  br label %360

360:                                              ; preds = %359, %347
  %.pn135.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn, %359 ], [ %348, %347 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %60) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %59) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %58) #6
  br label %361

361:                                              ; preds = %229, %331, %311, %246, %360
  %.pn135.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn, %360 ], [ %230, %229 ], [ %.pn126.pn.pn.pn.pn.pn, %331 ], [ %.pn119.pn.pn.pn.pn.pn, %311 ], [ %247, %246 ]
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %41) #6
  br label %362

362:                                              ; preds = %361, %228
  %.pn135.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn, %361 ], [ %.pn116.pn, %228 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %41) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %38) #6
  br label %363

363:                                              ; preds = %362, %220
  %.pn135.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn, %362 ], [ %.pn113.pn, %220 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %33) #6
  br label %364

364:                                              ; preds = %363, %183
  %.pn135.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn, %363 ], [ %184, %183 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %33) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #6
  br label %365

365:                                              ; preds = %364, %182
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn, %364 ], [ %.pn98.pn.pn.pn.pn.pn.pn.pn, %182 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %24) #6
  br label %366

366:                                              ; preds = %365, %143, %138, %137
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn, %365 ], [ %139, %138 ], [ %144, %143 ], [ %.pn96, %137 ]
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %367

367:                                              ; preds = %366, %132
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn, %366 ], [ %.pn94, %132 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  call void @_ZN3sim8DistanceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #6
  br label %368

368:                                              ; preds = %367, %127
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %367 ], [ %.pn92, %127 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #6
  br label %369

369:                                              ; preds = %368, %121
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %368 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #6
  br label %370

370:                                              ; preds = %369, %120
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %369 ], [ %.pn89.pn, %120 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  br label %371

371:                                              ; preds = %370, %112
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %370 ], [ %.pn86.pn, %112 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #6
  br label %372

372:                                              ; preds = %371, %104
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %371 ], [ %.pn84, %104 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #6
  call void @_ZN3sim10CoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  br label %373

373:                                              ; preds = %372, %99
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %372 ], [ %.pn.pn, %99 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  resume { ptr, i32 } %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairISt4pairIiiES1_ES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_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 #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 #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRN3sim9CartesianES2_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.36") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 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 #5

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

declare void @_ZNK3sim9CartesianmiERKNS_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 #5

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

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

declare noundef zeroext i1 @_ZNK3sim8DistanceltERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

declare void @_ZNK3sim6MetersmiERKNS_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 #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3sim18ContainerUtilities11setContainsINS_17TileTextAlignmentEEEbRKSt3setIT_St4lessIS4_ESaIS4_EES4_(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEE6insertIS0_IS2_S5_EEENSt9enable_ifIXsr16is_constructibleIS9_T_EE5valueES0_ISt17_Rb_tree_iteratorIS9_EbEE4typeEOSF_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_EES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.42") align 8, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3

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

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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, !13, i64 32}
!6 = !{!"_ZTSN3sim20TileGraphicTextCacheE", !7, i64 0, !7, i64 16, !12, i64 32, !14, i64 40, !24, i64 88}
!7 = !{!"_ZTSN3sim6MetersE", !8, i64 0}
!8 = !{!"_ZTSN3sim8DistanceE", !9, i64 8}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt4pairIiiE", !13, i64 0, !13, i64 4}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSSt3mapIcSt4pairIddESt4lessIcESaIS0_IKcS1_EEE", !15, i64 0}
!15 = !{!"_ZTSSt8_Rb_treeIcSt4pairIKcS0_IddEESt10_Select1stIS3_ESt4lessIcESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt8_Rb_treeIcSt4pairIKcS0_IddEESt10_Select1stIS3_ESt4lessIcESaIS3_EE13_Rb_tree_implIS7_Lb1EEE", !17, i64 0, !19, i64 8}
!17 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIcEE", !18, i64 0}
!18 = !{!"_ZTSSt4lessIcE"}
!19 = !{!"_ZTSSt15_Rb_tree_header", !20, i64 0, !23, i64 32}
!20 = !{!"_ZTSSt18_Rb_tree_node_base", !21, i64 0, !22, i64 8, !22, i64 16, !22, i64 24}
!21 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!22 = !{!"any pointer", !10, i64 0}
!23 = !{!"long", !10, i64 0}
!24 = !{!"_ZTSSt3mapISt4pairIS0_IiiES1_ES0_IN3sim9CartesianES4_ESt4lessIS2_ESaIS0_IKS2_S5_EEE", !25, i64 0}
!25 = !{!"_ZTSSt8_Rb_treeISt4pairIS0_IiiES1_ES0_IKS2_S0_IN3sim9CartesianES5_EESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE", !26, i64 0}
!26 = !{!"_ZTSNSt8_Rb_treeISt4pairIS0_IiiES1_ES0_IKS2_S0_IN3sim9CartesianES5_EESt10_Select1stIS7_ESt4lessIS2_ESaIS7_EE13_Rb_tree_implISB_Lb1EEE", !27, i64 0, !19, i64 8}
!27 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessISt4pairIS1_IiiES2_EEE", !28, i64 0}
!28 = !{!"_ZTSSt4lessISt4pairIS0_IiiES1_EE"}
!29 = !{!6, !13, i64 36}
!30 = !{!13, !13, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !32}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass