; LLVM IR from xhub/reshop :: gui/external/imguial/imguial_term.ll (ZN7ImGuiAl8Terminal4drawERK6ImVec2)

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

%class.anon.8 = type { i8 }
%struct.ImVec2 = type { float, float }
%"class.ImGuiAl::Terminal" = type { %"class.ImGuiAl::Crt.base", ptr, i64, %"class.std::function.2", %"class.std::function.5" }
%"class.ImGuiAl::Crt.base" = type <{ %"class.ImGuiAl::Fifo", i32, i32, i8 }>
%"class.ImGuiAl::Fifo" = type { ptr, i64, i64, i64, i64 }
%"class.std::function.2" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.std::function.5" = type { %"class.std::_Function_base", ptr }

@_ZZN7ImGuiAl8Terminal4drawERK6ImVec2E8callback = external hidden constant %class.anon.8, align 1
@.str.8 = external hidden unnamed_addr constant [8 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ImGuiAl3Crt4drawERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 4 dereferenceable(8)) #1 align 2

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ImGuiAl8Terminal4drawERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull align 4 dereferenceable(8) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ImVec2, ptr %11, i32 0, i32 0
  %13 = load float, ptr %12, align 4, !tbaa !9
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 1
  %16 = load float, ptr %15, align 4, !tbaa !12
  %17 = call noundef float @_ZN5ImGui17GetTextLineHeightEv()
  %18 = fsub float %16, %17
  %19 = call noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv()
  %20 = fsub float %18, %19
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef %13, float noundef %20)
  call void @_ZN7ImGuiAl3Crt4drawERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(49) %10, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @_ZN5ImGui9SeparatorEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 524352, ptr %6, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  store i8 0, ptr %7, align 1, !tbaa !15
  %21 = getelementptr inbounds %"class.ImGuiAl::Terminal", ptr %10, i32 0, i32 1
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %23 = getelementptr inbounds %"class.ImGuiAl::Terminal", ptr %10, i32 0, i32 2
  %24 = load i64, ptr %23, align 8, !tbaa !25
  %25 = call noundef ptr @"_ZZN7ImGuiAl8Terminal4drawERK6ImVec2ENK3$_0cvPFiP26ImGuiInputTextCallbackDataEEv"(ptr noundef nonnull align 1 dereferenceable(1) @_ZZN7ImGuiAl8Terminal4drawERK6ImVec2E8callback) #6
  %26 = call noundef zeroext i1 @_ZN5ImGui9InputTextEPKcPcmiPFiP26ImGuiInputTextCallbackDataEPv(ptr noundef @.str.8, ptr noundef %22, i64 noundef %24, i32 noundef 524352, ptr noundef %25, ptr noundef %10)
  br i1 %26, label %27, label %72

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %28 = getelementptr inbounds %"class.ImGuiAl::Terminal", ptr %10, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  store ptr %29, ptr %8, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %43, %27
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load i8, ptr %31, align 1, !tbaa !26
  %33 = sext i8 %32 to i32
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %41

35:                                               ; preds = %30
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = load i8, ptr %36, align 1, !tbaa !26
  %38 = sext i8 %37 to i32
  %39 = call i32 @isspace(i32 noundef %38) #7
  %40 = icmp ne i32 %39, 0
  br label %41

41:                                               ; preds = %35, %30
  %42 = phi i1 [ false, %30 ], [ %40, %35 ]
  br i1 %42, label %43, label %46

43:                                               ; preds = %41
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i32 1
  store ptr %45, ptr %8, align 8, !tbaa !5
  br label %30, !llvm.loop !27

46:                                               ; preds = %41
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load i8, ptr %47, align 1, !tbaa !26
  %49 = sext i8 %48 to i32
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %71

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call i64 @strlen(ptr noundef %53) #7
  %55 = getelementptr inbounds i8, ptr %52, i64 %54
  %56 = getelementptr inbounds i8, ptr %55, i64 -1
  store ptr %56, ptr %9, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %63, %51
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i8, ptr %58, align 1, !tbaa !26
  %60 = sext i8 %59 to i32
  %61 = call i32 @isspace(i32 noundef %60) #7
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %57
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i32 -1
  store ptr %65, ptr %9, align 8, !tbaa !5
  br label %57, !llvm.loop !29

66:                                               ; preds = %57
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 1
  store i8 0, ptr %68, align 1, !tbaa !26
  %69 = getelementptr inbounds %"class.ImGuiAl::Terminal", ptr %10, i32 0, i32 3
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNKSt8functionIFvRN7ImGuiAl8TerminalEPcEEclES2_S3_(ptr noundef nonnull align 8 dereferenceable(32) %69, ptr noundef nonnull align 8 dereferenceable(136) %10, ptr noundef %70)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %71

71:                                               ; preds = %66, %46
  store i8 1, ptr %7, align 1, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %72

72:                                               ; preds = %71, %2
  call void @_ZN5ImGui19SetItemDefaultFocusEv()
  %73 = load i8, ptr %7, align 1, !tbaa !15, !range !30, !noundef !31
  %74 = trunc i8 %73 to i1
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  call void @_ZN5ImGui20SetKeyboardFocusHereEi(i32 noundef -1)
  br label %76

76:                                               ; preds = %75, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

declare noundef float @_ZN5ImGui17GetTextLineHeightEv() #4

declare noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv() #4

declare void @_ZN5ImGui9SeparatorEv() #4

declare noundef zeroext i1 @_ZN5ImGui9InputTextEPKcPcmiPFiP26ImGuiInputTextCallbackDataEPv(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN7ImGuiAl8Terminal4drawERK6ImVec2ENK3$_0cvPFiP26ImGuiInputTextCallbackDataEEv"(ptr noundef nonnull align 1 dereferenceable(1)) #5 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvRN7ImGuiAl8TerminalEPcEEclES2_S3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) #1 align 2

declare void @_ZN5ImGui19SetItemDefaultFocusEv() #4

declare void @_ZN5ImGui20SetKeyboardFocusHereEi(i32 noundef) #4

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

!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, !11, i64 0}
!10 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!18, !6, i64 56}
!18 = !{!"_ZTSN7ImGuiAl8TerminalE", !19, i64 0, !6, i64 56, !21, i64 64, !22, i64 72, !24, i64 104}
!19 = !{!"_ZTSN7ImGuiAl3CrtE", !20, i64 0, !14, i64 40, !14, i64 44, !16, i64 48}
!20 = !{!"_ZTSN7ImGuiAl4FifoE", !6, i64 0, !21, i64 8, !21, i64 16, !21, i64 24, !21, i64 32}
!21 = !{!"long", !7, i64 0}
!22 = !{!"_ZTSSt8functionIFvRN7ImGuiAl8TerminalEPcEE", !23, i64 0, !6, i64 24}
!23 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!24 = !{!"_ZTSSt8functionIFvRN7ImGuiAl8TerminalEP26ImGuiInputTextCallbackDataEE", !23, i64 0, !6, i64 24}
!25 = !{!18, !21, i64 64}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{i8 0, i8 2}
!31 = !{}


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

%class.anon.8 = type { i8 }
%struct.ImVec2 = type { float, float }

@_ZZN7ImGuiAl8Terminal4drawERK6ImVec2E8callback = external hidden constant %class.anon.8, align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7ImGuiAl3Crt4drawERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7ImGuiAl8Terminal4drawERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %struct.ImVec2, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %4 = load float, ptr %1, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 4
  %6 = load float, ptr %5, align 4, !tbaa !10
  %7 = tail call noundef float @_ZN5ImGui17GetTextLineHeightEv()
  %8 = fsub float %6, %7
  %9 = tail call noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv()
  %10 = fsub float %8, %9
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %4, float noundef %10)
  call void @_ZN7ImGuiAl3Crt4drawERK6ImVec2(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @_ZN5ImGui9SeparatorEv()
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  %14 = load i64, ptr %13, align 8, !tbaa !22
  %15 = call noundef ptr @"_ZZN7ImGuiAl8Terminal4drawERK6ImVec2ENK3$_0cvPFiP26ImGuiInputTextCallbackDataEEv"(ptr noundef nonnull align 1 dereferenceable(1) @_ZZN7ImGuiAl8Terminal4drawERK6ImVec2E8callback) #7
  %16 = call noundef zeroext i1 @_ZN5ImGui9InputTextEPKcPcmiPFiP26ImGuiInputTextCallbackDataEPv(ptr noundef nonnull @.str.8, ptr noundef %12, i64 noundef %14, i32 noundef 524352, ptr noundef %15, ptr noundef nonnull %0)
  br i1 %16, label %17, label %.critedge20

17:                                               ; preds = %2
  %18 = load ptr, ptr %11, align 8, !tbaa !11
  %19 = load i8, ptr %18, align 1, !tbaa !23
  %.not22 = icmp eq i8 %19, 0
  br i1 %.not22, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %17, %23
  %20 = phi i8 [ %25, %23 ], [ %19, %17 ]
  %.01323 = phi ptr [ %24, %23 ], [ %18, %17 ]
  %21 = sext i8 %20 to i32
  %22 = call i32 @isspace(i32 noundef %21) #8
  %.not16 = icmp eq i32 %22, 0
  br i1 %.not16, label %.critedge, label %23

23:                                               ; preds = %.lr.ph
  %24 = getelementptr inbounds i8, ptr %.01323, i64 1
  %25 = load i8, ptr %24, align 1, !tbaa !23
  %.not = icmp eq i8 %25, 0
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !24

.critedge:                                        ; preds = %.lr.ph
  %26 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.01323) #8
  %27 = getelementptr inbounds i8, ptr %.01323, i64 %26
  br label %28

28:                                               ; preds = %28, %.critedge
  %.pn = phi ptr [ %27, %.critedge ], [ %.0, %28 ]
  %.0 = getelementptr inbounds i8, ptr %.pn, i64 -1
  %29 = load i8, ptr %.0, align 1, !tbaa !23
  %30 = sext i8 %29 to i32
  %31 = call i32 @isspace(i32 noundef %30) #8
  %.not18 = icmp eq i32 %31, 0
  br i1 %.not18, label %32, label %28, !llvm.loop !26

32:                                               ; preds = %28
  store i8 0, ptr %.pn, align 1, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %0, i64 72
  call void @_ZNKSt8functionIFvRN7ImGuiAl8TerminalEPcEEclES2_S3_(ptr noundef nonnull align 8 dereferenceable(32) %33, ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef nonnull %.01323)
  br label %.loopexit

.loopexit:                                        ; preds = %23, %32, %17
  call void @_ZN5ImGui19SetItemDefaultFocusEv()
  call void @_ZN5ImGui20SetKeyboardFocusHereEi(i32 noundef -1)
  br label %34

.critedge20:                                      ; preds = %2
  call void @_ZN5ImGui19SetItemDefaultFocusEv()
  br label %34

34:                                               ; preds = %.critedge20, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret void
}

declare noundef float @_ZN5ImGui17GetTextLineHeightEv() local_unnamed_addr #4

declare noundef float @_ZN5ImGui28GetTextLineHeightWithSpacingEv() local_unnamed_addr #4

declare void @_ZN5ImGui9SeparatorEv() local_unnamed_addr #4

declare noundef zeroext i1 @_ZN5ImGui9InputTextEPKcPcmiPFiP26ImGuiInputTextCallbackDataEPv(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN7ImGuiAl8Terminal4drawERK6ImVec2ENK3$_0cvPFiP26ImGuiInputTextCallbackDataEEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvRN7ImGuiAl8TerminalEPcEEclES2_S3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(136), ptr noundef) local_unnamed_addr #1 align 2

declare void @_ZN5ImGui19SetItemDefaultFocusEv() local_unnamed_addr #4

declare void @_ZN5ImGui20SetKeyboardFocusHereEi(i32 noundef) local_unnamed_addr #4

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

!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, !7, i64 0}
!6 = !{!"_ZTS6ImVec2", !7, i64 0, !7, i64 4}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!12, !15, i64 56}
!12 = !{!"_ZTSN7ImGuiAl8TerminalE", !13, i64 0, !15, i64 56, !16, i64 64, !19, i64 72, !21, i64 104}
!13 = !{!"_ZTSN7ImGuiAl3CrtE", !14, i64 0, !17, i64 40, !17, i64 44, !18, i64 48}
!14 = !{!"_ZTSN7ImGuiAl4FifoE", !15, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!"bool", !8, i64 0}
!19 = !{!"_ZTSSt8functionIFvRN7ImGuiAl8TerminalEPcEE", !20, i64 0, !15, i64 24}
!20 = !{!"_ZTSSt14_Function_base", !8, i64 0, !15, i64 16}
!21 = !{!"_ZTSSt8functionIFvRN7ImGuiAl8TerminalEP26ImGuiInputTextCallbackDataEE", !20, i64 0, !15, i64 24}
!22 = !{!12, !16, i64 64}
!23 = !{!8, !8, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass