; LLVM IR from ctlst-tech/catpilot :: bsp/mcu/core/stm32/h753/hal/src (stm32h7xx_hal_sd)

; 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.SD_HandleTypeDef = type { ptr, %struct.SDMMC_InitTypeDef, i32, ptr, i32, ptr, i32, i32, i32, i32, %struct.HAL_SD_CardInfoTypeDef, [4 x i32], [4 x i32] }
%struct.SDMMC_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.HAL_SD_CardInfoTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.SDMMC_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [3 x i32], i32, i32, i32, i32, [8 x i32], i32, [222 x i32], i32 }

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

declare i32 @HAL_GetTick() #1

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

declare i32 @SDMMC_CmdStopTransfer(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_SD_Abort(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %7, i32 0, i32 8
  %9 = load volatile i32, ptr %8, align 8, !tbaa !9
  %10 = icmp eq i32 %9, 3
  br i1 %10, label %11, label %161

11:                                               ; preds = %1
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %15 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %14, i32 0, i32 15
  %16 = load volatile i32, ptr %15, align 4, !tbaa !15
  %17 = zext i32 %16 to i64
  %18 = and i64 %17, -315
  %19 = trunc i64 %18 to i32
  store volatile i32 %19, ptr %15, align 4, !tbaa !15
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !14
  %23 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %22, i32 0, i32 3
  %24 = load volatile i32, ptr %23, align 4, !tbaa !17
  %25 = zext i32 %24 to i64
  %26 = and i64 %25, -65
  %27 = trunc i64 %26 to i32
  store volatile i32 %27, ptr %23, align 4, !tbaa !17
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = call i32 @SDMMC_CmdStopTransfer(ptr noundef %30)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %32, i32 0, i32 9
  store volatile i32 %31, ptr %33, align 4, !tbaa !18
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %34, i32 0, i32 9
  %36 = load volatile i32, ptr %35, align 4, !tbaa !18
  store i32 %36, ptr %4, align 4, !tbaa !19
  %37 = load i32, ptr %4, align 4, !tbaa !19
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %43

39:                                               ; preds = %11
  %40 = load i32, ptr %4, align 4, !tbaa !19
  %41 = icmp ne i32 %40, 4
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  store i32 1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %162

43:                                               ; preds = %39, %11
  %44 = call i32 @HAL_GetTick()
  store i32 %44, ptr %5, align 4, !tbaa !19
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  %48 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %47, i32 0, i32 11
  %49 = load volatile i32, ptr %48, align 4, !tbaa !20
  %50 = zext i32 %49 to i64
  %51 = and i64 %50, 2
  %52 = icmp eq i64 %51, 0
  br i1 %52, label %53, label %110

53:                                               ; preds = %43
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %54, i32 0, i32 9
  %56 = load volatile i32, ptr %55, align 4, !tbaa !18
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %81

58:                                               ; preds = %53
  br label %59

59:                                               ; preds = %79, %58
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !14
  %63 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %62, i32 0, i32 13
  %64 = load volatile i32, ptr %63, align 4, !tbaa !21
  %65 = zext i32 %64 to i64
  %66 = and i64 %65, 2099200
  %67 = icmp ne i64 %66, 0
  %68 = xor i1 %67, true
  br i1 %68, label %69, label %80

69:                                               ; preds = %59
  %70 = call i32 @HAL_GetTick()
  %71 = load i32, ptr %5, align 4, !tbaa !19
  %72 = sub i32 %70, %71
  %73 = icmp uge i32 %72, -1
  br i1 %73, label %74, label %79

74:                                               ; preds = %69
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %75, i32 0, i32 9
  store volatile i32 -2147483648, ptr %76, align 4, !tbaa !18
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %77, i32 0, i32 8
  store volatile i32 1, ptr %78, align 8, !tbaa !9
  store i32 3, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %162

79:                                               ; preds = %69
  br label %59, !llvm.loop !22

80:                                               ; preds = %59
  br label %81

81:                                               ; preds = %80, %53
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %82, i32 0, i32 9
  %84 = load volatile i32, ptr %83, align 4, !tbaa !18
  %85 = icmp eq i32 %84, 4
  br i1 %85, label %86, label %109

86:                                               ; preds = %81
  br label %87

87:                                               ; preds = %107, %86
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !14
  %91 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %90, i32 0, i32 13
  %92 = load volatile i32, ptr %91, align 4, !tbaa !21
  %93 = zext i32 %92 to i64
  %94 = and i64 %93, 256
  %95 = icmp ne i64 %94, 0
  %96 = xor i1 %95, true
  br i1 %96, label %97, label %108

97:                                               ; preds = %87
  %98 = call i32 @HAL_GetTick()
  %99 = load i32, ptr %5, align 4, !tbaa !19
  %100 = sub i32 %98, %99
  %101 = icmp uge i32 %100, -1
  br i1 %101, label %102, label %107

102:                                              ; preds = %97
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %103, i32 0, i32 9
  store volatile i32 -2147483648, ptr %104, align 4, !tbaa !18
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %105, i32 0, i32 8
  store volatile i32 1, ptr %106, align 8, !tbaa !9
  store i32 3, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %162

107:                                              ; preds = %97
  br label %87, !llvm.loop !24

108:                                              ; preds = %87
  br label %109

109:                                              ; preds = %108, %81
  br label %144

110:                                              ; preds = %43
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !14
  %114 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %113, i32 0, i32 11
  %115 = load volatile i32, ptr %114, align 4, !tbaa !20
  %116 = zext i32 %115 to i64
  %117 = and i64 %116, 2
  %118 = icmp eq i64 %117, 2
  br i1 %118, label %119, label %142

119:                                              ; preds = %110
  br label %120

120:                                              ; preds = %140, %119
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !14
  %124 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %123, i32 0, i32 13
  %125 = load volatile i32, ptr %124, align 4, !tbaa !21
  %126 = zext i32 %125 to i64
  %127 = and i64 %126, 2304
  %128 = icmp ne i64 %127, 0
  %129 = xor i1 %128, true
  br i1 %129, label %130, label %141

130:                                              ; preds = %120
  %131 = call i32 @HAL_GetTick()
  %132 = load i32, ptr %5, align 4, !tbaa !19
  %133 = sub i32 %131, %132
  %134 = icmp uge i32 %133, -1
  br i1 %134, label %135, label %140

135:                                              ; preds = %130
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %136, i32 0, i32 9
  store volatile i32 -2147483648, ptr %137, align 4, !tbaa !18
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %138, i32 0, i32 8
  store volatile i32 1, ptr %139, align 8, !tbaa !9
  store i32 3, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %162

140:                                              ; preds = %130
  br label %120, !llvm.loop !25

141:                                              ; preds = %120
  br label %143

142:                                              ; preds = %110
  br label %143

143:                                              ; preds = %142, %141
  br label %144

144:                                              ; preds = %143, %109
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !14
  %148 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %147, i32 0, i32 14
  store volatile i32 2097152, ptr %148, align 4, !tbaa !26
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !14
  %152 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %151, i32 0, i32 14
  store volatile i32 402657082, ptr %152, align 4, !tbaa !26
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %153, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !14
  %156 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %155, i32 0, i32 18
  store volatile i32 0, ptr %156, align 4, !tbaa !27
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %157, i32 0, i32 8
  store volatile i32 1, ptr %158, align 8, !tbaa !9
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %159, i32 0, i32 7
  store volatile i32 0, ptr %160, align 4, !tbaa !28
  br label %161

161:                                              ; preds = %144, %1
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %162

162:                                              ; preds = %161, %135, %102, %74, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %163 = load i32, ptr %2, align 4
  ret i32 %163
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 64}
!10 = !{!"", !6, i64 0, !11, i64 8, !12, i64 28, !6, i64 32, !12, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !13, i64 72, !7, i64 108, !7, i64 124}
!11 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!14 = !{!10, !6, i64 0}
!15 = !{!16, !12, i64 60}
!16 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !7, i64 68, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !7, i64 96, !12, i64 128, !7, i64 132, !12, i64 1020}
!17 = !{!16, !12, i64 12}
!18 = !{!10, !12, i64 68}
!19 = !{!12, !12, i64 0}
!20 = !{!16, !12, i64 44}
!21 = !{!16, !12, i64 52}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = !{!16, !12, i64 56}
!27 = !{!16, !12, i64 80}
!28 = !{!10, !12, i64 60}


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

declare i32 @HAL_GetTick() local_unnamed_addr #0

declare i32 @SDMMC_CmdStopTransfer(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @HAL_SD_Abort(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 64
  %3 = load volatile i32, ptr %2, align 8, !tbaa !5
  %4 = icmp eq i32 %3, 3
  br i1 %4, label %5, label %64

5:                                                ; preds = %1
  %6 = load ptr, ptr %0, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %6, i64 60
  %8 = load volatile i32, ptr %7, align 4, !tbaa !14
  %9 = and i32 %8, -315
  store volatile i32 %9, ptr %7, align 4, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %6, i64 12
  %11 = load volatile i32, ptr %10, align 4, !tbaa !16
  %12 = and i32 %11, -65
  store volatile i32 %12, ptr %10, align 4, !tbaa !16
  %13 = tail call i32 @SDMMC_CmdStopTransfer(ptr noundef %6) #2
  %14 = getelementptr inbounds i8, ptr %0, i64 68
  store volatile i32 %13, ptr %14, align 4, !tbaa !17
  %15 = load volatile i32, ptr %14, align 4, !tbaa !17
  %16 = and i32 %15, -5
  %or.cond.not = icmp eq i32 %16, 0
  br i1 %or.cond.not, label %17, label %64

17:                                               ; preds = %5
  %18 = tail call i32 @HAL_GetTick() #2
  %19 = load ptr, ptr %0, align 8, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %19, i64 44
  %21 = load volatile i32, ptr %20, align 4, !tbaa !18
  %22 = and i32 %21, 2
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %48

24:                                               ; preds = %17
  %25 = load volatile i32, ptr %14, align 4, !tbaa !17
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %.preheader33, label %.loopexit34

.preheader33:                                     ; preds = %24, %31
  %27 = load ptr, ptr %0, align 8, !tbaa !13
  %28 = getelementptr inbounds i8, ptr %27, i64 52
  %29 = load volatile i32, ptr %28, align 4, !tbaa !19
  %30 = and i32 %29, 2099200
  %.not31 = icmp eq i32 %30, 0
  br i1 %.not31, label %31, label %.loopexit34

31:                                               ; preds = %.preheader33
  %32 = tail call i32 @HAL_GetTick() #2
  %33 = sub i32 %32, %18
  %34 = icmp eq i32 %33, -1
  br i1 %34, label %35, label %.preheader33, !llvm.loop !20

35:                                               ; preds = %31
  store volatile i32 -2147483648, ptr %14, align 4, !tbaa !17
  store volatile i32 1, ptr %2, align 8, !tbaa !5
  br label %64

.loopexit34:                                      ; preds = %.preheader33, %24
  %36 = phi ptr [ %19, %24 ], [ %27, %.preheader33 ]
  %37 = load volatile i32, ptr %14, align 4, !tbaa !17
  %38 = icmp eq i32 %37, 4
  br i1 %38, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %.loopexit34, %43
  %39 = load ptr, ptr %0, align 8, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %39, i64 52
  %41 = load volatile i32, ptr %40, align 4, !tbaa !19
  %42 = and i32 %41, 256
  %.not32 = icmp eq i32 %42, 0
  br i1 %.not32, label %43, label %.loopexit

43:                                               ; preds = %.preheader
  %44 = tail call i32 @HAL_GetTick() #2
  %45 = sub i32 %44, %18
  %46 = icmp eq i32 %45, -1
  br i1 %46, label %47, label %.preheader, !llvm.loop !22

47:                                               ; preds = %43
  store volatile i32 -2147483648, ptr %14, align 4, !tbaa !17
  store volatile i32 1, ptr %2, align 8, !tbaa !5
  br label %64

48:                                               ; preds = %17
  %49 = load volatile i32, ptr %20, align 4, !tbaa !18
  %50 = and i32 %49, 2
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %.loopexit, label %.preheader35

.preheader35:                                     ; preds = %48, %55
  %51 = load ptr, ptr %0, align 8, !tbaa !13
  %52 = getelementptr inbounds i8, ptr %51, i64 52
  %53 = load volatile i32, ptr %52, align 4, !tbaa !19
  %54 = and i32 %53, 2304
  %.not30 = icmp eq i32 %54, 0
  br i1 %.not30, label %55, label %.loopexit

55:                                               ; preds = %.preheader35
  %56 = tail call i32 @HAL_GetTick() #2
  %57 = sub i32 %56, %18
  %58 = icmp eq i32 %57, -1
  br i1 %58, label %59, label %.preheader35, !llvm.loop !23

59:                                               ; preds = %55
  store volatile i32 -2147483648, ptr %14, align 4, !tbaa !17
  store volatile i32 1, ptr %2, align 8, !tbaa !5
  br label %64

.loopexit:                                        ; preds = %.preheader35, %.preheader, %48, %.loopexit34
  %60 = phi ptr [ %19, %48 ], [ %36, %.loopexit34 ], [ %39, %.preheader ], [ %51, %.preheader35 ]
  %61 = getelementptr inbounds i8, ptr %60, i64 56
  store volatile i32 2097152, ptr %61, align 4, !tbaa !24
  store volatile i32 402657082, ptr %61, align 4, !tbaa !24
  %62 = getelementptr inbounds i8, ptr %60, i64 80
  store volatile i32 0, ptr %62, align 4, !tbaa !25
  store volatile i32 1, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %0, i64 60
  store volatile i32 0, ptr %63, align 4, !tbaa !26
  br label %64

64:                                               ; preds = %1, %.loopexit, %5, %59, %47, %35
  %.0 = phi i32 [ 3, %35 ], [ 3, %47 ], [ 3, %59 ], [ 1, %5 ], [ 0, %.loopexit ], [ 0, %1 ]
  ret i32 %.0
}

attributes #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 = { 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 64}
!6 = !{!"", !7, i64 0, !10, i64 8, !11, i64 28, !7, i64 32, !11, i64 40, !7, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !12, i64 72, !8, i64 108, !8, i64 124}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!"", !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}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !11, i64 60}
!15 = !{!"", !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, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !8, i64 68, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !8, i64 96, !11, i64 128, !8, i64 132, !11, i64 1020}
!16 = !{!15, !11, i64 12}
!17 = !{!6, !11, i64 68}
!18 = !{!15, !11, i64 44}
!19 = !{!15, !11, i64 52}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = !{!15, !11, i64 56}
!25 = !{!15, !11, i64 80}
!26 = !{!6, !11, i64 60}


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