; LLVM IR from clangen/musikcube :: src/3rdparty/win32_src/pdcurses (mouse)

; 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.MEVENT = type { i16, i32, i32, i32, i64 }
%struct.SCREEN = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i64, i32, i32, ptr, i32, i32, i32, i8, i32, i64, i8, i8, %struct.MOUSE_STATUS, i16, i64, ptr, ptr, i8, i8, i32, i32, ptr, i32, i32, ptr, i32, i32, ptr }
%struct.MOUSE_STATUS = type { i32, i32, [9 x i16], i32 }

@SP = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@ungot = external hidden global i8, align 1
@__PRETTY_FUNCTION__.ungetmouse = external hidden unnamed_addr constant [25 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ungetmouse(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i16, align 2
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %1
  br label %13

12:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 395, ptr noundef @__PRETTY_FUNCTION__.ungetmouse) #5
  unreachable

13:                                               ; preds = %11
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %19

16:                                               ; preds = %13
  %17 = load i8, ptr @ungot, align 1, !tbaa !9, !range !11, !noundef !12
  %18 = trunc i8 %17 to i1
  br i1 %18, label %19, label %20

19:                                               ; preds = %16, %13
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %152

20:                                               ; preds = %16
  store i8 1, ptr @ungot, align 1, !tbaa !9
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.MEVENT, ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 4, !tbaa !13
  %24 = load ptr, ptr @SP, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.SCREEN, ptr %24, i32 0, i32 30
  %26 = getelementptr inbounds %struct.MOUSE_STATUS, ptr %25, i32 0, i32 0
  store i32 %23, ptr %26, align 4, !tbaa !18
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.MEVENT, ptr %27, i32 0, i32 2
  %29 = load i32, ptr %28, align 8, !tbaa !21
  %30 = load ptr, ptr @SP, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.SCREEN, ptr %30, i32 0, i32 30
  %32 = getelementptr inbounds %struct.MOUSE_STATUS, ptr %31, i32 0, i32 1
  store i32 %29, ptr %32, align 4, !tbaa !22
  %33 = load ptr, ptr @SP, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.SCREEN, ptr %33, i32 0, i32 30
  %35 = getelementptr inbounds %struct.MOUSE_STATUS, ptr %34, i32 0, i32 3
  store i32 0, ptr %35, align 4, !tbaa !23
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.MEVENT, ptr %36, i32 0, i32 4
  %38 = load i64, ptr %37, align 8, !tbaa !24
  store i64 %38, ptr %5, align 8, !tbaa !25
  store i32 0, ptr %4, align 4, !tbaa !26
  br label %39

39:                                               ; preds = %126, %20
  %40 = load i32, ptr %4, align 4, !tbaa !26
  %41 = icmp slt i32 %40, 3
  br i1 %41, label %42, label %129

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %43 = load i32, ptr %4, align 4, !tbaa !26
  %44 = mul nsw i32 %43, 6
  store i32 %44, ptr %7, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #4
  store i16 0, ptr %8, align 2, !tbaa !27
  %45 = load i64, ptr %5, align 8, !tbaa !25
  %46 = load i32, ptr %7, align 4, !tbaa !26
  %47 = zext i32 %46 to i64
  %48 = shl i64 31, %47
  %49 = and i64 %45, %48
  %50 = icmp ne i64 %49, 0
  br i1 %50, label %51, label %118

51:                                               ; preds = %42
  %52 = load i32, ptr %4, align 4, !tbaa !26
  %53 = shl i32 1, %52
  %54 = load ptr, ptr @SP, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.SCREEN, ptr %54, i32 0, i32 30
  %56 = getelementptr inbounds %struct.MOUSE_STATUS, ptr %55, i32 0, i32 3
  %57 = load i32, ptr %56, align 4, !tbaa !23
  %58 = or i32 %57, %53
  store i32 %58, ptr %56, align 4, !tbaa !23
  %59 = load i64, ptr %5, align 8, !tbaa !25
  %60 = load i32, ptr %7, align 4, !tbaa !26
  %61 = zext i32 %60 to i64
  %62 = shl i64 2, %61
  %63 = and i64 %59, %62
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %51
  store i16 1, ptr %8, align 2, !tbaa !27
  br label %66

66:                                               ; preds = %65, %51
  %67 = load i64, ptr %5, align 8, !tbaa !25
  %68 = load i32, ptr %7, align 4, !tbaa !26
  %69 = zext i32 %68 to i64
  %70 = shl i64 4, %69
  %71 = and i64 %67, %70
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %66
  store i16 2, ptr %8, align 2, !tbaa !27
  br label %74

74:                                               ; preds = %73, %66
  %75 = load i64, ptr %5, align 8, !tbaa !25
  %76 = load i32, ptr %7, align 4, !tbaa !26
  %77 = zext i32 %76 to i64
  %78 = shl i64 8, %77
  %79 = and i64 %75, %78
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %74
  store i16 3, ptr %8, align 2, !tbaa !27
  br label %82

82:                                               ; preds = %81, %74
  %83 = load i64, ptr %5, align 8, !tbaa !25
  %84 = load i32, ptr %7, align 4, !tbaa !26
  %85 = zext i32 %84 to i64
  %86 = shl i64 16, %85
  %87 = and i64 %83, %86
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %82
  store i16 4, ptr %8, align 2, !tbaa !27
  br label %90

90:                                               ; preds = %89, %82
  %91 = load i64, ptr %5, align 8, !tbaa !25
  %92 = and i64 %91, 2147483648
  %93 = icmp ne i64 %92, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %90
  %95 = load i16, ptr %8, align 2, !tbaa !27
  %96 = sext i16 %95 to i32
  %97 = or i32 %96, 8
  %98 = trunc i32 %97 to i16
  store i16 %98, ptr %8, align 2, !tbaa !27
  br label %99

99:                                               ; preds = %94, %90
  %100 = load i64, ptr %5, align 8, !tbaa !25
  %101 = and i64 %100, 4294967296
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %99
  %104 = load i16, ptr %8, align 2, !tbaa !27
  %105 = sext i16 %104 to i32
  %106 = or i32 %105, 16
  %107 = trunc i32 %106 to i16
  store i16 %107, ptr %8, align 2, !tbaa !27
  br label %108

108:                                              ; preds = %103, %99
  %109 = load i64, ptr %5, align 8, !tbaa !25
  %110 = and i64 %109, 8589934592
  %111 = icmp ne i64 %110, 0
  br i1 %111, label %112, label %117

112:                                              ; preds = %108
  %113 = load i16, ptr %8, align 2, !tbaa !27
  %114 = sext i16 %113 to i32
  %115 = or i32 %114, 32
  %116 = trunc i32 %115 to i16
  store i16 %116, ptr %8, align 2, !tbaa !27
  br label %117

117:                                              ; preds = %112, %108
  br label %118

118:                                              ; preds = %117, %42
  %119 = load i16, ptr %8, align 2, !tbaa !27
  %120 = load ptr, ptr @SP, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.SCREEN, ptr %120, i32 0, i32 30
  %122 = getelementptr inbounds %struct.MOUSE_STATUS, ptr %121, i32 0, i32 2
  %123 = load i32, ptr %4, align 4, !tbaa !26
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [9 x i16], ptr %122, i64 0, i64 %124
  store i16 %119, ptr %125, align 2, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %126

126:                                              ; preds = %118
  %127 = load i32, ptr %4, align 4, !tbaa !26
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %4, align 4, !tbaa !26
  br label %39, !llvm.loop !28

129:                                              ; preds = %39
  %130 = load i64, ptr %5, align 8, !tbaa !25
  %131 = and i64 %130, 524288
  %132 = icmp ne i64 %131, 0
  br i1 %132, label %133, label %139

133:                                              ; preds = %129
  %134 = load ptr, ptr @SP, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.SCREEN, ptr %134, i32 0, i32 30
  %136 = getelementptr inbounds %struct.MOUSE_STATUS, ptr %135, i32 0, i32 3
  %137 = load i32, ptr %136, align 4, !tbaa !23
  %138 = or i32 %137, 32
  store i32 %138, ptr %136, align 4, !tbaa !23
  br label %150

139:                                              ; preds = %129
  %140 = load i64, ptr %5, align 8, !tbaa !25
  %141 = and i64 %140, 33554432
  %142 = icmp ne i64 %141, 0
  br i1 %142, label %143, label %149

143:                                              ; preds = %139
  %144 = load ptr, ptr @SP, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.SCREEN, ptr %144, i32 0, i32 30
  %146 = getelementptr inbounds %struct.MOUSE_STATUS, ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !23
  %148 = or i32 %147, 64
  store i32 %148, ptr %146, align 4, !tbaa !23
  br label %149

149:                                              ; preds = %143, %139
  br label %150

150:                                              ; preds = %149, %133
  %151 = call i32 @PDC_ungetch(i32 noundef 539)
  store i32 %151, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %152

152:                                              ; preds = %150, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %153 = load i32, ptr %2, align 4
  ret i32 %153
}

declare i32 @PDC_ungetch(i32 noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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 }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !16, i64 4}
!14 = !{!"", !15, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !17, i64 16}
!15 = !{!"short", !7, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !16, i64 100}
!19 = !{!"", !10, i64 0, !10, i64 1, !10, i64 2, !10, i64 3, !10, i64 4, !10, i64 5, !10, i64 6, !10, i64 7, !10, i64 8, !10, i64 9, !15, i64 10, !15, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 32, !16, i64 36, !17, i64 40, !16, i64 48, !16, i64 52, !6, i64 56, !16, i64 64, !16, i64 68, !16, i64 72, !10, i64 76, !16, i64 80, !17, i64 88, !10, i64 96, !10, i64 97, !20, i64 100, !15, i64 132, !17, i64 136, !6, i64 144, !6, i64 152, !10, i64 160, !10, i64 161, !16, i64 164, !16, i64 168, !6, i64 176, !16, i64 184, !16, i64 188, !6, i64 192, !16, i64 200, !16, i64 204, !6, i64 208}
!20 = !{!"", !16, i64 0, !16, i64 4, !7, i64 8, !16, i64 28}
!21 = !{!14, !16, i64 8}
!22 = !{!19, !16, i64 104}
!23 = !{!19, !16, i64 128}
!24 = !{!14, !17, i64 16}
!25 = !{!17, !17, i64 0}
!26 = !{!16, !16, i64 0}
!27 = !{!15, !15, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"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"

@SP = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@ungot = external hidden local_unnamed_addr global i8, align 1
@__PRETTY_FUNCTION__.ungetmouse = external hidden unnamed_addr constant [25 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: nounwind uwtable
define dso_local i32 @ungetmouse(ptr noundef readonly %0) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %3

2:                                                ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 395, ptr noundef nonnull @__PRETTY_FUNCTION__.ungetmouse) #3
  unreachable

3:                                                ; preds = %1
  %4 = load i8, ptr @ungot, align 1, !tbaa !5, !range !9, !noundef !10
  %5 = trunc nuw i8 %4 to i1
  br i1 %5, label %54, label %6

6:                                                ; preds = %3
  store i8 1, ptr @ungot, align 1, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load ptr, ptr @SP, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %8, i64 100
  %10 = load <2 x i32>, ptr %7, align 4, !tbaa !13
  store <2 x i32> %10, ptr %9, align 4, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %8, i64 128
  store i32 0, ptr %11, align 4, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %8, i64 108
  %15 = lshr i64 %13, 28
  %16 = trunc i64 %15 to i16
  %.5 = and i16 %16, 56
  %17 = and i64 %13, 31
  %.not34 = icmp eq i64 %17, 0
  br i1 %.not34, label %24, label %18

18:                                               ; preds = %6
  store i32 1, ptr %11, align 4, !tbaa !15
  %19 = trunc i64 %13 to i16
  %20 = lshr i16 %19, 1
  %spec.select = and i16 %20, 1
  %21 = and i64 %13, 4
  %.not36 = icmp eq i64 %21, 0
  %.1 = select i1 %.not36, i16 %spec.select, i16 2
  %22 = and i64 %13, 8
  %.not37 = icmp eq i64 %22, 0
  %.2 = select i1 %.not37, i16 %.1, i16 3
  %23 = and i64 %13, 16
  %.not38 = icmp eq i64 %23, 0
  %.3 = select i1 %.not38, i16 %.2, i16 4
  %spec.select42 = or disjoint i16 %.5, %.3
  br label %24

24:                                               ; preds = %18, %6
  %25 = phi i32 [ 0, %6 ], [ 1, %18 ]
  %.6 = phi i16 [ 0, %6 ], [ %spec.select42, %18 ]
  store i16 %.6, ptr %14, align 2, !tbaa !22
  %26 = and i64 %13, 1984
  %.not34.1 = icmp eq i64 %26, 0
  br i1 %.not34.1, label %34, label %27

27:                                               ; preds = %24
  %28 = or disjoint i32 %25, 2
  store i32 %28, ptr %11, align 4, !tbaa !15
  %29 = trunc i64 %13 to i16
  %30 = lshr i16 %29, 7
  %spec.select.1 = and i16 %30, 1
  %31 = and i64 %13, 256
  %.not36.1 = icmp eq i64 %31, 0
  %.1.1 = select i1 %.not36.1, i16 %spec.select.1, i16 2
  %32 = and i64 %13, 512
  %.not37.1 = icmp eq i64 %32, 0
  %.2.1 = select i1 %.not37.1, i16 %.1.1, i16 3
  %33 = and i64 %13, 1024
  %.not38.1 = icmp eq i64 %33, 0
  %.3.1 = select i1 %.not38.1, i16 %.2.1, i16 4
  %spec.select42.1 = or disjoint i16 %.5, %.3.1
  br label %34

34:                                               ; preds = %27, %24
  %35 = phi i32 [ %25, %24 ], [ %28, %27 ]
  %.6.1 = phi i16 [ 0, %24 ], [ %spec.select42.1, %27 ]
  %36 = getelementptr inbounds i8, ptr %8, i64 110
  store i16 %.6.1, ptr %36, align 2, !tbaa !22
  %37 = and i64 %13, 126976
  %.not34.2 = icmp eq i64 %37, 0
  br i1 %.not34.2, label %45, label %38

38:                                               ; preds = %34
  %39 = or i32 %35, 4
  store i32 %39, ptr %11, align 4, !tbaa !15
  %40 = trunc i64 %13 to i16
  %41 = lshr i16 %40, 13
  %spec.select.2 = and i16 %41, 1
  %42 = and i64 %13, 16384
  %.not36.2 = icmp eq i64 %42, 0
  %.1.2 = select i1 %.not36.2, i16 %spec.select.2, i16 2
  %43 = and i64 %13, 32768
  %.not37.2 = icmp eq i64 %43, 0
  %.2.2 = select i1 %.not37.2, i16 %.1.2, i16 3
  %44 = and i64 %13, 65536
  %.not38.2 = icmp eq i64 %44, 0
  %.3.2 = select i1 %.not38.2, i16 %.2.2, i16 4
  %spec.select42.2 = or disjoint i16 %.5, %.3.2
  br label %45

45:                                               ; preds = %38, %34
  %46 = phi i32 [ %35, %34 ], [ %39, %38 ]
  %.6.2 = phi i16 [ 0, %34 ], [ %spec.select42.2, %38 ]
  %47 = getelementptr inbounds i8, ptr %8, i64 112
  store i16 %.6.2, ptr %47, align 2, !tbaa !22
  %48 = and i64 %13, 524288
  %.not32 = icmp eq i64 %48, 0
  br i1 %.not32, label %49, label %.sink.split

49:                                               ; preds = %45
  %50 = and i64 %13, 33554432
  %.not33 = icmp eq i64 %50, 0
  br i1 %.not33, label %52, label %.sink.split

.sink.split:                                      ; preds = %49, %45
  %.sink45 = phi i32 [ 32, %45 ], [ 64, %49 ]
  %51 = or i32 %46, %.sink45
  store i32 %51, ptr %11, align 4, !tbaa !15
  br label %52

52:                                               ; preds = %.sink.split, %49
  %53 = tail call i32 @PDC_ungetch(i32 noundef 539) #4
  br label %54

54:                                               ; preds = %3, %52
  %.029 = phi i32 [ %53, %52 ], [ -1, %3 ]
  ret i32 %.029
}

declare i32 @PDC_ungetch(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 = { 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 = { "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 }
attributes #4 = { 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 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 128}
!16 = !{!"", !6, i64 0, !6, i64 1, !6, i64 2, !6, i64 3, !6, i64 4, !6, i64 5, !6, i64 6, !6, i64 7, !6, i64 8, !6, i64 9, !17, i64 10, !17, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !18, i64 40, !14, i64 48, !14, i64 52, !12, i64 56, !14, i64 64, !14, i64 68, !14, i64 72, !6, i64 76, !14, i64 80, !18, i64 88, !6, i64 96, !6, i64 97, !19, i64 100, !17, i64 132, !18, i64 136, !12, i64 144, !12, i64 152, !6, i64 160, !6, i64 161, !14, i64 164, !14, i64 168, !12, i64 176, !14, i64 184, !14, i64 188, !12, i64 192, !14, i64 200, !14, i64 204, !12, i64 208}
!17 = !{!"short", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"", !14, i64 0, !14, i64 4, !7, i64 8, !14, i64 28}
!20 = !{!21, !18, i64 16}
!21 = !{!"", !17, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !18, i64 16}
!22 = !{!17, !17, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass