; LLVM IR from atlantis13579/Riemann :: Src/Geometry (ConvexHull2)

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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Maths::TVector2" = type { float, float }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann20__convex_points_sortEPiiiiRKSt6vectorIN5Maths8TVector2IfEESaIS4_EE(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann21ConvexHull_GrahamScanERKSt6vectorIN5Maths8TVector2IfEESaIS3_EEPS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.Maths::TVector2", align 4
  %12 = alloca %"class.Maths::TVector2", align 4
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca %"class.Maths::TVector2", align 4
  %16 = alloca %"class.Maths::TVector2", align 4
  %17 = alloca %"class.Maths::TVector2", align 4
  %18 = alloca %"class.Maths::TVector2", align 4
  %19 = alloca %"class.Maths::TVector2", align 4
  %20 = alloca %"class.Maths::TVector2", align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.Maths::TVector2", align 4
  %23 = alloca %"class.Maths::TVector2", align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.Maths::TVector2", align 4
  %26 = alloca %"class.Maths::TVector2", align 4
  %27 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %33)
          to label %34 unwind label %47

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

35:                                               ; preds = %44, %34
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %51

39:                                               ; preds = %35
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %42) #5
  store i32 %40, ptr %43, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %39
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %9, align 4, !tbaa !9
  br label %35, !llvm.loop !11

47:                                               ; preds = %2
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  br label %397

51:                                               ; preds = %35
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #5
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = sub nsw i32 %53, 1
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  invoke void @_ZN7Riemann20__convex_points_sortEPiiiiRKSt6vectorIN5Maths8TVector2IfEESaIS4_EE(ptr noundef %52, i32 noundef 0, i32 noundef %54, i32 noundef %55, ptr noundef nonnull align 8 dereferenceable(24) %56)
          to label %57 unwind label %171

57:                                               ; preds = %51
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #5
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %62) #5
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 4 dereferenceable(8) %63)
          to label %64 unwind label %171

64:                                               ; preds = %57
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 1) #5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %69) #5
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 4 dereferenceable(8) %70)
          to label %71 unwind label %171

71:                                               ; preds = %64
  store i32 1, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %9, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %241, %71
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %76, label %247

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %82

79:                                               ; preds = %76
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #5
  br label %89

82:                                               ; preds = %76
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = sub nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %86)
          to label %88 unwind label %175

88:                                               ; preds = %82
  br label %89

89:                                               ; preds = %88, %79
  %90 = phi ptr [ %81, %79 ], [ %87, %88 ]
  invoke void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %90)
          to label %91 unwind label %175

91:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94)
          to label %96 unwind label %179

96:                                               ; preds = %91
  invoke void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %95)
          to label %97 unwind label %179

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %99) #5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  store i32 %101, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %104) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %15, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %105)
          to label %106 unwind label %183

106:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %16, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %110)
          to label %111 unwind label %187

111:                                              ; preds = %106
  %112 = invoke noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %113 unwind label %187

113:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  store float %112, ptr %14, align 4, !tbaa !13
  br label %114

114:                                              ; preds = %170, %113
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = icmp sge i32 %115, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  br i1 %116, label %117, label %131

117:                                              ; preds = %114
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %17, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %121)
          to label %122 unwind label %192

122:                                              ; preds = %117
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %125) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %18, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %126)
          to label %127 unwind label %196

127:                                              ; preds = %122
  %128 = invoke noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
          to label %129 unwind label %196

129:                                              ; preds = %127
  %130 = fcmp ole float %128, 0.000000e+00
  br label %131

131:                                              ; preds = %129, %114
  %132 = phi i1 [ false, %114 ], [ %130, %129 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br i1 %132, label %133, label %214

133:                                              ; preds = %131
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = add nsw i32 %134, -1
  store i32 %135, ptr %10, align 4, !tbaa !9
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %141

138:                                              ; preds = %133
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %139) #5
  br label %148

141:                                              ; preds = %133
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = sub nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %145)
          to label %147 unwind label %201

147:                                              ; preds = %141
  br label %148

148:                                              ; preds = %147, %138
  %149 = phi ptr [ %140, %138 ], [ %146, %147 ]
  %150 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %149)
          to label %151 unwind label %201

151:                                              ; preds = %148
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %152, i64 noundef %154)
          to label %156 unwind label %201

156:                                              ; preds = %151
  %157 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %155)
          to label %158 unwind label %201

158:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %19, ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %162)
          to label %163 unwind label %205

163:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = load i32, ptr %13, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %164, i64 noundef %166) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %20, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %167)
          to label %168 unwind label %209

168:                                              ; preds = %163
  %169 = invoke noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %20)
          to label %170 unwind label %209

170:                                              ; preds = %168
  store float %169, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %114, !llvm.loop !15

171:                                              ; preds = %64, %57, %51
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %7, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %8, align 4
  br label %396

175:                                              ; preds = %89, %82
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %7, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %8, align 4
  br label %246

179:                                              ; preds = %96, %91
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %7, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %8, align 4
  br label %245

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

187:                                              ; preds = %111, %106
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %7, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %191

191:                                              ; preds = %187, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %244

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

196:                                              ; preds = %127, %122
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %7, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %200

200:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %244

201:                                              ; preds = %233, %222, %156, %151, %148, %141
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %7, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %8, align 4
  br label %244

205:                                              ; preds = %158
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %7, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %8, align 4
  br label %213

209:                                              ; preds = %168, %163
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %7, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %213

213:                                              ; preds = %209, %205
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %244

214:                                              ; preds = %131
  %215 = load i32, ptr %10, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %10, align 4, !tbaa !9
  %217 = load i32, ptr %10, align 4, !tbaa !9
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %218) #5
  %220 = trunc i64 %219 to i32
  %221 = icmp slt i32 %217, %220
  br i1 %221, label %222, label %233

222:                                              ; preds = %214
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = load i32, ptr %13, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %223, i64 noundef %225) #5
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = load i32, ptr %10, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %227, i64 noundef %229) #5
  %231 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %230, ptr noundef nonnull align 4 dereferenceable(8) %226)
          to label %232 unwind label %201

232:                                              ; preds = %222
  br label %240

233:                                              ; preds = %214
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = load i32, ptr %13, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %237) #5
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %234, ptr noundef nonnull align 4 dereferenceable(8) %238)
          to label %239 unwind label %201

239:                                              ; preds = %233
  br label %240

240:                                              ; preds = %239, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %9, align 4, !tbaa !9
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %9, align 4, !tbaa !9
  br label %72, !llvm.loop !16

244:                                              ; preds = %213, %201, %200, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %245

245:                                              ; preds = %244, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %246

246:                                              ; preds = %245, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %396

247:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %248 = load i32, ptr %10, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %21, align 4, !tbaa !9
  %250 = load i32, ptr %5, align 4, !tbaa !9
  %251 = sub nsw i32 %250, 2
  store i32 %251, ptr %9, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %376, %247
  %253 = load i32, ptr %9, align 4, !tbaa !9
  %254 = icmp sge i32 %253, 0
  br i1 %254, label %255, label %382

255:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %256 = load i32, ptr %10, align 4, !tbaa !9
  %257 = icmp eq i32 %256, 0
  br i1 %257, label %258, label %261

258:                                              ; preds = %255
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %259) #5
  br label %268

261:                                              ; preds = %255
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = load i32, ptr %10, align 4, !tbaa !9
  %264 = sub nsw i32 %263, 1
  %265 = sext i32 %264 to i64
  %266 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %262, i64 noundef %265)
          to label %267 unwind label %319

267:                                              ; preds = %261
  br label %268

268:                                              ; preds = %267, %258
  %269 = phi ptr [ %260, %258 ], [ %266, %267 ]
  invoke void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %269)
          to label %270 unwind label %319

270:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = load i32, ptr %10, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %271, i64 noundef %273)
          to label %275 unwind label %323

275:                                              ; preds = %270
  invoke void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %274)
          to label %276 unwind label %323

276:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %277 = load i32, ptr %9, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %278) #5
  %280 = load i32, ptr %279, align 4, !tbaa !9
  store i32 %280, ptr %24, align 4, !tbaa !9
  br label %281

281:                                              ; preds = %318, %276
  %282 = load i32, ptr %10, align 4, !tbaa !9
  %283 = load i32, ptr %21, align 4, !tbaa !9
  %284 = icmp sge i32 %282, %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  br i1 %284, label %285, label %299

285:                                              ; preds = %281
  %286 = load ptr, ptr %3, align 8, !tbaa !5
  %287 = load i32, ptr %24, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %286, i64 noundef %288) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %25, ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %289)
          to label %290 unwind label %327

290:                                              ; preds = %285
  %291 = load ptr, ptr %3, align 8, !tbaa !5
  %292 = load i32, ptr %24, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %291, i64 noundef %293) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.Maths::TVector2") align 4 %26, ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %294)
          to label %295 unwind label %331

295:                                              ; preds = %290
  %296 = invoke noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %26)
          to label %297 unwind label %331

297:                                              ; preds = %295
  %298 = fcmp ole float %296, 0.000000e+00
  br label %299

299:                                              ; preds = %297, %281
  %300 = phi i1 [ false, %281 ], [ %298, %297 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br i1 %300, label %301, label %340

301:                                              ; preds = %299
  %302 = load i32, ptr %10, align 4, !tbaa !9
  %303 = add nsw i32 %302, -1
  store i32 %303, ptr %10, align 4, !tbaa !9
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = load i32, ptr %10, align 4, !tbaa !9
  %306 = sub nsw i32 %305, 1
  %307 = sext i32 %306 to i64
  %308 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %304, i64 noundef %307)
          to label %309 unwind label %336

309:                                              ; preds = %301
  %310 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %308)
          to label %311 unwind label %336

311:                                              ; preds = %309
  %312 = load ptr, ptr %4, align 8, !tbaa !5
  %313 = load i32, ptr %10, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %312, i64 noundef %314)
          to label %316 unwind label %336

316:                                              ; preds = %311
  %317 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %315)
          to label %318 unwind label %336

318:                                              ; preds = %316
  br label %281, !llvm.loop !17

319:                                              ; preds = %268, %261
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %7, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %8, align 4
  br label %381

323:                                              ; preds = %275, %270
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %7, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %8, align 4
  br label %380

327:                                              ; preds = %285
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %7, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %8, align 4
  br label %335

331:                                              ; preds = %295, %290
  %332 = landingpad { ptr, i32 }
          cleanup
  %333 = extractvalue { ptr, i32 } %332, 0
  store ptr %333, ptr %7, align 8
  %334 = extractvalue { ptr, i32 } %332, 1
  store i32 %334, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %335

335:                                              ; preds = %331, %327
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %379

336:                                              ; preds = %365, %354, %316, %311, %309, %301
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %7, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %8, align 4
  br label %379

340:                                              ; preds = %299
  %341 = load i32, ptr %10, align 4, !tbaa !9
  %342 = add nsw i32 %341, 1
  %343 = load i32, ptr %5, align 4, !tbaa !9
  %344 = icmp eq i32 %342, %343
  br i1 %344, label %345, label %346

345:                                              ; preds = %340
  store i32 1, ptr %27, align 4
  br label %373

346:                                              ; preds = %340
  %347 = load i32, ptr %10, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %10, align 4, !tbaa !9
  %349 = load i32, ptr %10, align 4, !tbaa !9
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  %351 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %350) #5
  %352 = trunc i64 %351 to i32
  %353 = icmp slt i32 %349, %352
  br i1 %353, label %354, label %365

354:                                              ; preds = %346
  %355 = load ptr, ptr %3, align 8, !tbaa !5
  %356 = load i32, ptr %24, align 4, !tbaa !9
  %357 = sext i32 %356 to i64
  %358 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %355, i64 noundef %357) #5
  %359 = load ptr, ptr %4, align 8, !tbaa !5
  %360 = load i32, ptr %10, align 4, !tbaa !9
  %361 = sext i32 %360 to i64
  %362 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %359, i64 noundef %361) #5
  %363 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %362, ptr noundef nonnull align 4 dereferenceable(8) %358)
          to label %364 unwind label %336

364:                                              ; preds = %354
  br label %372

365:                                              ; preds = %346
  %366 = load ptr, ptr %4, align 8, !tbaa !5
  %367 = load ptr, ptr %3, align 8, !tbaa !5
  %368 = load i32, ptr %24, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %367, i64 noundef %369) #5
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %366, ptr noundef nonnull align 4 dereferenceable(8) %370)
          to label %371 unwind label %336

371:                                              ; preds = %365
  br label %372

372:                                              ; preds = %371, %364
  store i32 0, ptr %27, align 4
  br label %373

373:                                              ; preds = %372, %345
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %374 = load i32, ptr %27, align 4
  switch i32 %374, label %388 [
    i32 0, label %375
  ]

375:                                              ; preds = %373
  br label %376

376:                                              ; preds = %375
  %377 = load i32, ptr %9, align 4, !tbaa !9
  %378 = add nsw i32 %377, -1
  store i32 %378, ptr %9, align 4, !tbaa !9
  br label %252, !llvm.loop !18

379:                                              ; preds = %336, %335
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %380

380:                                              ; preds = %379, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %381

381:                                              ; preds = %380, %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %395

382:                                              ; preds = %252
  %383 = load ptr, ptr %4, align 8, !tbaa !5
  %384 = load i32, ptr %10, align 4, !tbaa !9
  %385 = add nsw i32 %384, 1
  %386 = sext i32 %385 to i64
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %383, i64 noundef %386)
          to label %387 unwind label %391

387:                                              ; preds = %382
  store i32 0, ptr %27, align 4
  br label %388

388:                                              ; preds = %387, %373
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %389 = load i32, ptr %27, align 4
  switch i32 %389, label %403 [
    i32 0, label %390
    i32 1, label %390
  ]

390:                                              ; preds = %388, %388
  ret void

391:                                              ; preds = %382
  %392 = landingpad { ptr, i32 }
          cleanup
  %393 = extractvalue { ptr, i32 } %392, 0
  store ptr %393, ptr %7, align 8
  %394 = extractvalue { ptr, i32 } %392, 1
  store i32 %394, ptr %8, align 4
  br label %395

395:                                              ; preds = %391, %381
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %396

396:                                              ; preds = %395, %246, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %397

397:                                              ; preds = %396, %47
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %398

398:                                              ; preds = %397
  %399 = load ptr, ptr %7, align 8
  %400 = load i32, ptr %8, align 4
  %401 = insertvalue { ptr, i32 } poison, ptr %399, 0
  %402 = insertvalue { ptr, i32 } %401, i32 %400, 1
  resume { ptr, i32 } %402

403:                                              ; preds = %388
  unreachable
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector2") align 4, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

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

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

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

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

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

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

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


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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Maths::TVector2" = type { float, float }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann20__convex_points_sortEPiiiiRKSt6vectorIN5Maths8TVector2IfEESaIS4_EE(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Riemann21ConvexHull_GrahamScanERKSt6vectorIN5Maths8TVector2IfEESaIS3_EEPS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.Maths::TVector2", align 4
  %5 = alloca %"class.Maths::TVector2", align 4
  %6 = alloca %"class.Maths::TVector2", align 4
  %7 = alloca %"class.Maths::TVector2", align 4
  %8 = alloca %"class.Maths::TVector2", align 4
  %9 = alloca %"class.Maths::TVector2", align 4
  %10 = alloca %"class.Maths::TVector2", align 4
  %11 = alloca %"class.Maths::TVector2", align 4
  %12 = alloca %"class.Maths::TVector2", align 4
  %13 = alloca %"class.Maths::TVector2", align 4
  %14 = alloca %"class.Maths::TVector2", align 4
  %15 = alloca %"class.Maths::TVector2", align 4
  tail call void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %16 = tail call noundef i64 @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %17 = trunc i64 %16 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %sext = shl i64 %16, 32
  %18 = ashr exact i64 %sext, 32
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %18)
          to label %.preheader147 unwind label %22

.preheader147:                                    ; preds = %2
  %19 = icmp sgt i32 %17, 0
  br i1 %19, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader147
  %wide.trip.count = and i64 %16, 2147483647
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #5
  %21 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %21, ptr %20, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

22:                                               ; preds = %2
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %186

._crit_edge:                                      ; preds = %.lr.ph, %.preheader147
  %.0109.lcssa = phi i32 [ 0, %.preheader147 ], [ %17, %.lr.ph ]
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #5
  %25 = add nsw i32 %17, -1
  invoke void @_ZN7Riemann20__convex_points_sortEPiiiiRKSt6vectorIN5Maths8TVector2IfEESaIS4_EE(ptr noundef nonnull %24, i32 noundef 0, i32 noundef %25, i32 noundef %.0109.lcssa, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %26 unwind label %84

26:                                               ; preds = %._crit_edge
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #5
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %29) #5
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %30)
          to label %31 unwind label %84

31:                                               ; preds = %26
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #5
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %34) #5
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %35)
          to label %.preheader unwind label %84

.preheader:                                       ; preds = %31
  %36 = icmp sgt i32 %17, 2
  br i1 %36, label %.lr.ph184.preheader, label %._crit_edge185

.lr.ph184.preheader:                              ; preds = %.preheader
  %wide.trip.count222 = and i64 %16, 2147483647
  br label %.lr.ph184

.lr.ph184:                                        ; preds = %.lr.ph184.preheader, %116
  %indvars.iv219 = phi i64 [ 2, %.lr.ph184.preheader ], [ %indvars.iv.next220, %116 ]
  %.0112182 = phi i32 [ 1, %.lr.ph184.preheader ], [ %106, %116 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %37 = icmp eq i32 %.0112182, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %.lr.ph184
  %39 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  br label %44

40:                                               ; preds = %.lr.ph184
  %41 = add nsw i32 %.0112182, -1
  %42 = sext i32 %41 to i64
  %43 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %42)
          to label %44 unwind label %86

44:                                               ; preds = %40, %38
  %45 = phi ptr [ %39, %38 ], [ %43, %40 ]
  call void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %45)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %46 = sext i32 %.0112182 to i64
  %47 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %46)
          to label %48 unwind label %88

48:                                               ; preds = %44
  call void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %47)
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv219) #5
  %50 = load i32, ptr %49, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %6, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %52)
          to label %53 unwind label %90

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %54 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %7, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %54)
          to label %55 unwind label %92

55:                                               ; preds = %53
  %56 = call noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %57 = icmp sgt i32 %.0112182, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  br i1 %57, label %.lr.ph180.preheader, label %.critedge

.lr.ph180.preheader:                              ; preds = %55
  %58 = zext nneg i32 %.0112182 to i64
  br label %.lr.ph180

.lr.ph180:                                        ; preds = %.lr.ph180.preheader, %81
  %indvars.iv216 = phi i64 [ %58, %.lr.ph180.preheader ], [ %indvars.iv.next217, %81 ]
  %59 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %8, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %59)
          to label %60 unwind label %95

60:                                               ; preds = %.lr.ph180
  %61 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %9, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %61)
          to label %62 unwind label %97

62:                                               ; preds = %60
  %63 = call noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %64 = fcmp ugt float %63, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br i1 %64, label %.loopexit141.loopexit, label %65

65:                                               ; preds = %62
  %indvars.iv.next217 = add nsw i64 %indvars.iv216, -1
  %66 = icmp eq i64 %indvars.iv.next217, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %65
  %68 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  br label %72

69:                                               ; preds = %65
  %70 = add nsw i64 %indvars.iv216, -2
  %71 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %70)
          to label %72 unwind label %.loopexit142

72:                                               ; preds = %69, %67
  %73 = phi ptr [ %68, %67 ], [ %71, %69 ]
  %74 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %73)
  %75 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv.next217)
          to label %76 unwind label %.loopexit142

76:                                               ; preds = %72
  %77 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %75)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %78 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %10, ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 4 dereferenceable(8) %78)
          to label %79 unwind label %100

79:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %80 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %11, ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %80)
          to label %81 unwind label %102

81:                                               ; preds = %79
  %82 = call noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %83 = icmp ugt i64 %indvars.iv216, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  br i1 %83, label %.lr.ph180, label %.critedge, !llvm.loop !11

84:                                               ; preds = %31, %26, %._crit_edge
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %186

86:                                               ; preds = %40
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %118

88:                                               ; preds = %44
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %117

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

92:                                               ; preds = %53
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %94

94:                                               ; preds = %92, %90
  %.pn127 = phi { ptr, i32 } [ %93, %92 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %117

95:                                               ; preds = %.lr.ph180
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %99

97:                                               ; preds = %60
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %99

99:                                               ; preds = %97, %95
  %.pn129 = phi { ptr, i32 } [ %98, %97 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %117

.loopexit142:                                     ; preds = %69, %72
  %lpad.loopexit144 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit.split-lp143:                            ; preds = %115
  %lpad.loopexit.split-lp145 = landingpad { ptr, i32 }
          cleanup
  br label %117

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

102:                                              ; preds = %79
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %104

104:                                              ; preds = %102, %100
  %.pn131 = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %117

.critedge:                                        ; preds = %81, %55
  %.1113.lcssa = phi i32 [ %.0112182, %55 ], [ 0, %81 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %.loopexit141

.loopexit141.loopexit:                            ; preds = %62
  %105 = trunc nuw nsw i64 %indvars.iv216 to i32
  br label %.loopexit141

.loopexit141:                                     ; preds = %.loopexit141.loopexit, %.critedge
  %.1113166 = phi i32 [ %.1113.lcssa, %.critedge ], [ %105, %.loopexit141.loopexit ]
  %106 = add nsw i32 %.1113166, 1
  %107 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %108 = trunc i64 %107 to i32
  %109 = icmp slt i32 %106, %108
  %110 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #5
  br i1 %109, label %111, label %115

111:                                              ; preds = %.loopexit141
  %112 = sext i32 %106 to i64
  %113 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %112) #5
  %114 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %113, ptr noundef nonnull align 4 dereferenceable(8) %110)
  br label %116

115:                                              ; preds = %.loopexit141
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %110)
          to label %116 unwind label %.loopexit.split-lp143

116:                                              ; preds = %115, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %exitcond223.not = icmp eq i64 %indvars.iv.next220, %wide.trip.count222
  br i1 %exitcond223.not, label %._crit_edge185, label %.lr.ph184, !llvm.loop !12

117:                                              ; preds = %.loopexit142, %.loopexit.split-lp143, %94, %99, %104, %88
  %.pn131.pn.pn = phi { ptr, i32 } [ %89, %88 ], [ %.pn131, %104 ], [ %.pn129, %99 ], [ %.pn127, %94 ], [ %lpad.loopexit144, %.loopexit142 ], [ %lpad.loopexit.split-lp145, %.loopexit.split-lp143 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %118

118:                                              ; preds = %117, %86
  %.pn131.pn.pn.pn = phi { ptr, i32 } [ %.pn131.pn.pn, %117 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %186

._crit_edge185:                                   ; preds = %116, %.preheader
  %.0112.lcssa = phi i32 [ 1, %.preheader ], [ %106, %116 ]
  %119 = icmp sgt i32 %17, 1
  br i1 %119, label %.lr.ph195.preheader, label %._crit_edge196

.lr.ph195.preheader:                              ; preds = %._crit_edge185
  %120 = add i64 %16, 4294967294
  %121 = sext i32 %.0112.lcssa to i64
  %122 = and i64 %120, 4294967295
  br label %.lr.ph195

.lr.ph195:                                        ; preds = %.lr.ph195.preheader, %177
  %indvars.iv227 = phi i64 [ %122, %.lr.ph195.preheader ], [ %indvars.iv.next228, %177 ]
  %.2114192 = phi i32 [ %.0112.lcssa, %.lr.ph195.preheader ], [ %164, %177 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %123 = icmp eq i32 %.2114192, 0
  br i1 %123, label %124, label %126

124:                                              ; preds = %.lr.ph195
  %125 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  br label %130

126:                                              ; preds = %.lr.ph195
  %127 = add nsw i32 %.2114192, -1
  %128 = sext i32 %127 to i64
  %129 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %128)
          to label %130 unwind label %153

130:                                              ; preds = %126, %124
  %131 = phi ptr [ %125, %124 ], [ %129, %126 ]
  call void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %131)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %132 = sext i32 %.2114192 to i64
  %133 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %132)
          to label %134 unwind label %155

134:                                              ; preds = %130
  call void @_ZN5Maths8TVector2IfEC2ERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %133)
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv227) #5
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %.not.not187 = icmp sgt i32 %.2114192, %.0112.lcssa
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  br i1 %.not.not187, label %.lr.ph190, label %.critedge2

.lr.ph190:                                        ; preds = %134
  %137 = sext i32 %136 to i64
  br label %138

138:                                              ; preds = %.lr.ph190, %151
  %indvars.iv224 = phi i64 [ %132, %.lr.ph190 ], [ %indvars.iv.next225, %151 ]
  %139 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %137) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %14, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %139)
          to label %140 unwind label %157

140:                                              ; preds = %138
  %141 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %137) #5
  invoke void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TVector2") align 4 %15, ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %141)
          to label %142 unwind label %159

142:                                              ; preds = %140
  %143 = call noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %144 = fcmp ugt float %143, 0.000000e+00
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br i1 %144, label %.loopexit.loopexit, label %145

145:                                              ; preds = %142
  %indvars.iv.next225 = add nsw i64 %indvars.iv224, -1
  %146 = add nsw i64 %indvars.iv224, -2
  %147 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %146)
          to label %148 unwind label %.loopexit140

148:                                              ; preds = %145
  %149 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %147)
  %150 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv.next225)
          to label %151 unwind label %.loopexit140

151:                                              ; preds = %148
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %150)
  %.not.not = icmp sgt i64 %indvars.iv.next225, %121
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  br i1 %.not.not, label %138, label %.critedge2.loopexit, !llvm.loop !13

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

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

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

159:                                              ; preds = %140
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %161

161:                                              ; preds = %159, %157
  %.pn = phi { ptr, i32 } [ %160, %159 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %179

.loopexit140:                                     ; preds = %145, %148
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %179

.loopexit.split-lp:                               ; preds = %175
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %179

.critedge2.loopexit:                              ; preds = %151
  %162 = trunc nsw i64 %indvars.iv.next225 to i32
  br label %.critedge2

.critedge2:                                       ; preds = %.critedge2.loopexit, %134
  %.3115.lcssa = phi i32 [ %.2114192, %134 ], [ %162, %.critedge2.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %.loopexit

.loopexit.loopexit:                               ; preds = %142
  %163 = trunc nsw i64 %indvars.iv224 to i32
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.critedge2
  %.3115152 = phi i32 [ %.3115.lcssa, %.critedge2 ], [ %163, %.loopexit.loopexit ]
  %164 = add nsw i32 %.3115152, 1
  %.not = icmp eq i32 %164, %17
  br i1 %.not, label %176, label %165

165:                                              ; preds = %.loopexit
  %166 = call noundef i64 @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %167 = trunc i64 %166 to i32
  %168 = icmp slt i32 %164, %167
  %169 = sext i32 %136 to i64
  %170 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %169) #5
  br i1 %168, label %171, label %175

171:                                              ; preds = %165
  %172 = sext i32 %164 to i64
  %173 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %172) #5
  %174 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN5Maths8TVector2IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(8) %173, ptr noundef nonnull align 4 dereferenceable(8) %170)
  br label %177

175:                                              ; preds = %165
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(8) %170)
          to label %177 unwind label %.loopexit.split-lp

176:                                              ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %183

177:                                              ; preds = %171, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  %indvars.iv.next228 = add nsw i64 %indvars.iv227, -1
  %178 = icmp sgt i64 %indvars.iv227, 0
  br i1 %178, label %.lr.ph195, label %._crit_edge196, !llvm.loop !14

179:                                              ; preds = %.loopexit140, %.loopexit.split-lp, %161, %155
  %.pn122.pn = phi { ptr, i32 } [ %156, %155 ], [ %.pn, %161 ], [ %lpad.loopexit, %.loopexit140 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %180

180:                                              ; preds = %179, %153
  %.pn122.pn.pn = phi { ptr, i32 } [ %.pn122.pn, %179 ], [ %154, %153 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %186

._crit_edge196:                                   ; preds = %177, %._crit_edge185
  %.2114.lcssa = phi i32 [ %.0112.lcssa, %._crit_edge185 ], [ %164, %177 ]
  %181 = add nsw i32 %.2114.lcssa, 1
  %182 = sext i32 %181 to i64
  invoke void @_ZNSt6vectorIN5Maths8TVector2IfEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %182)
          to label %183 unwind label %184

183:                                              ; preds = %176, %._crit_edge196
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret void

184:                                              ; preds = %._crit_edge196
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %186

186:                                              ; preds = %84, %118, %184, %180, %22
  %.pn131.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %23, %22 ], [ %.pn131.pn.pn.pn, %118 ], [ %85, %84 ], [ %.pn122.pn.pn, %180 ], [ %185, %184 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn131.pn.pn.pn.pn.pn
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK5Maths8TVector2IfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.Maths::TVector2") align 4, ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK5Maths8TVector2IfE5CrossERKS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

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

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

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

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

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


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