; LLVM IR from cjmcv/hpc :: coroutine/libco/libco/src (co_hook_sys_call)

; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%struct.pollfd = type { i32, i16, i16 }
%"struct.std::pair" = type { i32, i32 }

@_ZL15g_sys_poll_func = external hidden global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) #0

declare noundef zeroext i1 @_Z21co_is_enable_sys_hookv() #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @poll(ptr noundef %0, i64 noundef %1, i32 noundef %2) #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::map", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !11
  %23 = load ptr, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %27, label %25

25:                                               ; preds = %3
  %26 = call ptr @dlsym(ptr noundef inttoptr (i64 -1 to ptr), ptr noundef @.str.18) #7
  store ptr %26, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %25, %3
  %28 = call noundef zeroext i1 @_Z21co_is_enable_sys_hookv()
  br i1 %28, label %29, label %32

29:                                               ; preds = %27
  %30 = load i32, ptr %7, align 4, !tbaa !11
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %38

32:                                               ; preds = %29, %27
  %33 = load ptr, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load i64, ptr %6, align 8, !tbaa !9
  %36 = load i32, ptr %7, align 4, !tbaa !11
  %37 = call noundef i32 %33(ptr noundef %34, i64 noundef %35, i32 noundef %36)
  store i32 %37, ptr %4, align 4
  br label %197

38:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %39 = load i64, ptr %6, align 8, !tbaa !9
  %40 = icmp ugt i64 %39, 1
  br i1 %40, label %41, label %111

41:                                               ; preds = %38
  %42 = load i64, ptr %6, align 8, !tbaa !9
  %43 = mul i64 8, %42
  %44 = call noalias ptr @malloc(i64 noundef %43) #8
  store ptr %44, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %106, %41
  %46 = load i64, ptr %12, align 8, !tbaa !9
  %47 = load i64, ptr %6, align 8, !tbaa !9
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %110

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load i64, ptr %12, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.pollfd, ptr %51, i64 %52
  %54 = getelementptr inbounds %struct.pollfd, ptr %53, i32 0, i32 0
  %55 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %54)
          to label %56 unwind label %78

56:                                               ; preds = %50
  %57 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %13, i32 0, i32 0
  store ptr %55, ptr %57, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %13, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %58 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  %59 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %16, i32 0, i32 0
  store ptr %58, ptr %59, align 8
  %60 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br i1 %60, label %61, label %86

61:                                               ; preds = %56
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = load i64, ptr %12, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.pollfd, ptr %62, i64 %63
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = load i64, ptr %9, align 8, !tbaa !9
  %67 = getelementptr inbounds %struct.pollfd, ptr %65, i64 %66
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 %64, i64 8, i1 false), !tbaa.struct !14
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = trunc i64 %68 to i32
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load i64, ptr %12, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.pollfd, ptr %70, i64 %71
  %73 = getelementptr inbounds %struct.pollfd, ptr %72, i32 0, i32 0
  %74 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %73)
          to label %75 unwind label %82

75:                                               ; preds = %61
  store i32 %69, ptr %74, align 4, !tbaa !11
  %76 = load i64, ptr %9, align 8, !tbaa !9
  %77 = add i64 %76, 1
  store i64 %77, ptr %9, align 8, !tbaa !9
  br label %105

78:                                               ; preds = %50
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %14, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %109

82:                                               ; preds = %61
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %14, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %15, align 4
  br label %109

86:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %87 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %88 = getelementptr inbounds %"struct.std::pair", ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !17
  store i32 %89, ptr %17, align 4, !tbaa !11
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i64, ptr %12, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.pollfd, ptr %90, i64 %91
  %93 = getelementptr inbounds %struct.pollfd, ptr %92, i32 0, i32 1
  %94 = load i16, ptr %93, align 4, !tbaa !19
  %95 = sext i16 %94 to i32
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i32, ptr %17, align 4, !tbaa !11
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.pollfd, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.pollfd, ptr %99, i32 0, i32 1
  %101 = load i16, ptr %100, align 4, !tbaa !19
  %102 = sext i16 %101 to i32
  %103 = or i32 %102, %95
  %104 = trunc i32 %103 to i16
  store i16 %104, ptr %100, align 4, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %105

105:                                              ; preds = %86, %75
  br label %106

106:                                              ; preds = %105
  %107 = load i64, ptr %12, align 8, !tbaa !9
  %108 = add i64 %107, 1
  store i64 %108, ptr %12, align 8, !tbaa !9
  br label %45, !llvm.loop !21

109:                                              ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %196

110:                                              ; preds = %49
  br label %111

111:                                              ; preds = %110, %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !11
  %112 = load i64, ptr %9, align 8, !tbaa !9
  %113 = load i64, ptr %6, align 8, !tbaa !9
  %114 = icmp eq i64 %112, %113
  br i1 %114, label %118, label %115

115:                                              ; preds = %111
  %116 = load i64, ptr %6, align 8, !tbaa !9
  %117 = icmp eq i64 %116, 1
  br i1 %117, label %118, label %131

118:                                              ; preds = %115, %111
  %119 = invoke noundef ptr @_Z15co_get_epoll_ctv()
          to label %120 unwind label %127

120:                                              ; preds = %118
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = load i64, ptr %6, align 8, !tbaa !9
  %123 = load i32, ptr %7, align 4, !tbaa !11
  %124 = load ptr, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  %125 = invoke noundef i32 @_Z13co_poll_innerP11stCoEpoll_tP6pollfdmiPFiS2_miE(ptr noundef %119, ptr noundef %121, i64 noundef %122, i32 noundef %123, ptr noundef %124)
          to label %126 unwind label %127

126:                                              ; preds = %120
  store i32 %125, ptr %18, align 4, !tbaa !11
  br label %192

127:                                              ; preds = %133, %131, %120, %118
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %14, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %15, align 4
  br label %195

131:                                              ; preds = %115
  %132 = invoke noundef ptr @_Z15co_get_epoll_ctv()
          to label %133 unwind label %127

133:                                              ; preds = %131
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = load i64, ptr %9, align 8, !tbaa !9
  %136 = load i32, ptr %7, align 4, !tbaa !11
  %137 = load ptr, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  %138 = invoke noundef i32 @_Z13co_poll_innerP11stCoEpoll_tP6pollfdmiPFiS2_miE(ptr noundef %132, ptr noundef %134, i64 noundef %135, i32 noundef %136, ptr noundef %137)
          to label %139 unwind label %127

139:                                              ; preds = %133
  store i32 %138, ptr %18, align 4, !tbaa !11
  %140 = load i32, ptr %18, align 4, !tbaa !11
  %141 = icmp sgt i32 %140, 0
  br i1 %141, label %142, label %191

142:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %143

143:                                              ; preds = %187, %142
  %144 = load i64, ptr %19, align 8, !tbaa !9
  %145 = load i64, ptr %6, align 8, !tbaa !9
  %146 = icmp ult i64 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %190

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = load i64, ptr %19, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.pollfd, ptr %149, i64 %150
  %152 = getelementptr inbounds %struct.pollfd, ptr %151, i32 0, i32 0
  %153 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %152)
          to label %154 unwind label %182

154:                                              ; preds = %148
  %155 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %153, ptr %155, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %20, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %156 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  %157 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %21, i32 0, i32 0
  store ptr %156, ptr %157, align 8
  %158 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br i1 %158, label %159, label %186

159:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %160 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  %161 = getelementptr inbounds %"struct.std::pair", ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 4, !tbaa !17
  store i32 %162, ptr %22, align 4, !tbaa !11
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = load i32, ptr %22, align 4, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds %struct.pollfd, ptr %163, i64 %165
  %167 = getelementptr inbounds %struct.pollfd, ptr %166, i32 0, i32 2
  %168 = load i16, ptr %167, align 2, !tbaa !23
  %169 = sext i16 %168 to i32
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load i64, ptr %19, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.pollfd, ptr %170, i64 %171
  %173 = getelementptr inbounds %struct.pollfd, ptr %172, i32 0, i32 1
  %174 = load i16, ptr %173, align 4, !tbaa !19
  %175 = sext i16 %174 to i32
  %176 = and i32 %169, %175
  %177 = trunc i32 %176 to i16
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = load i64, ptr %19, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.pollfd, ptr %178, i64 %179
  %181 = getelementptr inbounds %struct.pollfd, ptr %180, i32 0, i32 2
  store i16 %177, ptr %181, align 2, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %186

182:                                              ; preds = %148
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %14, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %195

186:                                              ; preds = %159, %154
  br label %187

187:                                              ; preds = %186
  %188 = load i64, ptr %19, align 8, !tbaa !9
  %189 = add i64 %188, 1
  store i64 %189, ptr %19, align 8, !tbaa !9
  br label %143, !llvm.loop !24

190:                                              ; preds = %147
  br label %191

191:                                              ; preds = %190, %139
  br label %192

192:                                              ; preds = %191, %126
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %193) #7
  %194 = load i32, ptr %18, align 4, !tbaa !11
  store i32 %194, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %197

195:                                              ; preds = %182, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %196

196:                                              ; preds = %195, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %199

197:                                              ; preds = %192, %32
  %198 = load i32, ptr %4, align 4
  ret i32 %198

199:                                              ; preds = %196
  %200 = load ptr, ptr %14, align 8
  %201 = load i32, ptr %15, align 4
  %202 = insertvalue { ptr, i32 } poison, ptr %200, 0
  %203 = insertvalue { ptr, i32 } %202, i32 %201, 1
  resume { ptr, i32 } %203
}

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48)) #5 align 2

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

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

declare noundef i32 @_Z13co_poll_innerP11stCoEpoll_tP6pollfdmiPFiS2_miE(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1

declare noundef ptr @_Z15co_get_epoll_ctv() #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nounwind
declare void @free(ptr noundef) #0

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

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 8, !5}
!14 = !{i64 0, i64 4, !11, i64 4, i64 2, !15, i64 6, i64 2, !15}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!18, !12, i64 4}
!18 = !{!"_ZTSSt4pairIKiiE", !12, i64 0, !12, i64 4}
!19 = !{!20, !16, i64 4}
!20 = !{!"_ZTS6pollfd", !12, i64 0, !16, i64 4, !16, i64 6}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!20, !16, i64 6}
!24 = distinct !{!24, !22}


; 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::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, int>, std::_Select1st<std::pair<const int, int>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%struct.pollfd = type { i32, i16, i16 }

@_ZL15g_sys_poll_func = external hidden local_unnamed_addr global ptr, align 8
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_Z21co_is_enable_sys_hookv() local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @poll(ptr noundef %0, i64 noundef %1, i32 noundef %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::map", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = load ptr, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  %.not68 = icmp eq ptr %8, null
  br i1 %.not68, label %9, label %11

9:                                                ; preds = %3
  %10 = tail call ptr @dlsym(ptr noundef nonnull inttoptr (i64 -1 to ptr), ptr noundef nonnull @.str.18) #7
  store ptr %10, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %9, %3
  %12 = tail call noundef zeroext i1 @_Z21co_is_enable_sys_hookv()
  %13 = icmp ne i32 %2, 0
  %or.cond.not = and i1 %13, %12
  br i1 %or.cond.not, label %17, label %14

14:                                               ; preds = %11
  %15 = load ptr, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  %16 = tail call noundef i32 %15(ptr noundef %0, i64 noundef %1, i32 noundef %2)
  br label %89

17:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt17_Rb_tree_iteratorISt4pairIKiiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %18 = icmp ugt i64 %1, 1
  br i1 %18, label %19, label %.loopexit74

19:                                               ; preds = %17
  %20 = shl i64 %1, 3
  %21 = call noalias ptr @malloc(i64 noundef %20) #8
  br label %22

22:                                               ; preds = %19, %49
  %.05578 = phi i64 [ 0, %19 ], [ %.1, %49 ]
  %.06277 = phi i64 [ 0, %19 ], [ %50, %49 ]
  %23 = getelementptr inbounds %struct.pollfd, ptr %0, i64 %.06277
  %24 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %25 unwind label %35

25:                                               ; preds = %22
  store ptr %24, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %26 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  store ptr %26, ptr %6, align 8
  %27 = call noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br i1 %27, label %28, label %39

28:                                               ; preds = %25
  %29 = getelementptr inbounds %struct.pollfd, ptr %21, i64 %.05578
  %30 = load i64, ptr %23, align 4
  store i64 %30, ptr %29, align 4
  %31 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %32 unwind label %37

32:                                               ; preds = %28
  %33 = trunc i64 %.05578 to i32
  store i32 %33, ptr %31, align 4, !tbaa !9
  %34 = add i64 %.05578, 1
  br label %49

35:                                               ; preds = %22
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %88

37:                                               ; preds = %28
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %88

39:                                               ; preds = %25
  %40 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %41 = getelementptr inbounds i8, ptr %40, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !11
  %43 = getelementptr inbounds i8, ptr %23, i64 4
  %44 = load i16, ptr %43, align 4, !tbaa !13
  %45 = sext i32 %42 to i64
  %46 = getelementptr inbounds %struct.pollfd, ptr %21, i64 %45, i32 1
  %47 = load i16, ptr %46, align 4, !tbaa !13
  %48 = or i16 %47, %44
  store i16 %48, ptr %46, align 4, !tbaa !13
  br label %49

49:                                               ; preds = %32, %39
  %.1 = phi i64 [ %34, %32 ], [ %.05578, %39 ]
  %50 = add nuw i64 %.06277, 1
  %exitcond.not = icmp eq i64 %50, %1
  br i1 %exitcond.not, label %.loopexit74, label %22, !llvm.loop !16

.loopexit74:                                      ; preds = %49, %17
  %.2 = phi i64 [ 0, %17 ], [ %.1, %49 ]
  %.052 = phi ptr [ null, %17 ], [ %21, %49 ]
  %51 = icmp eq i64 %.2, %1
  %52 = icmp eq i64 %1, 1
  %or.cond3 = or i1 %52, %51
  br i1 %or.cond3, label %53, label %60

53:                                               ; preds = %.loopexit74
  %54 = invoke noundef ptr @_Z15co_get_epoll_ctv()
          to label %55 unwind label %58

55:                                               ; preds = %53
  %56 = load ptr, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  %57 = invoke noundef i32 @_Z13co_poll_innerP11stCoEpoll_tP6pollfdmiPFiS2_miE(ptr noundef %54, ptr noundef %0, i64 noundef %1, i32 noundef %2, ptr noundef %56)
          to label %.loopexit unwind label %58

58:                                               ; preds = %62, %60, %55, %53
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %88

60:                                               ; preds = %.loopexit74
  %61 = invoke noundef ptr @_Z15co_get_epoll_ctv()
          to label %62 unwind label %58

62:                                               ; preds = %60
  %63 = load ptr, ptr @_ZL15g_sys_poll_func, align 8, !tbaa !5
  %64 = invoke noundef i32 @_Z13co_poll_innerP11stCoEpoll_tP6pollfdmiPFiS2_miE(ptr noundef %61, ptr noundef %.052, i64 noundef %.2, i32 noundef %2, ptr noundef %63)
          to label %65 unwind label %58

65:                                               ; preds = %62
  %66 = icmp sgt i32 %64, 0
  %67 = icmp ne i64 %1, 0
  %or.cond = and i1 %66, %67
  br i1 %or.cond, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %65, %86
  %.05379 = phi i64 [ %87, %86 ], [ 0, %65 ]
  %68 = getelementptr inbounds %struct.pollfd, ptr %0, i64 %.05379
  %69 = invoke ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 4 dereferenceable(4) %68)
          to label %70 unwind label %84

70:                                               ; preds = %.lr.ph
  store ptr %69, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %71 = call ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  store ptr %71, ptr %7, align 8
  %72 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %72, label %73, label %86

73:                                               ; preds = %70
  %74 = call noundef ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKiiEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %75 = getelementptr inbounds i8, ptr %74, i64 4
  %76 = load i32, ptr %75, align 4, !tbaa !11
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.pollfd, ptr %.052, i64 %77, i32 2
  %79 = load i16, ptr %78, align 2, !tbaa !18
  %80 = getelementptr inbounds i8, ptr %68, i64 4
  %81 = load i16, ptr %80, align 4, !tbaa !13
  %82 = and i16 %81, %79
  %83 = getelementptr inbounds i8, ptr %68, i64 6
  store i16 %82, ptr %83, align 2, !tbaa !18
  br label %86

84:                                               ; preds = %.lr.ph
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %70, %73
  %87 = add nuw i64 %.05379, 1
  %exitcond80.not = icmp eq i64 %87, %1
  br i1 %exitcond80.not, label %.loopexit, label %.lr.ph, !llvm.loop !19

.loopexit:                                        ; preds = %86, %55, %65
  %.054 = phi i32 [ %64, %65 ], [ %57, %55 ], [ %64, %86 ]
  call void @free(ptr noundef %.052) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  br label %89

88:                                               ; preds = %58, %84, %35, %37
  %.pn71.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ], [ %59, %58 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn71.pn

89:                                               ; preds = %.loopexit, %14
  %.0 = phi i32 [ %16, %14 ], [ %.054, %.loopexit ]
  ret i32 %.0
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEE4findERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt3mapIiiSt4lessIiESaISt4pairIKiiEEEixERS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

declare noundef i32 @_Z13co_poll_innerP11stCoEpoll_tP6pollfdmiPFiS2_miE(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare noundef ptr @_Z15co_get_epoll_ctv() local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKiiEES5_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

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

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

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

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


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