; LLVM IR from SOHNE/Dura2D :: src/collision/d2AABBTree.ll (ZNK10d2AABBTree4DrawERK6d2Draw)

; 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::queue.3" = type { %"class.std::deque.4" }
%"class.std::deque.4" = type { %"class.std::_Deque_base.5" }
%"class.std::_Deque_base.5" = type { %"struct.std::_Deque_base<std::pair<d2Node *, int>, std::allocator<std::pair<d2Node *, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<d2Node *, int>, std::allocator<std::pair<d2Node *, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<d2Node *, int>, std::allocator<std::pair<d2Node *, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<d2Node *, int>, std::allocator<std::pair<d2Node *, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.9", %"struct.std::_Deque_iterator.9" }
%"struct.std::_Deque_iterator.9" = type { ptr, ptr, ptr, ptr }
%struct.d2Vec2 = type { float, float }
%struct.d2Color = type { float, float, float, float }
%class.d2AABBTree = type { %class.d2Broadphase, ptr, %"class.std::__cxx11::list", float, %"class.std::vector" }
%class.d2Broadphase = type { ptr }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::pair<d2Body *, d2Body *>, std::allocator<std::pair<d2Body *, d2Body *>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::pair<d2Body *, d2Body *>, std::allocator<std::pair<d2Body *, d2Body *>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<d2Node *, std::allocator<d2Node *>>::_Vector_impl" }
%"struct.std::_Vector_base<d2Node *, std::allocator<d2Node *>>::_Vector_impl" = type { %"struct.std::_Vector_base<d2Node *, std::allocator<d2Node *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<d2Node *, std::allocator<d2Node *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.10" = type <{ ptr, i32, [4 x i8] }>
%struct.d2Node = type { ptr, [2 x ptr], i8, %struct.d2AABB, ptr }
%struct.d2AABB = type { %struct.d2Vec2, %struct.d2Vec2, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6d2Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10d2AABBTree4DrawERK6d2Draw(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(12) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::queue.3", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca [4 x %struct.d2Vec2], align 16
  %14 = alloca float, align 4
  %15 = alloca %struct.d2Color, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #4
  call void @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEEC2IS6_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %20 = getelementptr inbounds %class.d2AABBTree, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %31

23:                                               ; preds = %2
  %24 = getelementptr inbounds %class.d2AABBTree, ptr %19, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !23
  %25 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRKS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %26 unwind label %27

26:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %31

27:                                               ; preds = %23
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %159

31:                                               ; preds = %26, %2
  br label %32

32:                                               ; preds = %133, %131, %31
  %33 = invoke noundef zeroext i1 @_ZNKSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %34 unwind label %50

34:                                               ; preds = %32
  %35 = xor i1 %33, true
  br i1 %35, label %36, label %158

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %37 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %38 unwind label %54

38:                                               ; preds = %36
  %39 = getelementptr inbounds %"struct.std::pair.10", ptr %37, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !25
  store ptr %40, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %41 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %42 unwind label %58

42:                                               ; preds = %38
  %43 = getelementptr inbounds %"struct.std::pair.10", ptr %41, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !27
  store i32 %44, ptr %10, align 4, !tbaa !23
  invoke void @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %45 unwind label %58

45:                                               ; preds = %42
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = invoke noundef zeroext i1 @_ZNK6d2Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(72) %46)
          to label %48 unwind label %58

48:                                               ; preds = %45
  br i1 %47, label %49, label %62

49:                                               ; preds = %48
  store i32 2, ptr %11, align 4
  br label %131, !llvm.loop !28

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

54:                                               ; preds = %36
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %157

58:                                               ; preds = %45, %42, %38
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %7, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %8, align 4
  br label %156

62:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.d2Node, ptr %63, i32 0, i32 3
  store ptr %64, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.d2AABB, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %struct.d2Vec2, ptr %66, i32 0, i32 0
  %68 = load float, ptr %67, align 8, !tbaa !30
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.d2AABB, ptr %69, i32 0, i32 0
  %71 = getelementptr inbounds %struct.d2Vec2, ptr %70, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !33
  invoke void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %68, float noundef %72)
          to label %73 unwind label %134

73:                                               ; preds = %62
  %74 = getelementptr inbounds %struct.d2Vec2, ptr %13, i64 1
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.d2AABB, ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds %struct.d2Vec2, ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 8, !tbaa !34
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.d2AABB, ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds %struct.d2Vec2, ptr %80, i32 0, i32 1
  %82 = load float, ptr %81, align 4, !tbaa !33
  invoke void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %74, float noundef %78, float noundef %82)
          to label %83 unwind label %134

83:                                               ; preds = %73
  %84 = getelementptr inbounds %struct.d2Vec2, ptr %13, i64 2
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.d2AABB, ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds %struct.d2Vec2, ptr %86, i32 0, i32 0
  %88 = load float, ptr %87, align 8, !tbaa !34
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.d2AABB, ptr %89, i32 0, i32 1
  %91 = getelementptr inbounds %struct.d2Vec2, ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !35
  invoke void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %84, float noundef %88, float noundef %92)
          to label %93 unwind label %134

93:                                               ; preds = %83
  %94 = getelementptr inbounds %struct.d2Vec2, ptr %13, i64 3
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.d2AABB, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds %struct.d2Vec2, ptr %96, i32 0, i32 0
  %98 = load float, ptr %97, align 8, !tbaa !30
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.d2AABB, ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds %struct.d2Vec2, ptr %100, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !35
  invoke void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %94, float noundef %98, float noundef %102)
          to label %103 unwind label %134

103:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %104 = load i32, ptr %10, align 4, !tbaa !23
  %105 = sitofp i32 %104 to float
  %106 = fmul float %105, 0x3FB99999A0000000
  store float %106, ptr %14, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %107 = load float, ptr %14, align 4, !tbaa !36
  %108 = load float, ptr %14, align 4, !tbaa !36
  %109 = fsub float 1.000000e+00, %108
  invoke void @_ZN7d2ColorC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %15, float noundef %107, float noundef %109, float noundef 0.000000e+00, float noundef 1.000000e+00)
          to label %110 unwind label %138

110:                                              ; preds = %103
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds [4 x %struct.d2Vec2], ptr %13, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store float 0.000000e+00, ptr %16, align 4, !tbaa !36
  %113 = load ptr, ptr %111, align 8, !tbaa !37
  %114 = getelementptr inbounds ptr, ptr %113, i64 2
  %115 = load ptr, ptr %114, align 8
  invoke void %115(ptr noundef nonnull align 8 dereferenceable(12) %111, ptr noundef %112, i32 noundef 4, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %116 unwind label %142

116:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.d2Node, ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds [2 x ptr], ptr %118, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %120 = load i32, ptr %10, align 4, !tbaa !23
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %17, align 4, !tbaa !23
  %122 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %123 unwind label %146

123:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.d2Node, ptr %124, i32 0, i32 1
  %126 = getelementptr inbounds [2 x ptr], ptr %125, i64 0, i64 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %127 = load i32, ptr %10, align 4, !tbaa !23
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %18, align 4, !tbaa !23
  %129 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %130 unwind label %150

130:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  store i32 0, ptr %11, align 4
  br label %131

131:                                              ; preds = %130, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %132 = load i32, ptr %11, align 4
  switch i32 %132, label %165 [
    i32 0, label %133
    i32 2, label %32
  ]

133:                                              ; preds = %131
  br label %32, !llvm.loop !28

134:                                              ; preds = %93, %83, %73, %62
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %7, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %8, align 4
  br label %155

138:                                              ; preds = %103
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %7, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %8, align 4
  br label %154

142:                                              ; preds = %110
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %7, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %154

146:                                              ; preds = %116
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %7, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %154

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

154:                                              ; preds = %150, %146, %142, %138
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %155

155:                                              ; preds = %154, %134
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %156

156:                                              ; preds = %155, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %157

157:                                              ; preds = %156, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %159

158:                                              ; preds = %34
  call void @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #4
  ret void

159:                                              ; preds = %157, %50, %27
  call void @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %5) #4
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr %7, align 8
  %162 = load i32, ptr %8, align 4
  %163 = insertvalue { ptr, i32 } poison, ptr %161, 0
  %164 = insertvalue { ptr, i32 } %163, i32 %162, 1
  resume { ptr, i32 } %164

165:                                              ; preds = %131
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRKS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7d2ColorC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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, !6, i64 8}
!10 = !{!"_ZTS10d2AABBTree", !11, i64 0, !6, i64 8, !12, i64 16, !18, i64 40, !19, i64 48}
!11 = !{!"_ZTS12d2Broadphase"}
!12 = !{!"_ZTSNSt7__cxx114listISt4pairIP6d2BodyS3_ESaIS4_EEE", !13, i64 0}
!13 = !{!"_ZTSNSt7__cxx1110_List_baseISt4pairIP6d2BodyS3_ESaIS4_EEE", !14, i64 0}
!14 = !{!"_ZTSNSt7__cxx1110_List_baseISt4pairIP6d2BodyS3_ESaIS4_EE10_List_implE", !15, i64 0}
!15 = !{!"_ZTSNSt8__detail17_List_node_headerE", !16, i64 0, !17, i64 16}
!16 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIP6d2NodeSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIP6d2NodeSaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP6d2NodeSaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIP6d2NodeSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !7, i64 0}
!25 = !{!26, !6, i64 0}
!26 = !{!"_ZTSSt4pairIP6d2NodeiE", !6, i64 0, !24, i64 8}
!27 = !{!26, !24, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!31, !18, i64 0}
!31 = !{!"_ZTS6d2AABB", !32, i64 0, !32, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!"_ZTS6d2Vec2", !18, i64 0, !18, i64 4}
!33 = !{!31, !18, i64 4}
!34 = !{!31, !18, i64 8}
!35 = !{!31, !18, i64 12}
!36 = !{!18, !18, i64 0}
!37 = !{!38, !38, i64 0}
!38 = !{!"vtable pointer", !8, i64 0}


; 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::queue.3" = type { %"class.std::deque.4" }
%"class.std::deque.4" = type { %"class.std::_Deque_base.5" }
%"class.std::_Deque_base.5" = type { %"struct.std::_Deque_base<std::pair<d2Node *, int>, std::allocator<std::pair<d2Node *, int>>>::_Deque_impl" }
%"struct.std::_Deque_base<std::pair<d2Node *, int>, std::allocator<std::pair<d2Node *, int>>>::_Deque_impl" = type { %"struct.std::_Deque_base<std::pair<d2Node *, int>, std::allocator<std::pair<d2Node *, int>>>::_Deque_impl_data" }
%"struct.std::_Deque_base<std::pair<d2Node *, int>, std::allocator<std::pair<d2Node *, int>>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator.9", %"struct.std::_Deque_iterator.9" }
%"struct.std::_Deque_iterator.9" = type { ptr, ptr, ptr, ptr }
%struct.d2Vec2 = type { float, float }
%struct.d2Color = type { float, float, float, float }

declare i32 @__gxx_personality_v0(...)

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK6d2Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK10d2AABBTree4DrawERK6d2Draw(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(12) %1) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::queue.3", align 8
  %4 = alloca i32, align 4
  %5 = alloca [4 x %struct.d2Vec2], align 16
  %6 = alloca %struct.d2Color, align 4
  %7 = alloca float, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #4
  call void @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEEC2IS6_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %17, label %12

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store i32 0, ptr %4, align 4, !tbaa !22
  %13 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRKS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %14 unwind label %15

14:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %17

15:                                               ; preds = %12
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %65

17:                                               ; preds = %14, %2
  %18 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %18, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %17
  %19 = getelementptr inbounds i8, ptr %5, i64 8
  %20 = getelementptr inbounds i8, ptr %5, i64 16
  %21 = getelementptr inbounds i8, ptr %5, i64 24
  br label %22

22:                                               ; preds = %.lr.ph, %56
  %23 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %24 = load ptr, ptr %23, align 8, !tbaa !24
  %25 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load i32, ptr %26, align 8, !tbaa !26
  call void @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %28 = call noundef zeroext i1 @_ZNK6d2Node6IsLeafEv(ptr noundef nonnull align 8 dereferenceable(72) %24)
  br i1 %28, label %56, label %29, !llvm.loop !27

29:                                               ; preds = %22
  %30 = getelementptr inbounds i8, ptr %24, i64 32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #4
  %31 = load float, ptr %30, align 8, !tbaa !29
  %32 = getelementptr inbounds i8, ptr %24, i64 36
  %33 = load float, ptr %32, align 4, !tbaa !32
  call void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %31, float noundef %33)
  %34 = getelementptr inbounds i8, ptr %24, i64 40
  %35 = load float, ptr %34, align 8, !tbaa !33
  %36 = load float, ptr %32, align 4, !tbaa !32
  call void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %35, float noundef %36)
  %37 = load float, ptr %34, align 8, !tbaa !33
  %38 = getelementptr inbounds i8, ptr %24, i64 44
  %39 = load float, ptr %38, align 4, !tbaa !34
  call void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %37, float noundef %39)
  %40 = load float, ptr %30, align 8, !tbaa !29
  %41 = load float, ptr %38, align 4, !tbaa !34
  call void @_ZN6d2Vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %40, float noundef %41)
  %42 = sitofp i32 %27 to float
  %43 = fmul float %42, 0x3FB99999A0000000
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %44 = fsub float 1.000000e+00, %43
  call void @_ZN7d2ColorC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %6, float noundef %43, float noundef %44, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  store float 0.000000e+00, ptr %7, align 4, !tbaa !35
  %45 = load ptr, ptr %1, align 8, !tbaa !36
  %46 = getelementptr inbounds i8, ptr %45, i64 16
  %47 = load ptr, ptr %46, align 8
  invoke void %47(ptr noundef nonnull align 8 dereferenceable(12) %1, ptr noundef nonnull %5, i32 noundef 4, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(16) %6)
          to label %48 unwind label %58

48:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  %49 = getelementptr inbounds i8, ptr %24, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %50 = add nsw i32 %27, 1
  store i32 %50, ptr %8, align 4, !tbaa !22
  %51 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %52 unwind label %60

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %53 = getelementptr inbounds i8, ptr %24, i64 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  store i32 %50, ptr %9, align 4, !tbaa !22
  %54 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %55 unwind label %62

55:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %56

56:                                               ; preds = %22, %55
  %57 = call noundef zeroext i1 @_ZNKSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %57, label %._crit_edge, label %22

58:                                               ; preds = %29
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %64

60:                                               ; preds = %48
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  br label %64

62:                                               ; preds = %52
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  br label %64

64:                                               ; preds = %62, %60, %58
  %.pn = phi { ptr, i32 } [ %63, %62 ], [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #4
  br label %65

._crit_edge:                                      ; preds = %56, %17
  call void @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #4
  ret void

65:                                               ; preds = %64, %15
  %.pn.pn = phi { ptr, i32 } [ %.pn, %64 ], [ %16, %15 ]
  call void @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRKS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7d2ColorC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt5queueISt4pairIP6d2NodeiESt5dequeIS3_SaIS3_EEE7emplaceIJRS2_iEEEDcDpOT_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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, !8, i64 8}
!6 = !{!"_ZTS10d2AABBTree", !7, i64 0, !8, i64 8, !11, i64 16, !17, i64 40, !18, i64 48}
!7 = !{!"_ZTS12d2Broadphase"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSNSt7__cxx114listISt4pairIP6d2BodyS3_ESaIS4_EEE", !12, i64 0}
!12 = !{!"_ZTSNSt7__cxx1110_List_baseISt4pairIP6d2BodyS3_ESaIS4_EEE", !13, i64 0}
!13 = !{!"_ZTSNSt7__cxx1110_List_baseISt4pairIP6d2BodyS3_ESaIS4_EE10_List_implE", !14, i64 0}
!14 = !{!"_ZTSNSt8__detail17_List_node_headerE", !15, i64 0, !16, i64 16}
!15 = !{!"_ZTSNSt8__detail15_List_node_baseE", !8, i64 0, !8, i64 8}
!16 = !{!"long", !9, i64 0}
!17 = !{!"float", !9, i64 0}
!18 = !{!"_ZTSSt6vectorIP6d2NodeSaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIP6d2NodeSaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIP6d2NodeSaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIP6d2NodeSaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!22 = !{!23, !23, i64 0}
!23 = !{!"int", !9, i64 0}
!24 = !{!25, !8, i64 0}
!25 = !{!"_ZTSSt4pairIP6d2NodeiE", !8, i64 0, !23, i64 8}
!26 = !{!25, !23, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!30, !17, i64 0}
!30 = !{!"_ZTS6d2AABB", !31, i64 0, !31, i64 8, !8, i64 16, !8, i64 24}
!31 = !{!"_ZTS6d2Vec2", !17, i64 0, !17, i64 4}
!32 = !{!30, !17, i64 4}
!33 = !{!30, !17, i64 8}
!34 = !{!30, !17, i64 12}
!35 = !{!17, !17, i64 0}
!36 = !{!37, !37, i64 0}
!37 = !{!"vtable pointer", !10, i64 0}


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