; LLVM IR from iksha-rudra/Computational-Geometry :: CGAlgorithms/CGAlgorithms (cgalgorithms)

; 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.MinHeap = type <{ %"class.std::vector.0", i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.LinkedStack = type { ptr }
%class.Point = type { i32, i32 }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN12CGAlgorithms10_directionE5PointS0_S0_(i64, i64, i64) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12CGAlgorithms12grahamScanCHESt6vectorI5PointSaIS1_EE(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %class.MinHeap, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %class.LinkedStack, align 8
  %10 = alloca %class.Point, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %class.Point, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca %class.Point, align 4
  %16 = alloca %class.Point, align 4
  %17 = alloca %class.Point, align 4
  %18 = alloca %class.Point, align 4
  %19 = alloca %class.Point, align 4
  %20 = alloca %class.Point, align 4
  %21 = alloca %class.Point, align 4
  %22 = alloca %class.Point, align 4
  %23 = alloca %class.Point, align 4
  %24 = alloca %class.Point, align 4
  %25 = alloca %class.Point, align 4
  %26 = alloca %class.Point, align 4
  %27 = alloca %class.Point, align 4
  %28 = alloca %class.Point, align 4
  %29 = alloca %class.Point, align 4
  %30 = alloca i32, align 4
  %31 = alloca %class.Point, align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZNSt6vectorI5PointSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  invoke void @_ZN7MinHeapC1Ev(ptr noundef nonnull align 8 dereferenceable(28) %6)
          to label %32 unwind label %45

32:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  invoke void @_ZN11LinkedStackC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %33 unwind label %49

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  invoke void @_ZNSt6vectorI5PointSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %34 unwind label %53

34:                                               ; preds = %33
  %35 = invoke i64 @_ZN12CGAlgorithms9_findMinYESt6vectorI5PointSaIS1_EE(ptr noundef %11)
          to label %36 unwind label %57

36:                                               ; preds = %34
  store i64 %35, ptr %10, align 4
  call void @_ZNSt6vectorI5PointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !9
  %37 = load i64, ptr %12, align 4
  invoke void @_ZN12CGAlgorithms20_removePointFromListERSt6vectorI5PointSaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 %37)
          to label %38 unwind label %53

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !10
  br label %39

39:                                               ; preds = %78, %38
  %40 = load i32, ptr %13, align 4, !tbaa !10
  %41 = zext i32 %40 to i64
  %42 = call noundef i64 @_ZNKSt6vectorI5PointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %61, label %44

44:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %85

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

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

53:                                               ; preds = %144, %96, %93, %91, %89, %87, %85, %36, %33
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  br label %158

57:                                               ; preds = %34
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  call void @_ZNSt6vectorI5PointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %158

61:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !9
  %62 = load i32, ptr %13, align 4, !tbaa !10
  %63 = zext i32 %62 to i64
  %64 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI5PointSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %63)
          to label %65 unwind label %81

65:                                               ; preds = %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %64, i64 8, i1 false), !tbaa.struct !9
  %66 = load i64, ptr %15, align 4
  %67 = load i64, ptr %16, align 4
  %68 = invoke noundef double @_ZN12CGAlgorithms11_polarAngleE5PointS0_(i64 %66, i64 %67)
          to label %69 unwind label %81

69:                                               ; preds = %65
  store double %68, ptr %14, align 8, !tbaa !12
  %70 = load i32, ptr %13, align 4, !tbaa !10
  %71 = zext i32 %70 to i64
  %72 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI5PointSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %71)
          to label %73 unwind label %81

73:                                               ; preds = %69
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %72, i64 8, i1 false), !tbaa.struct !9
  %74 = load double, ptr %14, align 8, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !9
  %75 = load i64, ptr %17, align 4
  %76 = load i64, ptr %18, align 4
  invoke void @_ZN7MinHeap6insertE5PointdS0_(ptr noundef nonnull align 8 dereferenceable(28) %6, i64 %75, double noundef %74, i64 %76)
          to label %77 unwind label %81

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %13, align 4, !tbaa !10
  %80 = add i32 %79, 1
  store i32 %80, ptr %13, align 4, !tbaa !10
  br label %39, !llvm.loop !14

81:                                               ; preds = %73, %69, %65, %61
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %158

85:                                               ; preds = %44
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !9
  %86 = load i64, ptr %19, align 4
  invoke void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 %86)
          to label %87 unwind label %53

87:                                               ; preds = %85
  %88 = invoke i64 @_ZN7MinHeap10extractMinEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
          to label %89 unwind label %53

89:                                               ; preds = %87
  store i64 %88, ptr %20, align 4
  %90 = load i64, ptr %20, align 4
  invoke void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 %90)
          to label %91 unwind label %53

91:                                               ; preds = %89
  %92 = invoke i64 @_ZN7MinHeap10extractMinEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
          to label %93 unwind label %53

93:                                               ; preds = %91
  store i64 %92, ptr %21, align 4
  %94 = load i64, ptr %21, align 4
  invoke void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 %94)
          to label %95 unwind label %53

95:                                               ; preds = %93
  br label %96

96:                                               ; preds = %141, %95
  %97 = invoke noundef zeroext i1 @_ZN7MinHeap7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
          to label %98 unwind label %53

98:                                               ; preds = %96
  %99 = xor i1 %97, true
  br i1 %99, label %100, label %143

100:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %101 = invoke i64 @_ZN7MinHeap10extractMinEv(ptr noundef nonnull align 8 dereferenceable(28) %6)
          to label %102 unwind label %121

102:                                              ; preds = %100
  store i64 %101, ptr %22, align 4
  br label %103

103:                                              ; preds = %139, %102
  %104 = invoke noundef zeroext i1 @_ZN11LinkedStack7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %105 unwind label %121

105:                                              ; preds = %103
  %106 = xor i1 %104, true
  br i1 %106, label %107, label %141

107:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %108 = invoke i64 @_ZN11LinkedStack3topEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %109 unwind label %125

109:                                              ; preds = %107
  store i64 %108, ptr %23, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %110 = invoke i64 @_ZN11LinkedStack9nextToTopEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %111 unwind label %129

111:                                              ; preds = %109
  store i64 %110, ptr %24, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %24, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !9
  %112 = load i64, ptr %25, align 4
  %113 = load i64, ptr %26, align 4
  %114 = load i64, ptr %27, align 4
  %115 = invoke noundef i32 @_ZN12CGAlgorithms10_directionE5PointS0_S0_(i64 %112, i64 %113, i64 %114)
          to label %116 unwind label %129

116:                                              ; preds = %111
  %117 = icmp sgt i32 %115, 0
  br i1 %117, label %118, label %133

118:                                              ; preds = %116
  %119 = invoke i64 @_ZN11LinkedStack3popEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %120 unwind label %129

120:                                              ; preds = %118
  store i64 %119, ptr %28, align 4
  br label %136

121:                                              ; preds = %103, %100
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %7, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %8, align 4
  br label %142

125:                                              ; preds = %107
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %7, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %8, align 4
  br label %140

129:                                              ; preds = %133, %118, %111, %109
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %7, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %140

133:                                              ; preds = %116
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !9
  %134 = load i64, ptr %29, align 4
  invoke void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 %134)
          to label %135 unwind label %129

135:                                              ; preds = %133
  store i32 8, ptr %30, align 4
  br label %137

136:                                              ; preds = %120
  store i32 0, ptr %30, align 4
  br label %137

137:                                              ; preds = %136, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %138 = load i32, ptr %30, align 4
  switch i32 %138, label %168 [
    i32 0, label %139
    i32 8, label %141
  ]

139:                                              ; preds = %137
  br label %103, !llvm.loop !16

140:                                              ; preds = %129, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %142

141:                                              ; preds = %137, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %96, !llvm.loop !17

142:                                              ; preds = %140, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %158

143:                                              ; preds = %98
  br label %144

144:                                              ; preds = %151, %143
  %145 = invoke noundef zeroext i1 @_ZN11LinkedStack7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %146 unwind label %53

146:                                              ; preds = %144
  %147 = xor i1 %145, true
  br i1 %147, label %148, label %156

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %149 = invoke i64 @_ZN11LinkedStack3popEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %150 unwind label %152

150:                                              ; preds = %148
  store i64 %149, ptr %31, align 4
  invoke void @_ZNSt6vectorI5PointSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(8) %31)
          to label %151 unwind label %152

151:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %144, !llvm.loop !18

152:                                              ; preds = %150, %148
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %7, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %158

156:                                              ; preds = %146
  store i1 true, ptr %5, align 1
  store i32 1, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN7MinHeapD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  %157 = load i1, ptr %5, align 1
  br i1 %157, label %162, label %161

158:                                              ; preds = %152, %142, %81, %57, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %159

159:                                              ; preds = %158, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN7MinHeapD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %6) #6
  br label %160

160:                                              ; preds = %159, %45
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @_ZNSt6vectorI5PointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %163

161:                                              ; preds = %156
  call void @_ZNSt6vectorI5PointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %162

162:                                              ; preds = %161, %156
  ret void

163:                                              ; preds = %160
  %164 = load ptr, ptr %7, align 8
  %165 = load i32, ptr %8, align 4
  %166 = insertvalue { ptr, i32 } poison, ptr %164, 0
  %167 = insertvalue { ptr, i32 } %166, i32 %165, 1
  resume { ptr, i32 } %167

168:                                              ; preds = %137
  unreachable
}

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

declare void @_ZN7MinHeapC1Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

declare void @_ZN11LinkedStackC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN12CGAlgorithms9_findMinYESt6vectorI5PointSaIS1_EE(ptr noundef) #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN12CGAlgorithms11_polarAngleE5PointS0_(i64, i64) #1 align 2

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

declare void @_ZN7MinHeap6insertE5PointdS0_(ptr noundef nonnull align 8 dereferenceable(28), i64, double noundef, i64) #4

declare void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8), i64) #4

declare i64 @_ZN7MinHeap10extractMinEv(ptr noundef nonnull align 8 dereferenceable(28)) #4

declare noundef zeroext i1 @_ZN7MinHeap7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(28)) #4

declare noundef zeroext i1 @_ZN11LinkedStack7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare i64 @_ZN11LinkedStack3topEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare i64 @_ZN11LinkedStack9nextToTopEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

declare i64 @_ZN11LinkedStack3popEv(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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


; 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.MinHeap = type <{ %"class.std::vector.0", i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MinHeap::Node, std::allocator<MinHeap::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.LinkedStack = type { ptr }
%class.Point = type { i32, i32 }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN12CGAlgorithms10_directionE5PointS0_S0_(i64, i64, i64) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12CGAlgorithms12grahamScanCHESt6vectorI5PointSaIS1_EE(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.MinHeap, align 8
  %4 = alloca %class.LinkedStack, align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %class.Point, align 8
  tail call void @_ZNSt6vectorI5PointSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  invoke void @_ZN7MinHeapC1Ev(ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %7 unwind label %13

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  invoke void @_ZN11LinkedStackC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %8 unwind label %15

8:                                                ; preds = %7
  invoke void @_ZNSt6vectorI5PointSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %9 unwind label %.loopexit.split-lp.loopexit.split-lp

9:                                                ; preds = %8
  %10 = invoke i64 @_ZN12CGAlgorithms9_findMinYESt6vectorI5PointSaIS1_EE(ptr noundef nonnull %5)
          to label %11 unwind label %17

11:                                               ; preds = %9
  call void @_ZNSt6vectorI5PointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  invoke void @_ZN12CGAlgorithms20_removePointFromListERSt6vectorI5PointSaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 %10)
          to label %.preheader59 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader59:                                     ; preds = %11
  %12 = call noundef i64 @_ZNKSt6vectorI5PointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %.not = icmp eq i64 %12, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %26, %.preheader59
  invoke void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %10)
          to label %33 unwind label %.loopexit.split-lp.loopexit.split-lp

13:                                               ; preds = %2
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %67

15:                                               ; preds = %7
  %16 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

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

.loopexit.split-lp.loopexit.split-lp:             ; preds = %38, %36, %35, %33, %._crit_edge, %11, %8
  %lpad.loopexit.split-lp57 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

17:                                               ; preds = %9
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI5PointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %.loopexit.split-lp

.lr.ph:                                           ; preds = %.preheader59, %26
  %19 = phi i64 [ %28, %26 ], [ 0, %.preheader59 ]
  %.03460 = phi i32 [ %27, %26 ], [ 0, %.preheader59 ]
  %20 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI5PointSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %19)
          to label %21 unwind label %31

21:                                               ; preds = %.lr.ph
  %.sroa.014.0.copyload = load i64, ptr %20, align 4
  %22 = invoke noundef double @_ZN12CGAlgorithms11_polarAngleE5PointS0_(i64 %10, i64 %.sroa.014.0.copyload)
          to label %23 unwind label %31

23:                                               ; preds = %21
  %24 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI5PointSaIS0_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %19)
          to label %25 unwind label %31

25:                                               ; preds = %23
  %.sroa.013.0.copyload = load i64, ptr %24, align 4
  invoke void @_ZN7MinHeap6insertE5PointdS0_(ptr noundef nonnull align 8 dereferenceable(28) %3, i64 %.sroa.013.0.copyload, double noundef %22, i64 %10)
          to label %26 unwind label %31

26:                                               ; preds = %25
  %27 = add i32 %.03460, 1
  %28 = zext i32 %27 to i64
  %29 = call noundef i64 @_ZNKSt6vectorI5PointSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %30 = icmp ugt i64 %29, %28
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !5

31:                                               ; preds = %25, %23, %21, %.lr.ph
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

33:                                               ; preds = %._crit_edge
  %34 = invoke i64 @_ZN7MinHeap10extractMinEv(ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %35 unwind label %.loopexit.split-lp.loopexit.split-lp

35:                                               ; preds = %33
  invoke void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %34)
          to label %36 unwind label %.loopexit.split-lp.loopexit.split-lp

36:                                               ; preds = %35
  %37 = invoke i64 @_ZN7MinHeap10extractMinEv(ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %38 unwind label %.loopexit.split-lp.loopexit.split-lp

38:                                               ; preds = %36
  invoke void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %37)
          to label %.preheader55 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader55:                                     ; preds = %38, %.preheader55.backedge
  %39 = invoke noundef zeroext i1 @_ZN7MinHeap7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %40 unwind label %.loopexit.split-lp.loopexit

40:                                               ; preds = %.preheader55
  br i1 %39, label %.preheader, label %41

41:                                               ; preds = %40
  %42 = invoke i64 @_ZN7MinHeap10extractMinEv(ptr noundef nonnull align 8 dereferenceable(28) %3)
          to label %.preheader44 unwind label %.loopexit.split-lp46

.preheader44:                                     ; preds = %41, %53
  %43 = invoke noundef zeroext i1 @_ZN11LinkedStack7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %44 unwind label %.loopexit45

44:                                               ; preds = %.preheader44
  br i1 %43, label %.preheader55.backedge, label %45, !llvm.loop !7

45:                                               ; preds = %44
  %46 = invoke i64 @_ZN11LinkedStack3topEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %47 unwind label %55

47:                                               ; preds = %45
  %48 = invoke i64 @_ZN11LinkedStack9nextToTopEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %49 unwind label %.loopexit50

49:                                               ; preds = %47
  %50 = invoke noundef i32 @_ZN12CGAlgorithms10_directionE5PointS0_S0_(i64 %48, i64 %46, i64 %42)
          to label %51 unwind label %.loopexit50

51:                                               ; preds = %49
  %52 = icmp sgt i32 %50, 0
  br i1 %52, label %53, label %57

53:                                               ; preds = %51
  %54 = invoke i64 @_ZN11LinkedStack3popEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %.preheader44 unwind label %.loopexit50

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

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

55:                                               ; preds = %45
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit50:                                      ; preds = %47, %49, %53
  %lpad.loopexit52 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

57:                                               ; preds = %51
  invoke void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 %42)
          to label %.preheader55.backedge unwind label %.loopexit.split-lp51

.preheader55.backedge:                            ; preds = %44, %57
  br label %.preheader55, !llvm.loop !7

.preheader:                                       ; preds = %40, %63
  %58 = invoke noundef zeroext i1 @_ZN11LinkedStack7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %59 unwind label %.loopexit

59:                                               ; preds = %.preheader
  br i1 %58, label %66, label %60

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %61 = invoke i64 @_ZN11LinkedStack3popEv(ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %62 unwind label %64

62:                                               ; preds = %60
  store i64 %61, ptr %6, align 8
  invoke void @_ZNSt6vectorI5PointSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %63 unwind label %64

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %.preheader, !llvm.loop !8

64:                                               ; preds = %62, %60
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %.loopexit.split-lp

66:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN7MinHeapD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret void

.loopexit.split-lp:                               ; preds = %.loopexit50, %.loopexit.split-lp51, %.loopexit45, %.loopexit.split-lp46, %.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %17, %31, %64, %55, %15
  %.pn38.pn = phi { ptr, i32 } [ %16, %15 ], [ %32, %31 ], [ %65, %64 ], [ %18, %17 ], [ %56, %55 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit56, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp57, %.loopexit.split-lp.loopexit.split-lp ], [ %lpad.loopexit47, %.loopexit45 ], [ %lpad.loopexit.split-lp48, %.loopexit.split-lp46 ], [ %lpad.loopexit52, %.loopexit50 ], [ %lpad.loopexit.split-lp53, %.loopexit.split-lp51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN7MinHeapD2Ev(ptr noundef nonnull align 8 dereferenceable(28) %3) #5
  br label %67

67:                                               ; preds = %.loopexit.split-lp, %13
  %.pn38.pn.pn = phi { ptr, i32 } [ %.pn38.pn, %.loopexit.split-lp ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @_ZNSt6vectorI5PointSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn38.pn.pn
}

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

declare void @_ZN7MinHeapC1Ev(ptr noundef nonnull align 8 dereferenceable(28)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @_ZN11LinkedStackC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN12CGAlgorithms9_findMinYESt6vectorI5PointSaIS1_EE(ptr noundef) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN12CGAlgorithms11_polarAngleE5PointS0_(i64, i64) local_unnamed_addr #1 align 2

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

declare void @_ZN7MinHeap6insertE5PointdS0_(ptr noundef nonnull align 8 dereferenceable(28), i64, double noundef, i64) local_unnamed_addr #3

declare void @_ZN11LinkedStack4pushE5Point(ptr noundef nonnull align 8 dereferenceable(8), i64) local_unnamed_addr #3

declare i64 @_ZN7MinHeap10extractMinEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN7MinHeap7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11LinkedStack7isEmptyEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare i64 @_ZN11LinkedStack3topEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare i64 @_ZN11LinkedStack9nextToTopEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

declare i64 @_ZN11LinkedStack3popEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass