; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/imgui_draw.ll (Z22ImFontAtlasBuildFinishP11ImFontAtlas)

; 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"

%struct.ImVec2 = type { float, float }
%struct.ImFontAtlas = type { i8, i32, ptr, i32, i32, ptr, ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.8, %struct.ImVector.9, %struct.ImVector.10, [64 x %struct.ImVec4], i32, i32 }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImFontAtlasCustomRect = type { i16, i16, i16, i16, i32, float, %struct.ImVec2, ptr }
%struct.ImFont = type <{ %struct.ImVector.6, float, float, %struct.ImVector.0, %struct.ImVector.7, ptr, ptr, ptr, i16, i16, i16, i8, i8, float, float, float, i32, [2 x i8], [6 x i8] }>
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }

@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [33 x i8], align 1
@__PRETTY_FUNCTION__._Z22ImFontAtlasBuildFinishP11ImFontAtlas = external hidden unnamed_addr constant [43 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [33 x i8], align 1
@__const._Z22ImFontAtlasBuildFinishP11ImFontAtlas.ellipsis_variants = external hidden unnamed_addr constant [2 x i16], align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11ImFontAtlas16CalcCustomRectUVEPK21ImFontAtlasCustomRectP6ImVec2S4_(ptr noundef nonnull align 8 dereferenceable(1144), ptr noundef, ptr noundef, ptr noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff(ptr noundef nonnull align 8 dereferenceable(106), ptr noundef, i16 noundef zeroext, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22ImFontAtlasBuildFinishP11ImFontAtlas(ptr noundef %0) #5 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [2 x i16], align 2
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.ImFontAtlas, ptr %13, i32 0, i32 5
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %1
  br label %20

18:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.36, ptr noundef @.str.1, i32 noundef 2527, ptr noundef @__PRETTY_FUNCTION__._Z22ImFontAtlasBuildFinishP11ImFontAtlas) #7
  unreachable

19:                                               ; No predecessors!
  br label %20

20:                                               ; preds = %19, %17
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZL36ImFontAtlasBuildRenderDefaultTexDataP11ImFontAtlas(ptr noundef %21)
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZL34ImFontAtlasBuildRenderLinesTexDataP11ImFontAtlas(ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !18
  br label %23

23:                                               ; preds = %109, %20
  %24 = load i32, ptr %3, align 4, !tbaa !18
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImFontAtlas, ptr %25, i32 0, i32 12
  %27 = getelementptr inbounds %struct.ImVector.9, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !19
  %29 = icmp slt i32 %24, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %23
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %112

31:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ImFontAtlas, ptr %32, i32 0, i32 12
  %34 = load i32, ptr %3, align 4, !tbaa !18
  %35 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN8ImVectorI21ImFontAtlasCustomRectEixEi(ptr noundef nonnull align 8 dereferenceable(16) %33, i32 noundef %34)
  store ptr %35, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %36, i32 0, i32 7
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = icmp eq ptr %38, null
  br i1 %39, label %45, label %40

40:                                               ; preds = %31
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 8, !tbaa !23
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %40, %31
  store i32 4, ptr %4, align 4
  br label %106

46:                                               ; preds = %40
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %47, i32 0, i32 7
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  %50 = getelementptr inbounds %struct.ImFont, ptr %49, i32 0, i32 6
  %51 = load ptr, ptr %50, align 8, !tbaa !24
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = icmp eq ptr %51, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %46
  br label %57

55:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.37, ptr noundef @.str.1, i32 noundef 2539, ptr noundef @__PRETTY_FUNCTION__._Z22ImFontAtlasBuildFinishP11ImFontAtlas) #7
  unreachable

56:                                               ; No predecessors!
  br label %57

57:                                               ; preds = %56, %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK11ImFontAtlas16CalcCustomRectUVEPK21ImFontAtlasCustomRectP6ImVec2S4_(ptr noundef nonnull align 8 dereferenceable(1144) %58, ptr noundef %59, ptr noundef %6, ptr noundef %7)
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %60, i32 0, i32 7
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 8, !tbaa !23
  %66 = trunc i32 %65 to i16
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %67, i32 0, i32 6
  %69 = getelementptr inbounds %struct.ImVec2, ptr %68, i32 0, i32 0
  %70 = load float, ptr %69, align 8, !tbaa !29
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %71, i32 0, i32 6
  %73 = getelementptr inbounds %struct.ImVec2, ptr %72, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !30
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %75, i32 0, i32 6
  %77 = getelementptr inbounds %struct.ImVec2, ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 8, !tbaa !29
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %79, i32 0, i32 0
  %81 = load i16, ptr %80, align 8, !tbaa !31
  %82 = zext i16 %81 to i32
  %83 = sitofp i32 %82 to float
  %84 = fadd float %78, %83
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %85, i32 0, i32 6
  %87 = getelementptr inbounds %struct.ImVec2, ptr %86, i32 0, i32 1
  %88 = load float, ptr %87, align 4, !tbaa !30
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %89, i32 0, i32 1
  %91 = load i16, ptr %90, align 2, !tbaa !32
  %92 = zext i16 %91 to i32
  %93 = sitofp i32 %92 to float
  %94 = fadd float %88, %93
  %95 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %96 = load float, ptr %95, align 4, !tbaa !33
  %97 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !34
  %99 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 0
  %100 = load float, ptr %99, align 4, !tbaa !33
  %101 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !34
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.ImFontAtlasCustomRect, ptr %103, i32 0, i32 5
  %105 = load float, ptr %104, align 4, !tbaa !35
  call void @_ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff(ptr noundef nonnull align 8 dereferenceable(106) %62, ptr noundef null, i16 noundef zeroext %66, float noundef %70, float noundef %74, float noundef %84, float noundef %94, float noundef %96, float noundef %98, float noundef %100, float noundef %102, float noundef %105)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  store i32 0, ptr %4, align 4
  br label %106

106:                                              ; preds = %57, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  %107 = load i32, ptr %4, align 4
  switch i32 %107, label %193 [
    i32 0, label %108
    i32 4, label %109
  ]

108:                                              ; preds = %106
  br label %109

109:                                              ; preds = %108, %106
  %110 = load i32, ptr %3, align 4, !tbaa !18
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %3, align 4, !tbaa !18
  br label %23, !llvm.loop !36

112:                                              ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !18
  br label %113

113:                                              ; preds = %137, %112
  %114 = load i32, ptr %8, align 4, !tbaa !18
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ImFontAtlas, ptr %115, i32 0, i32 11
  %117 = getelementptr inbounds %struct.ImVector.8, ptr %116, i32 0, i32 0
  %118 = load i32, ptr %117, align 8, !tbaa !38
  %119 = icmp slt i32 %114, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %113
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %140

121:                                              ; preds = %113
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ImFontAtlas, ptr %122, i32 0, i32 11
  %124 = load i32, ptr %8, align 4, !tbaa !18
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %123, i32 noundef %124)
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.ImFont, ptr %126, i32 0, i32 11
  %128 = load i8, ptr %127, align 2, !tbaa !39, !range !40, !noundef !41
  %129 = trunc i8 %128 to i1
  br i1 %129, label %130, label %136

130:                                              ; preds = %121
  %131 = load ptr, ptr %2, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ImFontAtlas, ptr %131, i32 0, i32 11
  %133 = load i32, ptr %8, align 4, !tbaa !18
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %132, i32 noundef %133)
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  call void @_ZN6ImFont16BuildLookupTableEv(ptr noundef nonnull align 8 dereferenceable(106) %135)
  br label %136

136:                                              ; preds = %130, %121
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %8, align 4, !tbaa !18
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %8, align 4, !tbaa !18
  br label %113, !llvm.loop !42

140:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !18
  br label %141

141:                                              ; preds = %189, %140
  %142 = load i32, ptr %9, align 4, !tbaa !18
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ImFontAtlas, ptr %143, i32 0, i32 11
  %145 = call noundef i32 @_ZNK8ImVectorIP6ImFontE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %144)
  %146 = icmp slt i32 %142, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %141
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %192

148:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImFontAtlas, ptr %149, i32 0, i32 11
  %151 = load i32, ptr %9, align 4, !tbaa !18
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %150, i32 noundef %151)
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  store ptr %153, ptr %10, align 8, !tbaa !5
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ImFont, ptr %154, i32 0, i32 10
  %156 = load i16, ptr %155, align 4, !tbaa !43
  %157 = zext i16 %156 to i32
  %158 = icmp ne i32 %157, 65535
  br i1 %158, label %159, label %160

159:                                              ; preds = %148
  store i32 10, ptr %4, align 4
  br label %186

160:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %11, ptr align 2 @__const._Z22ImFontAtlasBuildFinishP11ImFontAtlas.ellipsis_variants, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !18
  br label %161

161:                                              ; preds = %181, %160
  %162 = load i32, ptr %12, align 4, !tbaa !18
  %163 = icmp slt i32 %162, 2
  br i1 %163, label %165, label %164

164:                                              ; preds = %161
  store i32 11, ptr %4, align 4
  br label %184

165:                                              ; preds = %161
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = load i32, ptr %12, align 4, !tbaa !18
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [2 x i16], ptr %11, i64 0, i64 %168
  %170 = load i16, ptr %169, align 2, !tbaa !44
  %171 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(106) %166, i16 noundef zeroext %170)
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %180

173:                                              ; preds = %165
  %174 = load i32, ptr %12, align 4, !tbaa !18
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [2 x i16], ptr %11, i64 0, i64 %175
  %177 = load i16, ptr %176, align 2, !tbaa !44
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.ImFont, ptr %178, i32 0, i32 10
  store i16 %177, ptr %179, align 4, !tbaa !43
  store i32 11, ptr %4, align 4
  br label %184

180:                                              ; preds = %165
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %12, align 4, !tbaa !18
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %12, align 4, !tbaa !18
  br label %161, !llvm.loop !45

184:                                              ; preds = %173, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %185

185:                                              ; preds = %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  store i32 0, ptr %4, align 4
  br label %186

186:                                              ; preds = %185, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %187 = load i32, ptr %4, align 4
  switch i32 %187, label %193 [
    i32 0, label %188
    i32 10, label %189
  ]

188:                                              ; preds = %186
  br label %189

189:                                              ; preds = %188, %186
  %190 = load i32, ptr %9, align 4, !tbaa !18
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %9, align 4, !tbaa !18
  br label %141, !llvm.loop !46

192:                                              ; preds = %147
  ret void

193:                                              ; preds = %186, %106
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL36ImFontAtlasBuildRenderDefaultTexDataP11ImFontAtlas(ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL34ImFontAtlasBuildRenderLinesTexDataP11ImFontAtlas(ptr noundef) #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(106), i16 noundef zeroext) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #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 = { 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 #6 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { noreturn nounwind }
attributes #8 = { 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 24}
!10 = !{!"_ZTS11ImFontAtlas", !11, i64 0, !12, i64 4, !6, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !12, i64 40, !12, i64 44, !13, i64 48, !13, i64 56, !15, i64 64, !16, i64 80, !17, i64 96, !7, i64 112, !12, i64 1136, !12, i64 1140}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS8ImVectorIP6ImFontE", !12, i64 0, !12, i64 4, !6, i64 8}
!16 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !12, i64 0, !12, i64 4, !6, i64 8}
!17 = !{!"_ZTS8ImVectorI12ImFontConfigE", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!12, !12, i64 0}
!19 = !{!10, !12, i64 80}
!20 = !{!21, !6, i64 24}
!21 = !{!"_ZTS21ImFontAtlasCustomRect", !22, i64 0, !22, i64 2, !22, i64 4, !22, i64 6, !12, i64 8, !14, i64 12, !13, i64 16, !6, i64 24}
!22 = !{!"short", !7, i64 0}
!23 = !{!21, !12, i64 8}
!24 = !{!25, !6, i64 64}
!25 = !{!"_ZTS6ImFont", !26, i64 0, !14, i64 16, !14, i64 20, !27, i64 24, !28, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !22, i64 80, !22, i64 82, !22, i64 84, !11, i64 86, !14, i64 88, !14, i64 92, !14, i64 96, !12, i64 100, !7, i64 104}
!26 = !{!"_ZTS8ImVectorIfE", !12, i64 0, !12, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !12, i64 0, !12, i64 4, !6, i64 8}
!29 = !{!21, !14, i64 16}
!30 = !{!21, !14, i64 20}
!31 = !{!21, !22, i64 0}
!32 = !{!21, !22, i64 2}
!33 = !{!13, !14, i64 0}
!34 = !{!13, !14, i64 4}
!35 = !{!21, !14, i64 12}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!10, !12, i64 64}
!39 = !{!25, !11, i64 86}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = distinct !{!42, !37}
!43 = !{!25, !22, i64 84}
!44 = !{!22, !22, i64 0}
!45 = distinct !{!45, !37}
!46 = distinct !{!46, !37}


; 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"

%struct.ImVec2 = type { float, float }

@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [33 x i8], align 1
@__PRETTY_FUNCTION__._Z22ImFontAtlasBuildFinishP11ImFontAtlas = external hidden unnamed_addr constant [43 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [33 x i8], align 1
@__const._Z22ImFontAtlasBuildFinishP11ImFontAtlas.ellipsis_variants = external hidden unnamed_addr constant [2 x i16], align 2

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff(ptr noundef nonnull align 8 dereferenceable(106), ptr noundef, i16 noundef zeroext, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z22ImFontAtlasBuildFinishP11ImFontAtlas(ptr noundef %0) local_unnamed_addr #4 {
  %2 = alloca %struct.ImVec2, align 4
  %3 = alloca %struct.ImVec2, align 4
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.1, i32 noundef 2527, ptr noundef nonnull @__PRETTY_FUNCTION__._Z22ImFontAtlasBuildFinishP11ImFontAtlas) #6
  unreachable

7:                                                ; preds = %1
  tail call void @_ZL36ImFontAtlasBuildRenderDefaultTexDataP11ImFontAtlas(ptr noundef nonnull %0)
  tail call void @_ZL34ImFontAtlasBuildRenderLinesTexDataP11ImFontAtlas(ptr noundef nonnull %0)
  %8 = getelementptr inbounds i8, ptr %0, i64 80
  %9 = load i32, ptr %8, align 8, !tbaa !17
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %.preheader49

.lr.ph:                                           ; preds = %7
  %11 = getelementptr inbounds i8, ptr %2, i64 4
  %12 = getelementptr inbounds i8, ptr %3, i64 4
  br label %16

.preheader49:                                     ; preds = %51, %7
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  %14 = load i32, ptr %13, align 8, !tbaa !18
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph53, label %.preheader48

16:                                               ; preds = %.lr.ph, %51
  %.04151 = phi i32 [ 0, %.lr.ph ], [ %52, %51 ]
  %17 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN8ImVectorI21ImFontAtlasCustomRectEixEi(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %.04151)
  %18 = getelementptr inbounds i8, ptr %17, i64 24
  %19 = load ptr, ptr %18, align 8, !tbaa !19
  %20 = icmp eq ptr %19, null
  br i1 %20, label %51, label %21

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %17, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !22
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %51, label %25

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %19, i64 64
  %27 = load ptr, ptr %26, align 8, !tbaa !23
  %28 = icmp eq ptr %27, %0
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str.37, ptr noundef nonnull @.str.1, i32 noundef 2539, ptr noundef nonnull @__PRETTY_FUNCTION__._Z22ImFontAtlasBuildFinishP11ImFontAtlas) #6
  unreachable

30:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN6ImVec2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @_ZNK11ImFontAtlas16CalcCustomRectUVEPK21ImFontAtlasCustomRectP6ImVec2S4_(ptr noundef nonnull align 8 dereferenceable(1144) %0, ptr noundef nonnull %17, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %31 = load ptr, ptr %18, align 8, !tbaa !19
  %32 = load i32, ptr %22, align 8, !tbaa !22
  %33 = trunc i32 %32 to i16
  %34 = getelementptr inbounds i8, ptr %17, i64 16
  %35 = load float, ptr %34, align 8, !tbaa !28
  %36 = getelementptr inbounds i8, ptr %17, i64 20
  %37 = load float, ptr %36, align 4, !tbaa !29
  %38 = load i16, ptr %17, align 8, !tbaa !30
  %39 = uitofp i16 %38 to float
  %40 = fadd float %35, %39
  %41 = getelementptr inbounds i8, ptr %17, i64 2
  %42 = load i16, ptr %41, align 2, !tbaa !31
  %43 = uitofp i16 %42 to float
  %44 = fadd float %37, %43
  %45 = load float, ptr %2, align 4, !tbaa !32
  %46 = load float, ptr %11, align 4, !tbaa !33
  %47 = load float, ptr %3, align 4, !tbaa !32
  %48 = load float, ptr %12, align 4, !tbaa !33
  %49 = getelementptr inbounds i8, ptr %17, i64 12
  %50 = load float, ptr %49, align 4, !tbaa !34
  call void @_ZN6ImFont8AddGlyphEPK12ImFontConfigtfffffffff(ptr noundef nonnull align 8 dereferenceable(106) %31, ptr noundef null, i16 noundef zeroext %33, float noundef %35, float noundef %37, float noundef %40, float noundef %44, float noundef %45, float noundef %46, float noundef %47, float noundef %48, float noundef %50)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %51

51:                                               ; preds = %16, %21, %30
  %52 = add nuw nsw i32 %.04151, 1
  %53 = load i32, ptr %8, align 8, !tbaa !17
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %16, label %.preheader49, !llvm.loop !35

.preheader48:                                     ; preds = %67, %.preheader49
  %55 = call noundef i32 @_ZNK8ImVectorIP6ImFontE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph56.preheader, label %._crit_edge

.lr.ph56.preheader:                               ; preds = %.preheader48
  %57 = load i16, ptr @__const._Z22ImFontAtlasBuildFinishP11ImFontAtlas.ellipsis_variants, align 2
  %58 = load i16, ptr getelementptr inbounds (i8, ptr @__const._Z22ImFontAtlasBuildFinishP11ImFontAtlas.ellipsis_variants, i64 2), align 2
  br label %.lr.ph56

.lr.ph53:                                         ; preds = %.preheader49, %67
  %.04352 = phi i32 [ %68, %67 ], [ 0, %.preheader49 ]
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.04352)
  %60 = load ptr, ptr %59, align 8, !tbaa !37
  %61 = getelementptr inbounds i8, ptr %60, i64 86
  %62 = load i8, ptr %61, align 2, !tbaa !38, !range !39, !noundef !40
  %63 = trunc nuw i8 %62 to i1
  br i1 %63, label %64, label %67

64:                                               ; preds = %.lr.ph53
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.04352)
  %66 = load ptr, ptr %65, align 8, !tbaa !37
  call void @_ZN6ImFont16BuildLookupTableEv(ptr noundef nonnull align 8 dereferenceable(106) %66)
  br label %67

67:                                               ; preds = %.lr.ph53, %64
  %68 = add nuw nsw i32 %.04352, 1
  %69 = load i32, ptr %13, align 8, !tbaa !18
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %.lr.ph53, label %.preheader48, !llvm.loop !41

._crit_edge:                                      ; preds = %.loopexit, %.preheader48
  ret void

.lr.ph56:                                         ; preds = %.lr.ph56.preheader, %.loopexit
  %.04255 = phi i32 [ %78, %.loopexit ], [ 0, %.lr.ph56.preheader ]
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8ImVectorIP6ImFontEixEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %.04255)
  %72 = load ptr, ptr %71, align 8, !tbaa !37
  %73 = getelementptr inbounds i8, ptr %72, i64 84
  %74 = load i16, ptr %73, align 4, !tbaa !42
  %.not46 = icmp eq i16 %74, -1
  br i1 %.not46, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %.lr.ph56
  %75 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(106) %72, i16 noundef zeroext %57)
  %.not47 = icmp eq ptr %75, null
  br i1 %.not47, label %.preheader.1, label %77

.preheader.1:                                     ; preds = %.preheader.preheader
  %76 = call noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(106) %72, i16 noundef zeroext %58)
  %.not47.1 = icmp eq ptr %76, null
  br i1 %.not47.1, label %.loopexit, label %77

77:                                               ; preds = %.preheader.1, %.preheader.preheader
  %.lcssa = phi i16 [ %57, %.preheader.preheader ], [ %58, %.preheader.1 ]
  store i16 %.lcssa, ptr %73, align 4, !tbaa !42
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader.1, %77, %.lr.ph56
  %78 = add nuw nsw i32 %.04255, 1
  %79 = call noundef i32 @_ZNK8ImVectorIP6ImFontE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %.lr.ph56, label %._crit_edge, !llvm.loop !43
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZN8ImVectorI21ImFontAtlasCustomRectEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL36ImFontAtlasBuildRenderDefaultTexDataP11ImFontAtlas(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL34ImFontAtlasBuildRenderLinesTexDataP11ImFontAtlas(ptr noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8ImVectorIP6ImFontE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6ImFont19FindGlyphNoFallbackEt(ptr noundef nonnull align 8 dereferenceable(106), i16 noundef zeroext) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 uwtable "min-legal-vector-width"="64" "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 = { noreturn nounwind }
attributes #7 = { 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, !11, i64 24}
!6 = !{!"_ZTS11ImFontAtlas", !7, i64 0, !10, i64 4, !11, i64 8, !10, i64 16, !10, i64 20, !11, i64 24, !11, i64 32, !10, i64 40, !10, i64 44, !12, i64 48, !12, i64 56, !14, i64 64, !15, i64 80, !16, i64 96, !8, i64 112, !10, i64 1136, !10, i64 1140}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !8, i64 0}
!14 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !11, i64 8}
!15 = !{!"_ZTS8ImVectorI21ImFontAtlasCustomRectE", !10, i64 0, !10, i64 4, !11, i64 8}
!16 = !{!"_ZTS8ImVectorI12ImFontConfigE", !10, i64 0, !10, i64 4, !11, i64 8}
!17 = !{!6, !10, i64 80}
!18 = !{!6, !10, i64 64}
!19 = !{!20, !11, i64 24}
!20 = !{!"_ZTS21ImFontAtlasCustomRect", !21, i64 0, !21, i64 2, !21, i64 4, !21, i64 6, !10, i64 8, !13, i64 12, !12, i64 16, !11, i64 24}
!21 = !{!"short", !8, i64 0}
!22 = !{!20, !10, i64 8}
!23 = !{!24, !11, i64 64}
!24 = !{!"_ZTS6ImFont", !25, i64 0, !13, i64 16, !13, i64 20, !26, i64 24, !27, i64 40, !11, i64 56, !11, i64 64, !11, i64 72, !21, i64 80, !21, i64 82, !21, i64 84, !7, i64 86, !13, i64 88, !13, i64 92, !13, i64 96, !10, i64 100, !8, i64 104}
!25 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !11, i64 8}
!26 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !11, i64 8}
!27 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !11, i64 8}
!28 = !{!20, !13, i64 16}
!29 = !{!20, !13, i64 20}
!30 = !{!20, !21, i64 0}
!31 = !{!20, !21, i64 2}
!32 = !{!12, !13, i64 0}
!33 = !{!12, !13, i64 4}
!34 = !{!20, !13, i64 12}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!11, !11, i64 0}
!38 = !{!24, !7, i64 86}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = distinct !{!41, !36}
!42 = !{!24, !21, i64 84}
!43 = distinct !{!43, !36}


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