; LLVM IR from mtsamis/box2d-optimized :: testbed/imgui_impl_opengl3.ll (Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData)

; 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, [4 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [21 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [512 x i8], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float], %struct.ImVector }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImDrawVert = type { %struct.ImVec2, %struct.ImVec2, i32 }
%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, i32, i32, %struct.ImVector.5 }
%struct.ImVector.0 = 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.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { i32, %struct.ImVec4, ptr, ptr, ptr }

@glad_glGetIntegerv = external global ptr, align 8
@glad_glActiveTexture = external global ptr, align 8
@glad_glIsEnabled = external global ptr, align 8
@glad_glEnable = external global ptr, align 8
@glad_glBlendEquation = external global ptr, align 8
@glad_glBlendFunc = external global ptr, align 8
@glad_glDisable = external global ptr, align 8
@glad_glPolygonMode = external global ptr, align 8
@glad_glViewport = external global ptr, align 8
@glad_glUseProgram = external global ptr, align 8
@_ZL14g_ShaderHandle = external hidden global i32, align 4
@glad_glUniform1i = external global ptr, align 8
@_ZL19g_AttribLocationTex = external hidden global i32, align 4
@glad_glUniformMatrix4fv = external global ptr, align 8
@_ZL23g_AttribLocationProjMtx = external hidden global i32, align 4
@glad_glBindSampler = external global ptr, align 8
@glad_glGenVertexArrays = external global ptr, align 8
@glad_glBindVertexArray = external global ptr, align 8
@glad_glBindBuffer = external global ptr, align 8
@_ZL11g_VboHandle = external hidden global i32, align 4
@glad_glEnableVertexAttribArray = external global ptr, align 8
@_ZL24g_AttribLocationPosition = external hidden global i32, align 4
@_ZL18g_AttribLocationUV = external hidden global i32, align 4
@_ZL21g_AttribLocationColor = external hidden global i32, align 4
@glad_glVertexAttribPointer = external global ptr, align 8
@glad_glBufferData = external global ptr, align 8
@_ZL16g_ElementsHandle = external hidden global i32, align 4
@glad_glScissor = external global ptr, align 8
@glad_glBindTexture = external global ptr, align 8
@glad_glDrawElements = external global ptr, align 8
@glad_glDeleteVertexArrays = external global ptr, align 8
@glad_glBlendEquationSeparate = external global ptr, align 8
@glad_glBlendFuncSeparate = external global ptr, align 8

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

declare noundef nonnull align 8 dereferenceable(5448) ptr @_ZN5ImGui5GetIOEv() #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [2 x i32], align 4
  %14 = alloca [4 x i32], align 16
  %15 = alloca [4 x i32], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  %26 = alloca i8, align 1
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca [4 x [4 x float]], align 16
  %32 = alloca i32, align 4
  %33 = alloca %struct.ImVec2, align 4
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca ptr, align 8
  %39 = alloca %struct.ImVec4, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %40 = call noundef nonnull align 8 dereferenceable(5448) ptr @_ZN5ImGui5GetIOEv()
  store ptr %40, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImDrawData, ptr %41, i32 0, i32 7
  %43 = getelementptr inbounds %struct.ImVec2, ptr %42, i32 0, i32 0
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImGuiIO, ptr %45, i32 0, i32 18
  %47 = getelementptr inbounds %struct.ImVec2, ptr %46, i32 0, i32 0
  %48 = load float, ptr %47, align 8, !tbaa !15
  %49 = fmul float %44, %48
  %50 = fptosi float %49 to i32
  store i32 %50, ptr %4, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImDrawData, ptr %51, i32 0, i32 7
  %53 = getelementptr inbounds %struct.ImVec2, ptr %52, i32 0, i32 1
  %54 = load float, ptr %53, align 4, !tbaa !19
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.ImGuiIO, ptr %55, i32 0, i32 18
  %57 = getelementptr inbounds %struct.ImVec2, ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !20
  %59 = fmul float %54, %58
  %60 = fptosi float %59 to i32
  store i32 %60, ptr %5, align 4, !tbaa !18
  %61 = load i32, ptr %4, align 4, !tbaa !18
  %62 = icmp sle i32 %61, 0
  br i1 %62, label %66, label %63

63:                                               ; preds = %1
  %64 = load i32, ptr %5, align 4, !tbaa !18
  %65 = icmp sle i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %63, %1
  store i32 1, ptr %6, align 4
  br label %449

67:                                               ; preds = %63
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ImGuiIO, ptr %69, i32 0, i32 18
  call void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44) %68, ptr noundef nonnull align 4 dereferenceable(8) %70)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %71 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %71(i32 noundef 34016, ptr noundef %7)
  %72 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  call void %72(i32 noundef 33984)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %73 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %73(i32 noundef 35725, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %74 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %74(i32 noundef 32873, ptr noundef %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %75 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %75(i32 noundef 35097, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %76 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %76(i32 noundef 34964, ptr noundef %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %77 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %77(i32 noundef 34229, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %78 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  %79 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  call void %78(i32 noundef 2880, ptr noundef %79)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %80 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  %81 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  call void %80(i32 noundef 2978, ptr noundef %81)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %82 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  %83 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  call void %82(i32 noundef 3088, ptr noundef %83)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %84 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %84(i32 noundef 32969, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %85 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %85(i32 noundef 32968, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %86 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %86(i32 noundef 32971, ptr noundef %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %87 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %87(i32 noundef 32970, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %88 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %88(i32 noundef 32777, ptr noundef %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %89 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !5
  call void %89(i32 noundef 34877, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %90 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !5
  %91 = call zeroext i8 %90(i32 noundef 3042)
  store i8 %91, ptr %22, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %92 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !5
  %93 = call zeroext i8 %92(i32 noundef 2884)
  store i8 %93, ptr %23, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %94 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !5
  %95 = call zeroext i8 %94(i32 noundef 2929)
  store i8 %95, ptr %24, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  %96 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !5
  %97 = call zeroext i8 %96(i32 noundef 3089)
  store i8 %97, ptr %25, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #6
  store i8 1, ptr %26, align 1, !tbaa !22
  %98 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %98(i32 noundef 3042)
  %99 = load ptr, ptr @glad_glBlendEquation, align 8, !tbaa !5
  call void %99(i32 noundef 32774)
  %100 = load ptr, ptr @glad_glBlendFunc, align 8, !tbaa !5
  call void %100(i32 noundef 770, i32 noundef 771)
  %101 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %101(i32 noundef 2884)
  %102 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %102(i32 noundef 2929)
  %103 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %103(i32 noundef 3089)
  %104 = load ptr, ptr @glad_glPolygonMode, align 8, !tbaa !5
  call void %104(i32 noundef 1032, i32 noundef 6914)
  %105 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %106 = load i32, ptr %4, align 4, !tbaa !18
  %107 = load i32, ptr %5, align 4, !tbaa !18
  call void %105(i32 noundef 0, i32 noundef 0, i32 noundef %106, i32 noundef %107)
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ImDrawData, ptr %108, i32 0, i32 6
  %110 = getelementptr inbounds %struct.ImVec2, ptr %109, i32 0, i32 0
  %111 = load float, ptr %110, align 4, !tbaa !23
  store float %111, ptr %27, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ImDrawData, ptr %112, i32 0, i32 6
  %114 = getelementptr inbounds %struct.ImVec2, ptr %113, i32 0, i32 0
  %115 = load float, ptr %114, align 4, !tbaa !23
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.ImDrawData, ptr %116, i32 0, i32 7
  %118 = getelementptr inbounds %struct.ImVec2, ptr %117, i32 0, i32 0
  %119 = load float, ptr %118, align 4, !tbaa !9
  %120 = fadd float %115, %119
  store float %120, ptr %28, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ImDrawData, ptr %121, i32 0, i32 6
  %123 = getelementptr inbounds %struct.ImVec2, ptr %122, i32 0, i32 1
  %124 = load float, ptr %123, align 4, !tbaa !25
  store float %124, ptr %29, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ImDrawData, ptr %125, i32 0, i32 6
  %127 = getelementptr inbounds %struct.ImVec2, ptr %126, i32 0, i32 1
  %128 = load float, ptr %127, align 4, !tbaa !25
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.ImDrawData, ptr %129, i32 0, i32 7
  %131 = getelementptr inbounds %struct.ImVec2, ptr %130, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !19
  %133 = fadd float %128, %132
  store float %133, ptr %30, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #6
  %134 = load float, ptr %28, align 4, !tbaa !24
  %135 = load float, ptr %27, align 4, !tbaa !24
  %136 = fsub float %134, %135
  %137 = fdiv float 2.000000e+00, %136
  store float %137, ptr %31, align 4, !tbaa !24
  %138 = getelementptr inbounds float, ptr %31, i64 1
  store float 0.000000e+00, ptr %138, align 4, !tbaa !24
  %139 = getelementptr inbounds float, ptr %31, i64 2
  store float 0.000000e+00, ptr %139, align 4, !tbaa !24
  %140 = getelementptr inbounds float, ptr %31, i64 3
  store float 0.000000e+00, ptr %140, align 4, !tbaa !24
  %141 = getelementptr inbounds [4 x float], ptr %31, i64 1
  store float 0.000000e+00, ptr %141, align 4, !tbaa !24
  %142 = getelementptr inbounds float, ptr %141, i64 1
  %143 = load float, ptr %29, align 4, !tbaa !24
  %144 = load float, ptr %30, align 4, !tbaa !24
  %145 = fsub float %143, %144
  %146 = fdiv float 2.000000e+00, %145
  store float %146, ptr %142, align 4, !tbaa !24
  %147 = getelementptr inbounds float, ptr %141, i64 2
  store float 0.000000e+00, ptr %147, align 4, !tbaa !24
  %148 = getelementptr inbounds float, ptr %141, i64 3
  store float 0.000000e+00, ptr %148, align 4, !tbaa !24
  %149 = getelementptr inbounds [4 x float], ptr %31, i64 2
  store float 0.000000e+00, ptr %149, align 4, !tbaa !24
  %150 = getelementptr inbounds float, ptr %149, i64 1
  store float 0.000000e+00, ptr %150, align 4, !tbaa !24
  %151 = getelementptr inbounds float, ptr %149, i64 2
  store float -1.000000e+00, ptr %151, align 4, !tbaa !24
  %152 = getelementptr inbounds float, ptr %149, i64 3
  store float 0.000000e+00, ptr %152, align 4, !tbaa !24
  %153 = getelementptr inbounds [4 x float], ptr %31, i64 3
  %154 = load float, ptr %28, align 4, !tbaa !24
  %155 = load float, ptr %27, align 4, !tbaa !24
  %156 = fadd float %154, %155
  %157 = load float, ptr %27, align 4, !tbaa !24
  %158 = load float, ptr %28, align 4, !tbaa !24
  %159 = fsub float %157, %158
  %160 = fdiv float %156, %159
  store float %160, ptr %153, align 4, !tbaa !24
  %161 = getelementptr inbounds float, ptr %153, i64 1
  %162 = load float, ptr %29, align 4, !tbaa !24
  %163 = load float, ptr %30, align 4, !tbaa !24
  %164 = fadd float %162, %163
  %165 = load float, ptr %30, align 4, !tbaa !24
  %166 = load float, ptr %29, align 4, !tbaa !24
  %167 = fsub float %165, %166
  %168 = fdiv float %164, %167
  store float %168, ptr %161, align 4, !tbaa !24
  %169 = getelementptr inbounds float, ptr %153, i64 2
  store float 0.000000e+00, ptr %169, align 4, !tbaa !24
  %170 = getelementptr inbounds float, ptr %153, i64 3
  store float 1.000000e+00, ptr %170, align 4, !tbaa !24
  %171 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %172 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !18
  call void %171(i32 noundef %172)
  %173 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !5
  %174 = load i32, ptr @_ZL19g_AttribLocationTex, align 4, !tbaa !18
  call void %173(i32 noundef %174, i32 noundef 0)
  %175 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !5
  %176 = load i32, ptr @_ZL23g_AttribLocationProjMtx, align 4, !tbaa !18
  %177 = getelementptr inbounds [4 x [4 x float]], ptr %31, i64 0, i64 0
  %178 = getelementptr inbounds [4 x float], ptr %177, i64 0, i64 0
  call void %175(i32 noundef %176, i32 noundef 1, i8 noundef zeroext 0, ptr noundef %178)
  %179 = load ptr, ptr @glad_glBindSampler, align 8, !tbaa !5
  call void %179(i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !18
  %180 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !5
  call void %180(i32 noundef 1, ptr noundef %32)
  %181 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %182 = load i32, ptr %32, align 4, !tbaa !18
  call void %181(i32 noundef %182)
  %183 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %184 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !18
  call void %183(i32 noundef 34962, i32 noundef %184)
  %185 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %186 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !18
  call void %185(i32 noundef %186)
  %187 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %188 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !18
  call void %187(i32 noundef %188)
  %189 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !5
  %190 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !18
  call void %189(i32 noundef %190)
  %191 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %192 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !18
  call void %191(i32 noundef %192, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef null)
  %193 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %194 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !18
  call void %193(i32 noundef %194, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef getelementptr inbounds (%struct.ImDrawVert, ptr null, i32 0, i32 1))
  %195 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !5
  %196 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !18
  call void %195(i32 noundef %196, i32 noundef 4, i32 noundef 5121, i8 noundef zeroext 1, i32 noundef 20, ptr noundef getelementptr inbounds (%struct.ImDrawVert, ptr null, i32 0, i32 2))
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %197 = load ptr, ptr %2, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.ImDrawData, ptr %197, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %198, i64 8, i1 false), !tbaa.struct !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !18
  br label %199

199:                                              ; preds = %375, %67
  %200 = load i32, ptr %34, align 4, !tbaa !18
  %201 = load ptr, ptr %2, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ImDrawData, ptr %201, i32 0, i32 3
  %203 = load i32, ptr %202, align 8, !tbaa !27
  %204 = icmp slt i32 %200, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %199
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %378

206:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ImDrawData, ptr %207, i32 0, i32 2
  %209 = load ptr, ptr %208, align 8, !tbaa !28
  %210 = load i32, ptr %34, align 4, !tbaa !18
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds ptr, ptr %209, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  store ptr %213, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  store ptr null, ptr %36, align 8, !tbaa !5
  %214 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %215 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !18
  call void %214(i32 noundef 34962, i32 noundef %215)
  %216 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  %217 = load ptr, ptr %35, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.ImDrawList, ptr %217, i32 0, i32 2
  %219 = getelementptr inbounds %struct.ImVector.1, ptr %218, i32 0, i32 0
  %220 = load i32, ptr %219, align 8, !tbaa !29
  %221 = sext i32 %220 to i64
  %222 = mul i64 %221, 20
  %223 = load ptr, ptr %35, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.ImDrawList, ptr %223, i32 0, i32 2
  %225 = getelementptr inbounds %struct.ImVector.1, ptr %224, i32 0, i32 2
  %226 = load ptr, ptr %225, align 8, !tbaa !37
  call void %216(i32 noundef 34962, i64 noundef %222, ptr noundef %226, i32 noundef 35040)
  %227 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %228 = load i32, ptr @_ZL16g_ElementsHandle, align 4, !tbaa !18
  call void %227(i32 noundef 34963, i32 noundef %228)
  %229 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !5
  %230 = load ptr, ptr %35, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.ImDrawList, ptr %230, i32 0, i32 1
  %232 = getelementptr inbounds %struct.ImVector, ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 8, !tbaa !38
  %234 = sext i32 %233 to i64
  %235 = mul i64 %234, 2
  %236 = load ptr, ptr %35, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.ImDrawList, ptr %236, i32 0, i32 1
  %238 = getelementptr inbounds %struct.ImVector, ptr %237, i32 0, i32 2
  %239 = load ptr, ptr %238, align 8, !tbaa !39
  call void %229(i32 noundef 34963, i64 noundef %235, ptr noundef %239, i32 noundef 35040)
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  store i32 0, ptr %37, align 4, !tbaa !18
  br label %240

240:                                              ; preds = %371, %206
  %241 = load i32, ptr %37, align 4, !tbaa !18
  %242 = load ptr, ptr %35, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.ImDrawList, ptr %242, i32 0, i32 0
  %244 = getelementptr inbounds %struct.ImVector.0, ptr %243, i32 0, i32 0
  %245 = load i32, ptr %244, align 8, !tbaa !40
  %246 = icmp slt i32 %241, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %240
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %374

248:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %249 = load ptr, ptr %35, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.ImDrawList, ptr %249, i32 0, i32 0
  %251 = load i32, ptr %37, align 4, !tbaa !18
  %252 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %250, i32 noundef %251)
  store ptr %252, ptr %38, align 8, !tbaa !5
  %253 = load ptr, ptr %38, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.ImDrawCmd, ptr %253, i32 0, i32 3
  %255 = load ptr, ptr %254, align 8, !tbaa !41
  %256 = icmp ne ptr %255, null
  br i1 %256, label %257, label %263

257:                                              ; preds = %248
  %258 = load ptr, ptr %38, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.ImDrawCmd, ptr %258, i32 0, i32 3
  %260 = load ptr, ptr %259, align 8, !tbaa !41
  %261 = load ptr, ptr %35, align 8, !tbaa !5
  %262 = load ptr, ptr %38, align 8, !tbaa !5
  call void %260(ptr noundef %261, ptr noundef %262)
  br label %364

263:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  %264 = load ptr, ptr %38, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.ImDrawCmd, ptr %264, i32 0, i32 1
  %266 = getelementptr inbounds %struct.ImVec4, ptr %265, i32 0, i32 0
  %267 = load float, ptr %266, align 4, !tbaa !44
  %268 = getelementptr inbounds %struct.ImVec2, ptr %33, i32 0, i32 0
  %269 = load float, ptr %268, align 4, !tbaa !45
  %270 = fsub float %267, %269
  %271 = load ptr, ptr %38, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.ImDrawCmd, ptr %271, i32 0, i32 1
  %273 = getelementptr inbounds %struct.ImVec4, ptr %272, i32 0, i32 1
  %274 = load float, ptr %273, align 4, !tbaa !46
  %275 = getelementptr inbounds %struct.ImVec2, ptr %33, i32 0, i32 1
  %276 = load float, ptr %275, align 4, !tbaa !47
  %277 = fsub float %274, %276
  %278 = load ptr, ptr %38, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.ImDrawCmd, ptr %278, i32 0, i32 1
  %280 = getelementptr inbounds %struct.ImVec4, ptr %279, i32 0, i32 2
  %281 = load float, ptr %280, align 4, !tbaa !48
  %282 = getelementptr inbounds %struct.ImVec2, ptr %33, i32 0, i32 0
  %283 = load float, ptr %282, align 4, !tbaa !45
  %284 = fsub float %281, %283
  %285 = load ptr, ptr %38, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.ImDrawCmd, ptr %285, i32 0, i32 1
  %287 = getelementptr inbounds %struct.ImVec4, ptr %286, i32 0, i32 3
  %288 = load float, ptr %287, align 4, !tbaa !49
  %289 = getelementptr inbounds %struct.ImVec2, ptr %33, i32 0, i32 1
  %290 = load float, ptr %289, align 4, !tbaa !47
  %291 = fsub float %288, %290
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %39, float noundef %270, float noundef %277, float noundef %284, float noundef %291)
  %292 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 0
  %293 = load float, ptr %292, align 4, !tbaa !50
  %294 = load i32, ptr %4, align 4, !tbaa !18
  %295 = sitofp i32 %294 to float
  %296 = fcmp olt float %293, %295
  br i1 %296, label %297, label %363

297:                                              ; preds = %263
  %298 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 1
  %299 = load float, ptr %298, align 4, !tbaa !51
  %300 = load i32, ptr %5, align 4, !tbaa !18
  %301 = sitofp i32 %300 to float
  %302 = fcmp olt float %299, %301
  br i1 %302, label %303, label %363

303:                                              ; preds = %297
  %304 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 2
  %305 = load float, ptr %304, align 4, !tbaa !52
  %306 = fcmp oge float %305, 0.000000e+00
  br i1 %306, label %307, label %363

307:                                              ; preds = %303
  %308 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 3
  %309 = load float, ptr %308, align 4, !tbaa !53
  %310 = fcmp oge float %309, 0.000000e+00
  br i1 %310, label %311, label %363

311:                                              ; preds = %307
  %312 = load i8, ptr %26, align 1, !tbaa !22, !range !54, !noundef !55
  %313 = trunc i8 %312 to i1
  br i1 %313, label %314, label %337

314:                                              ; preds = %311
  %315 = load ptr, ptr @glad_glScissor, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 0
  %317 = load float, ptr %316, align 4, !tbaa !50
  %318 = fptosi float %317 to i32
  %319 = load i32, ptr %5, align 4, !tbaa !18
  %320 = sitofp i32 %319 to float
  %321 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 3
  %322 = load float, ptr %321, align 4, !tbaa !53
  %323 = fsub float %320, %322
  %324 = fptosi float %323 to i32
  %325 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 2
  %326 = load float, ptr %325, align 4, !tbaa !52
  %327 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 0
  %328 = load float, ptr %327, align 4, !tbaa !50
  %329 = fsub float %326, %328
  %330 = fptosi float %329 to i32
  %331 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 3
  %332 = load float, ptr %331, align 4, !tbaa !53
  %333 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 1
  %334 = load float, ptr %333, align 4, !tbaa !51
  %335 = fsub float %332, %334
  %336 = fptosi float %335 to i32
  call void %315(i32 noundef %318, i32 noundef %324, i32 noundef %330, i32 noundef %336)
  br label %351

337:                                              ; preds = %311
  %338 = load ptr, ptr @glad_glScissor, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 0
  %340 = load float, ptr %339, align 4, !tbaa !50
  %341 = fptosi float %340 to i32
  %342 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 1
  %343 = load float, ptr %342, align 4, !tbaa !51
  %344 = fptosi float %343 to i32
  %345 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 2
  %346 = load float, ptr %345, align 4, !tbaa !52
  %347 = fptosi float %346 to i32
  %348 = getelementptr inbounds %struct.ImVec4, ptr %39, i32 0, i32 3
  %349 = load float, ptr %348, align 4, !tbaa !53
  %350 = fptosi float %349 to i32
  call void %338(i32 noundef %341, i32 noundef %344, i32 noundef %347, i32 noundef %350)
  br label %351

351:                                              ; preds = %337, %314
  %352 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %353 = load ptr, ptr %38, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.ImDrawCmd, ptr %353, i32 0, i32 2
  %355 = load ptr, ptr %354, align 8, !tbaa !56
  %356 = ptrtoint ptr %355 to i64
  %357 = trunc i64 %356 to i32
  call void %352(i32 noundef 3553, i32 noundef %357)
  %358 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !5
  %359 = load ptr, ptr %38, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.ImDrawCmd, ptr %359, i32 0, i32 0
  %361 = load i32, ptr %360, align 8, !tbaa !57
  %362 = load ptr, ptr %36, align 8, !tbaa !5
  call void %358(i32 noundef 4, i32 noundef %361, i32 noundef 5123, ptr noundef %362)
  br label %363

363:                                              ; preds = %351, %307, %303, %297, %263
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  br label %364

364:                                              ; preds = %363, %257
  %365 = load ptr, ptr %38, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.ImDrawCmd, ptr %365, i32 0, i32 0
  %367 = load i32, ptr %366, align 8, !tbaa !57
  %368 = load ptr, ptr %36, align 8, !tbaa !5
  %369 = zext i32 %367 to i64
  %370 = getelementptr inbounds i16, ptr %368, i64 %369
  store ptr %370, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %371

371:                                              ; preds = %364
  %372 = load i32, ptr %37, align 4, !tbaa !18
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %37, align 4, !tbaa !18
  br label %240, !llvm.loop !58

374:                                              ; preds = %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %375

375:                                              ; preds = %374
  %376 = load i32, ptr %34, align 4, !tbaa !18
  %377 = add nsw i32 %376, 1
  store i32 %377, ptr %34, align 4, !tbaa !18
  br label %199, !llvm.loop !60

378:                                              ; preds = %205
  %379 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !5
  call void %379(i32 noundef 1, ptr noundef %32)
  %380 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !5
  %381 = load i32, ptr %8, align 4, !tbaa !18
  call void %380(i32 noundef %381)
  %382 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !5
  %383 = load i32, ptr %9, align 4, !tbaa !18
  call void %382(i32 noundef 3553, i32 noundef %383)
  %384 = load ptr, ptr @glad_glBindSampler, align 8, !tbaa !5
  %385 = load i32, ptr %10, align 4, !tbaa !18
  call void %384(i32 noundef 0, i32 noundef %385)
  %386 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !5
  %387 = load i32, ptr %7, align 4, !tbaa !18
  call void %386(i32 noundef %387)
  %388 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !5
  %389 = load i32, ptr %12, align 4, !tbaa !18
  call void %388(i32 noundef %389)
  %390 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !5
  %391 = load i32, ptr %11, align 4, !tbaa !18
  call void %390(i32 noundef 34962, i32 noundef %391)
  %392 = load ptr, ptr @glad_glBlendEquationSeparate, align 8, !tbaa !5
  %393 = load i32, ptr %20, align 4, !tbaa !18
  %394 = load i32, ptr %21, align 4, !tbaa !18
  call void %392(i32 noundef %393, i32 noundef %394)
  %395 = load ptr, ptr @glad_glBlendFuncSeparate, align 8, !tbaa !5
  %396 = load i32, ptr %16, align 4, !tbaa !18
  %397 = load i32, ptr %17, align 4, !tbaa !18
  %398 = load i32, ptr %18, align 4, !tbaa !18
  %399 = load i32, ptr %19, align 4, !tbaa !18
  call void %395(i32 noundef %396, i32 noundef %397, i32 noundef %398, i32 noundef %399)
  %400 = load i8, ptr %22, align 1, !tbaa !21
  %401 = icmp ne i8 %400, 0
  br i1 %401, label %402, label %404

402:                                              ; preds = %378
  %403 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %403(i32 noundef 3042)
  br label %406

404:                                              ; preds = %378
  %405 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %405(i32 noundef 3042)
  br label %406

406:                                              ; preds = %404, %402
  %407 = load i8, ptr %23, align 1, !tbaa !21
  %408 = icmp ne i8 %407, 0
  br i1 %408, label %409, label %411

409:                                              ; preds = %406
  %410 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %410(i32 noundef 2884)
  br label %413

411:                                              ; preds = %406
  %412 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %412(i32 noundef 2884)
  br label %413

413:                                              ; preds = %411, %409
  %414 = load i8, ptr %24, align 1, !tbaa !21
  %415 = icmp ne i8 %414, 0
  br i1 %415, label %416, label %418

416:                                              ; preds = %413
  %417 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %417(i32 noundef 2929)
  br label %420

418:                                              ; preds = %413
  %419 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %419(i32 noundef 2929)
  br label %420

420:                                              ; preds = %418, %416
  %421 = load i8, ptr %25, align 1, !tbaa !21
  %422 = icmp ne i8 %421, 0
  br i1 %422, label %423, label %425

423:                                              ; preds = %420
  %424 = load ptr, ptr @glad_glEnable, align 8, !tbaa !5
  call void %424(i32 noundef 3089)
  br label %427

425:                                              ; preds = %420
  %426 = load ptr, ptr @glad_glDisable, align 8, !tbaa !5
  call void %426(i32 noundef 3089)
  br label %427

427:                                              ; preds = %425, %423
  %428 = load ptr, ptr @glad_glPolygonMode, align 8, !tbaa !5
  %429 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %430 = load i32, ptr %429, align 4, !tbaa !18
  call void %428(i32 noundef 1032, i32 noundef %430)
  %431 = load ptr, ptr @glad_glViewport, align 8, !tbaa !5
  %432 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  %433 = load i32, ptr %432, align 16, !tbaa !18
  %434 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 1
  %435 = load i32, ptr %434, align 4, !tbaa !18
  %436 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 2
  %437 = load i32, ptr %436, align 8, !tbaa !18
  %438 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 3
  %439 = load i32, ptr %438, align 4, !tbaa !18
  call void %431(i32 noundef %433, i32 noundef %435, i32 noundef %437, i32 noundef %439)
  %440 = load ptr, ptr @glad_glScissor, align 8, !tbaa !5
  %441 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  %442 = load i32, ptr %441, align 16, !tbaa !18
  %443 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 1
  %444 = load i32, ptr %443, align 4, !tbaa !18
  %445 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 2
  %446 = load i32, ptr %445, align 8, !tbaa !18
  %447 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 3
  %448 = load i32, ptr %447, align 4, !tbaa !18
  call void %440(i32 noundef %442, i32 noundef %444, i32 noundef %446, i32 noundef %448)
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  store i32 0, ptr %6, align 4
  br label %449

449:                                              ; preds = %427, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %450 = load i32, ptr %6, align 4
  switch i32 %450, label %452 [
    i32 0, label %451
    i32 1, label %451
  ]

451:                                              ; preds = %449, %449
  ret void

452:                                              ; preds = %449
  unreachable
}

declare void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(8)) #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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 176}
!16 = !{!"_ZTS7ImGuiIO", !12, i64 0, !12, i64 4, !13, i64 8, !14, i64 16, !14, i64 20, !6, i64 24, !6, i64 32, !14, i64 40, !14, i64 44, !14, i64 48, !7, i64 52, !14, i64 136, !14, i64 140, !6, i64 144, !6, i64 152, !14, i64 160, !11, i64 164, !6, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !11, i64 200, !11, i64 201, !11, i64 202, !11, i64 203, !11, i64 204, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !13, i64 296, !7, i64 304, !14, i64 312, !14, i64 316, !11, i64 320, !11, i64 321, !11, i64 322, !11, i64 323, !7, i64 324, !7, i64 836, !11, i64 920, !11, i64 921, !11, i64 922, !11, i64 923, !11, i64 924, !11, i64 925, !11, i64 926, !14, i64 928, !12, i64 932, !12, i64 936, !12, i64 940, !12, i64 944, !12, i64 948, !13, i64 952, !13, i64 960, !7, i64 968, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1088, !7, i64 1108, !7, i64 1148, !7, i64 1168, !7, i64 3216, !7, i64 5264, !7, i64 5348, !17, i64 5432}
!17 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!12, !12, i64 0}
!19 = !{!10, !14, i64 40}
!20 = !{!16, !14, i64 180}
!21 = !{!7, !7, i64 0}
!22 = !{!11, !11, i64 0}
!23 = !{!10, !14, i64 28}
!24 = !{!14, !14, i64 0}
!25 = !{!10, !14, i64 32}
!26 = !{i64 0, i64 4, !24, i64 4, i64 4, !24}
!27 = !{!10, !12, i64 16}
!28 = !{!10, !6, i64 8}
!29 = !{!30, !12, i64 32}
!30 = !{!"_ZTS10ImDrawList", !31, i64 0, !17, i64 16, !32, i64 32, !12, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !33, i64 96, !34, i64 112, !35, i64 128, !12, i64 144, !12, i64 148, !36, i64 152}
!31 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!32 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!33 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!37 = !{!30, !6, i64 40}
!38 = !{!30, !12, i64 16}
!39 = !{!30, !6, i64 24}
!40 = !{!30, !12, i64 0}
!41 = !{!42, !6, i64 32}
!42 = !{!"_ZTS9ImDrawCmd", !12, i64 0, !43, i64 4, !6, i64 24, !6, i64 32, !6, i64 40}
!43 = !{!"_ZTS6ImVec4", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!44 = !{!42, !14, i64 4}
!45 = !{!13, !14, i64 0}
!46 = !{!42, !14, i64 8}
!47 = !{!13, !14, i64 4}
!48 = !{!42, !14, i64 12}
!49 = !{!42, !14, i64 16}
!50 = !{!43, !14, i64 0}
!51 = !{!43, !14, i64 4}
!52 = !{!43, !14, i64 8}
!53 = !{!43, !14, i64 12}
!54 = !{i8 0, i8 2}
!55 = !{}
!56 = !{!42, !6, i64 24}
!57 = !{!42, !12, i64 0}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}
!60 = distinct !{!60, !59}


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

@glad_glGetIntegerv = external local_unnamed_addr global ptr, align 8
@glad_glActiveTexture = external local_unnamed_addr global ptr, align 8
@glad_glIsEnabled = external local_unnamed_addr global ptr, align 8
@glad_glEnable = external local_unnamed_addr global ptr, align 8
@glad_glBlendEquation = external local_unnamed_addr global ptr, align 8
@glad_glBlendFunc = external local_unnamed_addr global ptr, align 8
@glad_glDisable = external local_unnamed_addr global ptr, align 8
@glad_glPolygonMode = external local_unnamed_addr global ptr, align 8
@glad_glViewport = external local_unnamed_addr global ptr, align 8
@glad_glUseProgram = external local_unnamed_addr global ptr, align 8
@_ZL14g_ShaderHandle = external hidden local_unnamed_addr global i32, align 4
@glad_glUniform1i = external local_unnamed_addr global ptr, align 8
@_ZL19g_AttribLocationTex = external hidden local_unnamed_addr global i32, align 4
@glad_glUniformMatrix4fv = external local_unnamed_addr global ptr, align 8
@_ZL23g_AttribLocationProjMtx = external hidden local_unnamed_addr global i32, align 4
@glad_glBindSampler = external local_unnamed_addr global ptr, align 8
@glad_glGenVertexArrays = external local_unnamed_addr global ptr, align 8
@glad_glBindVertexArray = external local_unnamed_addr global ptr, align 8
@glad_glBindBuffer = external local_unnamed_addr global ptr, align 8
@_ZL11g_VboHandle = external hidden local_unnamed_addr global i32, align 4
@glad_glEnableVertexAttribArray = external local_unnamed_addr global ptr, align 8
@_ZL24g_AttribLocationPosition = external hidden local_unnamed_addr global i32, align 4
@_ZL18g_AttribLocationUV = external hidden local_unnamed_addr global i32, align 4
@_ZL21g_AttribLocationColor = external hidden local_unnamed_addr global i32, align 4
@glad_glVertexAttribPointer = external local_unnamed_addr global ptr, align 8
@glad_glBufferData = external local_unnamed_addr global ptr, align 8
@_ZL16g_ElementsHandle = external hidden local_unnamed_addr global i32, align 4
@glad_glScissor = external local_unnamed_addr global ptr, align 8
@glad_glBindTexture = external local_unnamed_addr global ptr, align 8
@glad_glDrawElements = external local_unnamed_addr global ptr, align 8
@glad_glDeleteVertexArrays = external local_unnamed_addr global ptr, align 8
@glad_glBlendEquationSeparate = external local_unnamed_addr global ptr, align 8
@glad_glBlendFuncSeparate = external local_unnamed_addr global ptr, align 8

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

declare noundef nonnull align 8 dereferenceable(5448) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #1

; 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_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [2 x i32], align 4
  %9 = alloca [4 x i32], align 16
  %10 = alloca [4 x i32], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [4 x [4 x float]], align 16
  %18 = alloca i32, align 4
  %19 = alloca %struct.ImVec4, align 4
  %20 = tail call noundef nonnull align 8 dereferenceable(5448) ptr @_ZN5ImGui5GetIOEv()
  %21 = getelementptr inbounds i8, ptr %0, i64 36
  %22 = getelementptr inbounds i8, ptr %20, i64 176
  %23 = load <2 x float>, ptr %21, align 4, !tbaa !5
  %24 = load <2 x float>, ptr %22, align 8, !tbaa !5
  %25 = fmul <2 x float> %23, %24
  %26 = fptosi <2 x float> %25 to <2 x i32>
  %27 = icmp slt <2 x i32> %26, <i32 1, i32 1>
  %28 = extractelement <2 x i1> %27, i64 0
  %29 = extractelement <2 x i1> %27, i64 1
  %or.cond = select i1 %28, i1 true, i1 %29
  br i1 %or.cond, label %240, label %30

30:                                               ; preds = %1
  tail call void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44) %0, ptr noundef nonnull align 4 dereferenceable(8) %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %31 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %31(i32 noundef 34016, ptr noundef nonnull %2)
  %32 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  call void %32(i32 noundef 33984)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %33 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %33(i32 noundef 35725, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %34 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %34(i32 noundef 32873, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %35 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %35(i32 noundef 35097, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %36 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %36(i32 noundef 34964, ptr noundef nonnull %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %37 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %37(i32 noundef 34229, ptr noundef nonnull %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %38 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %38(i32 noundef 2880, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  %39 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %39(i32 noundef 2978, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  %40 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %40(i32 noundef 3088, ptr noundef nonnull %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %41 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %41(i32 noundef 32969, ptr noundef nonnull %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %42 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %42(i32 noundef 32968, ptr noundef nonnull %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %43 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %43(i32 noundef 32971, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %44 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %44(i32 noundef 32970, ptr noundef nonnull %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %45 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %45(i32 noundef 32777, ptr noundef nonnull %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %46 = load ptr, ptr @glad_glGetIntegerv, align 8, !tbaa !9
  call void %46(i32 noundef 34877, ptr noundef nonnull %16)
  %47 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !9
  %48 = call zeroext i8 %47(i32 noundef 3042)
  %49 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !9
  %50 = call zeroext i8 %49(i32 noundef 2884)
  %51 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !9
  %52 = call zeroext i8 %51(i32 noundef 2929)
  %53 = load ptr, ptr @glad_glIsEnabled, align 8, !tbaa !9
  %54 = call zeroext i8 %53(i32 noundef 3089)
  %55 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %55(i32 noundef 3042)
  %56 = load ptr, ptr @glad_glBlendEquation, align 8, !tbaa !9
  call void %56(i32 noundef 32774)
  %57 = load ptr, ptr @glad_glBlendFunc, align 8, !tbaa !9
  call void %57(i32 noundef 770, i32 noundef 771)
  %58 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %58(i32 noundef 2884)
  %59 = load ptr, ptr @glad_glDisable, align 8, !tbaa !9
  call void %59(i32 noundef 2929)
  %60 = load ptr, ptr @glad_glEnable, align 8, !tbaa !9
  call void %60(i32 noundef 3089)
  %61 = load ptr, ptr @glad_glPolygonMode, align 8, !tbaa !9
  call void %61(i32 noundef 1032, i32 noundef 6914)
  %62 = load ptr, ptr @glad_glViewport, align 8, !tbaa !9
  %63 = extractelement <2 x i32> %26, i64 0
  %64 = extractelement <2 x i32> %26, i64 1
  call void %62(i32 noundef 0, i32 noundef 0, i32 noundef %63, i32 noundef %64)
  %65 = getelementptr inbounds i8, ptr %0, i64 28
  %66 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #6
  %67 = getelementptr inbounds i8, ptr %17, i64 4
  %68 = getelementptr inbounds i8, ptr %17, i64 20
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %67, i8 0, i64 16, i1 false)
  %69 = getelementptr inbounds i8, ptr %17, i64 24
  %70 = getelementptr inbounds i8, ptr %17, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %69, i8 0, i64 16, i1 false)
  store <2 x float> <float -1.000000e+00, float 0.000000e+00>, ptr %70, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %17, i64 48
  %72 = load <2 x float>, ptr %65, align 4, !tbaa !5
  %73 = load <2 x float>, ptr %21, align 4, !tbaa !5
  %74 = fadd <2 x float> %72, %73
  %75 = fsub <2 x float> %74, %72
  %76 = extractelement <2 x float> %75, i64 0
  %77 = fdiv float 2.000000e+00, %76
  store float %77, ptr %17, align 16, !tbaa !5
  %78 = fsub <2 x float> %72, %74
  %79 = extractelement <2 x float> %78, i64 1
  %80 = fdiv float 2.000000e+00, %79
  store float %80, ptr %68, align 4, !tbaa !5
  %81 = fadd <2 x float> %72, %74
  %82 = shufflevector <2 x float> %72, <2 x float> %74, <2 x i32> <i32 0, i32 3>
  %83 = shufflevector <2 x float> %74, <2 x float> %72, <2 x i32> <i32 0, i32 3>
  %84 = fsub <2 x float> %82, %83
  %85 = fdiv <2 x float> %81, %84
  store <2 x float> %85, ptr %71, align 16, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %17, i64 56
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %86, align 8, !tbaa !5
  %87 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %88 = load i32, ptr @_ZL14g_ShaderHandle, align 4, !tbaa !11
  call void %87(i32 noundef %88)
  %89 = load ptr, ptr @glad_glUniform1i, align 8, !tbaa !9
  %90 = load i32, ptr @_ZL19g_AttribLocationTex, align 4, !tbaa !11
  call void %89(i32 noundef %90, i32 noundef 0)
  %91 = load ptr, ptr @glad_glUniformMatrix4fv, align 8, !tbaa !9
  %92 = load i32, ptr @_ZL23g_AttribLocationProjMtx, align 4, !tbaa !11
  call void %91(i32 noundef %92, i32 noundef 1, i8 noundef zeroext 0, ptr noundef nonnull %17)
  %93 = load ptr, ptr @glad_glBindSampler, align 8, !tbaa !9
  call void %93(i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store i32 0, ptr %18, align 4, !tbaa !11
  %94 = load ptr, ptr @glad_glGenVertexArrays, align 8, !tbaa !9
  call void %94(i32 noundef 1, ptr noundef nonnull %18)
  %95 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !9
  %96 = load i32, ptr %18, align 4, !tbaa !11
  call void %95(i32 noundef %96)
  %97 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %98 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !11
  call void %97(i32 noundef 34962, i32 noundef %98)
  %99 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  %100 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !11
  call void %99(i32 noundef %100)
  %101 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  %102 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !11
  call void %101(i32 noundef %102)
  %103 = load ptr, ptr @glad_glEnableVertexAttribArray, align 8, !tbaa !9
  %104 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !11
  call void %103(i32 noundef %104)
  %105 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  %106 = load i32, ptr @_ZL24g_AttribLocationPosition, align 4, !tbaa !11
  call void %105(i32 noundef %106, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef null)
  %107 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  %108 = load i32, ptr @_ZL18g_AttribLocationUV, align 4, !tbaa !11
  call void %107(i32 noundef %108, i32 noundef 2, i32 noundef 5126, i8 noundef zeroext 0, i32 noundef 20, ptr noundef nonnull inttoptr (i64 8 to ptr))
  %109 = load ptr, ptr @glad_glVertexAttribPointer, align 8, !tbaa !9
  %110 = load i32, ptr @_ZL21g_AttribLocationColor, align 4, !tbaa !11
  call void %109(i32 noundef %110, i32 noundef 4, i32 noundef 5121, i8 noundef zeroext 1, i32 noundef 20, ptr noundef nonnull inttoptr (i64 16 to ptr))
  %.sroa.0.0.copyload = load float, ptr %65, align 4, !tbaa !5
  %.sroa.5.0.copyload = load float, ptr %66, align 4, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %0, i64 16
  %112 = load i32, ptr %111, align 8, !tbaa !13
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %.lr.ph91, label %._crit_edge92

.lr.ph91:                                         ; preds = %30
  %114 = getelementptr inbounds i8, ptr %0, i64 8
  %115 = uitofp nneg i32 %63 to float
  %116 = getelementptr inbounds i8, ptr %19, i64 4
  %117 = uitofp nneg i32 %64 to float
  %118 = getelementptr inbounds i8, ptr %19, i64 8
  %119 = getelementptr inbounds i8, ptr %19, i64 12
  br label %163

._crit_edge92:                                    ; preds = %._crit_edge, %30
  %120 = load ptr, ptr @glad_glDeleteVertexArrays, align 8, !tbaa !9
  call void %120(i32 noundef 1, ptr noundef nonnull %18)
  %121 = load ptr, ptr @glad_glUseProgram, align 8, !tbaa !9
  %122 = load i32, ptr %3, align 4, !tbaa !11
  call void %121(i32 noundef %122)
  %123 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %124 = load i32, ptr %4, align 4, !tbaa !11
  call void %123(i32 noundef 3553, i32 noundef %124)
  %125 = load ptr, ptr @glad_glBindSampler, align 8, !tbaa !9
  %126 = load i32, ptr %5, align 4, !tbaa !11
  call void %125(i32 noundef 0, i32 noundef %126)
  %127 = load ptr, ptr @glad_glActiveTexture, align 8, !tbaa !9
  %128 = load i32, ptr %2, align 4, !tbaa !11
  call void %127(i32 noundef %128)
  %129 = load ptr, ptr @glad_glBindVertexArray, align 8, !tbaa !9
  %130 = load i32, ptr %7, align 4, !tbaa !11
  call void %129(i32 noundef %130)
  %131 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %132 = load i32, ptr %6, align 4, !tbaa !11
  call void %131(i32 noundef 34962, i32 noundef %132)
  %133 = load ptr, ptr @glad_glBlendEquationSeparate, align 8, !tbaa !9
  %134 = load i32, ptr %15, align 4, !tbaa !11
  %135 = load i32, ptr %16, align 4, !tbaa !11
  call void %133(i32 noundef %134, i32 noundef %135)
  %136 = load ptr, ptr @glad_glBlendFuncSeparate, align 8, !tbaa !9
  %137 = load i32, ptr %11, align 4, !tbaa !11
  %138 = load i32, ptr %12, align 4, !tbaa !11
  %139 = load i32, ptr %13, align 4, !tbaa !11
  %140 = load i32, ptr %14, align 4, !tbaa !11
  call void %136(i32 noundef %137, i32 noundef %138, i32 noundef %139, i32 noundef %140)
  %.not = icmp eq i8 %48, 0
  %glad_glDisable.val = load ptr, ptr @glad_glDisable, align 8
  %glad_glEnable.val = load ptr, ptr @glad_glEnable, align 8
  %141 = select i1 %.not, ptr %glad_glDisable.val, ptr %glad_glEnable.val
  call void %141(i32 noundef 3042)
  %.not82 = icmp eq i8 %50, 0
  %glad_glDisable.val97 = load ptr, ptr @glad_glDisable, align 8
  %glad_glEnable.val98 = load ptr, ptr @glad_glEnable, align 8
  %142 = select i1 %.not82, ptr %glad_glDisable.val97, ptr %glad_glEnable.val98
  call void %142(i32 noundef 2884)
  %.not83 = icmp eq i8 %52, 0
  %glad_glDisable.val99 = load ptr, ptr @glad_glDisable, align 8
  %glad_glEnable.val100 = load ptr, ptr @glad_glEnable, align 8
  %143 = select i1 %.not83, ptr %glad_glDisable.val99, ptr %glad_glEnable.val100
  call void %143(i32 noundef 2929)
  %.not84 = icmp eq i8 %54, 0
  %glad_glDisable.val101 = load ptr, ptr @glad_glDisable, align 8
  %glad_glEnable.val102 = load ptr, ptr @glad_glEnable, align 8
  %144 = select i1 %.not84, ptr %glad_glDisable.val101, ptr %glad_glEnable.val102
  call void %144(i32 noundef 3089)
  %145 = load ptr, ptr @glad_glPolygonMode, align 8, !tbaa !9
  %146 = load i32, ptr %8, align 4, !tbaa !11
  call void %145(i32 noundef 1032, i32 noundef %146)
  %147 = load ptr, ptr @glad_glViewport, align 8, !tbaa !9
  %148 = load i32, ptr %9, align 16, !tbaa !11
  %149 = getelementptr inbounds i8, ptr %9, i64 4
  %150 = load i32, ptr %149, align 4, !tbaa !11
  %151 = getelementptr inbounds i8, ptr %9, i64 8
  %152 = load i32, ptr %151, align 8, !tbaa !11
  %153 = getelementptr inbounds i8, ptr %9, i64 12
  %154 = load i32, ptr %153, align 4, !tbaa !11
  call void %147(i32 noundef %148, i32 noundef %150, i32 noundef %152, i32 noundef %154)
  %155 = load ptr, ptr @glad_glScissor, align 8, !tbaa !9
  %156 = load i32, ptr %10, align 16, !tbaa !11
  %157 = getelementptr inbounds i8, ptr %10, i64 4
  %158 = load i32, ptr %157, align 4, !tbaa !11
  %159 = getelementptr inbounds i8, ptr %10, i64 8
  %160 = load i32, ptr %159, align 8, !tbaa !11
  %161 = getelementptr inbounds i8, ptr %10, i64 12
  %162 = load i32, ptr %161, align 4, !tbaa !11
  call void %155(i32 noundef %156, i32 noundef %158, i32 noundef %160, i32 noundef %162)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  br label %240

163:                                              ; preds = %.lr.ph91, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph91 ], [ %indvars.iv.next, %._crit_edge ]
  %164 = load ptr, ptr %114, align 8, !tbaa !17
  %165 = getelementptr inbounds ptr, ptr %164, i64 %indvars.iv
  %166 = load ptr, ptr %165, align 8, !tbaa !9
  %167 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %168 = load i32, ptr @_ZL11g_VboHandle, align 4, !tbaa !11
  call void %167(i32 noundef 34962, i32 noundef %168)
  %169 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !9
  %170 = getelementptr inbounds i8, ptr %166, i64 32
  %171 = load i32, ptr %170, align 8, !tbaa !18
  %172 = sext i32 %171 to i64
  %173 = mul nsw i64 %172, 20
  %174 = getelementptr inbounds i8, ptr %166, i64 40
  %175 = load ptr, ptr %174, align 8, !tbaa !27
  call void %169(i32 noundef 34962, i64 noundef %173, ptr noundef %175, i32 noundef 35040)
  %176 = load ptr, ptr @glad_glBindBuffer, align 8, !tbaa !9
  %177 = load i32, ptr @_ZL16g_ElementsHandle, align 4, !tbaa !11
  call void %176(i32 noundef 34963, i32 noundef %177)
  %178 = load ptr, ptr @glad_glBufferData, align 8, !tbaa !9
  %179 = getelementptr inbounds i8, ptr %166, i64 16
  %180 = load i32, ptr %179, align 8, !tbaa !28
  %181 = sext i32 %180 to i64
  %182 = shl nsw i64 %181, 1
  %183 = getelementptr inbounds i8, ptr %166, i64 24
  %184 = load ptr, ptr %183, align 8, !tbaa !29
  call void %178(i32 noundef 34963, i64 noundef %182, ptr noundef %184, i32 noundef 35040)
  %185 = load i32, ptr %166, align 8, !tbaa !30
  %186 = icmp sgt i32 %185, 0
  br i1 %186, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %233, %163
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %187 = load i32, ptr %111, align 8, !tbaa !13
  %188 = sext i32 %187 to i64
  %189 = icmp slt i64 %indvars.iv.next, %188
  br i1 %189, label %163, label %._crit_edge92, !llvm.loop !31

.lr.ph:                                           ; preds = %163, %233
  %.088 = phi i32 [ %237, %233 ], [ 0, %163 ]
  %.07286 = phi ptr [ %236, %233 ], [ null, %163 ]
  %190 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNK8ImVectorI9ImDrawCmdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %166, i32 noundef %.088)
  %191 = getelementptr inbounds i8, ptr %190, i64 32
  %192 = load ptr, ptr %191, align 8, !tbaa !33
  %.not85 = icmp eq ptr %192, null
  br i1 %.not85, label %194, label %193

193:                                              ; preds = %.lr.ph
  call void %192(ptr noundef nonnull %166, ptr noundef nonnull %190)
  br label %233

194:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #6
  %195 = getelementptr inbounds i8, ptr %190, i64 4
  %196 = load float, ptr %195, align 4, !tbaa !36
  %197 = fsub float %196, %.sroa.0.0.copyload
  %198 = getelementptr inbounds i8, ptr %190, i64 8
  %199 = load float, ptr %198, align 8, !tbaa !37
  %200 = fsub float %199, %.sroa.5.0.copyload
  %201 = getelementptr inbounds i8, ptr %190, i64 12
  %202 = load float, ptr %201, align 4, !tbaa !38
  %203 = fsub float %202, %.sroa.0.0.copyload
  %204 = getelementptr inbounds i8, ptr %190, i64 16
  %205 = load float, ptr %204, align 8, !tbaa !39
  %206 = fsub float %205, %.sroa.5.0.copyload
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %19, float noundef %197, float noundef %200, float noundef %203, float noundef %206)
  %207 = load float, ptr %19, align 4, !tbaa !40
  %208 = fcmp olt float %207, %115
  br i1 %208, label %209, label %232

209:                                              ; preds = %194
  %210 = load float, ptr %116, align 4, !tbaa !41
  %211 = fcmp olt float %210, %117
  %212 = load float, ptr %118, align 4
  %213 = fcmp oge float %212, 0.000000e+00
  %or.cond4 = select i1 %211, i1 %213, i1 false
  %214 = load float, ptr %119, align 4
  %215 = fcmp oge float %214, 0.000000e+00
  %or.cond7 = select i1 %or.cond4, i1 %215, i1 false
  br i1 %or.cond7, label %216, label %232

216:                                              ; preds = %209
  %217 = load ptr, ptr @glad_glScissor, align 8, !tbaa !9
  %218 = fptosi float %207 to i32
  %219 = fsub float %117, %214
  %220 = fptosi float %219 to i32
  %221 = fsub float %212, %207
  %222 = fptosi float %221 to i32
  %223 = fsub float %214, %210
  %224 = fptosi float %223 to i32
  call void %217(i32 noundef %218, i32 noundef %220, i32 noundef %222, i32 noundef %224)
  %225 = load ptr, ptr @glad_glBindTexture, align 8, !tbaa !9
  %226 = getelementptr inbounds i8, ptr %190, i64 24
  %227 = load ptr, ptr %226, align 8, !tbaa !42
  %228 = ptrtoint ptr %227 to i64
  %229 = trunc i64 %228 to i32
  call void %225(i32 noundef 3553, i32 noundef %229)
  %230 = load ptr, ptr @glad_glDrawElements, align 8, !tbaa !9
  %231 = load i32, ptr %190, align 8, !tbaa !43
  call void %230(i32 noundef 4, i32 noundef %231, i32 noundef 5123, ptr noundef %.07286)
  br label %232

232:                                              ; preds = %216, %209, %194
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #6
  br label %233

233:                                              ; preds = %232, %193
  %234 = load i32, ptr %190, align 8, !tbaa !43
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds i16, ptr %.07286, i64 %235
  %237 = add nuw nsw i32 %.088, 1
  %238 = load i32, ptr %166, align 8, !tbaa !30
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %.lr.ph, label %._crit_edge, !llvm.loop !44

240:                                              ; preds = %1, %._crit_edge92
  ret void
}

declare void @_ZN10ImDrawData14ScaleClipRectsERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) 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 @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"_ZTS10ImDrawData", !15, i64 0, !10, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !16, i64 28, !16, i64 36}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!17 = !{!14, !10, i64 8}
!18 = !{!19, !12, i64 32}
!19 = !{!"_ZTS10ImDrawList", !20, i64 0, !21, i64 16, !22, i64 32, !12, i64 48, !10, i64 56, !10, i64 64, !12, i64 72, !10, i64 80, !10, i64 88, !23, i64 96, !24, i64 112, !25, i64 128, !12, i64 144, !12, i64 148, !26, i64 152}
!20 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !10, i64 8}
!21 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !10, i64 8}
!22 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !10, i64 8}
!23 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !10, i64 8}
!24 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !10, i64 8}
!25 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !10, i64 8}
!26 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !10, i64 8}
!27 = !{!19, !10, i64 40}
!28 = !{!19, !12, i64 16}
!29 = !{!19, !10, i64 24}
!30 = !{!19, !12, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!34, !10, i64 32}
!34 = !{!"_ZTS9ImDrawCmd", !12, i64 0, !35, i64 4, !10, i64 24, !10, i64 32, !10, i64 40}
!35 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!36 = !{!34, !6, i64 4}
!37 = !{!34, !6, i64 8}
!38 = !{!34, !6, i64 12}
!39 = !{!34, !6, i64 16}
!40 = !{!35, !6, i64 0}
!41 = !{!35, !6, i64 4}
!42 = !{!34, !10, i64 24}
!43 = !{!34, !12, i64 0}
!44 = distinct !{!44, !32}


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