; LLVM IR from VTIvanov20/eight-ball-pool :: src (main)

; 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.Font = type { i32, i32, i32, %struct.Texture, ptr, ptr }
%struct.Texture = type { i32, i32, i32, i32, i32 }
%struct.Rectangle = type { float, float, float, float }
%struct.Vector2 = type { float, float }

@_ZL7guiFont = external hidden global %struct.Font, align 8

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiSetStyle(i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i1 @GuiWindowBox(<2 x float>, <2 x float>, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i1 @GuiButton(<2 x float>, <2 x float>, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiLabel(<2 x float>, <2 x float>, ptr noundef) #4

declare <2 x float> @MeasureTextEx(ptr noundef byval(%struct.Font) align 8, ptr noundef, float noundef, float noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL12GuiTextSplitPKcPiS1_(ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local i32 @GuiMessageBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4 {
  %6 = alloca %struct.Rectangle, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %struct.Rectangle, align 4
  %14 = alloca %struct.Vector2, align 4
  %15 = alloca %struct.Font, align 8
  %16 = alloca %struct.Rectangle, align 4
  %17 = alloca %struct.Rectangle, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.Rectangle, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.Rectangle, align 4
  %22 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  store <2 x float> %0, ptr %22, align 4
  %23 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  store <2 x float> %1, ptr %23, align 4
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  store ptr %4, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 -1, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = call noundef ptr @_ZL12GuiTextSplitPKcPiS1_(ptr noundef %24, ptr noundef %11, ptr noundef null)
  store ptr %25, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void @llvm.memset.p0.i64(ptr align 4 %13, i8 0, i64 16, i1 false)
  %26 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = fadd float %27, 1.000000e+01
  %29 = getelementptr inbounds %struct.Rectangle, ptr %13, i32 0, i32 0
  store float %28, ptr %29, align 4, !tbaa !11
  %30 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %31 = load float, ptr %30, align 4, !tbaa !14
  %32 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %33 = load float, ptr %32, align 4, !tbaa !15
  %34 = fadd float %31, %33
  %35 = fsub float %34, 2.400000e+01
  %36 = fsub float %35, 1.000000e+01
  %37 = getelementptr inbounds %struct.Rectangle, ptr %13, i32 0, i32 1
  store float %36, ptr %37, align 4, !tbaa !14
  %38 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %39 = load float, ptr %38, align 4, !tbaa !16
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  %42 = mul nsw i32 10, %41
  %43 = sitofp i32 %42 to float
  %44 = fsub float %39, %43
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = sitofp i32 %45 to float
  %47 = fdiv float %44, %46
  %48 = getelementptr inbounds %struct.Rectangle, ptr %13, i32 0, i32 2
  store float %47, ptr %48, align 4, !tbaa !16
  %49 = getelementptr inbounds %struct.Rectangle, ptr %13, i32 0, i32 3
  store float 2.400000e+01, ptr %49, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 @_ZL7guiFont, i64 48, i1 false), !tbaa.struct !17
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %52 = sitofp i32 %51 to float
  %53 = call <2 x float> @MeasureTextEx(ptr noundef byval(%struct.Font) align 8 %15, ptr noundef %50, float noundef %52, float noundef 1.000000e+00)
  store <2 x float> %53, ptr %14, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  call void @llvm.memset.p0.i64(ptr align 4 %16, i8 0, i64 16, i1 false)
  %54 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %57 = load float, ptr %56, align 4, !tbaa !16
  %58 = fdiv float %57, 2.000000e+00
  %59 = fadd float %55, %58
  %60 = getelementptr inbounds %struct.Vector2, ptr %14, i32 0, i32 0
  %61 = load float, ptr %60, align 4, !tbaa !18
  %62 = fdiv float %61, 2.000000e+00
  %63 = fsub float %59, %62
  %64 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 0
  store float %63, ptr %64, align 4, !tbaa !11
  %65 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !14
  %67 = fadd float %66, 2.200000e+01
  %68 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %69 = load float, ptr %68, align 4, !tbaa !15
  %70 = fsub float %69, 2.200000e+01
  %71 = fsub float %70, 2.400000e+01
  %72 = fsub float %71, 1.000000e+01
  %73 = fdiv float %72, 2.000000e+00
  %74 = fadd float %67, %73
  %75 = getelementptr inbounds %struct.Vector2, ptr %14, i32 0, i32 1
  %76 = load float, ptr %75, align 4, !tbaa !20
  %77 = fdiv float %76, 2.000000e+00
  %78 = fsub float %74, %77
  %79 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 1
  store float %78, ptr %79, align 4, !tbaa !14
  %80 = getelementptr inbounds %struct.Vector2, ptr %14, i32 0, i32 0
  %81 = load float, ptr %80, align 4, !tbaa !18
  %82 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 2
  store float %81, ptr %82, align 4, !tbaa !16
  %83 = getelementptr inbounds %struct.Vector2, ptr %14, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !20
  %85 = getelementptr inbounds %struct.Rectangle, ptr %16, i32 0, i32 3
  store float %84, ptr %85, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %6, i64 16, i1 false), !tbaa.struct !21
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 0
  %88 = load <2 x float>, ptr %87, align 4
  %89 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %17, i32 0, i32 1
  %90 = load <2 x float>, ptr %89, align 4
  %91 = call zeroext i1 @GuiWindowBox(<2 x float> %88, <2 x float> %90, ptr noundef %86)
  br i1 %91, label %92, label %93

92:                                               ; preds = %5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %92, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %94 = call i32 @GuiGetStyle(i32 noundef 1, i32 noundef 14)
  store i32 %94, ptr %18, align 4, !tbaa !9
  call void @GuiSetStyle(i32 noundef 1, i32 noundef 14, i32 noundef 1)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %16, i64 16, i1 false), !tbaa.struct !21
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %19, i32 0, i32 0
  %97 = load <2 x float>, ptr %96, align 4
  %98 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %19, i32 0, i32 1
  %99 = load <2 x float>, ptr %98, align 4
  call void @GuiLabel(<2 x float> %97, <2 x float> %99, ptr noundef %95)
  %100 = load i32, ptr %18, align 4, !tbaa !9
  call void @GuiSetStyle(i32 noundef 1, i32 noundef 14, i32 noundef %100)
  %101 = call i32 @GuiGetStyle(i32 noundef 2, i32 noundef 14)
  store i32 %101, ptr %18, align 4, !tbaa !9
  call void @GuiSetStyle(i32 noundef 2, i32 noundef 14, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %128, %93
  %103 = load i32, ptr %20, align 4, !tbaa !9
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %131

107:                                              ; preds = %102
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %13, i64 16, i1 false), !tbaa.struct !21
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = load i32, ptr %20, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds ptr, ptr %108, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %114 = load <2 x float>, ptr %113, align 4
  %115 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %116 = load <2 x float>, ptr %115, align 4
  %117 = call zeroext i1 @GuiButton(<2 x float> %114, <2 x float> %116, ptr noundef %112)
  br i1 %117, label %118, label %121

118:                                              ; preds = %107
  %119 = load i32, ptr %20, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %10, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %118, %107
  %122 = getelementptr inbounds %struct.Rectangle, ptr %13, i32 0, i32 2
  %123 = load float, ptr %122, align 4, !tbaa !16
  %124 = fadd float %123, 1.000000e+01
  %125 = getelementptr inbounds %struct.Rectangle, ptr %13, i32 0, i32 0
  %126 = load float, ptr %125, align 4, !tbaa !11
  %127 = fadd float %126, %124
  store float %127, ptr %125, align 4, !tbaa !11
  br label %128

128:                                              ; preds = %121
  %129 = load i32, ptr %20, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %20, align 4, !tbaa !9
  br label %102, !llvm.loop !23

131:                                              ; preds = %106
  %132 = load i32, ptr %18, align 4, !tbaa !9
  call void @GuiSetStyle(i32 noundef 2, i32 noundef 14, i32 noundef %132)
  %133 = load i32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  ret i32 %133
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 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 #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 = !{!12, !13, i64 0}
!12 = !{!"_ZTS9Rectangle", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 12}
!16 = !{!12, !13, i64 8}
!17 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9, i64 20, i64 4, !9, i64 24, i64 4, !9, i64 28, i64 4, !9, i64 32, i64 8, !5, i64 40, i64 8, !5}
!18 = !{!19, !13, i64 0}
!19 = !{!"_ZTS7Vector2", !13, i64 0, !13, i64 4}
!20 = !{!19, !13, i64 4}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22, i64 8, i64 4, !22, i64 12, i64 4, !22}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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.Font = type { i32, i32, i32, %struct.Texture, ptr, ptr }
%struct.Texture = type { i32, i32, i32, i32, i32 }

@_ZL7guiFont = external hidden local_unnamed_addr global %struct.Font, align 8

; 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 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: 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 @GuiSetStyle(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i1 @GuiWindowBox(<2 x float>, <2 x float>, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i1 @GuiButton(<2 x float>, <2 x float>, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiLabel(<2 x float>, <2 x float>, ptr noundef) local_unnamed_addr #3

declare <2 x float> @MeasureTextEx(ptr noundef byval(%struct.Font) align 8, ptr noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL12GuiTextSplitPKcPiS1_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local i32 @GuiMessageBox(<2 x float> %0, <2 x float> %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = alloca i32, align 4
  %7 = alloca %struct.Font, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  %8 = call noundef ptr @_ZL12GuiTextSplitPKcPiS1_(ptr noundef %4, ptr noundef nonnull %6, ptr noundef null)
  %.sroa.636.12.vec.extract = extractelement <2 x float> %1, i64 1
  %.sroa.636.8.vec.extract = extractelement <2 x float> %1, i64 0
  %9 = load i32, ptr %6, align 4, !tbaa !5
  %10 = mul i32 %9, 10
  %11 = add i32 %10, 10
  %12 = sitofp i32 %11 to float
  %13 = fsub float %.sroa.636.8.vec.extract, %12
  %14 = sitofp i32 %9 to float
  %15 = fdiv float %13, %14
  %.sroa.8.12.vec.insert = insertelement <2 x float> <float poison, float 2.400000e+01>, float %15, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) @_ZL7guiFont, i64 48, i1 false), !tbaa.struct !9
  %16 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %17 = sitofp i32 %16 to float
  %18 = call <2 x float> @MeasureTextEx(ptr noundef nonnull byval(%struct.Font) align 8 %7, ptr noundef %3, float noundef %17, float noundef 1.000000e+00)
  %19 = fadd float %.sroa.636.12.vec.extract, -2.200000e+01
  %20 = fadd float %19, -2.400000e+01
  %21 = fadd float %20, -1.000000e+01
  %22 = fmul float %21, 5.000000e-01
  %23 = shufflevector <2 x float> %1, <2 x float> %0, <2 x i32> <i32 0, i32 3>
  %24 = fmul <2 x float> %23, <float 5.000000e-01, float poison>
  %25 = fadd <2 x float> %23, <float poison, float 2.200000e+01>
  %26 = shufflevector <2 x float> %24, <2 x float> %25, <2 x i32> <i32 0, i32 3>
  %27 = insertelement <2 x float> %0, float %22, i64 1
  %28 = fadd <2 x float> %27, %26
  %29 = fmul <2 x float> %18, <float 5.000000e-01, float 5.000000e-01>
  %30 = fsub <2 x float> %28, %29
  %31 = call zeroext i1 @GuiWindowBox(<2 x float> %0, <2 x float> %1, ptr noundef %2)
  %not. = xor i1 %31, true
  %spec.select = sext i1 %not. to i32
  %32 = call i32 @GuiGetStyle(i32 noundef 1, i32 noundef 14)
  call void @GuiSetStyle(i32 noundef 1, i32 noundef 14, i32 noundef 1)
  call void @GuiLabel(<2 x float> %30, <2 x float> %18, ptr noundef %3)
  call void @GuiSetStyle(i32 noundef 1, i32 noundef 14, i32 noundef %32)
  %33 = call i32 @GuiGetStyle(i32 noundef 2, i32 noundef 14)
  call void @GuiSetStyle(i32 noundef 2, i32 noundef 14, i32 noundef 1)
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %36 = fadd <2 x float> %0, %1
  %37 = extractelement <2 x float> %36, i64 1
  %38 = fadd float %37, -2.400000e+01
  %39 = insertelement <2 x float> %0, float %38, i64 1
  %40 = fadd <2 x float> %39, <float 1.000000e+01, float -1.000000e+01>
  %41 = fadd float %15, 1.000000e+01
  br label %42

._crit_edge:                                      ; preds = %42, %5
  %.1.lcssa = phi i32 [ %spec.select, %5 ], [ %spec.select43, %42 ]
  call void @GuiSetStyle(i32 noundef 2, i32 noundef 14, i32 noundef %33)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  ret i32 %.1.lcssa

42:                                               ; preds = %.lr.ph, %42
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %42 ]
  %.146 = phi i32 [ %spec.select, %.lr.ph ], [ %spec.select43, %42 ]
  %.sroa.018.044 = phi <2 x float> [ %40, %.lr.ph ], [ %.sroa.018.0.vec.insert22, %42 ]
  %43 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv
  %44 = load ptr, ptr %43, align 8, !tbaa !10
  %45 = call zeroext i1 @GuiButton(<2 x float> %.sroa.018.044, <2 x float> %.sroa.8.12.vec.insert, ptr noundef %44)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = trunc nuw nsw i64 %indvars.iv.next to i32
  %spec.select43 = select i1 %45, i32 %46, i32 %.146
  %.sroa.018.0.vec.extract = extractelement <2 x float> %.sroa.018.044, i64 0
  %47 = fadd float %41, %.sroa.018.0.vec.extract
  %.sroa.018.0.vec.insert22 = insertelement <2 x float> %.sroa.018.044, float %47, i64 0
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv.next, %49
  br i1 %50, label %42, label %._crit_edge, !llvm.loop !12
}

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5, i64 20, i64 4, !5, i64 24, i64 4, !5, i64 28, i64 4, !5, i64 32, i64 8, !10, i64 40, i64 8, !10}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass