; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/backends (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, 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 7
  %23 = getelementptr inbounds %struct.ImVec2, ptr %22, i32 0, i32 0
  %24 = load float, ptr %23, align 4, !tbaa !9
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImDrawData, ptr %25, i32 0, i32 8
  %27 = getelementptr inbounds %struct.ImVec2, ptr %26, i32 0, i32 0
  %28 = load float, ptr %27, align 4, !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 7
  %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 8
  %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 %254

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 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %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 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %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 = %227, %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 3
  %62 = load i32, ptr %61, align 8, !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 %230

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 2
  %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 = %223, %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 %226

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 %216

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 %215

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 %215

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 %215

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 %215

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 = getelementptr inbounds %struct.ImDrawCmd, ptr %206, i32 0, i32 1
  %208 = load ptr, ptr %207, align 8, !tbaa !49
  %209 = ptrtoint ptr %208 to i64
  %210 = trunc i64 %209 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %210)
  %211 = load ptr, ptr %19, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.ImDrawCmd, ptr %211, i32 0, i32 4
  %213 = load i32, ptr %212, align 8, !tbaa !50
  %214 = load ptr, ptr %17, align 8, !tbaa !5
  call void @glDrawElements(i32 noundef 4, i32 noundef %213, i32 noundef 5123, ptr noundef %214)
  br label %215

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

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

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

226:                                              ; 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 %227

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

230:                                              ; preds = %64
  call void @glDisableClientState(i32 noundef 32886)
  call void @glDisableClientState(i32 noundef 32888)
  call void @glDisableClientState(i32 noundef 32884)
  %231 = load i32, ptr %6, align 4, !tbaa !16
  call void @glBindTexture(i32 noundef 3553, i32 noundef %231)
  call void @glMatrixMode(i32 noundef 5888)
  call void @glPopMatrix()
  call void @glMatrixMode(i32 noundef 5889)
  call void @glPopMatrix()
  call void @glPopAttrib()
  %232 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
  %233 = load i32, ptr %232, align 4, !tbaa !16
  call void @glPolygonMode(i32 noundef 1028, i32 noundef %233)
  %234 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
  %235 = load i32, ptr %234, align 4, !tbaa !16
  call void @glPolygonMode(i32 noundef 1029, i32 noundef %235)
  %236 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 0
  %237 = load i32, ptr %236, align 16, !tbaa !16
  %238 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 1
  %239 = load i32, ptr %238, align 4, !tbaa !16
  %240 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 2
  %241 = load i32, ptr %240, align 8, !tbaa !16
  %242 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 3
  %243 = load i32, ptr %242, align 4, !tbaa !16
  call void @glViewport(i32 noundef %237, i32 noundef %239, i32 noundef %241, i32 noundef %243)
  %244 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %245 = load i32, ptr %244, align 16, !tbaa !16
  %246 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 1
  %247 = load i32, ptr %246, align 4, !tbaa !16
  %248 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 2
  %249 = load i32, ptr %248, align 8, !tbaa !16
  %250 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 3
  %251 = load i32, ptr %250, align 4, !tbaa !16
  call void @glScissor(i32 noundef %245, i32 noundef %247, i32 noundef %249, i32 noundef %251)
  %252 = load i32, ptr %10, align 4, !tbaa !16
  call void @glShadeModel(i32 noundef %252)
  %253 = load i32, ptr %11, align 4, !tbaa !16
  call void @glTexEnvi(i32 noundef 8960, i32 noundef 8704, i32 noundef %253)
  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 %254

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

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

257:                                              ; preds = %254
  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 @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 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, !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, !6, i64 16}
!50 = !{!38, !12, i64 32}
!51 = distinct !{!51, !52}
!52 = !{!"llvm.loop.mustprogress"}
!53 = distinct !{!53, !52}


; 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 36
  %10 = getelementptr inbounds i8, ptr %0, i64 44
  %11 = load <2 x float>, ptr %9, align 4, !tbaa !5
  %12 = load <2 x float>, ptr %10, align 4, !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 %112, 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 28
  %22 = load <2 x float>, ptr %21, align 4, !tbaa !5
  %23 = load <2 x float>, ptr %10, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load i32, ptr %24, align 8, !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 8
  %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)
  %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 %112

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 = %104, %51
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = load i32, ptr %24, align 8, !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, %104
  %.070 = phi i32 [ %109, %104 ], [ 0, %51 ]
  %.05868 = phi ptr [ %108, %104 ], [ %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 %104

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

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 %103

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 %103

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 = getelementptr inbounds i8, ptr %66, i64 16
  %98 = load ptr, ptr %97, align 8, !tbaa !36
  %99 = ptrtoint ptr %98 to i64
  %100 = trunc i64 %99 to i32
  call void @glBindTexture(i32 noundef 3553, i32 noundef %100)
  %101 = getelementptr inbounds i8, ptr %66, i64 32
  %102 = load i32, ptr %101, align 8, !tbaa !37
  call void @glDrawElements(i32 noundef 4, i32 noundef %102, i32 noundef 5123, ptr noundef %.05868)
  br label %103

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

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

112:                                              ; 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 @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, !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, !13, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !23, i64 88, !24, i64 104, !25, i64 120, !26, i64 136, !28, i64 168, !6, i64 192}
!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 = !{!"_ZTS15ImDrawCmdHeader", !27, i64 0, !12, i64 16, !13, i64 24}
!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 = !{!35, !12, i64 40}
!35 = !{!"_ZTS9ImDrawCmd", !27, i64 0, !12, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !12, i64 40, !12, i64 48}
!36 = !{!35, !12, i64 16}
!37 = !{!35, !13, i64 32}
!38 = distinct !{!38, !33}


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