; LLVM IR from dartsim/dart :: dart/external/imgui (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, i32, i32, i32, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2 }
%struct.ImDrawList = type <{ %struct.ImVector.0, %struct.ImVector, %struct.ImVector.1, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.2, %struct.ImVector.3, %struct.ImVector.4, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%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.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, 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 i32, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = 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
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ImDrawData, ptr %21, i32 0, i32 6
  %23 = getelementptr inbounds %struct.ImVec2, ptr %22, i32 0, i32 0
  %24 = load float, ptr %23, align 8, !tbaa !9
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImDrawData, ptr %25, i32 0, i32 7
  %27 = getelementptr inbounds %struct.ImVec2, ptr %26, i32 0, i32 0
  %28 = load float, ptr %27, align 8, !tbaa !15
  %29 = fmul float %24, %28
  %30 = fptosi float %29 to i32
  store i32 %30, ptr %3, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ImDrawData, ptr %31, i32 0, i32 6
  %33 = getelementptr inbounds %struct.ImVec2, ptr %32, i32 0, i32 1
  %34 = load float, ptr %33, align 4, !tbaa !17
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ImDrawData, ptr %35, i32 0, i32 7
  %37 = getelementptr inbounds %struct.ImVec2, ptr %36, i32 0, i32 1
  %38 = load float, ptr %37, align 4, !tbaa !18
  %39 = fmul float %34, %38
  %40 = fptosi float %39 to i32
  store i32 %40, ptr %4, align 4, !tbaa !16
  %41 = load i32, ptr %3, align 4, !tbaa !16
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %46, label %43

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

46:                                               ; preds = %43, %1
  store i32 1, ptr %5, align 4
  br label %253

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

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

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

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

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

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

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

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

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

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

119:                                              ; preds = %113, %109
  br label %215

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

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

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

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

184:                                              ; preds = %180
  %185 = getelementptr inbounds %struct.ImVec4, ptr %20, i32 0, i32 0
  %186 = load float, ptr %185, align 4, !tbaa !41
  %187 = fptosi float %186 to i32
  %188 = load i32, ptr %4, align 4, !tbaa !16
  %189 = sitofp i32 %188 to float
  %190 = getelementptr inbounds %struct.ImVec4, ptr %20, i32 0, i32 3
  %191 = load float, ptr %190, align 4, !tbaa !48
  %192 = fsub float %189, %191
  %193 = fptosi float %192 to i32
  %194 = getelementptr inbounds %struct.ImVec4, ptr %20, i32 0, i32 2
  %195 = load float, ptr %194, align 4, !tbaa !46
  %196 = getelementptr inbounds %struct.ImVec4, ptr %20, i32 0, i32 0
  %197 = load float, ptr %196, align 4, !tbaa !41
  %198 = fsub float %195, %197
  %199 = fptosi float %198 to i32
  %200 = getelementptr inbounds %struct.ImVec4, ptr %20, i32 0, i32 3
  %201 = load float, ptr %200, align 4, !tbaa !48
  %202 = getelementptr inbounds %struct.ImVec4, ptr %20, i32 0, i32 1
  %203 = load float, ptr %202, align 4, !tbaa !44
  %204 = fsub float %201, %203
  %205 = fptosi float %204 to i32
  call void @glScissor(i32 noundef %187, i32 noundef %193, i32 noundef %199, i32 noundef %205)
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = call noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56) %206)
  %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 %19, 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 %17, align 8, !tbaa !5
  call void @glDrawElements(i32 noundef 4, i32 noundef %212, i32 noundef 5123, ptr noundef %213)
  br label %214

214:                                              ; preds = %184, %180, %176, %170, %120
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  br label %215

215:                                              ; preds = %214, %119
  %216 = load ptr, ptr %19, 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 %17, align 8, !tbaa !5
  %220 = zext i32 %218 to i64
  %221 = getelementptr inbounds i16, ptr %219, i64 %220
  store ptr %221, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %222

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

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

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

229:                                              ; preds = %64
  call void @glDisableClientState(i32 noundef 32886)
  call void @glDisableClientState(i32 noundef 32888)
  call void @glDisableClientState(i32 noundef 32884)
  call void @glPopClientAttrib()
  %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 @glShadeModel(i32 noundef %251)
  %252 = load i32, ptr %11, align 4, !tbaa !16
  call void @glTexEnvi(i32 noundef 8960, i32 noundef 8704, i32 noundef %252)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 %253

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

255:                                              ; preds = %253, %253
  ret void

256:                                              ; preds = %253
  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

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

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

declare void @glDisableClientState(i32 noundef) #2

declare void @glPopClientAttrib() #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 @glShadeModel(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 32}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!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 40}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !14, i64 36}
!18 = !{!10, !14, i64 44}
!19 = !{i64 0, i64 4, !20, i64 4, i64 4, !20}
!20 = !{!14, !14, i64 0}
!21 = !{!10, !12, i64 4}
!22 = !{!10, !6, i64 16}
!23 = !{!24, !6, i64 40}
!24 = !{!"_ZTS10ImDrawList", !25, i64 0, !26, i64 16, !27, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !28, i64 88, !29, i64 104, !30, i64 120, !31, i64 136, !33, i64 168, !14, i64 192}
!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 = !{!"_ZTS15ImDrawCmdHeader", !32, i64 0, !6, i64 16, !12, i64 24}
!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 = !{!38, !6, i64 40}
!38 = !{!"_ZTS9ImDrawCmd", !32, i64 0, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !6, i64 40, !6, i64 48}
!39 = !{!38, !14, i64 0}
!40 = !{!13, !14, i64 0}
!41 = !{!32, !14, i64 0}
!42 = !{!38, !14, i64 4}
!43 = !{!13, !14, i64 4}
!44 = !{!32, !14, i64 4}
!45 = !{!38, !14, i64 8}
!46 = !{!32, !14, i64 8}
!47 = !{!38, !14, i64 12}
!48 = !{!32, !14, i64 12}
!49 = !{!38, !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 i32, align 4
  %8 = alloca %struct.ImVec4, align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load <2 x float>, ptr %9, align 8, !tbaa !5
  %12 = load <2 x float>, ptr %10, align 8, !tbaa !5
  %13 = fmul <2 x float> %11, %12
  %14 = fptosi <2 x float> %13 to <2 x i32>
  %15 = icmp eq <2 x i32> %14, zeroinitializer
  %16 = extractelement <2 x i1> %15, i64 0
  %17 = extractelement <2 x i1> %15, i64 1
  %or.cond = select i1 %16, i1 true, i1 %17
  br i1 %or.cond, label %111, label %18

18:                                               ; 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 @glGetIntegerv(i32 noundef 2900, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @glGetTexEnviv(i32 noundef 8960, i32 noundef 8704, ptr noundef nonnull %7)
  call void @glPushAttrib(i32 noundef 28672)
  %19 = extractelement <2 x i32> %14, i64 0
  %20 = extractelement <2 x i32> %14, i64 1
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef nonnull %0, i32 noundef %19, i32 noundef %20)
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load <2 x float>, ptr %21, align 8, !tbaa !5
  %23 = load <2 x float>, ptr %10, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 4
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %18
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = getelementptr inbounds i8, ptr %8, i64 8
  %29 = sitofp i32 %19 to float
  %30 = sitofp i32 %20 to float
  br label %51

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

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

._crit_edge:                                      ; preds = %103, %51
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = load i32, ptr %24, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next, %64
  br i1 %65, label %51, label %._crit_edge74, !llvm.loop !32

.lr.ph:                                           ; preds = %51, %103
  %.070 = phi i32 [ %108, %103 ], [ 0, %51 ]
  %.05868 = phi ptr [ %107, %103 ], [ %58, %51 ]
  %66 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %54, i32 noundef %.070)
  %67 = getelementptr inbounds i8, ptr %66, i64 40
  %68 = load ptr, ptr %67, align 8, !tbaa !34
  %magicptr = ptrtoint ptr %68 to i64
  switch i64 %magicptr, label %70 [
    i64 0, label %71
    i64 -1, label %69
  ]

69:                                               ; preds = %.lr.ph
  call void @_ZL34ImGui_ImplOpenGL2_SetupRenderStateP10ImDrawDataii(ptr noundef %0, i32 noundef %19, i32 noundef %20)
  br label %103

70:                                               ; preds = %.lr.ph
  call void %68(ptr noundef nonnull %54, ptr noundef nonnull %66)
  br label %103

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

81:                                               ; preds = %71
  %82 = extractelement <2 x float> %74, i64 1
  %83 = fcmp olt float %82, %30
  %84 = fcmp oge <2 x float> %78, zeroinitializer
  %85 = extractelement <2 x i1> %84, i64 0
  %or.cond4 = select i1 %83, i1 %85, i1 false
  %86 = extractelement <2 x i1> %84, i64 1
  %or.cond7 = select i1 %or.cond4, i1 %86, i1 false
  br i1 %or.cond7, label %87, label %102

87:                                               ; preds = %81
  %88 = fptosi float %79 to i32
  %89 = extractelement <2 x float> %78, i64 1
  %90 = fsub float %30, %89
  %91 = fptosi float %90 to i32
  %92 = fsub <2 x float> %78, %74
  %93 = extractelement <2 x float> %92, i64 0
  %94 = fptosi float %93 to i32
  %95 = fsub float %89, %82
  %96 = fptosi float %95 to i32
  call void @glScissor(i32 noundef %88, i32 noundef %91, i32 noundef %94, i32 noundef %96)
  %97 = call noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56) %66)
  %98 = ptrtoint ptr %97 to i64
  %99 = trunc i64 %98 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %99)
  %100 = getelementptr inbounds i8, ptr %66, i64 32
  %101 = load i32, ptr %100, align 8, !tbaa !36
  call void @glDrawElements(i32 noundef 4, i32 noundef %101, i32 noundef 5123, ptr noundef %.05868)
  br label %102

102:                                              ; preds = %87, %81, %71
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %103

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

111:                                              ; 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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9ImDrawCmd8GetTexIDEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 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 @glPopClientAttrib() 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 @glShadeModel(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, !12, i64 4}
!10 = !{!"_ZTS10ImDrawData", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !13, i64 16, !14, i64 24, !14, i64 32, !14, i64 40}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !13, i64 16}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !13, i64 40}
!19 = !{!"_ZTS10ImDrawList", !20, i64 0, !21, i64 16, !22, i64 32, !12, i64 48, !12, i64 52, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !23, i64 88, !24, i64 104, !25, i64 120, !26, i64 136, !28, i64 168, !6, i64 192}
!20 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !13, i64 8}
!21 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !13, i64 8}
!22 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !13, i64 8}
!23 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !13, i64 8}
!24 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !13, i64 8}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !13, i64 8}
!26 = !{!"_ZTS15ImDrawCmdHeader", !27, i64 0, !13, i64 16, !12, i64 24}
!27 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!28 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !29, i64 8}
!29 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !13, i64 8}
!30 = !{!19, !13, i64 24}
!31 = !{!19, !12, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!35, !13, i64 40}
!35 = !{!"_ZTS9ImDrawCmd", !27, i64 0, !13, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !13, i64 40, !13, i64 48}
!36 = !{!35, !12, 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