; LLVM IR from lfarcaro/ARINC653_ARMV7A_Z7000 :: ARINC653_ARMV7A_Z7000.sw/ARINC653_ARMV7A_Z7000_bsp/ps7_cortexa9_0/libsrc (FaultISR)

; 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.XDmaPs = type { %struct.XDmaPs_Config, i32, i32, ptr, ptr, [8 x %struct.XDmaPs_ChannelData] }
%struct.XDmaPs_Config = type { i16, i32 }
%struct.XDmaPs_ChannelData = type { i32, i32, [2 x %struct.XDmaPs_ProgBuf], ptr, ptr, ptr, ptr, i32 }
%struct.XDmaPs_ProgBuf = type { [128 x i8], i32, i32 }
%struct.XDmaPs_Cmd = type { %struct.XDmaPs_ChanCtrl, %struct.XDmaPs_BD, ptr, i32, ptr, i32, i32, i32, i32 }
%struct.XDmaPs_ChanCtrl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.XDmaPs_BD = type { i32, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [46 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: inlinehint nounwind uwtable
declare hidden i32 @Xil_In32(i64 noundef) #1

; 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 hidden i32 @XDmaPs_Exec_DMAKILL(i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @XDmaPs_FaultISR(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.XDmaPs, ptr %13, i32 0, i32 0
  %15 = getelementptr inbounds %struct.XDmaPs_Config, ptr %14, i32 0, i32 1
  %16 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %16, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %17 = load i32, ptr %7, align 4, !tbaa !14
  %18 = add i32 %17, 48
  %19 = zext i32 %18 to i64
  %20 = call i32 @Xil_In32(i64 noundef %19)
  %21 = and i32 %20, 1
  store i32 %21, ptr %4, align 4, !tbaa !14
  %22 = load i32, ptr %7, align 4, !tbaa !14
  %23 = add i32 %22, 52
  %24 = zext i32 %23 to i64
  %25 = call i32 @Xil_In32(i64 noundef %24)
  %26 = and i32 %25, 255
  store i32 %26, ptr %5, align 4, !tbaa !14
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.XDmaPs, ptr %27, i32 0, i32 0
  %29 = getelementptr inbounds %struct.XDmaPs_Config, ptr %28, i32 0, i32 0
  %30 = load i16, ptr %29, align 8, !tbaa !15
  %31 = zext i16 %30 to i32
  store i32 %31, ptr %11, align 4, !tbaa !14
  %32 = load i32, ptr %4, align 4, !tbaa !14
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %48

34:                                               ; preds = %1
  %35 = load i32, ptr %7, align 4, !tbaa !14
  %36 = add i32 %35, 56
  %37 = zext i32 %36 to i64
  %38 = call i32 @Xil_In32(i64 noundef %37)
  store i32 %38, ptr %6, align 4, !tbaa !14
  %39 = load i32, ptr %7, align 4, !tbaa !14
  %40 = add i32 %39, 4
  %41 = zext i32 %40 to i64
  %42 = call i32 @Xil_In32(i64 noundef %41)
  store i32 %42, ptr %8, align 4, !tbaa !14
  %43 = load i32, ptr %11, align 4, !tbaa !14
  %44 = load i32, ptr %6, align 4, !tbaa !14
  %45 = load i32, ptr %8, align 4, !tbaa !14
  call void (ptr, ...) @xil_printf(ptr noundef @.str.1, i32 noundef %43, i32 noundef %44, i32 noundef %45)
  %46 = load i32, ptr %7, align 4, !tbaa !14
  %47 = call i32 @XDmaPs_Exec_DMAKILL(i32 noundef %46, i32 noundef 0, i32 noundef 0)
  br label %48

48:                                               ; preds = %34, %1
  store i32 0, ptr %10, align 4, !tbaa !14
  br label %49

49:                                               ; preds = %132, %48
  %50 = load i32, ptr %10, align 4, !tbaa !14
  %51 = icmp ult i32 %50, 8
  br i1 %51, label %52, label %135

52:                                               ; preds = %49
  %53 = load i32, ptr %5, align 4, !tbaa !14
  %54 = load i32, ptr %10, align 4, !tbaa !14
  %55 = shl i32 1, %54
  %56 = and i32 %53, %55
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %131

58:                                               ; preds = %52
  %59 = load i32, ptr %7, align 4, !tbaa !14
  %60 = load i32, ptr %10, align 4, !tbaa !14
  %61 = mul i32 %60, 4
  %62 = add i32 64, %61
  %63 = add i32 %59, %62
  %64 = zext i32 %63 to i64
  %65 = call i32 @Xil_In32(i64 noundef %64)
  store i32 %65, ptr %6, align 4, !tbaa !14
  %66 = load i32, ptr %7, align 4, !tbaa !14
  %67 = load i32, ptr %10, align 4, !tbaa !14
  %68 = mul i32 %67, 8
  %69 = add i32 260, %68
  %70 = add i32 %66, %69
  %71 = zext i32 %70 to i64
  %72 = call i32 @Xil_In32(i64 noundef %71)
  store i32 %72, ptr %8, align 4, !tbaa !14
  %73 = load i32, ptr %7, align 4, !tbaa !14
  %74 = load i32, ptr %10, align 4, !tbaa !14
  %75 = call i32 @XDmaPs_Exec_DMAKILL(i32 noundef %73, i32 noundef %74, i32 noundef 1)
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.XDmaPs, ptr %76, i32 0, i32 5
  %78 = getelementptr inbounds [8 x %struct.XDmaPs_ChannelData], ptr %77, i64 0, i64 0
  %79 = load i32, ptr %10, align 4, !tbaa !14
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds %struct.XDmaPs_ChannelData, ptr %78, i64 %80
  store ptr %81, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.XDmaPs_ChannelData, ptr %82, i32 0, i32 5
  %84 = load ptr, ptr %83, align 8, !tbaa !16
  store ptr %84, ptr %12, align 8, !tbaa !5
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.XDmaPs_Cmd, ptr %85, i32 0, i32 6
  store i32 -1, ptr %86, align 4, !tbaa !18
  %87 = load i32, ptr %6, align 4, !tbaa !14
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.XDmaPs_Cmd, ptr %88, i32 0, i32 7
  store i32 %87, ptr %89, align 8, !tbaa !22
  %90 = load i32, ptr %8, align 4, !tbaa !14
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.XDmaPs_Cmd, ptr %91, i32 0, i32 8
  store i32 %90, ptr %92, align 4, !tbaa !23
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.XDmaPs_ChannelData, ptr %94, i32 0, i32 6
  store ptr %93, ptr %95, align 8, !tbaa !24
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.XDmaPs_ChannelData, ptr %96, i32 0, i32 5
  store ptr null, ptr %97, align 8, !tbaa !16
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.XDmaPs_ChannelData, ptr %98, i32 0, i32 7
  %100 = load i32, ptr %99, align 8, !tbaa !25
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %116, label %102

102:                                              ; preds = %58
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.XDmaPs_Cmd, ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !26
  store ptr %105, ptr %3, align 8, !tbaa !5
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %113

108:                                              ; preds = %102
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.XDmaPs_ChannelData, ptr %109, i32 0, i32 2
  %111 = getelementptr inbounds [2 x %struct.XDmaPs_ProgBuf], ptr %110, i64 0, i64 0
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  call void @XDmaPs_BufPool_Free(ptr noundef %111, ptr noundef %112)
  br label %113

113:                                              ; preds = %108, %102
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.XDmaPs_Cmd, ptr %114, i32 0, i32 4
  store ptr null, ptr %115, align 8, !tbaa !26
  br label %116

116:                                              ; preds = %113, %58
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.XDmaPs, ptr %117, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !27
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %130

121:                                              ; preds = %116
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.XDmaPs, ptr %122, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !27
  %125 = load i32, ptr %10, align 4, !tbaa !14
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.XDmaPs, ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !28
  call void %124(i32 noundef %125, ptr noundef %126, ptr noundef %129)
  br label %130

130:                                              ; preds = %121, %116
  br label %131

131:                                              ; preds = %130, %52
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %10, align 4, !tbaa !14
  %134 = add i32 %133, 1
  store i32 %134, ptr %10, align 4, !tbaa !14
  br label %49, !llvm.loop !29

135:                                              ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

declare void @xil_printf(ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
declare hidden void @XDmaPs_BufPool_Free(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 4}
!10 = !{!"", !11, i64 0, !13, i64 8, !13, i64 12, !6, i64 16, !6, i64 24, !7, i64 32}
!11 = !{!"", !12, i64 0, !13, i64 4}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!10, !12, i64 0}
!16 = !{!17, !6, i64 296}
!17 = !{!"", !13, i64 0, !13, i64 4, !7, i64 8, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !13, i64 312}
!18 = !{!19, !13, i64 84}
!19 = !{!"", !20, i64 0, !21, i64 44, !6, i64 56, !13, i64 64, !6, i64 72, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92}
!20 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40}
!21 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!22 = !{!19, !13, i64 88}
!23 = !{!19, !13, i64 92}
!24 = !{!17, !6, i64 304}
!25 = !{!17, !13, i64 312}
!26 = !{!19, !6, i64 72}
!27 = !{!10, !6, i64 16}
!28 = !{!10, !6, i64 24}
!29 = distinct !{!29, !30}
!30 = !{!"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.XDmaPs_ChannelData = type { i32, i32, [2 x %struct.XDmaPs_ProgBuf], ptr, ptr, ptr, ptr, i32 }
%struct.XDmaPs_ProgBuf = type { [128 x i8], i32, i32 }

@.str.1 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Xil_In32(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @XDmaPs_Exec_DMAKILL(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @XDmaPs_FaultISR(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 4
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = add i32 %3, 48
  %5 = zext i32 %4 to i64
  %6 = tail call i32 @Xil_In32(i64 noundef %5)
  %7 = and i32 %6, 1
  %8 = add i32 %3, 52
  %9 = zext i32 %8 to i64
  %10 = tail call i32 @Xil_In32(i64 noundef %9)
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %21, label %11

11:                                               ; preds = %1
  %12 = load i16, ptr %0, align 8, !tbaa !13
  %13 = zext i16 %12 to i32
  %14 = add i32 %3, 56
  %15 = zext i32 %14 to i64
  %16 = tail call i32 @Xil_In32(i64 noundef %15)
  %17 = add i32 %3, 4
  %18 = zext i32 %17 to i64
  %19 = tail call i32 @Xil_In32(i64 noundef %18)
  tail call void (ptr, ...) @xil_printf(ptr noundef nonnull @.str.1, i32 noundef %13, i32 noundef %16, i32 noundef %19) #3
  %20 = tail call i32 @XDmaPs_Exec_DMAKILL(i32 noundef %3, i32 noundef 0, i32 noundef 0)
  br label %21

21:                                               ; preds = %11, %1
  %22 = add i32 %3, 64
  %23 = add i32 %3, 260
  %24 = getelementptr inbounds i8, ptr %0, i64 32
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = getelementptr inbounds i8, ptr %0, i64 24
  br label %27

27:                                               ; preds = %21, %60
  %indvars.iv = phi i64 [ 0, %21 ], [ %indvars.iv.next, %60 ]
  %28 = trunc nuw nsw i64 %indvars.iv to i32
  %29 = shl nuw nsw i32 1, %28
  %30 = and i32 %29, %10
  %.not44 = icmp eq i32 %30, 0
  br i1 %.not44, label %60, label %31

31:                                               ; preds = %27
  %indvars.iv.tr = trunc i64 %indvars.iv to i32
  %32 = shl i32 %indvars.iv.tr, 2
  %33 = add i32 %22, %32
  %34 = zext i32 %33 to i64
  %35 = tail call i32 @Xil_In32(i64 noundef %34)
  %indvars.iv.tr50 = trunc i64 %indvars.iv to i32
  %36 = shl i32 %indvars.iv.tr50, 3
  %37 = add i32 %23, %36
  %38 = zext i32 %37 to i64
  %39 = tail call i32 @Xil_In32(i64 noundef %38)
  %40 = tail call i32 @XDmaPs_Exec_DMAKILL(i32 noundef %3, i32 noundef %28, i32 noundef 1)
  %41 = getelementptr inbounds %struct.XDmaPs_ChannelData, ptr %24, i64 %indvars.iv
  %42 = getelementptr inbounds i8, ptr %41, i64 296
  %43 = load ptr, ptr %42, align 8, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %43, i64 84
  store i32 -1, ptr %44, align 4, !tbaa !16
  %45 = getelementptr inbounds i8, ptr %43, i64 88
  store i32 %35, ptr %45, align 8, !tbaa !20
  %46 = getelementptr inbounds i8, ptr %43, i64 92
  store i32 %39, ptr %46, align 4, !tbaa !21
  %47 = getelementptr inbounds i8, ptr %41, i64 304
  store ptr %43, ptr %47, align 8, !tbaa !22
  store ptr null, ptr %42, align 8, !tbaa !14
  %48 = getelementptr inbounds i8, ptr %41, i64 312
  %49 = load i32, ptr %48, align 8, !tbaa !23
  %.not45 = icmp eq i32 %49, 0
  br i1 %.not45, label %50, label %56

50:                                               ; preds = %31
  %51 = getelementptr inbounds i8, ptr %43, i64 72
  %52 = load ptr, ptr %51, align 8, !tbaa !24
  %.not46 = icmp eq ptr %52, null
  br i1 %.not46, label %55, label %53

53:                                               ; preds = %50
  %54 = getelementptr inbounds i8, ptr %41, i64 8
  tail call void @XDmaPs_BufPool_Free(ptr noundef nonnull %54, ptr noundef nonnull %52)
  br label %55

55:                                               ; preds = %53, %50
  store ptr null, ptr %51, align 8, !tbaa !24
  br label %56

56:                                               ; preds = %55, %31
  %57 = load ptr, ptr %25, align 8, !tbaa !25
  %.not47 = icmp eq ptr %57, null
  br i1 %.not47, label %60, label %58

58:                                               ; preds = %56
  %59 = load ptr, ptr %26, align 8, !tbaa !26
  tail call void %57(i32 noundef %28, ptr noundef nonnull %43, ptr noundef %59) #3
  br label %60

60:                                               ; preds = %27, %58, %56
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond.not, label %61, label %27, !llvm.loop !27

61:                                               ; preds = %60
  ret void
}

declare void @xil_printf(ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @XDmaPs_BufPool_Free(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { inlinehint 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 = { 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, !11, i64 4}
!6 = !{!"", !7, i64 0, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 24, !9, i64 32}
!7 = !{!"", !8, i64 0, !11, i64 4}
!8 = !{!"short", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!6, !8, i64 0}
!14 = !{!15, !12, i64 296}
!15 = !{!"", !11, i64 0, !11, i64 4, !9, i64 8, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !11, i64 312}
!16 = !{!17, !11, i64 84}
!17 = !{!"", !18, i64 0, !19, i64 44, !12, i64 56, !11, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92}
!18 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40}
!19 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8}
!20 = !{!17, !11, i64 88}
!21 = !{!17, !11, i64 92}
!22 = !{!15, !12, i64 304}
!23 = !{!15, !11, i64 312}
!24 = !{!17, !12, i64 72}
!25 = !{!6, !12, i64 16}
!26 = !{!6, !12, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


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