; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (implot)

; 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 noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot14RenderColorBarEPKjiR10ImDrawListRK6ImRectbbb(ptr noundef %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, i1 noundef zeroext %4, i1 noundef zeroext %5, i1 noundef zeroext %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca %struct.ImRect, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca %struct.ImRect, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  %24 = zext i1 %4 to i8
  store i8 %24, ptr %12, align 1, !tbaa !11
  %25 = zext i1 %5 to i8
  store i8 %25, ptr %13, align 1, !tbaa !11
  %26 = zext i1 %6 to i8
  store i8 %26, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %27 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %32

29:                                               ; preds = %7
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = sub nsw i32 %30, 1
  br label %34

32:                                               ; preds = %7
  %33 = load i32, ptr %9, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %32, %29
  %35 = phi i32 [ %31, %29 ], [ %33, %32 ]
  store i32 %35, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %36 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %126

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %39 = load ptr, ptr %11, align 8, !tbaa !5
  %40 = call noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %39)
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = sitofp i32 %41 to float
  %43 = fdiv float %40, %42
  store float %43, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ImRect, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %struct.ImVec2, ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !17
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ImRect, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %struct.ImVec2, ptr %49, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !20
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ImRect, ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds %struct.ImVec2, ptr %53, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !21
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ImRect, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %struct.ImVec2, ptr %57, i32 0, i32 1
  %59 = load float, ptr %58, align 4, !tbaa !20
  %60 = load float, ptr %18, align 4, !tbaa !15
  %61 = fadd float %59, %60
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %19, float noundef %47, float noundef %51, float noundef %55, float noundef %61)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %122, %38
  %63 = load i32, ptr %20, align 4, !tbaa !9
  %64 = load i32, ptr %15, align 4, !tbaa !9
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %125

67:                                               ; preds = %62
  %68 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %69 = trunc i8 %68 to i1
  br i1 %69, label %70, label %94

70:                                               ; preds = %67
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = load i32, ptr %20, align 4, !tbaa !9
  %74 = sub nsw i32 %72, %73
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %71, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !9
  store i32 %78, ptr %16, align 4, !tbaa !9
  %79 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %90

81:                                               ; preds = %70
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = load i32, ptr %20, align 4, !tbaa !9
  %85 = sub nsw i32 %83, %84
  %86 = sub nsw i32 %85, 2
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %82, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !9
  br label %92

90:                                               ; preds = %70
  %91 = load i32, ptr %16, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %90, %81
  %93 = phi i32 [ %89, %81 ], [ %91, %90 ]
  store i32 %93, ptr %17, align 4, !tbaa !9
  br label %113

94:                                               ; preds = %67
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load i32, ptr %20, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  store i32 %99, ptr %16, align 4, !tbaa !9
  %100 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %109

102:                                              ; preds = %94
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i32, ptr %20, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %103, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !9
  br label %111

109:                                              ; preds = %94
  %110 = load i32, ptr %16, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %109, %102
  %112 = phi i32 [ %108, %102 ], [ %110, %109 ]
  store i32 %112, ptr %17, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %111, %92
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ImRect, ptr %19, i32 0, i32 0
  %116 = getelementptr inbounds %struct.ImRect, ptr %19, i32 0, i32 1
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = load i32, ptr %17, align 4, !tbaa !9
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %114, ptr noundef nonnull align 4 dereferenceable(8) %115, ptr noundef nonnull align 4 dereferenceable(8) %116, i32 noundef %117, i32 noundef %118, i32 noundef %119, i32 noundef %120)
  %121 = load float, ptr %18, align 4, !tbaa !15
  call void @_ZN6ImRect10TranslateYEf(ptr noundef nonnull align 4 dereferenceable(16) %19, float noundef %121)
  br label %122

122:                                              ; preds = %113
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %20, align 4, !tbaa !9
  br label %62, !llvm.loop !22

125:                                              ; preds = %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %214

126:                                              ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = call noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %127)
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = sitofp i32 %129 to float
  %131 = fdiv float %128, %130
  store float %131, ptr %21, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImRect, ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds %struct.ImVec2, ptr %133, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !17
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ImRect, ptr %136, i32 0, i32 0
  %138 = getelementptr inbounds %struct.ImVec2, ptr %137, i32 0, i32 1
  %139 = load float, ptr %138, align 4, !tbaa !20
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ImRect, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds %struct.ImVec2, ptr %141, i32 0, i32 0
  %143 = load float, ptr %142, align 4, !tbaa !17
  %144 = load float, ptr %21, align 4, !tbaa !15
  %145 = fadd float %143, %144
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ImRect, ptr %146, i32 0, i32 1
  %148 = getelementptr inbounds %struct.ImVec2, ptr %147, i32 0, i32 1
  %149 = load float, ptr %148, align 4, !tbaa !24
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %135, float noundef %139, float noundef %145, float noundef %149)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %210, %126
  %151 = load i32, ptr %23, align 4, !tbaa !9
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %213

155:                                              ; preds = %150
  %156 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %157 = trunc i8 %156 to i1
  br i1 %157, label %158, label %182

158:                                              ; preds = %155
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = load i32, ptr %9, align 4, !tbaa !9
  %161 = load i32, ptr %23, align 4, !tbaa !9
  %162 = sub nsw i32 %160, %161
  %163 = sub nsw i32 %162, 1
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i32, ptr %159, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !9
  store i32 %166, ptr %16, align 4, !tbaa !9
  %167 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %168 = trunc i8 %167 to i1
  br i1 %168, label %169, label %178

169:                                              ; preds = %158
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = load i32, ptr %9, align 4, !tbaa !9
  %172 = load i32, ptr %23, align 4, !tbaa !9
  %173 = sub nsw i32 %171, %172
  %174 = sub nsw i32 %173, 2
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i32, ptr %170, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !9
  br label %180

178:                                              ; preds = %158
  %179 = load i32, ptr %16, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %178, %169
  %181 = phi i32 [ %177, %169 ], [ %179, %178 ]
  store i32 %181, ptr %17, align 4, !tbaa !9
  br label %201

182:                                              ; preds = %155
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = load i32, ptr %23, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i32, ptr %183, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !9
  store i32 %187, ptr %16, align 4, !tbaa !9
  %188 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %189 = trunc i8 %188 to i1
  br i1 %189, label %190, label %197

190:                                              ; preds = %182
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = load i32, ptr %23, align 4, !tbaa !9
  %193 = add nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i32, ptr %191, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !9
  br label %199

197:                                              ; preds = %182
  %198 = load i32, ptr %16, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %197, %190
  %200 = phi i32 [ %196, %190 ], [ %198, %197 ]
  store i32 %200, ptr %17, align 4, !tbaa !9
  br label %201

201:                                              ; preds = %199, %180
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.ImRect, ptr %22, i32 0, i32 0
  %204 = getelementptr inbounds %struct.ImRect, ptr %22, i32 0, i32 1
  %205 = load i32, ptr %16, align 4, !tbaa !9
  %206 = load i32, ptr %17, align 4, !tbaa !9
  %207 = load i32, ptr %17, align 4, !tbaa !9
  %208 = load i32, ptr %16, align 4, !tbaa !9
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %202, ptr noundef nonnull align 4 dereferenceable(8) %203, ptr noundef nonnull align 4 dereferenceable(8) %204, i32 noundef %205, i32 noundef %206, i32 noundef %207, i32 noundef %208)
  %209 = load float, ptr %21, align 4, !tbaa !15
  call void @_ZN6ImRect10TranslateXEf(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %209)
  br label %210

210:                                              ; preds = %201
  %211 = load i32, ptr %23, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %23, align 4, !tbaa !9
  br label %150, !llvm.loop !25

213:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %214

214:                                              ; preds = %213, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  ret void
}

declare void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

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

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 = { "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 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !16, i64 0}
!18 = !{!"_ZTS6ImRect", !19, i64 0, !19, i64 8}
!19 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!20 = !{!18, !16, i64 4}
!21 = !{!18, !16, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!18, !16, i64 12}
!25 = distinct !{!25, !23}


; 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.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%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 noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6ImPlot14RenderColorBarEPKjiR10ImDrawListRK6ImRectbbb(ptr nocapture noundef readonly %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(16) %3, i1 noundef zeroext %4, i1 noundef zeroext %5, i1 noundef zeroext %6) local_unnamed_addr #2 {
  %8 = alloca %struct.ImRect, align 4
  %9 = alloca %struct.ImRect, align 4
  %10 = sext i1 %6 to i32
  %11 = add i32 %10, %1
  %12 = sitofp i32 %11 to float
  %13 = getelementptr inbounds i8, ptr %3, i64 4
  %14 = icmp sgt i32 %11, 0
  br i1 %4, label %15, label %39

15:                                               ; preds = %7
  %16 = tail call noundef float @_ZNK6ImRect9GetHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %3)
  %17 = fdiv float %16, %12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  %18 = load float, ptr %3, align 4, !tbaa !5
  %19 = load float, ptr %13, align 4, !tbaa !11
  %20 = getelementptr inbounds i8, ptr %3, i64 8
  %21 = load float, ptr %20, align 4, !tbaa !12
  %22 = fadd float %17, %19
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %18, float noundef %19, float noundef %21, float noundef %22)
  br i1 %14, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %15
  %23 = getelementptr inbounds i8, ptr %8, i64 8
  br i1 %5, label %.lr.ph74.split.us.preheader, label %.lr.ph74.split

.lr.ph74.split.us.preheader:                      ; preds = %.lr.ph74
  %24 = sext i32 %1 to i64
  %wide.trip.count112 = zext nneg i32 %11 to i64
  br label %.lr.ph74.split.us

.lr.ph74.split.us:                                ; preds = %.lr.ph74.split.us.preheader, %32
  %indvars.iv109 = phi i64 [ 0, %.lr.ph74.split.us.preheader ], [ %indvars.iv.next110, %32 ]
  %25 = sub nsw i64 %24, %indvars.iv109
  %26 = getelementptr i32, ptr %0, i64 %25
  %27 = getelementptr i8, ptr %26, i64 -4
  %28 = load i32, ptr %27, align 4, !tbaa !13
  br i1 %6, label %29, label %32

29:                                               ; preds = %.lr.ph74.split.us
  %30 = getelementptr i8, ptr %26, i64 -8
  %31 = load i32, ptr %30, align 4, !tbaa !13
  br label %32

32:                                               ; preds = %29, %.lr.ph74.split.us
  %.067.us = phi i32 [ %31, %29 ], [ %28, %.lr.ph74.split.us ]
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef %28, i32 noundef %28, i32 noundef %.067.us, i32 noundef %.067.us)
  call void @_ZN6ImRect10TranslateYEf(ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %17)
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond113.not = icmp eq i64 %indvars.iv.next110, %wide.trip.count112
  br i1 %exitcond113.not, label %._crit_edge75, label %.lr.ph74.split.us, !llvm.loop !15

.lr.ph74.split:                                   ; preds = %.lr.ph74
  %wide.trip.count107 = zext nneg i32 %11 to i64
  br i1 %6, label %.lr.ph74.split.split.us, label %.lr.ph74.split.split

.lr.ph74.split.split.us:                          ; preds = %.lr.ph74.split, %.lr.ph74.split.split.us
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %.lr.ph74.split.split.us ], [ 0, %.lr.ph74.split ]
  %33 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv104
  %34 = load i32, ptr %33, align 4, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %33, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !13
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef %34, i32 noundef %34, i32 noundef %36, i32 noundef %36)
  call void @_ZN6ImRect10TranslateYEf(ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %17)
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond108.not = icmp eq i64 %indvars.iv.next105, %wide.trip.count107
  br i1 %exitcond108.not, label %._crit_edge75, label %.lr.ph74.split.split.us, !llvm.loop !15

._crit_edge75:                                    ; preds = %.lr.ph74.split.split, %.lr.ph74.split.split.us, %32, %15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %65

.lr.ph74.split.split:                             ; preds = %.lr.ph74.split, %.lr.ph74.split.split
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph74.split.split ], [ 0, %.lr.ph74.split ]
  %37 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv99
  %38 = load i32, ptr %37, align 4, !tbaa !13
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %23, i32 noundef %38, i32 noundef %38, i32 noundef %38, i32 noundef %38)
  call void @_ZN6ImRect10TranslateYEf(ptr noundef nonnull align 4 dereferenceable(16) %8, float noundef %17)
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next100, %wide.trip.count107
  br i1 %exitcond103.not, label %._crit_edge75, label %.lr.ph74.split.split, !llvm.loop !15

39:                                               ; preds = %7
  %40 = tail call noundef float @_ZNK6ImRect8GetWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %3)
  %41 = fdiv float %40, %12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %42 = load float, ptr %3, align 4, !tbaa !5
  %43 = load float, ptr %13, align 4, !tbaa !11
  %44 = fadd float %41, %42
  %45 = getelementptr inbounds i8, ptr %3, i64 12
  %46 = load float, ptr %45, align 4, !tbaa !17
  call void @_ZN6ImRectC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %42, float noundef %43, float noundef %44, float noundef %46)
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %39
  %47 = getelementptr inbounds i8, ptr %9, i64 8
  br i1 %5, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  br i1 %6, label %.lr.ph.split.us.split.us.preheader, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us.preheader:               ; preds = %.lr.ph.split.us
  %48 = sext i32 %1 to i64
  %wide.trip.count97 = zext nneg i32 %11 to i64
  br label %.lr.ph.split.us.split.us

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us.split.us.preheader, %.lr.ph.split.us.split.us
  %indvars.iv94 = phi i64 [ 0, %.lr.ph.split.us.split.us.preheader ], [ %indvars.iv.next95, %.lr.ph.split.us.split.us ]
  %49 = sub nsw i64 %48, %indvars.iv94
  %50 = getelementptr i32, ptr %0, i64 %49
  %51 = getelementptr i8, ptr %50, i64 -4
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = getelementptr i8, ptr %50, i64 -8
  %54 = load i32, ptr %53, align 4, !tbaa !13
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %47, i32 noundef %52, i32 noundef %54, i32 noundef %54, i32 noundef %52)
  call void @_ZN6ImRect10TranslateXEf(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %41)
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next95, %wide.trip.count97
  br i1 %exitcond98.not, label %._crit_edge, label %.lr.ph.split.us.split.us, !llvm.loop !18

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us
  %invariant.gep = getelementptr i8, ptr %0, i64 -4
  %55 = sext i32 %1 to i64
  %wide.trip.count92 = zext nneg i32 %11 to i64
  br label %56

56:                                               ; preds = %56, %.lr.ph.split.us.split
  %indvars.iv89 = phi i64 [ %indvars.iv.next90, %56 ], [ 0, %.lr.ph.split.us.split ]
  %57 = sub nsw i64 %55, %indvars.iv89
  %gep = getelementptr i32, ptr %invariant.gep, i64 %57
  %58 = load i32, ptr %gep, align 4, !tbaa !13
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %47, i32 noundef %58, i32 noundef %58, i32 noundef %58, i32 noundef %58)
  call void @_ZN6ImRect10TranslateXEf(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %41)
  %indvars.iv.next90 = add nuw nsw i64 %indvars.iv89, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next90, %wide.trip.count92
  br i1 %exitcond93.not, label %._crit_edge, label %56, !llvm.loop !18

.lr.ph.split:                                     ; preds = %.lr.ph
  %wide.trip.count87 = zext nneg i32 %11 to i64
  br i1 %6, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %.lr.ph.split.split.us
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph.split.split.us ], [ 0, %.lr.ph.split ]
  %59 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv84
  %60 = load i32, ptr %59, align 4, !tbaa !13
  %61 = getelementptr inbounds i8, ptr %59, i64 4
  %62 = load i32, ptr %61, align 4, !tbaa !13
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %47, i32 noundef %60, i32 noundef %62, i32 noundef %62, i32 noundef %60)
  call void @_ZN6ImRect10TranslateXEf(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %41)
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next85, %wide.trip.count87
  br i1 %exitcond88.not, label %._crit_edge, label %.lr.ph.split.split.us, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph.split.split, %.lr.ph.split.split.us, %56, %.lr.ph.split.us.split.us, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  br label %65

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %.lr.ph.split.split
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph.split.split ], [ 0, %.lr.ph.split ]
  %63 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  %64 = load i32, ptr %63, align 4, !tbaa !13
  call void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196) %2, ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %47, i32 noundef %64, i32 noundef %64, i32 noundef %64, i32 noundef %64)
  call void @_ZN6ImRect10TranslateXEf(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef %41)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count87
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split.split, !llvm.loop !18

65:                                               ; preds = %._crit_edge, %._crit_edge75
  ret void
}

declare void @_ZN10ImDrawList23AddRectFilledMultiColorERK6ImVec2S2_jjjj(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

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 = { "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, !8, i64 0}
!6 = !{!"_ZTS6ImRect", !7, i64 0, !7, i64 8}
!7 = !{!"_ZTS6ImVec2", !8, i64 0, !8, i64 4}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!6, !8, i64 4}
!12 = !{!6, !8, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !9, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !8, i64 12}
!18 = distinct !{!18, !16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass