; LLVM IR from vertver/Fresponze-old :: modules/imgui/examples (imgui_impl_opengl2)

; 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.ImVec4 = type { float, float, float, float }
%struct.ImDrawData = type <{ i8, [7 x i8], ptr, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [4 x i8] }>
%struct.ImDrawList = type { %struct.ImVector.0, %struct.ImVector, %struct.ImVector.1, i32, ptr, ptr, i32, ptr, ptr, %struct.ImVector.2, %struct.ImVector.3, %struct.ImVector.4, %struct.ImDrawCmd, %struct.ImDrawListSplitter }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, ptr }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }

; 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: mustprogress uwtable
define dso_local void @_Z32ImGui_ImplOpenGL2_RenderDrawDataP10ImDrawData(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [2 x i32], align 4
  %8 = alloca [4 x i32], align 16
  %9 = alloca [4 x i32], align 16
  %10 = alloca i32, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %struct.ImVec4, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImDrawData, ptr %20, i32 0, i32 7
  %22 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 0
  %23 = load float, ptr %22, align 4, !tbaa !9
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ImDrawData, ptr %24, i32 0, i32 8
  %26 = getelementptr inbounds %struct.ImVec2, ptr %25, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !15
  %28 = fmul float %23, %27
  %29 = fptosi float %28 to i32
  store i32 %29, ptr %3, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ImDrawData, ptr %30, i32 0, i32 7
  %32 = getelementptr inbounds %struct.ImVec2, ptr %31, i32 0, i32 1
  %33 = load float, ptr %32, align 4, !tbaa !17
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ImDrawData, ptr %34, i32 0, i32 8
  %36 = getelementptr inbounds %struct.ImVec2, ptr %35, i32 0, i32 1
  %37 = load float, ptr %36, align 4, !tbaa !18
  %38 = fmul float %33, %37
  %39 = fptosi float %38 to i32
  store i32 %39, ptr %4, align 4, !tbaa !16
  %40 = load i32, ptr %3, align 4, !tbaa !16
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %45, label %42

42:                                               ; preds = %1
  %43 = load i32, ptr %4, align 4, !tbaa !16
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %42, %1
  store i32 1, ptr %5, align 4
  br label %252

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @glGetIntegerv(i32 noundef 32873, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %47 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 2880, ptr noundef %47)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %48 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 2978, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %49 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  call void @glGetIntegerv(i32 noundef 3088, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @glGetTexEnviv(i32 noundef 8960, i32 noundef 8704, ptr noundef %10)
  call void @glPushAttrib(i32 noundef 28672)
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = load i32, ptr %3, align 4, !tbaa !16
  %52 = load i32, ptr %4, align 4, !tbaa !16
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef %50, i32 noundef %51, i32 noundef %52)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ImDrawData, ptr %53, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %54, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ImDrawData, ptr %55, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %56, i64 8, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !16
  br label %57

57:                                               ; preds = %226, %46
  %58 = load i32, ptr %13, align 4, !tbaa !16
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ImDrawData, ptr %59, i32 0, i32 3
  %61 = load i32, ptr %60, align 8, !tbaa !21
  %62 = icmp slt i32 %58, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %57
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %229

64:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImDrawData, ptr %65, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !22
  %68 = load i32, ptr %13, align 4, !tbaa !16
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  store ptr %71, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImDrawList, ptr %72, i32 0, i32 2
  %74 = getelementptr inbounds %struct.ImVector.1, ptr %73, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !23
  store ptr %75, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImDrawList, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds %struct.ImVector, ptr %77, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !35
  store ptr %79, ptr %16, align 8, !tbaa !5
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 0
  call void @glVertexPointer(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef %81)
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  call void @glTexCoordPointer(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef %83)
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 16
  call void @glColorPointer(i32 noundef 4, i32 noundef 5121, i32 noundef 20, ptr noundef %85)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !16
  br label %86

86:                                               ; preds = %222, %64
  %87 = load i32, ptr %17, align 4, !tbaa !16
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ImDrawList, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.ImVector.0, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !36
  %92 = icmp slt i32 %87, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %86
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %225

94:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImDrawList, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %17, align 4, !tbaa !16
  %98 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %96, i32 noundef %97)
  store ptr %98, ptr %18, align 8, !tbaa !5
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImDrawCmd, ptr %99, i32 0, i32 5
  %101 = load ptr, ptr %100, align 8, !tbaa !37
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %119

103:                                              ; preds = %94
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ImDrawCmd, ptr %104, i32 0, i32 5
  %106 = load ptr, ptr %105, align 8, !tbaa !37
  %107 = icmp eq ptr %106, inttoptr (i64 -1 to ptr)
  br i1 %107, label %108, label %112

108:                                              ; preds = %103
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = load i32, ptr %3, align 4, !tbaa !16
  %111 = load i32, ptr %4, align 4, !tbaa !16
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef %109, i32 noundef %110, i32 noundef %111)
  br label %118

112:                                              ; preds = %103
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ImDrawCmd, ptr %113, i32 0, i32 5
  %115 = load ptr, ptr %114, align 8, !tbaa !37
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = load ptr, ptr %18, align 8, !tbaa !5
  call void %115(ptr noundef %116, ptr noundef %117)
  br label %118

118:                                              ; preds = %112, %108
  br label %215

119:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @_ZN6ImVec4C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %19)
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImDrawCmd, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %struct.ImVec4, ptr %121, i32 0, i32 0
  %123 = load float, ptr %122, align 8, !tbaa !38
  %124 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 0
  %125 = load float, ptr %124, align 4, !tbaa !39
  %126 = fsub float %123, %125
  %127 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 0
  %128 = load float, ptr %127, align 4, !tbaa !39
  %129 = fmul float %126, %128
  %130 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 0
  store float %129, ptr %130, align 4, !tbaa !40
  %131 = load ptr, ptr %18, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ImDrawCmd, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %struct.ImVec4, ptr %132, i32 0, i32 1
  %134 = load float, ptr %133, align 4, !tbaa !41
  %135 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 1
  %136 = load float, ptr %135, align 4, !tbaa !42
  %137 = fsub float %134, %136
  %138 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 1
  %139 = load float, ptr %138, align 4, !tbaa !42
  %140 = fmul float %137, %139
  %141 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 1
  store float %140, ptr %141, align 4, !tbaa !43
  %142 = load ptr, ptr %18, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImDrawCmd, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds %struct.ImVec4, ptr %143, i32 0, i32 2
  %145 = load float, ptr %144, align 8, !tbaa !44
  %146 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 0
  %147 = load float, ptr %146, align 4, !tbaa !39
  %148 = fsub float %145, %147
  %149 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 0
  %150 = load float, ptr %149, align 4, !tbaa !39
  %151 = fmul float %148, %150
  %152 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 2
  store float %151, ptr %152, align 4, !tbaa !45
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ImDrawCmd, ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds %struct.ImVec4, ptr %154, i32 0, i32 3
  %156 = load float, ptr %155, align 4, !tbaa !46
  %157 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 1
  %158 = load float, ptr %157, align 4, !tbaa !42
  %159 = fsub float %156, %158
  %160 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 1
  %161 = load float, ptr %160, align 4, !tbaa !42
  %162 = fmul float %159, %161
  %163 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 3
  store float %162, ptr %163, align 4, !tbaa !47
  %164 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 0
  %165 = load float, ptr %164, align 4, !tbaa !40
  %166 = load i32, ptr %3, align 4, !tbaa !16
  %167 = sitofp i32 %166 to float
  %168 = fcmp olt float %165, %167
  br i1 %168, label %169, label %214

169:                                              ; preds = %119
  %170 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 1
  %171 = load float, ptr %170, align 4, !tbaa !43
  %172 = load i32, ptr %4, align 4, !tbaa !16
  %173 = sitofp i32 %172 to float
  %174 = fcmp olt float %171, %173
  br i1 %174, label %175, label %214

175:                                              ; preds = %169
  %176 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 2
  %177 = load float, ptr %176, align 4, !tbaa !45
  %178 = fcmp oge float %177, 0.000000e+00
  br i1 %178, label %179, label %214

179:                                              ; preds = %175
  %180 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 3
  %181 = load float, ptr %180, align 4, !tbaa !47
  %182 = fcmp oge float %181, 0.000000e+00
  br i1 %182, label %183, label %214

183:                                              ; preds = %179
  %184 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 0
  %185 = load float, ptr %184, align 4, !tbaa !40
  %186 = fptosi float %185 to i32
  %187 = load i32, ptr %4, align 4, !tbaa !16
  %188 = sitofp i32 %187 to float
  %189 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 3
  %190 = load float, ptr %189, align 4, !tbaa !47
  %191 = fsub float %188, %190
  %192 = fptosi float %191 to i32
  %193 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 2
  %194 = load float, ptr %193, align 4, !tbaa !45
  %195 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 0
  %196 = load float, ptr %195, align 4, !tbaa !40
  %197 = fsub float %194, %196
  %198 = fptosi float %197 to i32
  %199 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 3
  %200 = load float, ptr %199, align 4, !tbaa !47
  %201 = getelementptr inbounds %struct.ImVec4, ptr %19, i32 0, i32 1
  %202 = load float, ptr %201, align 4, !tbaa !43
  %203 = fsub float %200, %202
  %204 = fptosi float %203 to i32
  call void @glScissor(i32 noundef %186, i32 noundef %192, i32 noundef %198, i32 noundef %204)
  %205 = load ptr, ptr %18, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ImDrawCmd, ptr %205, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !48
  %208 = ptrtoint ptr %207 to i64
  %209 = trunc i64 %208 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %209)
  %210 = load ptr, ptr %18, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.ImDrawCmd, ptr %210, i32 0, i32 4
  %212 = load i32, ptr %211, align 8, !tbaa !49
  %213 = load ptr, ptr %16, align 8, !tbaa !5
  call void @glDrawElements(i32 noundef 4, i32 noundef %212, i32 noundef 5123, ptr noundef %213)
  br label %214

214:                                              ; preds = %183, %179, %175, %169, %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %215

215:                                              ; preds = %214, %118
  %216 = load ptr, ptr %18, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.ImDrawCmd, ptr %216, i32 0, i32 4
  %218 = load i32, ptr %217, align 8, !tbaa !49
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = zext i32 %218 to i64
  %221 = getelementptr inbounds i16, ptr %219, i64 %220
  store ptr %221, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %222

222:                                              ; preds = %215
  %223 = load i32, ptr %17, align 4, !tbaa !16
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %17, align 4, !tbaa !16
  br label %86, !llvm.loop !50

225:                                              ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %226

226:                                              ; preds = %225
  %227 = load i32, ptr %13, align 4, !tbaa !16
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %13, align 4, !tbaa !16
  br label %57, !llvm.loop !52

229:                                              ; preds = %63
  call void @glDisableClientState(i32 noundef 32886)
  call void @glDisableClientState(i32 noundef 32888)
  call void @glDisableClientState(i32 noundef 32884)
  %230 = load i32, ptr %6, align 4, !tbaa !16
  call void @glBindTexture(i32 noundef 3553, i32 noundef %230)
  call void @glMatrixMode(i32 noundef 5888)
  call void @glPopMatrix()
  call void @glMatrixMode(i32 noundef 5889)
  call void @glPopMatrix()
  call void @glPopAttrib()
  %231 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
  %232 = load i32, ptr %231, align 4, !tbaa !16
  call void @glPolygonMode(i32 noundef 1028, i32 noundef %232)
  %233 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
  %234 = load i32, ptr %233, align 4, !tbaa !16
  call void @glPolygonMode(i32 noundef 1029, i32 noundef %234)
  %235 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 0
  %236 = load i32, ptr %235, align 16, !tbaa !16
  %237 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 1
  %238 = load i32, ptr %237, align 4, !tbaa !16
  %239 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 2
  %240 = load i32, ptr %239, align 8, !tbaa !16
  %241 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 3
  %242 = load i32, ptr %241, align 4, !tbaa !16
  call void @glViewport(i32 noundef %236, i32 noundef %238, i32 noundef %240, i32 noundef %242)
  %243 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %244 = load i32, ptr %243, align 16, !tbaa !16
  %245 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 1
  %246 = load i32, ptr %245, align 4, !tbaa !16
  %247 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 2
  %248 = load i32, ptr %247, align 8, !tbaa !16
  %249 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 3
  %250 = load i32, ptr %249, align 4, !tbaa !16
  call void @glScissor(i32 noundef %244, i32 noundef %246, i32 noundef %248, i32 noundef %250)
  %251 = load i32, ptr %10, align 4, !tbaa !16
  call void @glTexEnvi(i32 noundef 8960, i32 noundef 8704, i32 noundef %251)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  store i32 0, ptr %5, align 4
  br label %252

252:                                              ; preds = %229, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  %253 = load i32, ptr %5, align 4
  switch i32 %253, label %255 [
    i32 0, label %254
    i32 1, label %254
  ]

254:                                              ; preds = %252, %252
  ret void

255:                                              ; preds = %252
  unreachable
}

declare void @glGetIntegerv(i32 noundef, ptr noundef) #2

declare void @glGetTexEnviv(i32 noundef, i32 noundef, ptr noundef) #2

declare void @glPushAttrib(i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef, i32 noundef, i32 noundef) #1

; 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

declare void @glVertexPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare void @glTexCoordPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare void @glColorPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

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

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

declare void @glScissor(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @glBindTexture(i32 noundef, i32 noundef) #2

declare void @glDrawElements(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

declare void @glDisableClientState(i32 noundef) #2

declare void @glMatrixMode(i32 noundef) #2

declare void @glPopMatrix() #2

declare void @glPopAttrib() #2

declare void @glPolygonMode(i32 noundef, i32 noundef) #2

declare void @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @glTexEnvi(i32 noundef, i32 noundef, i32 noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 36}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !13, i64 28, !13, i64 36, !13, i64 44}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!10, !14, i64 44}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !14, i64 40}
!18 = !{!10, !14, i64 48}
!19 = !{i64 0, i64 4, !20, i64 4, i64 4, !20}
!20 = !{!14, !14, i64 0}
!21 = !{!10, !12, i64 16}
!22 = !{!10, !6, i64 8}
!23 = !{!24, !6, i64 40}
!24 = !{!"_ZTS10ImDrawList", !25, i64 0, !26, i64 16, !27, i64 32, !12, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !28, i64 96, !29, i64 112, !30, i64 128, !31, i64 144, !33, i64 200}
!25 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!29 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!30 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!31 = !{!"_ZTS9ImDrawCmd", !32, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!32 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!33 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !34, i64 8}
!34 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!35 = !{!24, !6, i64 24}
!36 = !{!24, !12, i64 0}
!37 = !{!31, !6, i64 40}
!38 = !{!31, !14, i64 0}
!39 = !{!13, !14, i64 0}
!40 = !{!32, !14, i64 0}
!41 = !{!31, !14, i64 4}
!42 = !{!13, !14, i64 4}
!43 = !{!32, !14, i64 4}
!44 = !{!31, !14, i64 8}
!45 = !{!32, !14, i64 8}
!46 = !{!31, !14, i64 12}
!47 = !{!32, !14, i64 12}
!48 = !{!31, !6, i64 16}
!49 = !{!31, !12, i64 32}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = distinct !{!52, !51}


; 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.ImVec4 = type { float, float, float, float }

; 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 uwtable
define dso_local void @_Z32ImGui_ImplOpenGL2_RenderDrawDataP10ImDrawData(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca i32, align 4
  %3 = alloca [2 x i32], align 4
  %4 = alloca [4 x i32], align 16
  %5 = alloca [4 x i32], align 16
  %6 = alloca i32, align 4
  %7 = alloca %struct.ImVec4, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 36
  %9 = getelementptr inbounds i8, ptr %0, i64 44
  %10 = load <2 x float>, ptr %8, align 4, !tbaa !5
  %11 = load <2 x float>, ptr %9, align 4, !tbaa !5
  %12 = fmul <2 x float> %10, %11
  %13 = fptosi <2 x float> %12 to <2 x i32>
  %14 = icmp eq <2 x i32> %13, zeroinitializer
  %15 = extractelement <2 x i1> %14, i64 0
  %16 = extractelement <2 x i1> %14, i64 1
  %or.cond = select i1 %15, i1 true, i1 %16
  br i1 %or.cond, label %110, label %17

17:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  call void @glGetIntegerv(i32 noundef 32873, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @glGetIntegerv(i32 noundef 2880, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @glGetIntegerv(i32 noundef 2978, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @glGetIntegerv(i32 noundef 3088, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @glGetTexEnviv(i32 noundef 8960, i32 noundef 8704, ptr noundef nonnull %6)
  call void @glPushAttrib(i32 noundef 28672)
  %18 = extractelement <2 x i32> %13, i64 0
  %19 = extractelement <2 x i32> %13, i64 1
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef nonnull %0, i32 noundef %18, i32 noundef %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 28
  %21 = load <2 x float>, ptr %20, align 4, !tbaa !5
  %22 = load <2 x float>, ptr %9, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load i32, ptr %23, align 8, !tbaa !9
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %17
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = getelementptr inbounds i8, ptr %7, i64 8
  %28 = sitofp i32 %18 to float
  %29 = sitofp i32 %19 to float
  br label %49

._crit_edge74:                                    ; preds = %._crit_edge, %17
  call void @glDisableClientState(i32 noundef 32886)
  call void @glDisableClientState(i32 noundef 32888)
  call void @glDisableClientState(i32 noundef 32884)
  %30 = load i32, ptr %2, align 4, !tbaa !15
  call void @glBindTexture(i32 noundef 3553, i32 noundef %30)
  call void @glMatrixMode(i32 noundef 5888)
  call void @glPopMatrix()
  call void @glMatrixMode(i32 noundef 5889)
  call void @glPopMatrix()
  call void @glPopAttrib()
  %31 = load i32, ptr %3, align 4, !tbaa !15
  call void @glPolygonMode(i32 noundef 1028, i32 noundef %31)
  %32 = getelementptr inbounds i8, ptr %3, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !15
  call void @glPolygonMode(i32 noundef 1029, i32 noundef %33)
  %34 = load i32, ptr %4, align 16, !tbaa !15
  %35 = getelementptr inbounds i8, ptr %4, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = getelementptr inbounds i8, ptr %4, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %4, i64 12
  %40 = load i32, ptr %39, align 4, !tbaa !15
  call void @glViewport(i32 noundef %34, i32 noundef %36, i32 noundef %38, i32 noundef %40)
  %41 = load i32, ptr %5, align 16, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %5, i64 4
  %43 = load i32, ptr %42, align 4, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %5, i64 8
  %45 = load i32, ptr %44, align 8, !tbaa !15
  %46 = getelementptr inbounds i8, ptr %5, i64 12
  %47 = load i32, ptr %46, align 4, !tbaa !15
  call void @glScissor(i32 noundef %41, i32 noundef %43, i32 noundef %45, i32 noundef %47)
  %48 = load i32, ptr %6, align 4, !tbaa !15
  call void @glTexEnvi(i32 noundef 8960, i32 noundef 8704, i32 noundef %48)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  br label %110

49:                                               ; preds = %.lr.ph73, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph73 ], [ %indvars.iv.next, %._crit_edge ]
  %50 = load ptr, ptr %26, align 8, !tbaa !16
  %51 = getelementptr inbounds ptr, ptr %50, i64 %indvars.iv
  %52 = load ptr, ptr %51, align 8, !tbaa !17
  %53 = getelementptr inbounds i8, ptr %52, i64 40
  %54 = load ptr, ptr %53, align 8, !tbaa !18
  %55 = getelementptr inbounds i8, ptr %52, i64 24
  %56 = load ptr, ptr %55, align 8, !tbaa !30
  call void @glVertexPointer(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef %54)
  %57 = getelementptr inbounds i8, ptr %54, i64 8
  call void @glTexCoordPointer(i32 noundef 2, i32 noundef 5126, i32 noundef 20, ptr noundef nonnull %57)
  %58 = getelementptr inbounds i8, ptr %54, i64 16
  call void @glColorPointer(i32 noundef 4, i32 noundef 5121, i32 noundef 20, ptr noundef nonnull %58)
  %59 = load i32, ptr %52, align 8, !tbaa !31
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %102, %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = load i32, ptr %23, align 8, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %indvars.iv.next, %62
  br i1 %63, label %49, label %._crit_edge74, !llvm.loop !32

.lr.ph:                                           ; preds = %49, %102
  %.070 = phi i32 [ %107, %102 ], [ 0, %49 ]
  %.05868 = phi ptr [ %106, %102 ], [ %56, %49 ]
  %64 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %52, i32 noundef %.070)
  %65 = getelementptr inbounds i8, ptr %64, i64 40
  %66 = load ptr, ptr %65, align 8, !tbaa !34
  %magicptr = ptrtoint ptr %66 to i64
  switch i64 %magicptr, label %68 [
    i64 0, label %69
    i64 -1, label %67
  ]

67:                                               ; preds = %.lr.ph
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef %0, i32 noundef %18, i32 noundef %19)
  br label %102

68:                                               ; preds = %.lr.ph
  call void %66(ptr noundef nonnull %52, ptr noundef nonnull %64)
  br label %102

69:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZN6ImVec4C2Ev(ptr noundef nonnull align 4 dereferenceable(16) %7)
  %70 = load <2 x float>, ptr %64, align 8, !tbaa !5
  %71 = fsub <2 x float> %70, %21
  %72 = fmul <2 x float> %22, %71
  store <2 x float> %72, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %64, i64 8
  %74 = load <2 x float>, ptr %73, align 8, !tbaa !5
  %75 = fsub <2 x float> %74, %21
  %76 = fmul <2 x float> %22, %75
  store <2 x float> %76, ptr %27, align 8, !tbaa !5
  %77 = extractelement <2 x float> %72, i64 0
  %78 = fcmp olt float %77, %28
  br i1 %78, label %79, label %101

79:                                               ; preds = %69
  %80 = extractelement <2 x float> %72, i64 1
  %81 = fcmp olt float %80, %29
  %82 = fcmp oge <2 x float> %76, zeroinitializer
  %83 = extractelement <2 x i1> %82, i64 0
  %or.cond4 = select i1 %81, i1 %83, i1 false
  %84 = extractelement <2 x i1> %82, i64 1
  %or.cond7 = select i1 %or.cond4, i1 %84, i1 false
  br i1 %or.cond7, label %85, label %101

85:                                               ; preds = %79
  %86 = fptosi float %77 to i32
  %87 = extractelement <2 x float> %76, i64 1
  %88 = fsub float %29, %87
  %89 = fptosi float %88 to i32
  %90 = fsub <2 x float> %76, %72
  %91 = extractelement <2 x float> %90, i64 0
  %92 = fptosi float %91 to i32
  %93 = fsub float %87, %80
  %94 = fptosi float %93 to i32
  call void @glScissor(i32 noundef %86, i32 noundef %89, i32 noundef %92, i32 noundef %94)
  %95 = getelementptr inbounds i8, ptr %64, i64 16
  %96 = load ptr, ptr %95, align 8, !tbaa !35
  %97 = ptrtoint ptr %96 to i64
  %98 = trunc i64 %97 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %98)
  %99 = getelementptr inbounds i8, ptr %64, i64 32
  %100 = load i32, ptr %99, align 8, !tbaa !36
  call void @glDrawElements(i32 noundef 4, i32 noundef %100, i32 noundef 5123, ptr noundef %.05868)
  br label %101

101:                                              ; preds = %85, %79, %69
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %102

102:                                              ; preds = %67, %68, %101
  %103 = getelementptr inbounds i8, ptr %64, i64 32
  %104 = load i32, ptr %103, align 8, !tbaa !36
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds i16, ptr %.05868, i64 %105
  %107 = add nuw nsw i32 %.070, 1
  %108 = load i32, ptr %52, align 8, !tbaa !31
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %.lr.ph, label %._crit_edge, !llvm.loop !37

110:                                              ; preds = %1, %._crit_edge74
  ret void
}

declare void @glGetIntegerv(i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glGetTexEnviv(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glPushAttrib(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @glVertexPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glTexCoordPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glColorPointer(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @glScissor(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @glBindTexture(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @glDrawElements(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @glDisableClientState(i32 noundef) local_unnamed_addr #2

declare void @glMatrixMode(i32 noundef) local_unnamed_addr #2

declare void @glPopMatrix() local_unnamed_addr #2

declare void @glPopAttrib() local_unnamed_addr #2

declare void @glPolygonMode(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @glTexEnvi(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 16}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !12, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !14, i64 28, !14, i64 36, !14, i64 44}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!15 = !{!13, !13, i64 0}
!16 = !{!10, !12, i64 8}
!17 = !{!12, !12, i64 0}
!18 = !{!19, !12, i64 40}
!19 = !{!"_ZTS10ImDrawList", !20, i64 0, !21, i64 16, !22, i64 32, !13, i64 48, !12, i64 56, !12, i64 64, !13, i64 72, !12, i64 80, !12, i64 88, !23, i64 96, !24, i64 112, !25, i64 128, !26, i64 144, !28, i64 200}
!20 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !13, i64 0, !13, i64 4, !12, i64 8}
!21 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !12, i64 8}
!22 = !{!"_ZTS8ImVectorI10ImDrawVertE", !13, i64 0, !13, i64 4, !12, i64 8}
!23 = !{!"_ZTS8ImVectorI6ImVec4E", !13, i64 0, !13, i64 4, !12, i64 8}
!24 = !{!"_ZTS8ImVectorIPvE", !13, i64 0, !13, i64 4, !12, i64 8}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !12, i64 8}
!26 = !{!"_ZTS9ImDrawCmd", !27, i64 0, !12, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !12, i64 40, !12, i64 48}
!27 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!28 = !{!"_ZTS18ImDrawListSplitter", !13, i64 0, !13, i64 4, !29, i64 8}
!29 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !12, i64 8}
!30 = !{!19, !12, i64 24}
!31 = !{!19, !13, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!26, !12, i64 40}
!35 = !{!26, !12, i64 16}
!36 = !{!26, !13, i64 32}
!37 = distinct !{!37, !33}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass