; LLVM IR from BrunoLevy/learn-fpga :: LiteX/software/Libs/imgui (imgui_draw)

; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2 = type { float, float }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui24RenderRectFilledWithHoleEP10ImDrawList6ImRectS2_jf(ptr noundef %0, <2 x float> %1, <2 x float> %2, <2 x float> %3, <2 x float> %4, i32 noundef %5, float noundef %6) #3 {
  %8 = alloca %struct.ImRect, align 4
  %9 = alloca %struct.ImRect, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca %struct.ImVec2, align 4
  %25 = alloca %struct.ImVec2, align 4
  %26 = alloca %struct.ImVec2, align 4
  %27 = alloca %struct.ImVec2, align 4
  %28 = alloca %struct.ImVec2, align 4
  %29 = alloca %struct.ImVec2, align 4
  %30 = alloca %struct.ImVec2, align 4
  %31 = alloca %struct.ImVec2, align 4
  %32 = alloca %struct.ImVec2, align 4
  %33 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 0
  store <2 x float> %1, ptr %33, align 4
  %34 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %8, i32 0, i32 1
  store <2 x float> %2, ptr %34, align 4
  %35 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 0
  store <2 x float> %3, ptr %35, align 4
  %36 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %9, i32 0, i32 1
  store <2 x float> %4, ptr %36, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %5, ptr %11, align 4, !tbaa !9
  store float %6, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  %37 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %38 = getelementptr inbounds %struct.ImVec2, ptr %37, i32 0, i32 0
  %39 = load float, ptr %38, align 4, !tbaa !13
  %40 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 0
  %41 = getelementptr inbounds %struct.ImVec2, ptr %40, i32 0, i32 0
  %42 = load float, ptr %41, align 4, !tbaa !13
  %43 = fcmp ogt float %39, %42
  %44 = zext i1 %43 to i8
  store i8 %44, ptr %13, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  %45 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %46 = getelementptr inbounds %struct.ImVec2, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !18
  %48 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 1
  %49 = getelementptr inbounds %struct.ImVec2, ptr %48, i32 0, i32 0
  %50 = load float, ptr %49, align 4, !tbaa !18
  %51 = fcmp olt float %47, %50
  %52 = zext i1 %51 to i8
  store i8 %52, ptr %14, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  %53 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %54 = getelementptr inbounds %struct.ImVec2, ptr %53, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !19
  %56 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 0
  %57 = getelementptr inbounds %struct.ImVec2, ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !19
  %59 = fcmp ogt float %55, %58
  %60 = zext i1 %59 to i8
  store i8 %60, ptr %15, align 1, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %61 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %62 = getelementptr inbounds %struct.ImVec2, ptr %61, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !20
  %64 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 1
  %65 = getelementptr inbounds %struct.ImVec2, ptr %64, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !20
  %67 = fcmp olt float %63, %66
  %68 = zext i1 %67 to i8
  store i8 %68, ptr %16, align 1, !tbaa !16
  %69 = load i8, ptr %13, align 1, !tbaa !16, !range !21, !noundef !22
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %97

71:                                               ; preds = %7
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %73 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 0
  %74 = getelementptr inbounds %struct.ImVec2, ptr %73, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !13
  %76 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %77 = getelementptr inbounds %struct.ImVec2, ptr %76, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %75, float noundef %78)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %79 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %80 = getelementptr inbounds %struct.ImVec2, ptr %79, i32 0, i32 0
  %81 = load float, ptr %80, align 4, !tbaa !13
  %82 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %81, float noundef %84)
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = load float, ptr %12, align 4, !tbaa !11
  %87 = load i8, ptr %15, align 1, !tbaa !16, !range !21, !noundef !22
  %88 = trunc i8 %87 to i1
  %89 = zext i1 %88 to i64
  %90 = select i1 %88, i32 0, i32 16
  %91 = or i32 256, %90
  %92 = load i8, ptr %16, align 1, !tbaa !16, !range !21, !noundef !22
  %93 = trunc i8 %92 to i1
  %94 = zext i1 %93 to i64
  %95 = select i1 %93, i32 0, i32 64
  %96 = or i32 %91, %95
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %72, ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %18, i32 noundef %85, float noundef %86, i32 noundef %96)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %97

97:                                               ; preds = %71, %7
  %98 = load i8, ptr %14, align 1, !tbaa !16, !range !21, !noundef !22
  %99 = trunc i8 %98 to i1
  br i1 %99, label %100, label %126

100:                                              ; preds = %97
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %102 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %103 = getelementptr inbounds %struct.ImVec2, ptr %102, i32 0, i32 0
  %104 = load float, ptr %103, align 4, !tbaa !18
  %105 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %106 = getelementptr inbounds %struct.ImVec2, ptr %105, i32 0, i32 1
  %107 = load float, ptr %106, align 4, !tbaa !19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %104, float noundef %107)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %108 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 1
  %109 = getelementptr inbounds %struct.ImVec2, ptr %108, i32 0, i32 0
  %110 = load float, ptr %109, align 4, !tbaa !18
  %111 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %112 = getelementptr inbounds %struct.ImVec2, ptr %111, i32 0, i32 1
  %113 = load float, ptr %112, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %110, float noundef %113)
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = load float, ptr %12, align 4, !tbaa !11
  %116 = load i8, ptr %15, align 1, !tbaa !16, !range !21, !noundef !22
  %117 = trunc i8 %116 to i1
  %118 = zext i1 %117 to i64
  %119 = select i1 %117, i32 0, i32 32
  %120 = or i32 256, %119
  %121 = load i8, ptr %16, align 1, !tbaa !16, !range !21, !noundef !22
  %122 = trunc i8 %121 to i1
  %123 = zext i1 %122 to i64
  %124 = select i1 %122, i32 0, i32 128
  %125 = or i32 %120, %124
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %101, ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %20, i32 noundef %114, float noundef %115, i32 noundef %125)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %126

126:                                              ; preds = %100, %97
  %127 = load i8, ptr %15, align 1, !tbaa !16, !range !21, !noundef !22
  %128 = trunc i8 %127 to i1
  br i1 %128, label %129, label %155

129:                                              ; preds = %126
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %131 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %132 = getelementptr inbounds %struct.ImVec2, ptr %131, i32 0, i32 0
  %133 = load float, ptr %132, align 4, !tbaa !13
  %134 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 0
  %135 = getelementptr inbounds %struct.ImVec2, ptr %134, i32 0, i32 1
  %136 = load float, ptr %135, align 4, !tbaa !19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %133, float noundef %136)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %137 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %138 = getelementptr inbounds %struct.ImVec2, ptr %137, i32 0, i32 0
  %139 = load float, ptr %138, align 4, !tbaa !18
  %140 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %141 = getelementptr inbounds %struct.ImVec2, ptr %140, i32 0, i32 1
  %142 = load float, ptr %141, align 4, !tbaa !19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %22, float noundef %139, float noundef %142)
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = load float, ptr %12, align 4, !tbaa !11
  %145 = load i8, ptr %13, align 1, !tbaa !16, !range !21, !noundef !22
  %146 = trunc i8 %145 to i1
  %147 = zext i1 %146 to i64
  %148 = select i1 %146, i32 0, i32 16
  %149 = or i32 256, %148
  %150 = load i8, ptr %14, align 1, !tbaa !16, !range !21, !noundef !22
  %151 = trunc i8 %150 to i1
  %152 = zext i1 %151 to i64
  %153 = select i1 %151, i32 0, i32 32
  %154 = or i32 %149, %153
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %130, ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %22, i32 noundef %143, float noundef %144, i32 noundef %154)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %155

155:                                              ; preds = %129, %126
  %156 = load i8, ptr %16, align 1, !tbaa !16, !range !21, !noundef !22
  %157 = trunc i8 %156 to i1
  br i1 %157, label %158, label %184

158:                                              ; preds = %155
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %160 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %161 = getelementptr inbounds %struct.ImVec2, ptr %160, i32 0, i32 0
  %162 = load float, ptr %161, align 4, !tbaa !13
  %163 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %164 = getelementptr inbounds %struct.ImVec2, ptr %163, i32 0, i32 1
  %165 = load float, ptr %164, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %162, float noundef %165)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %166 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %167 = getelementptr inbounds %struct.ImVec2, ptr %166, i32 0, i32 0
  %168 = load float, ptr %167, align 4, !tbaa !18
  %169 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 1
  %170 = getelementptr inbounds %struct.ImVec2, ptr %169, i32 0, i32 1
  %171 = load float, ptr %170, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %168, float noundef %171)
  %172 = load i32, ptr %11, align 4, !tbaa !9
  %173 = load float, ptr %12, align 4, !tbaa !11
  %174 = load i8, ptr %13, align 1, !tbaa !16, !range !21, !noundef !22
  %175 = trunc i8 %174 to i1
  %176 = zext i1 %175 to i64
  %177 = select i1 %175, i32 0, i32 64
  %178 = or i32 256, %177
  %179 = load i8, ptr %14, align 1, !tbaa !16, !range !21, !noundef !22
  %180 = trunc i8 %179 to i1
  %181 = zext i1 %180 to i64
  %182 = select i1 %180, i32 0, i32 128
  %183 = or i32 %178, %182
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %159, ptr noundef nonnull align 4 dereferenceable(8) %23, ptr noundef nonnull align 4 dereferenceable(8) %24, i32 noundef %172, float noundef %173, i32 noundef %183)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %184

184:                                              ; preds = %158, %155
  %185 = load i8, ptr %13, align 1, !tbaa !16, !range !21, !noundef !22
  %186 = trunc i8 %185 to i1
  br i1 %186, label %187, label %206

187:                                              ; preds = %184
  %188 = load i8, ptr %15, align 1, !tbaa !16, !range !21, !noundef !22
  %189 = trunc i8 %188 to i1
  br i1 %189, label %190, label %206

190:                                              ; preds = %187
  %191 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %192 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 0
  %193 = getelementptr inbounds %struct.ImVec2, ptr %192, i32 0, i32 0
  %194 = load float, ptr %193, align 4, !tbaa !13
  %195 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 0
  %196 = getelementptr inbounds %struct.ImVec2, ptr %195, i32 0, i32 1
  %197 = load float, ptr %196, align 4, !tbaa !19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %25, float noundef %194, float noundef %197)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %198 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %199 = getelementptr inbounds %struct.ImVec2, ptr %198, i32 0, i32 0
  %200 = load float, ptr %199, align 4, !tbaa !13
  %201 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %202 = getelementptr inbounds %struct.ImVec2, ptr %201, i32 0, i32 1
  %203 = load float, ptr %202, align 4, !tbaa !19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %26, float noundef %200, float noundef %203)
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = load float, ptr %12, align 4, !tbaa !11
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %191, ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %26, i32 noundef %204, float noundef %205, i32 noundef 16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %206

206:                                              ; preds = %190, %187, %184
  %207 = load i8, ptr %14, align 1, !tbaa !16, !range !21, !noundef !22
  %208 = trunc i8 %207 to i1
  br i1 %208, label %209, label %228

209:                                              ; preds = %206
  %210 = load i8, ptr %15, align 1, !tbaa !16, !range !21, !noundef !22
  %211 = trunc i8 %210 to i1
  br i1 %211, label %212, label %228

212:                                              ; preds = %209
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %214 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %215 = getelementptr inbounds %struct.ImVec2, ptr %214, i32 0, i32 0
  %216 = load float, ptr %215, align 4, !tbaa !18
  %217 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 0
  %218 = getelementptr inbounds %struct.ImVec2, ptr %217, i32 0, i32 1
  %219 = load float, ptr %218, align 4, !tbaa !19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %27, float noundef %216, float noundef %219)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %220 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 1
  %221 = getelementptr inbounds %struct.ImVec2, ptr %220, i32 0, i32 0
  %222 = load float, ptr %221, align 4, !tbaa !18
  %223 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %224 = getelementptr inbounds %struct.ImVec2, ptr %223, i32 0, i32 1
  %225 = load float, ptr %224, align 4, !tbaa !19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %28, float noundef %222, float noundef %225)
  %226 = load i32, ptr %11, align 4, !tbaa !9
  %227 = load float, ptr %12, align 4, !tbaa !11
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %213, ptr noundef nonnull align 4 dereferenceable(8) %27, ptr noundef nonnull align 4 dereferenceable(8) %28, i32 noundef %226, float noundef %227, i32 noundef 32)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  br label %228

228:                                              ; preds = %212, %209, %206
  %229 = load i8, ptr %13, align 1, !tbaa !16, !range !21, !noundef !22
  %230 = trunc i8 %229 to i1
  br i1 %230, label %231, label %250

231:                                              ; preds = %228
  %232 = load i8, ptr %16, align 1, !tbaa !16, !range !21, !noundef !22
  %233 = trunc i8 %232 to i1
  br i1 %233, label %234, label %250

234:                                              ; preds = %231
  %235 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %236 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 0
  %237 = getelementptr inbounds %struct.ImVec2, ptr %236, i32 0, i32 0
  %238 = load float, ptr %237, align 4, !tbaa !13
  %239 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %240 = getelementptr inbounds %struct.ImVec2, ptr %239, i32 0, i32 1
  %241 = load float, ptr %240, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %29, float noundef %238, float noundef %241)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %242 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 0
  %243 = getelementptr inbounds %struct.ImVec2, ptr %242, i32 0, i32 0
  %244 = load float, ptr %243, align 4, !tbaa !13
  %245 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 1
  %246 = getelementptr inbounds %struct.ImVec2, ptr %245, i32 0, i32 1
  %247 = load float, ptr %246, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %30, float noundef %244, float noundef %247)
  %248 = load i32, ptr %11, align 4, !tbaa !9
  %249 = load float, ptr %12, align 4, !tbaa !11
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %235, ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %30, i32 noundef %248, float noundef %249, i32 noundef 64)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %250

250:                                              ; preds = %234, %231, %228
  %251 = load i8, ptr %14, align 1, !tbaa !16, !range !21, !noundef !22
  %252 = trunc i8 %251 to i1
  br i1 %252, label %253, label %272

253:                                              ; preds = %250
  %254 = load i8, ptr %16, align 1, !tbaa !16, !range !21, !noundef !22
  %255 = trunc i8 %254 to i1
  br i1 %255, label %256, label %272

256:                                              ; preds = %253
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %258 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %259 = getelementptr inbounds %struct.ImVec2, ptr %258, i32 0, i32 0
  %260 = load float, ptr %259, align 4, !tbaa !18
  %261 = getelementptr inbounds %struct.ImRect, ptr %9, i32 0, i32 1
  %262 = getelementptr inbounds %struct.ImVec2, ptr %261, i32 0, i32 1
  %263 = load float, ptr %262, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %31, float noundef %260, float noundef %263)
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %264 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 1
  %265 = getelementptr inbounds %struct.ImVec2, ptr %264, i32 0, i32 0
  %266 = load float, ptr %265, align 4, !tbaa !18
  %267 = getelementptr inbounds %struct.ImRect, ptr %8, i32 0, i32 1
  %268 = getelementptr inbounds %struct.ImVec2, ptr %267, i32 0, i32 1
  %269 = load float, ptr %268, align 4, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %32, float noundef %266, float noundef %269)
  %270 = load i32, ptr %11, align 4, !tbaa !9
  %271 = load float, ptr %12, align 4, !tbaa !11
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %257, ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(8) %32, i32 noundef %270, float noundef %271, i32 noundef 128)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  br label %272

272:                                              ; preds = %256, %253, %250
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS6ImRect", !15, i64 0, !15, i64 8}
!15 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!14, !12, i64 8}
!19 = !{!14, !12, i64 4}
!20 = !{!14, !12, i64 12}
!21 = !{i8 0, i8 2}
!22 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImVec2 = type { float, float }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui24RenderRectFilledWithHoleEP10ImDrawList6ImRectS2_jf(ptr noundef %0, <2 x float> %1, <2 x float> %2, <2 x float> %3, <2 x float> %4, i32 noundef %5, float noundef %6) local_unnamed_addr #3 {
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.ImVec2, align 4
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.ImVec2, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.ImVec2, align 4
  %19 = alloca %struct.ImVec2, align 4
  %20 = alloca %struct.ImVec2, align 4
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca %struct.ImVec2, align 4
  %23 = alloca %struct.ImVec2, align 4
  %.sroa.0.0.vec.extract = extractelement <2 x float> %3, i64 0
  %.sroa.083.0.vec.extract = extractelement <2 x float> %1, i64 0
  %24 = fcmp ule float %.sroa.0.0.vec.extract, %.sroa.083.0.vec.extract
  %.sroa.13.8.vec.extract = extractelement <2 x float> %4, i64 0
  %.sroa.9.8.vec.extract = extractelement <2 x float> %2, i64 0
  %25 = fcmp uge float %.sroa.13.8.vec.extract, %.sroa.9.8.vec.extract
  %.sroa.0.4.vec.extract = extractelement <2 x float> %3, i64 1
  %.sroa.083.4.vec.extract = extractelement <2 x float> %1, i64 1
  %26 = fcmp ule float %.sroa.0.4.vec.extract, %.sroa.083.4.vec.extract
  %.sroa.13.12.vec.extract = extractelement <2 x float> %4, i64 1
  %.sroa.9.12.vec.extract = extractelement <2 x float> %2, i64 1
  %27 = fcmp uge float %.sroa.13.12.vec.extract, %.sroa.9.12.vec.extract
  br i1 %24, label %32, label %28

28:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %.sroa.083.0.vec.extract, float noundef %.sroa.0.4.vec.extract)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %.sroa.0.0.vec.extract, float noundef %.sroa.13.12.vec.extract)
  %29 = select i1 %26, i32 272, i32 256
  %30 = select i1 %27, i32 64, i32 0
  %31 = or disjoint i32 %30, %29
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef %5, float noundef %6, i32 noundef %31)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %32

32:                                               ; preds = %28, %7
  br i1 %25, label %37, label %33

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %.sroa.13.8.vec.extract, float noundef %.sroa.0.4.vec.extract)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %.sroa.9.8.vec.extract, float noundef %.sroa.13.12.vec.extract)
  %34 = select i1 %26, i32 288, i32 256
  %35 = select i1 %27, i32 128, i32 0
  %36 = or disjoint i32 %35, %34
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %10, ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef %5, float noundef %6, i32 noundef %36)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %37

37:                                               ; preds = %33, %32
  br i1 %26, label %42, label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef %.sroa.0.0.vec.extract, float noundef %.sroa.083.4.vec.extract)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef %.sroa.13.8.vec.extract, float noundef %.sroa.0.4.vec.extract)
  %39 = select i1 %24, i32 272, i32 256
  %40 = select i1 %25, i32 32, i32 0
  %41 = or disjoint i32 %40, %39
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef %5, float noundef %6, i32 noundef %41)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br label %42

42:                                               ; preds = %38, %37
  br i1 %27, label %47, label %43

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef %.sroa.0.0.vec.extract, float noundef %.sroa.13.12.vec.extract)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %.sroa.13.8.vec.extract, float noundef %.sroa.9.12.vec.extract)
  %44 = select i1 %24, i32 320, i32 256
  %45 = select i1 %25, i32 128, i32 0
  %46 = or disjoint i32 %45, %44
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef %5, float noundef %6, i32 noundef %46)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  br label %47

47:                                               ; preds = %43, %42
  %brmerge = select i1 %24, i1 true, i1 %26
  br i1 %brmerge, label %49, label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef %.sroa.083.0.vec.extract, float noundef %.sroa.083.4.vec.extract)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %.sroa.0.0.vec.extract, float noundef %.sroa.0.4.vec.extract)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef %5, float noundef %6, i32 noundef 16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  br label %49

49:                                               ; preds = %47, %48
  %brmerge111 = select i1 %25, i1 true, i1 %26
  br i1 %brmerge111, label %51, label %50

50:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %18, float noundef %.sroa.13.8.vec.extract, float noundef %.sroa.083.4.vec.extract)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef %.sroa.9.8.vec.extract, float noundef %.sroa.0.4.vec.extract)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %19, i32 noundef %5, float noundef %6, i32 noundef 32)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  br label %51

51:                                               ; preds = %49, %50
  %brmerge114 = select i1 %24, i1 true, i1 %27
  br i1 %brmerge114, label %53, label %52

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef %.sroa.083.0.vec.extract, float noundef %.sroa.13.12.vec.extract)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %.sroa.0.0.vec.extract, float noundef %.sroa.9.12.vec.extract)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %21, i32 noundef %5, float noundef %6, i32 noundef 64)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
  br label %53

53:                                               ; preds = %51, %52
  %brmerge117 = select i1 %25, i1 true, i1 %27
  br i1 %brmerge117, label %55, label %54

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %22, float noundef %.sroa.13.8.vec.extract, float noundef %.sroa.13.12.vec.extract)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %.sroa.9.8.vec.extract, float noundef %.sroa.9.12.vec.extract)
  call void @_ZN10ImDrawList13AddRectFilledERK6ImVec2S2_jfi(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef %5, float noundef %6, i32 noundef 128)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #4
  br label %55

55:                                               ; preds = %53, %54
  ret void
}

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass