; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/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.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawChannel = type { %struct.ImVector.0, %struct.ImVector.1 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.0, %struct.ImVector.1, %struct.ImVector.2, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.3, %struct.ImVector.4, %struct.ImVector, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZN18ImDrawListSplitter17SetCurrentChannelEP10ImDrawListi = external hidden unnamed_addr constant [62 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
declare dso_local void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196)) #3 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18ImDrawListSplitter17SetCurrentChannelEP10ImDrawListi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  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 ptr, ptr %4, align 8
  %9 = load i32, ptr %6, align 4, !tbaa !9
  %10 = icmp sge i32 %9, 0
  br i1 %10, label %11, label %16

11:                                               ; preds = %3
  %12 = load i32, ptr %6, align 4, !tbaa !9
  %13 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 1
  %14 = load i32, ptr %13, align 4, !tbaa !11
  %15 = icmp slt i32 %12, %14
  br label %16

16:                                               ; preds = %11, %3
  %17 = phi i1 [ false, %3 ], [ %15, %11 ]
  br i1 %17, label %18, label %19

18:                                               ; preds = %16
  br label %21

19:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 1785, ptr noundef @__PRETTY_FUNCTION__._ZN18ImDrawListSplitter17SetCurrentChannelEP10ImDrawListi) #5
  unreachable

20:                                               ; No predecessors!
  br label %21

21:                                               ; preds = %20, %18
  %22 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 0
  %23 = load i32, ptr %22, align 8, !tbaa !14
  %24 = load i32, ptr %6, align 4, !tbaa !9
  %25 = icmp eq i32 %23, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %21
  br label %124

27:                                               ; preds = %21
  %28 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 2
  %29 = getelementptr inbounds %struct.ImVector.5, ptr %28, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  %31 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !14
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds %struct.ImDrawChannel, ptr %30, i64 %33
  %35 = getelementptr inbounds %struct.ImDrawChannel, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ImDrawList, ptr %36, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %37, i64 16, i1 false)
  %38 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 2
  %39 = getelementptr inbounds %struct.ImVector.5, ptr %38, i32 0, i32 2
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 0
  %42 = load i32, ptr %41, align 8, !tbaa !14
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds %struct.ImDrawChannel, ptr %40, i64 %43
  %45 = getelementptr inbounds %struct.ImDrawChannel, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.ImDrawList, ptr %46, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %47, i64 16, i1 false)
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 0
  store i32 %48, ptr %49, align 8, !tbaa !14
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ImDrawList, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 2
  %53 = getelementptr inbounds %struct.ImVector.5, ptr %52, i32 0, i32 2
  %54 = load ptr, ptr %53, align 8, !tbaa !15
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %struct.ImDrawChannel, ptr %54, i64 %56
  %58 = getelementptr inbounds %struct.ImDrawChannel, ptr %57, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 8 %58, i64 16, i1 false)
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ImDrawList, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds %struct.ImDrawListSplitter, ptr %8, i32 0, i32 2
  %62 = getelementptr inbounds %struct.ImVector.5, ptr %61, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !15
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.ImDrawChannel, ptr %63, i64 %65
  %67 = getelementptr inbounds %struct.ImDrawChannel, ptr %66, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %60, ptr align 8 %67, i64 16, i1 false)
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ImDrawList, ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds %struct.ImVector.1, ptr %69, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !16
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ImDrawList, ptr %72, i32 0, i32 1
  %74 = getelementptr inbounds %struct.ImVector.1, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !27
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i16, ptr %71, i64 %76
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ImDrawList, ptr %78, i32 0, i32 8
  store ptr %77, ptr %79, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ImDrawList, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %struct.ImVector.0, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !29
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %27
  br label %98

86:                                               ; preds = %27
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ImDrawList, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %struct.ImVector.0, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !30
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ImDrawList, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %struct.ImVector.0, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !29
  %95 = sub nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.ImDrawCmd, ptr %90, i64 %96
  br label %98

98:                                               ; preds = %86, %85
  %99 = phi ptr [ null, %85 ], [ %97, %86 ]
  store ptr %99, ptr %7, align 8, !tbaa !5
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = icmp eq ptr %100, null
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196) %103)
  br label %123

104:                                              ; preds = %98
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ImDrawCmd, ptr %105, i32 0, i32 4
  %107 = load i32, ptr %106, align 8, !tbaa !31
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %109, label %113

109:                                              ; preds = %104
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ImDrawList, ptr %111, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %110, ptr align 8 %112, i64 28, i1 false)
  br label %122

113:                                              ; preds = %104
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ImDrawList, ptr %115, i32 0, i32 12
  %117 = call i32 @memcmp(ptr noundef %114, ptr noundef %116, i64 noundef 28) #7
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %121

119:                                              ; preds = %113
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196) %120)
  br label %121

121:                                              ; preds = %119, %113
  br label %122

122:                                              ; preds = %121, %109
  br label %123

123:                                              ; preds = %122, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %124

124:                                              ; preds = %123, %26
  ret void
}

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 = { 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 #5 = { noreturn nounwind }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !13, i64 8}
!13 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!14 = !{!12, !10, i64 0}
!15 = !{!12, !6, i64 16}
!16 = !{!17, !6, i64 24}
!17 = !{!"_ZTS10ImDrawList", !18, i64 0, !19, i64 16, !20, i64 32, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !21, i64 88, !22, i64 104, !23, i64 120, !24, i64 136, !12, i64 168, !26, i64 192}
!18 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!22 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !6, i64 8}
!23 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!24 = !{!"_ZTS15ImDrawCmdHeader", !25, i64 0, !6, i64 16, !10, i64 24}
!25 = !{!"_ZTS6ImVec4", !26, i64 0, !26, i64 4, !26, i64 8, !26, i64 12}
!26 = !{!"float", !7, i64 0}
!27 = !{!17, !10, i64 16}
!28 = !{!17, !6, i64 80}
!29 = !{!17, !10, i64 0}
!30 = !{!17, !6, i64 8}
!31 = !{!32, !10, i64 32}
!32 = !{!"_ZTS9ImDrawCmd", !25, i64 0, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !6, i64 40, !6, i64 48}


; 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.ImDrawChannel = type { %struct.ImVector.0, %struct.ImVector.1 }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImDrawCmd = type { %struct.ImVec4, ptr, i32, i32, i32, ptr, ptr }
%struct.ImVec4 = type { float, float, float, float }

@.str.1 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__._ZN18ImDrawListSplitter17SetCurrentChannelEP10ImDrawListi = external hidden unnamed_addr constant [62 x i8], align 1

; Function Attrs: mustprogress 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) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN18ImDrawListSplitter17SetCurrentChannelEP10ImDrawListi(ptr nocapture noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 align 2 {
  %4 = icmp sgt i32 %2, -1
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  %6 = load i32, ptr %5, align 4
  %7 = icmp sgt i32 %6, %2
  %or.cond = select i1 %4, i1 %7, i1 false
  br i1 %or.cond, label %8, label %.critedge

.critedge:                                        ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 1785, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN18ImDrawListSplitter17SetCurrentChannelEP10ImDrawListi) #4
  unreachable

8:                                                ; preds = %3
  %9 = load i32, ptr %0, align 8, !tbaa !5
  %10 = icmp eq i32 %9, %2
  br i1 %10, label %49, label %11

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !12
  %14 = sext i32 %9 to i64
  %15 = getelementptr inbounds %struct.ImDrawChannel, ptr %13, i64 %14
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false)
  %16 = load ptr, ptr %12, align 8, !tbaa !12
  %17 = load i32, ptr %0, align 8, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds %struct.ImDrawChannel, ptr %16, i64 %18, i32 1
  %20 = getelementptr inbounds i8, ptr %1, i64 16
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %20, i64 16, i1 false)
  store i32 %2, ptr %0, align 8, !tbaa !5
  %21 = load ptr, ptr %12, align 8, !tbaa !12
  %22 = zext nneg i32 %2 to i64
  %23 = getelementptr inbounds %struct.ImDrawChannel, ptr %21, i64 %22
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %23, i64 16, i1 false)
  %24 = load ptr, ptr %12, align 8, !tbaa !12
  %25 = getelementptr inbounds %struct.ImDrawChannel, ptr %24, i64 %22, i32 1
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %25, i64 16, i1 false)
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !13
  %28 = load i32, ptr %20, align 8, !tbaa !24
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i16, ptr %27, i64 %29
  %31 = getelementptr inbounds i8, ptr %1, i64 80
  store ptr %30, ptr %31, align 8, !tbaa !25
  %32 = load i32, ptr %1, align 8, !tbaa !26
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %.thread, label %34

34:                                               ; preds = %11
  %35 = getelementptr inbounds i8, ptr %1, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !27
  %37 = sext i32 %32 to i64
  %38 = getelementptr %struct.ImDrawCmd, ptr %36, i64 %37
  %39 = getelementptr i8, ptr %38, i64 -56
  %40 = icmp eq ptr %39, null
  br i1 %40, label %.thread, label %41

.thread:                                          ; preds = %11, %34
  tail call void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196) %1)
  br label %49

41:                                               ; preds = %34
  %42 = getelementptr i8, ptr %38, i64 -24
  %43 = load i32, ptr %42, align 8, !tbaa !28
  %44 = icmp eq i32 %43, 0
  %45 = getelementptr inbounds i8, ptr %1, i64 136
  br i1 %44, label %46, label %47

46:                                               ; preds = %41
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(28) %39, ptr noundef nonnull align 8 dereferenceable(28) %45, i64 28, i1 false)
  br label %49

47:                                               ; preds = %41
  %bcmp = tail call i32 @bcmp(ptr noundef nonnull dereferenceable(28) %39, ptr noundef nonnull dereferenceable(28) %45, i64 28)
  %.not = icmp eq i32 %bcmp, 0
  br i1 %.not, label %49, label %48

48:                                               ; preds = %47
  tail call void @_ZN10ImDrawList10AddDrawCmdEv(ptr noundef nonnull align 8 dereferenceable(196) %1)
  br label %49

49:                                               ; preds = %.thread, %47, %48, %46, %8
  ret void
}

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nofree nounwind willreturn memory(argmem: read) }
attributes #4 = { 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, !7, i64 0}
!6 = !{!"_ZTS18ImDrawListSplitter", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !7, i64 0, !7, i64 4, !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 16}
!13 = !{!14, !11, i64 24}
!14 = !{!"_ZTS10ImDrawList", !15, i64 0, !16, i64 16, !17, i64 32, !7, i64 48, !7, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !18, i64 88, !19, i64 104, !20, i64 120, !21, i64 136, !6, i64 168, !23, i64 192}
!15 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !7, i64 0, !7, i64 4, !11, i64 8}
!16 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !11, i64 8}
!17 = !{!"_ZTS8ImVectorI10ImDrawVertE", !7, i64 0, !7, i64 4, !11, i64 8}
!18 = !{!"_ZTS8ImVectorI6ImVec4E", !7, i64 0, !7, i64 4, !11, i64 8}
!19 = !{!"_ZTS8ImVectorIPvE", !7, i64 0, !7, i64 4, !11, i64 8}
!20 = !{!"_ZTS8ImVectorI6ImVec2E", !7, i64 0, !7, i64 4, !11, i64 8}
!21 = !{!"_ZTS15ImDrawCmdHeader", !22, i64 0, !11, i64 16, !7, i64 24}
!22 = !{!"_ZTS6ImVec4", !23, i64 0, !23, i64 4, !23, i64 8, !23, i64 12}
!23 = !{!"float", !8, i64 0}
!24 = !{!14, !7, i64 16}
!25 = !{!14, !11, i64 80}
!26 = !{!14, !7, i64 0}
!27 = !{!14, !11, i64 8}
!28 = !{!29, !7, i64 32}
!29 = !{!"_ZTS9ImDrawCmd", !22, i64 0, !11, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !11, i64 40, !11, i64 48}


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