; LLVM IR from yettabaa/cub3D :: mlx-linux (mlx_loop)

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

%union._XEvent = type { [24 x i64] }
%struct.s_xvar = type { ptr, i64, i32, i32, ptr, i64, i32, ptr, ptr, ptr, i32, i32, i32, [6 x i32], i64, i64, i32 }
%struct.s_win_list = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [36 x %struct.s_event_list] }
%struct.s_event_list = type { i32, ptr, ptr }
%struct.XAnyEvent = type { i32, i64, i32, ptr, i64 }
%struct.XClientMessageEvent = type { i32, i64, i32, ptr, i64, i64, i32, %union.anon }
%union.anon = type { [5 x i64] }

@mlx_int_param_event = external global [0 x ptr], align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @mlx_loop(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca %union._XEvent, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 192, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = call i32 @mlx_int_set_win_event_mask(ptr noundef %5)
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.s_xvar, ptr %7, i32 0, i32 12
  store i32 0, ptr %8, align 8, !tbaa !9
  br label %9

9:                                                ; preds = %147, %1
  %10 = load ptr, ptr %2, align 8, !tbaa !5
  %11 = call i32 @win_count(ptr noundef %10)
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %13, label %19

13:                                               ; preds = %9
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.s_xvar, ptr %14, i32 0, i32 16
  %16 = load i32, ptr %15, align 8, !tbaa !13
  %17 = icmp ne i32 %16, 0
  %18 = xor i1 %17, true
  br label %19

19:                                               ; preds = %13, %9
  %20 = phi i1 [ false, %9 ], [ %18, %13 ]
  br i1 %20, label %21, label %148

21:                                               ; preds = %19
  br label %22

22:                                               ; preds = %129, %21
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.s_xvar, ptr %23, i32 0, i32 16
  %25 = load i32, ptr %24, align 8, !tbaa !13
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %40, label %27

27:                                               ; preds = %22
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.s_xvar, ptr %28, i32 0, i32 8
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %38

32:                                               ; preds = %27
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.s_xvar, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = call i32 @XPending(ptr noundef %35)
  %37 = icmp ne i32 %36, 0
  br label %38

38:                                               ; preds = %32, %27
  %39 = phi i1 [ true, %27 ], [ %37, %32 ]
  br label %40

40:                                               ; preds = %38, %22
  %41 = phi i1 [ false, %22 ], [ %39, %38 ]
  br i1 %41, label %42, label %130

42:                                               ; preds = %40
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.s_xvar, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !15
  %46 = call i32 @XNextEvent(ptr noundef %45, ptr noundef %3)
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.s_xvar, ptr %47, i32 0, i32 7
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  store ptr %49, ptr %4, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %62, %42
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %60

53:                                               ; preds = %50
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.s_win_list, ptr %54, i32 0, i32 0
  %56 = load i64, ptr %55, align 8, !tbaa !17
  %57 = getelementptr inbounds %struct.XAnyEvent, ptr %3, i32 0, i32 4
  %58 = load i64, ptr %57, align 8, !tbaa !19
  %59 = icmp ne i64 %56, %58
  br label %60

60:                                               ; preds = %53, %50
  %61 = phi i1 [ false, %50 ], [ %59, %53 ]
  br i1 %61, label %62, label %66

62:                                               ; preds = %60
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.s_win_list, ptr %63, i32 0, i32 2
  %65 = load ptr, ptr %64, align 8, !tbaa !20
  store ptr %65, ptr %4, align 8, !tbaa !5
  br label %50, !llvm.loop !21

66:                                               ; preds = %60
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %106

69:                                               ; preds = %66
  %70 = load i32, ptr %3, align 8, !tbaa !19
  %71 = icmp eq i32 %70, 33
  br i1 %71, label %72, label %106

72:                                               ; preds = %69
  %73 = getelementptr inbounds %struct.XClientMessageEvent, ptr %3, i32 0, i32 5
  %74 = load i64, ptr %73, align 8, !tbaa !19
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.s_xvar, ptr %75, i32 0, i32 15
  %77 = load i64, ptr %76, align 8, !tbaa !23
  %78 = icmp eq i64 %74, %77
  br i1 %78, label %79, label %106

79:                                               ; preds = %72
  %80 = getelementptr inbounds %struct.XClientMessageEvent, ptr %3, i32 0, i32 7
  %81 = getelementptr inbounds [5 x i64], ptr %80, i64 0, i64 0
  %82 = load i64, ptr %81, align 8, !tbaa !19
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.s_xvar, ptr %83, i32 0, i32 14
  %85 = load i64, ptr %84, align 8, !tbaa !24
  %86 = icmp eq i64 %82, %85
  br i1 %86, label %87, label %106

87:                                               ; preds = %79
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.s_win_list, ptr %88, i32 0, i32 9
  %90 = getelementptr inbounds [36 x %struct.s_event_list], ptr %89, i64 0, i64 17
  %91 = getelementptr inbounds %struct.s_event_list, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !25
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %106

94:                                               ; preds = %87
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.s_win_list, ptr %95, i32 0, i32 9
  %97 = getelementptr inbounds [36 x %struct.s_event_list], ptr %96, i64 0, i64 17
  %98 = getelementptr inbounds %struct.s_event_list, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !25
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.s_win_list, ptr %100, i32 0, i32 9
  %102 = getelementptr inbounds [36 x %struct.s_event_list], ptr %101, i64 0, i64 17
  %103 = getelementptr inbounds %struct.s_event_list, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !27
  %105 = call i32 (ptr, ...) %99(ptr noundef %104)
  br label %106

106:                                              ; preds = %94, %87, %79, %72, %69, %66
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %129

109:                                              ; preds = %106
  %110 = load i32, ptr %3, align 8, !tbaa !19
  %111 = icmp slt i32 %110, 36
  br i1 %111, label %112, label %129

112:                                              ; preds = %109
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.s_win_list, ptr %113, i32 0, i32 9
  %115 = load i32, ptr %3, align 8, !tbaa !19
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [36 x %struct.s_event_list], ptr %114, i64 0, i64 %116
  %118 = getelementptr inbounds %struct.s_event_list, ptr %117, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !25
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %129

121:                                              ; preds = %112
  %122 = load i32, ptr %3, align 8, !tbaa !19
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [0 x ptr], ptr @mlx_int_param_event, i64 0, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = call i32 (ptr, ptr, ptr, ...) %125(ptr noundef %126, ptr noundef %3, ptr noundef %127)
  br label %129

129:                                              ; preds = %121, %112, %109, %106
  br label %22, !llvm.loop !28

130:                                              ; preds = %40
  %131 = load ptr, ptr %2, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.s_xvar, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  %134 = call i32 @XSync(ptr noundef %133, i32 noundef 0)
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.s_xvar, ptr %135, i32 0, i32 8
  %137 = load ptr, ptr %136, align 8, !tbaa !14
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %147

139:                                              ; preds = %130
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.s_xvar, ptr %140, i32 0, i32 8
  %142 = load ptr, ptr %141, align 8, !tbaa !14
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.s_xvar, ptr %143, i32 0, i32 9
  %145 = load ptr, ptr %144, align 8, !tbaa !29
  %146 = call i32 (ptr, ...) %142(ptr noundef %145)
  br label %147

147:                                              ; preds = %139, %130
  br label %9, !llvm.loop !30

148:                                              ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 192, ptr %3) #3
  ret i32 0
}

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

declare i32 @mlx_int_set_win_event_mask(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @win_count(ptr noundef) #0

declare i32 @XPending(ptr noundef) #2

declare i32 @XNextEvent(ptr noundef, ptr noundef) #2

declare i32 @XSync(ptr noundef, i32 noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 }

!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/C++ TBAA"}
!9 = !{!10, !12, i64 80}
!10 = !{!"s_xvar", !6, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !6, i64 24, !11, i64 32, !12, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !7, i64 84, !11, i64 112, !11, i64 120, !12, i64 128}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !12, i64 128}
!14 = !{!10, !6, i64 56}
!15 = !{!10, !6, i64 0}
!16 = !{!10, !6, i64 48}
!17 = !{!18, !11, i64 0}
!18 = !{!"s_win_list", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !7, i64 72}
!19 = !{!7, !7, i64 0}
!20 = !{!18, !6, i64 16}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !11, i64 120}
!24 = !{!10, !11, i64 112}
!25 = !{!26, !6, i64 8}
!26 = !{!"s_event_list", !12, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!26, !6, i64 16}
!28 = distinct !{!28, !22}
!29 = !{!10, !6, i64 64}
!30 = distinct !{!30, !22}


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

%union._XEvent = type { [24 x i64] }
%struct.s_event_list = type { i32, ptr, ptr }

@mlx_int_param_event = external local_unnamed_addr global [0 x ptr], align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @mlx_loop(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca %union._XEvent, align 8
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %2) #3
  %3 = tail call i32 @mlx_int_set_win_event_mask(ptr noundef %0) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 0, ptr %4, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 128
  %6 = tail call i32 @win_count(ptr noundef nonnull %0)
  %.not53 = icmp eq i32 %6, 0
  br i1 %.not53, label %.critedge, label %.lr.ph54

.lr.ph54:                                         ; preds = %1
  %7 = getelementptr inbounds i8, ptr %0, i64 56
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = getelementptr inbounds i8, ptr %2, i64 32
  %10 = getelementptr inbounds i8, ptr %2, i64 40
  %11 = getelementptr inbounds i8, ptr %0, i64 120
  %12 = getelementptr inbounds i8, ptr %2, i64 56
  %13 = getelementptr inbounds i8, ptr %0, i64 112
  %14 = getelementptr inbounds i8, ptr %0, i64 64
  br label %15

15:                                               ; preds = %.lr.ph54, %63
  %16 = load i32, ptr %5, align 8, !tbaa !12
  %.not38 = icmp eq i32 %16, 0
  br i1 %.not38, label %.preheader, label %.critedge

.preheader:                                       ; preds = %15, %.thread
  %17 = load ptr, ptr %7, align 8, !tbaa !13
  %.not40 = icmp eq ptr %17, null
  br i1 %.not40, label %.critedge4, label %18

18:                                               ; preds = %.preheader
  %19 = load ptr, ptr %0, align 8, !tbaa !14
  %20 = call i32 @XPending(ptr noundef %19) #3
  %.not41 = icmp eq i32 %20, 0
  br i1 %.not41, label %.critedge2, label %.critedge4

.critedge4:                                       ; preds = %.preheader, %18
  %21 = load ptr, ptr %0, align 8, !tbaa !14
  %22 = call i32 @XNextEvent(ptr noundef %21, ptr noundef nonnull %2) #3
  %.050 = load ptr, ptr %8, align 8, !tbaa !15
  %.not4851 = icmp eq ptr %.050, null
  br i1 %.not4851, label %.thread, label %.lr.ph

.lr.ph:                                           ; preds = %.critedge4
  %23 = load i64, ptr %9, align 8, !tbaa !16
  br label %24

24:                                               ; preds = %.lr.ph, %26
  %.052 = phi ptr [ %.050, %.lr.ph ], [ %.0, %26 ]
  %25 = load i64, ptr %.052, align 8, !tbaa !17
  %.not42 = icmp eq i64 %25, %23
  br i1 %.not42, label %.critedge6, label %26

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %.052, i64 16
  %.0 = load ptr, ptr %27, align 8, !tbaa !15
  %.not48 = icmp eq ptr %.0, null
  br i1 %.not48, label %.thread, label %24, !llvm.loop !19

.critedge6:                                       ; preds = %24
  %28 = load i32, ptr %2, align 8
  %29 = icmp eq i32 %28, 33
  br i1 %29, label %30, label %45

30:                                               ; preds = %.critedge6
  %31 = load i64, ptr %10, align 8, !tbaa !16
  %32 = load i64, ptr %11, align 8, !tbaa !21
  %33 = icmp eq i64 %31, %32
  br i1 %33, label %34, label %.thread57

34:                                               ; preds = %30
  %35 = load i64, ptr %12, align 8, !tbaa !16
  %36 = load i64, ptr %13, align 8, !tbaa !22
  %37 = icmp eq i64 %35, %36
  br i1 %37, label %38, label %.thread57

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %.052, i64 488
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %.not43 = icmp eq ptr %40, null
  br i1 %.not43, label %.thread57, label %41

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %.052, i64 496
  %43 = load ptr, ptr %42, align 8, !tbaa !25
  %44 = call i32 (ptr, ...) %40(ptr noundef %43) #3
  %.pre = load i32, ptr %2, align 8
  br label %45

45:                                               ; preds = %41, %.critedge6
  %46 = phi i32 [ %.pre, %41 ], [ %28, %.critedge6 ]
  %47 = icmp slt i32 %46, 36
  br i1 %47, label %.thread57, label %.thread

.thread57:                                        ; preds = %30, %34, %38, %45
  %48 = phi i32 [ %46, %45 ], [ 33, %38 ], [ 33, %34 ], [ 33, %30 ]
  %49 = getelementptr inbounds i8, ptr %.052, i64 72
  %50 = sext i32 %48 to i64
  %51 = getelementptr inbounds [36 x %struct.s_event_list], ptr %49, i64 0, i64 %50, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %.not44 = icmp eq ptr %52, null
  br i1 %.not44, label %.thread, label %53

53:                                               ; preds = %.thread57
  %54 = getelementptr inbounds [0 x ptr], ptr @mlx_int_param_event, i64 0, i64 %50
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = call i32 (ptr, ptr, ptr, ...) %55(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef nonnull %.052) #3
  br label %.thread

.thread:                                          ; preds = %26, %.critedge4, %53, %.thread57, %45
  %.pr = load i32, ptr %5, align 8, !tbaa !12
  %.not39 = icmp eq i32 %.pr, 0
  br i1 %.not39, label %.preheader, label %.critedge2, !llvm.loop !26

.critedge2:                                       ; preds = %.thread, %18
  %57 = load ptr, ptr %0, align 8, !tbaa !14
  %58 = call i32 @XSync(ptr noundef %57, i32 noundef 0) #3
  %59 = load ptr, ptr %7, align 8, !tbaa !13
  %.not45 = icmp eq ptr %59, null
  br i1 %.not45, label %63, label %60

60:                                               ; preds = %.critedge2
  %61 = load ptr, ptr %14, align 8, !tbaa !27
  %62 = call i32 (ptr, ...) %59(ptr noundef %61) #3
  br label %63

63:                                               ; preds = %60, %.critedge2
  %64 = call i32 @win_count(ptr noundef nonnull %0)
  %.not = icmp eq i32 %64, 0
  br i1 %.not, label %.critedge, label %15, !llvm.loop !28

.critedge:                                        ; preds = %15, %63, %1
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %2) #3
  ret i32 0
}

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

declare i32 @mlx_int_set_win_event_mask(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @win_count(ptr noundef) local_unnamed_addr #0

declare i32 @XPending(ptr noundef) local_unnamed_addr #2

declare i32 @XNextEvent(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @XSync(ptr noundef, i32 noundef) local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 }

!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, !11, i64 80}
!6 = !{!"s_xvar", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !7, i64 24, !10, i64 32, !11, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !8, i64 84, !10, i64 112, !10, i64 120, !11, i64 128}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !11, i64 128}
!13 = !{!6, !7, i64 56}
!14 = !{!6, !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"s_win_list", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !8, i64 72}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !10, i64 120}
!22 = !{!6, !10, i64 112}
!23 = !{!24, !7, i64 8}
!24 = !{!"s_event_list", !11, i64 0, !7, i64 8, !7, i64 16}
!25 = !{!24, !7, i64 16}
!26 = distinct !{!26, !20}
!27 = !{!6, !7, i64 64}
!28 = distinct !{!28, !20}


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