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

; 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.ImGuiWindow = type <{ ptr, ptr, i32, i32, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i16, i16, i16, i32, i8, i8, i8, i8, i32, i8, i8, i8, i8, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVector.9, %struct.ImGuiWindowTempData, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImRect, %struct.ImVec2ih, %struct.ImVec2ih, i32, float, float, [4 x i8], %struct.ImGuiStorage, %struct.ImVector.32, float, i32, ptr, %struct.ImDrawList, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [2 x i32], [2 x %struct.ImRect], i32, i32, i32, i8, [3 x i8] }>
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImGuiWindowTempData = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, %struct.ImVec1, %struct.ImVec1, %struct.ImVec1, %struct.ImVec2, i32, i16, i16, i8, i8, i8, i8, %struct.ImVec2, %struct.ImGuiMenuColumns, i32, i32, %struct.ImVector.2, ptr, ptr, i32, i32, i32, float, float, %struct.ImVector.18, %struct.ImVector.18 }
%struct.ImVec1 = type { float }
%struct.ImGuiMenuColumns = type <{ i32, i32, i16, i16, i16, i16, i16, [4 x i16], [2 x i8] }>
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVec2ih = type { i16, i16 }
%struct.ImGuiStorage = type { %struct.ImVector.4 }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.32 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.33, %struct.ImVector, %struct.ImVector.34, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.35, %struct.ImVector.36, %struct.ImVector.0, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.33 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVector.34 = type { i32, i32, ptr }
%struct.ImVector.35 = type { i32, i32, ptr }
%struct.ImVector.36 = type { i32, i32, ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.19 }
%struct.ImVector.19 = type { i32, i32, ptr }

@.str.3 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui13SetWindowSizeEP11ImGuiWindowRK6ImVec2i = external hidden unnamed_addr constant [68 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui13SetWindowSizeEP11ImGuiWindowRK6ImVec2i(ptr noundef %0, ptr noundef nonnull align 4 dereferenceable(8) %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %8 = load i32, ptr %6, align 4, !tbaa !9
  %9 = icmp ne i32 %8, 0
  br i1 %9, label %10, label %20

10:                                               ; preds = %3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ImGuiWindow, ptr %11, i32 0, i32 58
  %13 = load i32, ptr %12, align 4
  %14 = shl i32 %13, 16
  %15 = ashr i32 %14, 24
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = and i32 %15, %16
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %20

19:                                               ; preds = %10
  br label %117

20:                                               ; preds = %10, %3
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %26, label %23

23:                                               ; preds = %20
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = call noundef zeroext i1 @_ZL14ImIsPowerOfTwoi(i32 noundef %24)
  br label %26

26:                                               ; preds = %23, %20
  %27 = phi i1 [ true, %20 ], [ %25, %23 ]
  br i1 %27, label %28, label %29

28:                                               ; preds = %26
  br label %31

29:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.153, ptr noundef @.str.3, i32 noundef 7322, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui13SetWindowSizeEP11ImGuiWindowRK6ImVec2i) #6
  unreachable

30:                                               ; No predecessors!
  br label %31

31:                                               ; preds = %30, %28
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ImGuiWindow, ptr %32, i32 0, i32 58
  %34 = load i32, ptr %33, align 4
  %35 = shl i32 %34, 16
  %36 = ashr i32 %35, 24
  %37 = and i32 %36, -15
  %38 = load i32, ptr %33, align 4
  %39 = and i32 %37, 255
  %40 = shl i32 %39, 8
  %41 = and i32 %38, -65281
  %42 = or i32 %41, %40
  store i32 %42, ptr %33, align 4
  %43 = shl i32 %39, 24
  %44 = ashr i32 %43, 24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImGuiWindow, ptr %45, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 8 %46, i64 8, i1 false), !tbaa.struct !11
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ImVec2, ptr %47, i32 0, i32 0
  %49 = load float, ptr %48, align 4, !tbaa !14
  %50 = fcmp ole float %49, 0.000000e+00
  %51 = zext i1 %50 to i64
  %52 = select i1 %50, i32 2, i32 0
  %53 = trunc i32 %52 to i8
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.ImGuiWindow, ptr %54, i32 0, i32 49
  store i8 %53, ptr %55, align 8, !tbaa !16
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ImVec2, ptr %56, i32 0, i32 1
  %58 = load float, ptr %57, align 4, !tbaa !43
  %59 = fcmp ole float %58, 0.000000e+00
  %60 = zext i1 %59 to i64
  %61 = select i1 %59, i32 2, i32 0
  %62 = trunc i32 %61 to i8
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ImGuiWindow, ptr %63, i32 0, i32 50
  store i8 %62, ptr %64, align 1, !tbaa !44
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImVec2, ptr %65, i32 0, i32 0
  %67 = load float, ptr %66, align 4, !tbaa !14
  %68 = fcmp ole float %67, 0.000000e+00
  br i1 %68, label %69, label %72

69:                                               ; preds = %31
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ImGuiWindow, ptr %70, i32 0, i32 52
  store i8 0, ptr %71, align 1, !tbaa !45
  br label %81

72:                                               ; preds = %31
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ImVec2, ptr %73, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !14
  %76 = fptosi float %75 to i32
  %77 = sitofp i32 %76 to float
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ImGuiWindow, ptr %78, i32 0, i32 7
  %80 = getelementptr inbounds %struct.ImVec2, ptr %79, i32 0, i32 0
  store float %77, ptr %80, align 8, !tbaa !46
  br label %81

81:                                               ; preds = %72, %69
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ImVec2, ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !43
  %85 = fcmp ole float %84, 0.000000e+00
  br i1 %85, label %86, label %89

86:                                               ; preds = %81
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImGuiWindow, ptr %87, i32 0, i32 52
  store i8 0, ptr %88, align 1, !tbaa !45
  br label %98

89:                                               ; preds = %81
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ImVec2, ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !43
  %93 = fptosi float %92 to i32
  %94 = sitofp i32 %93 to float
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ImGuiWindow, ptr %95, i32 0, i32 7
  %97 = getelementptr inbounds %struct.ImVec2, ptr %96, i32 0, i32 1
  store float %94, ptr %97, align 4, !tbaa !47
  br label %98

98:                                               ; preds = %89, %86
  %99 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 0
  %100 = load float, ptr %99, align 4, !tbaa !14
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ImGuiWindow, ptr %101, i32 0, i32 7
  %103 = getelementptr inbounds %struct.ImVec2, ptr %102, i32 0, i32 0
  %104 = load float, ptr %103, align 8, !tbaa !46
  %105 = fcmp une float %100, %104
  br i1 %105, label %114, label %106

106:                                              ; preds = %98
  %107 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 1
  %108 = load float, ptr %107, align 4, !tbaa !43
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ImGuiWindow, ptr %109, i32 0, i32 7
  %111 = getelementptr inbounds %struct.ImVec2, ptr %110, i32 0, i32 1
  %112 = load float, ptr %111, align 4, !tbaa !47
  %113 = fcmp une float %108, %112
  br i1 %113, label %114, label %116

114:                                              ; preds = %106, %98
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN5ImGui20MarkIniSettingsDirtyEP11ImGuiWindow(ptr noundef %115)
  br label %116

116:                                              ; preds = %114, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %117

117:                                              ; preds = %116, %19
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ImGui20MarkIniSettingsDirtyEP11ImGuiWindow(ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL14ImIsPowerOfTwoi(i32 noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "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"="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 = { 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 #6 = { noreturn nounwind }
attributes #7 = { 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 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!16 = !{!17, !7, i64 208}
!17 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !15, i64 132, !15, i64 140, !15, i64 148, !15, i64 156, !15, i64 164, !15, i64 172, !18, i64 180, !18, i64 181, !18, i64 182, !18, i64 183, !18, i64 184, !18, i64 185, !18, i64 186, !18, i64 187, !18, i64 188, !18, i64 189, !18, i64 190, !18, i64 191, !18, i64 192, !7, i64 193, !19, i64 194, !19, i64 196, !19, i64 198, !19, i64 200, !19, i64 202, !10, i64 204, !7, i64 208, !7, i64 209, !7, i64 210, !18, i64 211, !10, i64 212, !7, i64 216, !7, i64 217, !7, i64 218, !7, i64 219, !10, i64 220, !10, i64 221, !10, i64 222, !15, i64 224, !15, i64 232, !20, i64 240, !21, i64 256, !27, i64 488, !27, i64 504, !27, i64 520, !27, i64 536, !27, i64 552, !27, i64 568, !27, i64 584, !28, i64 600, !28, i64 604, !10, i64 608, !13, i64 612, !13, i64 616, !29, i64 624, !31, i64 640, !13, i64 656, !10, i64 660, !6, i64 664, !32, i64 672, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !7, i64 928, !7, i64 936, !10, i64 968, !10, i64 972, !10, i64 976, !18, i64 980}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!21 = !{!"_ZTS19ImGuiWindowTempData", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !13, i64 56, !13, i64 60, !18, i64 64, !18, i64 65, !22, i64 68, !22, i64 72, !22, i64 76, !15, i64 80, !23, i64 88, !19, i64 92, !19, i64 94, !18, i64 96, !18, i64 97, !18, i64 98, !18, i64 99, !15, i64 100, !24, i64 108, !10, i64 136, !10, i64 140, !25, i64 144, !6, i64 160, !6, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !13, i64 188, !13, i64 192, !26, i64 200, !26, i64 216}
!22 = !{!"_ZTS6ImVec1", !13, i64 0}
!23 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!24 = !{!"_ZTS16ImGuiMenuColumns", !10, i64 0, !10, i64 4, !19, i64 8, !19, i64 10, !19, i64 12, !19, i64 14, !19, i64 16, !7, i64 18}
!25 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!27 = !{!"_ZTS6ImRect", !15, i64 0, !15, i64 8}
!28 = !{!"_ZTS8ImVec2ih", !19, i64 0, !19, i64 2}
!29 = !{!"_ZTS12ImGuiStorage", !30, i64 0}
!30 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!31 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !10, i64 0, !10, i64 4, !6, i64 8}
!32 = !{!"_ZTS10ImDrawList", !33, i64 0, !34, i64 16, !35, i64 32, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !36, i64 88, !37, i64 104, !38, i64 120, !39, i64 136, !41, i64 168, !13, i64 192}
!33 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!39 = !{!"_ZTS15ImDrawCmdHeader", !40, i64 0, !6, i64 16, !10, i64 24}
!40 = !{!"_ZTS6ImVec4", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!41 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !42, i64 8}
!42 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!43 = !{!15, !13, i64 4}
!44 = !{!17, !7, i64 209}
!45 = !{!17, !18, i64 211}
!46 = !{!17, !13, i64 48}
!47 = !{!17, !13, i64 52}


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

@.str.3 = external hidden unnamed_addr constant [117 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [34 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui13SetWindowSizeEP11ImGuiWindowRK6ImVec2i = external hidden unnamed_addr constant [68 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN5ImGui13SetWindowSizeEP11ImGuiWindowRK6ImVec2i(ptr noundef %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %1, i32 noundef %2) local_unnamed_addr #1 {
  %cond = icmp eq i32 %2, 0
  br i1 %cond, label %.critedge, label %4

4:                                                ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 220
  %6 = load i32, ptr %5, align 4
  %7 = shl i32 %6, 16
  %8 = ashr i32 %7, 24
  %9 = and i32 %8, %2
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %46, label %11

11:                                               ; preds = %4
  %12 = tail call noundef zeroext i1 @_ZL14ImIsPowerOfTwoi(i32 noundef %2)
  br i1 %12, label %.critedge, label %13

13:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.153, ptr noundef nonnull @.str.3, i32 noundef 7322, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui13SetWindowSizeEP11ImGuiWindowRK6ImVec2i) #3
  unreachable

.critedge:                                        ; preds = %3, %11
  %14 = getelementptr inbounds i8, ptr %0, i64 220
  %15 = load i32, ptr %14, align 4
  %16 = and i32 %15, -3585
  store i32 %16, ptr %14, align 4
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %.sroa.0.0.copyload = load float, ptr %17, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 52
  %.sroa.4.0.copyload = load float, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %18 = load float, ptr %1, align 4, !tbaa !9
  %19 = fcmp ole float %18, 0.000000e+00
  %20 = select i1 %19, i8 2, i8 0
  %21 = getelementptr inbounds i8, ptr %0, i64 208
  store i8 %20, ptr %21, align 8, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %1, i64 4
  %23 = load float, ptr %22, align 4, !tbaa !40
  %24 = fcmp ole float %23, 0.000000e+00
  %25 = select i1 %24, i8 2, i8 0
  %26 = getelementptr inbounds i8, ptr %0, i64 209
  store i8 %25, ptr %26, align 1, !tbaa !41
  %27 = fcmp ugt float %18, 0.000000e+00
  br i1 %27, label %30, label %28

28:                                               ; preds = %.critedge
  %29 = getelementptr inbounds i8, ptr %0, i64 211
  store i8 0, ptr %29, align 1, !tbaa !42
  br label %33

30:                                               ; preds = %.critedge
  %31 = fptosi float %18 to i32
  %32 = sitofp i32 %31 to float
  store float %32, ptr %17, align 8, !tbaa !43
  br label %33

33:                                               ; preds = %30, %28
  %34 = phi float [ %32, %30 ], [ %.sroa.0.0.copyload, %28 ]
  %35 = fcmp ugt float %23, 0.000000e+00
  br i1 %35, label %38, label %36

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %0, i64 211
  store i8 0, ptr %37, align 1, !tbaa !42
  br label %41

38:                                               ; preds = %33
  %39 = fptosi float %23 to i32
  %40 = sitofp i32 %39 to float
  store float %40, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !44
  br label %41

41:                                               ; preds = %38, %36
  %42 = phi float [ %40, %38 ], [ %.sroa.4.0.copyload, %36 ]
  %43 = fcmp une float %.sroa.0.0.copyload, %34
  %44 = fcmp une float %.sroa.4.0.copyload, %42
  %or.cond = select i1 %43, i1 true, i1 %44
  br i1 %or.cond, label %45, label %46

45:                                               ; preds = %41
  tail call void @_ZN5ImGui20MarkIniSettingsDirtyEP11ImGuiWindow(ptr noundef nonnull %0)
  br label %46

46:                                               ; preds = %41, %45, %4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5ImGui20MarkIniSettingsDirtyEP11ImGuiWindow(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL14ImIsPowerOfTwoi(i32 noundef) local_unnamed_addr #2

attributes #0 = { noreturn nounwind "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 #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 = { 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 #3 = { noreturn 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, !6, i64 0}
!10 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!11 = !{!12, !7, i64 208}
!12 = !{!"_ZTS11ImGuiWindow", !13, i64 0, !13, i64 8, !14, i64 16, !14, i64 20, !13, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !10, i64 132, !10, i64 140, !10, i64 148, !10, i64 156, !10, i64 164, !10, i64 172, !15, i64 180, !15, i64 181, !15, i64 182, !15, i64 183, !15, i64 184, !15, i64 185, !15, i64 186, !15, i64 187, !15, i64 188, !15, i64 189, !15, i64 190, !15, i64 191, !15, i64 192, !7, i64 193, !16, i64 194, !16, i64 196, !16, i64 198, !16, i64 200, !16, i64 202, !14, i64 204, !7, i64 208, !7, i64 209, !7, i64 210, !15, i64 211, !14, i64 212, !7, i64 216, !7, i64 217, !7, i64 218, !7, i64 219, !14, i64 220, !14, i64 221, !14, i64 222, !10, i64 224, !10, i64 232, !17, i64 240, !18, i64 256, !24, i64 488, !24, i64 504, !24, i64 520, !24, i64 536, !24, i64 552, !24, i64 568, !24, i64 584, !25, i64 600, !25, i64 604, !14, i64 608, !6, i64 612, !6, i64 616, !26, i64 624, !28, i64 640, !6, i64 656, !14, i64 660, !13, i64 664, !29, i64 672, !13, i64 872, !13, i64 880, !13, i64 888, !13, i64 896, !13, i64 904, !13, i64 912, !13, i64 920, !7, i64 928, !7, i64 936, !14, i64 968, !14, i64 972, !14, i64 976, !15, i64 980}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorIjE", !14, i64 0, !14, i64 4, !13, i64 8}
!18 = !{!"_ZTS19ImGuiWindowTempData", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !6, i64 56, !6, i64 60, !15, i64 64, !15, i64 65, !19, i64 68, !19, i64 72, !19, i64 76, !10, i64 80, !20, i64 88, !16, i64 92, !16, i64 94, !15, i64 96, !15, i64 97, !15, i64 98, !15, i64 99, !10, i64 100, !21, i64 108, !14, i64 136, !14, i64 140, !22, i64 144, !13, i64 160, !13, i64 168, !14, i64 176, !14, i64 180, !14, i64 184, !6, i64 188, !6, i64 192, !23, i64 200, !23, i64 216}
!19 = !{!"_ZTS6ImVec1", !6, i64 0}
!20 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!21 = !{!"_ZTS16ImGuiMenuColumns", !14, i64 0, !14, i64 4, !16, i64 8, !16, i64 10, !16, i64 12, !16, i64 14, !16, i64 16, !7, i64 18}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !14, i64 0, !14, i64 4, !13, i64 8}
!23 = !{!"_ZTS8ImVectorIfE", !14, i64 0, !14, i64 4, !13, i64 8}
!24 = !{!"_ZTS6ImRect", !10, i64 0, !10, i64 8}
!25 = !{!"_ZTS8ImVec2ih", !16, i64 0, !16, i64 2}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !14, i64 0, !14, i64 4, !13, i64 8}
!28 = !{!"_ZTS8ImVectorI15ImGuiOldColumnsE", !14, i64 0, !14, i64 4, !13, i64 8}
!29 = !{!"_ZTS10ImDrawList", !30, i64 0, !31, i64 16, !32, i64 32, !14, i64 48, !14, i64 52, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !33, i64 88, !34, i64 104, !35, i64 120, !36, i64 136, !38, i64 168, !6, i64 192}
!30 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !14, i64 0, !14, i64 4, !13, i64 8}
!31 = !{!"_ZTS8ImVectorItE", !14, i64 0, !14, i64 4, !13, i64 8}
!32 = !{!"_ZTS8ImVectorI10ImDrawVertE", !14, i64 0, !14, i64 4, !13, i64 8}
!33 = !{!"_ZTS8ImVectorI6ImVec4E", !14, i64 0, !14, i64 4, !13, i64 8}
!34 = !{!"_ZTS8ImVectorIPvE", !14, i64 0, !14, i64 4, !13, i64 8}
!35 = !{!"_ZTS8ImVectorI6ImVec2E", !14, i64 0, !14, i64 4, !13, i64 8}
!36 = !{!"_ZTS15ImDrawCmdHeader", !37, i64 0, !13, i64 16, !14, i64 24}
!37 = !{!"_ZTS6ImVec4", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!38 = !{!"_ZTS18ImDrawListSplitter", !14, i64 0, !14, i64 4, !39, i64 8}
!39 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !14, i64 0, !14, i64 4, !13, i64 8}
!40 = !{!10, !6, i64 4}
!41 = !{!12, !7, i64 209}
!42 = !{!12, !15, i64 211}
!43 = !{!12, !6, i64 48}
!44 = !{!12, !6, i64 52}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass