; LLVM IR from Stephane-D/SGDK :: src (pal)

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

@fadeInd = external hidden global i16, align 2
@fadeSize = external hidden global i16, align 2
@fadeCounter = external hidden global i16, align 2
@fadeCurrentPal = external dso_local global [64 x i16], align 16
@fadeEndPal = external dso_local global [64 x i16], align 16
@fadeR = external hidden global [64 x i16], align 16
@fadeG = external hidden global [64 x i16], align 16
@fadeB = external hidden global [64 x i16], align 16
@fadeSR = external hidden global [64 x i16], align 16
@fadeSG = external hidden global [64 x i16], align 16
@fadeSB = external hidden global [64 x i16], align 16

; 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: nounwind uwtable
declare dso_local void @PAL_setColors(i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i32 noundef) #1

; Function Attrs: noinline nounwind uwtable
define dso_local zeroext i8 @PAL_initFade(i16 noundef zeroext %0, i16 noundef zeroext %1, ptr noundef %2, ptr noundef %3, i16 noundef zeroext %4) #2 {
  %6 = alloca i8, align 1
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i16, align 2
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i16, align 2
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i16, align 2
  %22 = alloca i16, align 2
  %23 = alloca i16, align 2
  %24 = alloca i16, align 2
  %25 = alloca i16, align 2
  %26 = alloca i16, align 2
  %27 = alloca i16, align 2
  %28 = alloca i16, align 2
  store i16 %0, ptr %7, align 2, !tbaa !5
  store i16 %1, ptr %8, align 2, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !9
  store i16 %4, ptr %11, align 2, !tbaa !5
  %29 = load i16, ptr %11, align 2, !tbaa !5
  %30 = zext i16 %29 to i32
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %5
  store i8 0, ptr %6, align 1
  br label %154

33:                                               ; preds = %5
  %34 = load i16, ptr %7, align 2, !tbaa !5
  store i16 %34, ptr @fadeInd, align 2, !tbaa !5
  %35 = load i16, ptr %8, align 2, !tbaa !5
  %36 = zext i16 %35 to i32
  %37 = load i16, ptr %7, align 2, !tbaa !5
  %38 = zext i16 %37 to i32
  %39 = sub nsw i32 %36, %38
  %40 = add nsw i32 %39, 1
  %41 = trunc i32 %40 to i16
  store i16 %41, ptr @fadeSize, align 2, !tbaa !5
  %42 = load i16, ptr %11, align 2, !tbaa !5
  store i16 %42, ptr @fadeCounter, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %43 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %43, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %44 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %44, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #4
  %45 = load i16, ptr @fadeSize, align 2, !tbaa !5
  store i16 %45, ptr %14, align 2, !tbaa !5
  %46 = load ptr, ptr %12, align 8, !tbaa !9
  %47 = load i16, ptr %14, align 2, !tbaa !5
  %48 = zext i16 %47 to i32
  %49 = mul nsw i32 %48, 2
  %50 = trunc i32 %49 to i16
  call void @memcpy(ptr noundef @fadeCurrentPal, ptr noundef %46, i16 noundef zeroext %50)
  %51 = load ptr, ptr %13, align 8, !tbaa !9
  %52 = load i16, ptr %14, align 2, !tbaa !5
  %53 = zext i16 %52 to i32
  %54 = mul nsw i32 %53, 2
  %55 = trunc i32 %54 to i16
  call void @memcpy(ptr noundef @fadeEndPal, ptr noundef %51, i16 noundef zeroext %55)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store ptr @fadeR, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr @fadeG, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store ptr @fadeB, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store ptr @fadeSR, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store ptr @fadeSG, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store ptr @fadeSB, ptr %20, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %60, %33
  %57 = load i16, ptr %14, align 2, !tbaa !5
  %58 = add i16 %57, -1
  store i16 %58, ptr %14, align 2, !tbaa !5
  %59 = icmp ne i16 %57, 0
  br i1 %59, label %60, label %151

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #4
  %61 = load ptr, ptr %12, align 8, !tbaa !9
  %62 = getelementptr inbounds i16, ptr %61, i32 1
  store ptr %62, ptr %12, align 8, !tbaa !9
  %63 = load i16, ptr %61, align 2, !tbaa !5
  store i16 %63, ptr %21, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #4
  %64 = load i16, ptr %21, align 2, !tbaa !5
  %65 = zext i16 %64 to i32
  %66 = and i32 %65, 14
  %67 = ashr i32 %66, 1
  %68 = shl i32 %67, 8
  %69 = trunc i32 %68 to i16
  store i16 %69, ptr %22, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #4
  %70 = load i16, ptr %21, align 2, !tbaa !5
  %71 = zext i16 %70 to i32
  %72 = and i32 %71, 224
  %73 = ashr i32 %72, 5
  %74 = shl i32 %73, 8
  %75 = trunc i32 %74 to i16
  store i16 %75, ptr %23, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #4
  %76 = load i16, ptr %21, align 2, !tbaa !5
  %77 = zext i16 %76 to i32
  %78 = and i32 %77, 3584
  %79 = ashr i32 %78, 9
  %80 = shl i32 %79, 8
  %81 = trunc i32 %80 to i16
  store i16 %81, ptr %24, align 2, !tbaa !5
  %82 = load i16, ptr %22, align 2, !tbaa !5
  %83 = sext i16 %82 to i32
  %84 = add nsw i32 %83, 127
  %85 = trunc i32 %84 to i16
  %86 = load ptr, ptr %15, align 8, !tbaa !9
  %87 = getelementptr inbounds i16, ptr %86, i32 1
  store ptr %87, ptr %15, align 8, !tbaa !9
  store i16 %85, ptr %86, align 2, !tbaa !5
  %88 = load i16, ptr %23, align 2, !tbaa !5
  %89 = sext i16 %88 to i32
  %90 = add nsw i32 %89, 127
  %91 = trunc i32 %90 to i16
  %92 = load ptr, ptr %16, align 8, !tbaa !9
  %93 = getelementptr inbounds i16, ptr %92, i32 1
  store ptr %93, ptr %16, align 8, !tbaa !9
  store i16 %91, ptr %92, align 2, !tbaa !5
  %94 = load i16, ptr %24, align 2, !tbaa !5
  %95 = sext i16 %94 to i32
  %96 = add nsw i32 %95, 127
  %97 = trunc i32 %96 to i16
  %98 = load ptr, ptr %17, align 8, !tbaa !9
  %99 = getelementptr inbounds i16, ptr %98, i32 1
  store ptr %99, ptr %17, align 8, !tbaa !9
  store i16 %97, ptr %98, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %25) #4
  %100 = load ptr, ptr %13, align 8, !tbaa !9
  %101 = getelementptr inbounds i16, ptr %100, i32 1
  store ptr %101, ptr %13, align 8, !tbaa !9
  %102 = load i16, ptr %100, align 2, !tbaa !5
  store i16 %102, ptr %25, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #4
  %103 = load i16, ptr %25, align 2, !tbaa !5
  %104 = zext i16 %103 to i32
  %105 = and i32 %104, 14
  %106 = ashr i32 %105, 1
  %107 = shl i32 %106, 8
  %108 = trunc i32 %107 to i16
  store i16 %108, ptr %26, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %27) #4
  %109 = load i16, ptr %25, align 2, !tbaa !5
  %110 = zext i16 %109 to i32
  %111 = and i32 %110, 224
  %112 = ashr i32 %111, 5
  %113 = shl i32 %112, 8
  %114 = trunc i32 %113 to i16
  store i16 %114, ptr %27, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %28) #4
  %115 = load i16, ptr %25, align 2, !tbaa !5
  %116 = zext i16 %115 to i32
  %117 = and i32 %116, 3584
  %118 = ashr i32 %117, 9
  %119 = shl i32 %118, 8
  %120 = trunc i32 %119 to i16
  store i16 %120, ptr %28, align 2, !tbaa !5
  %121 = load i16, ptr %26, align 2, !tbaa !5
  %122 = sext i16 %121 to i32
  %123 = load i16, ptr %22, align 2, !tbaa !5
  %124 = sext i16 %123 to i32
  %125 = sub nsw i32 %122, %124
  %126 = sext i32 %125 to i64
  %127 = load i16, ptr %11, align 2, !tbaa !5
  %128 = call signext i16 @divs(i64 noundef %126, i16 noundef signext %127)
  %129 = load ptr, ptr %18, align 8, !tbaa !9
  %130 = getelementptr inbounds i16, ptr %129, i32 1
  store ptr %130, ptr %18, align 8, !tbaa !9
  store i16 %128, ptr %129, align 2, !tbaa !5
  %131 = load i16, ptr %27, align 2, !tbaa !5
  %132 = sext i16 %131 to i32
  %133 = load i16, ptr %23, align 2, !tbaa !5
  %134 = sext i16 %133 to i32
  %135 = sub nsw i32 %132, %134
  %136 = sext i32 %135 to i64
  %137 = load i16, ptr %11, align 2, !tbaa !5
  %138 = call signext i16 @divs(i64 noundef %136, i16 noundef signext %137)
  %139 = load ptr, ptr %19, align 8, !tbaa !9
  %140 = getelementptr inbounds i16, ptr %139, i32 1
  store ptr %140, ptr %19, align 8, !tbaa !9
  store i16 %138, ptr %139, align 2, !tbaa !5
  %141 = load i16, ptr %28, align 2, !tbaa !5
  %142 = sext i16 %141 to i32
  %143 = load i16, ptr %24, align 2, !tbaa !5
  %144 = sext i16 %143 to i32
  %145 = sub nsw i32 %142, %144
  %146 = sext i32 %145 to i64
  %147 = load i16, ptr %11, align 2, !tbaa !5
  %148 = call signext i16 @divs(i64 noundef %146, i16 noundef signext %147)
  %149 = load ptr, ptr %20, align 8, !tbaa !9
  %150 = getelementptr inbounds i16, ptr %149, i32 1
  store ptr %150, ptr %20, align 8, !tbaa !9
  store i16 %148, ptr %149, align 2, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 2, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #4
  br label %56, !llvm.loop !11

151:                                              ; preds = %56
  %152 = load i16, ptr @fadeInd, align 2, !tbaa !5
  %153 = load i16, ptr @fadeSize, align 2, !tbaa !5
  call void @PAL_setColors(i16 noundef zeroext %152, ptr noundef @fadeCurrentPal, i16 noundef zeroext %153, i32 noundef 2)
  store i8 1, ptr %6, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %154

154:                                              ; preds = %151, %32
  %155 = load i8, ptr %6, align 1
  ret i8 %155
}

declare void @memcpy(ptr noundef, ptr noundef, i16 noundef zeroext) #3

declare signext i16 @divs(i64 noundef, i16 noundef signext) #3

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

!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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"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"

@fadeInd = external hidden local_unnamed_addr global i16, align 2
@fadeSize = external hidden local_unnamed_addr global i16, align 2
@fadeCounter = external hidden local_unnamed_addr global i16, align 2
@fadeCurrentPal = external dso_local global [64 x i16], align 16
@fadeEndPal = external dso_local global [64 x i16], align 16
@fadeR = external hidden local_unnamed_addr global [64 x i16], align 16
@fadeG = external hidden local_unnamed_addr global [64 x i16], align 16
@fadeB = external hidden local_unnamed_addr global [64 x i16], align 16
@fadeSR = external hidden local_unnamed_addr global [64 x i16], align 16
@fadeSG = external hidden local_unnamed_addr global [64 x i16], align 16
@fadeSB = external hidden local_unnamed_addr global [64 x i16], align 16

; Function Attrs: nounwind uwtable
declare dso_local void @PAL_setColors(i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i32 noundef) local_unnamed_addr #0

; Function Attrs: noinline nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @PAL_initFade(i16 noundef zeroext %0, i16 noundef zeroext %1, ptr noundef %2, ptr noundef %3, i16 noundef zeroext %4) local_unnamed_addr #1 {
  %6 = icmp eq i16 %4, 0
  br i1 %6, label %51, label %7

7:                                                ; preds = %5
  store i16 %0, ptr @fadeInd, align 2, !tbaa !5
  %8 = sub i16 %1, %0
  %9 = add i16 %8, 1
  store i16 %9, ptr @fadeSize, align 2, !tbaa !5
  store i16 %4, ptr @fadeCounter, align 2, !tbaa !5
  %10 = shl i16 %9, 1
  tail call void @memcpy(ptr noundef nonnull @fadeCurrentPal, ptr noundef %2, i16 noundef zeroext %10) #3
  tail call void @memcpy(ptr noundef nonnull @fadeEndPal, ptr noundef %3, i16 noundef zeroext %10) #3
  %.not47 = icmp eq i16 %9, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %7, %.lr.ph
  %.03856 = phi ptr [ %12, %.lr.ph ], [ %2, %7 ]
  %.03955 = phi ptr [ %29, %.lr.ph ], [ %3, %7 ]
  %.04054 = phi i16 [ %11, %.lr.ph ], [ %9, %7 ]
  %.04153 = phi ptr [ %22, %.lr.ph ], [ @fadeR, %7 ]
  %.04252 = phi ptr [ %25, %.lr.ph ], [ @fadeG, %7 ]
  %.04351 = phi ptr [ %28, %.lr.ph ], [ @fadeB, %7 ]
  %.04450 = phi ptr [ %40, %.lr.ph ], [ @fadeSR, %7 ]
  %.04549 = phi ptr [ %48, %.lr.ph ], [ @fadeSB, %7 ]
  %.04648 = phi ptr [ %44, %.lr.ph ], [ @fadeSG, %7 ]
  %11 = add i16 %.04054, -1
  %12 = getelementptr inbounds i8, ptr %.03856, i64 2
  %13 = load i16, ptr %.03856, align 2, !tbaa !5
  %14 = shl i16 %13, 7
  %15 = and i16 %14, 1792
  %16 = shl i16 %13, 3
  %17 = and i16 %16, 1792
  %18 = lshr i16 %13, 1
  %19 = and i16 %18, 1792
  %20 = zext nneg i16 %15 to i64
  %21 = or disjoint i16 %15, 127
  %22 = getelementptr inbounds i8, ptr %.04153, i64 2
  store i16 %21, ptr %.04153, align 2, !tbaa !5
  %23 = zext nneg i16 %17 to i64
  %24 = or disjoint i16 %17, 127
  %25 = getelementptr inbounds i8, ptr %.04252, i64 2
  store i16 %24, ptr %.04252, align 2, !tbaa !5
  %26 = zext nneg i16 %19 to i64
  %27 = or disjoint i16 %19, 127
  %28 = getelementptr inbounds i8, ptr %.04351, i64 2
  store i16 %27, ptr %.04351, align 2, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %.03955, i64 2
  %30 = load i16, ptr %.03955, align 2, !tbaa !5
  %31 = shl i16 %30, 7
  %32 = and i16 %31, 1792
  %33 = shl i16 %30, 3
  %34 = and i16 %33, 1792
  %35 = lshr i16 %30, 1
  %36 = and i16 %35, 1792
  %37 = zext nneg i16 %32 to i64
  %38 = sub nsw i64 %37, %20
  %39 = tail call signext i16 @divs(i64 noundef %38, i16 noundef signext %4) #3
  %40 = getelementptr inbounds i8, ptr %.04450, i64 2
  store i16 %39, ptr %.04450, align 2, !tbaa !5
  %41 = zext nneg i16 %34 to i64
  %42 = sub nsw i64 %41, %23
  %43 = tail call signext i16 @divs(i64 noundef %42, i16 noundef signext %4) #3
  %44 = getelementptr inbounds i8, ptr %.04648, i64 2
  store i16 %43, ptr %.04648, align 2, !tbaa !5
  %45 = zext nneg i16 %36 to i64
  %46 = sub nsw i64 %45, %26
  %47 = tail call signext i16 @divs(i64 noundef %46, i16 noundef signext %4) #3
  %48 = getelementptr inbounds i8, ptr %.04549, i64 2
  store i16 %47, ptr %.04549, align 2, !tbaa !5
  %.not = icmp eq i16 %11, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %7
  %49 = load i16, ptr @fadeInd, align 2, !tbaa !5
  %50 = load i16, ptr @fadeSize, align 2, !tbaa !5
  tail call void @PAL_setColors(i16 noundef zeroext %49, ptr noundef nonnull @fadeCurrentPal, i16 noundef zeroext %50, i32 noundef 2)
  br label %51

51:                                               ; preds = %5, %._crit_edge
  %.0 = phi i8 [ 1, %._crit_edge ], [ 0, %5 ]
  ret i8 %.0
}

declare void @memcpy(ptr noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

declare signext i16 @divs(i64 noundef, i16 noundef signext) local_unnamed_addr #2

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 = { noinline 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 = { 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass