; LLVM IR from lichen-community-systems/signaletic :: hosts/daisy/vendor/libDaisy/Drivers/STM32H7xx_HAL_Driver/Src (Transmit)

; 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.__USART_HandleTypeDef = type { ptr, %struct.USART_InitTypeDef, ptr, i16, i16, ptr, i16, i16, i16, i16, i16, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.USART_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.USART_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_USART_Transmit(ptr noundef %0, ptr noundef %1, i16 noundef zeroext %2, i32 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i16, align 2
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i16 %2, ptr %8, align 2, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %14, i32 0, i32 18
  %16 = load volatile i32, ptr %15, align 4, !tbaa !13
  %17 = icmp eq i32 %16, 1
  br i1 %17, label %18, label %148

18:                                               ; preds = %4
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %25, label %21

21:                                               ; preds = %18
  %22 = load i16, ptr %8, align 2, !tbaa !9
  %23 = zext i16 %22 to i32
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %21, %18
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

26:                                               ; preds = %21
  br label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %28, i32 0, i32 17
  %30 = load i32, ptr %29, align 8, !tbaa !16
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  store i32 2, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

33:                                               ; preds = %27
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %34, i32 0, i32 17
  store i32 1, ptr %35, align 8, !tbaa !16
  br label %36

36:                                               ; preds = %33
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %39, i32 0, i32 19
  store volatile i32 0, ptr %40, align 8, !tbaa !17
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %41, i32 0, i32 18
  store volatile i32 18, ptr %42, align 4, !tbaa !13
  %43 = call i32 @HAL_GetTick()
  store i32 %43, ptr %12, align 4, !tbaa !11
  %44 = load i16, ptr %8, align 2, !tbaa !9
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %45, i32 0, i32 3
  store i16 %44, ptr %46, align 8, !tbaa !18
  %47 = load i16, ptr %8, align 2, !tbaa !9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %48, i32 0, i32 4
  store volatile i16 %47, ptr %49, align 2, !tbaa !19
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds %struct.USART_InitTypeDef, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !20
  %54 = icmp eq i32 %53, 4096
  br i1 %54, label %55, label %63

55:                                               ; preds = %38
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds %struct.USART_InitTypeDef, ptr %57, i32 0, i32 3
  %59 = load i32, ptr %58, align 4, !tbaa !21
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %55
  store ptr null, ptr %10, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %62, ptr %11, align 8, !tbaa !5
  br label %65

63:                                               ; preds = %55, %38
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %64, ptr %10, align 8, !tbaa !5
  store ptr null, ptr %11, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %63, %61
  br label %66

66:                                               ; preds = %108, %65
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %67, i32 0, i32 4
  %69 = load volatile i16, ptr %68, align 2, !tbaa !19
  %70 = zext i16 %69 to i32
  %71 = icmp ugt i32 %70, 0
  br i1 %71, label %72, label %113

72:                                               ; preds = %66
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load i32, ptr %12, align 4, !tbaa !11
  %75 = load i32, ptr %9, align 4, !tbaa !11
  %76 = call i32 @USART_WaitOnFlagUntilTimeout(ptr noundef %73, i32 noundef 128, i32 noundef 0, i32 noundef %74, i32 noundef %75)
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %72
  store i32 3, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

79:                                               ; preds = %72
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %95

82:                                               ; preds = %79
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i16, ptr %83, align 2, !tbaa !9
  %85 = zext i16 %84 to i32
  %86 = and i32 %85, 511
  %87 = trunc i32 %86 to i16
  %88 = zext i16 %87 to i32
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !22
  %92 = getelementptr inbounds %struct.USART_TypeDef, ptr %91, i32 0, i32 10
  store volatile i32 %88, ptr %92, align 4, !tbaa !23
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds i16, ptr %93, i32 1
  store ptr %94, ptr %11, align 8, !tbaa !5
  br label %108

95:                                               ; preds = %79
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load i8, ptr %96, align 1, !tbaa !25
  %98 = zext i8 %97 to i32
  %99 = and i32 %98, 255
  %100 = trunc i32 %99 to i8
  %101 = zext i8 %100 to i32
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !22
  %105 = getelementptr inbounds %struct.USART_TypeDef, ptr %104, i32 0, i32 10
  store volatile i32 %101, ptr %105, align 4, !tbaa !23
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i32 1
  store ptr %107, ptr %10, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %95, %82
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %109, i32 0, i32 4
  %111 = load volatile i16, ptr %110, align 2, !tbaa !19
  %112 = add i16 %111, -1
  store volatile i16 %112, ptr %110, align 2, !tbaa !19
  br label %66, !llvm.loop !26

113:                                              ; preds = %66
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = load i32, ptr %12, align 4, !tbaa !11
  %116 = load i32, ptr %9, align 4, !tbaa !11
  %117 = call i32 @USART_WaitOnFlagUntilTimeout(ptr noundef %114, i32 noundef 64, i32 noundef 0, i32 noundef %115, i32 noundef %116)
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %113
  store i32 3, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

120:                                              ; preds = %113
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !22
  %124 = getelementptr inbounds %struct.USART_TypeDef, ptr %123, i32 0, i32 8
  store volatile i32 64, ptr %124, align 4, !tbaa !28
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !22
  %128 = getelementptr inbounds %struct.USART_TypeDef, ptr %127, i32 0, i32 8
  store volatile i32 8, ptr %128, align 4, !tbaa !28
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !22
  %132 = getelementptr inbounds %struct.USART_TypeDef, ptr %131, i32 0, i32 6
  %133 = load volatile i32, ptr %132, align 4, !tbaa !29
  %134 = or i32 %133, 8
  store volatile i32 %134, ptr %132, align 4, !tbaa !29
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !22
  %138 = getelementptr inbounds %struct.USART_TypeDef, ptr %137, i32 0, i32 6
  %139 = load volatile i32, ptr %138, align 4, !tbaa !29
  %140 = or i32 %139, 16
  store volatile i32 %140, ptr %138, align 4, !tbaa !29
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %141, i32 0, i32 18
  store volatile i32 1, ptr %142, align 4, !tbaa !13
  br label %143

143:                                              ; preds = %120
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.__USART_HandleTypeDef, ptr %144, i32 0, i32 17
  store i32 0, ptr %145, align 8, !tbaa !16
  br label %146

146:                                              ; preds = %143
  br label %147

147:                                              ; preds = %146
  store i32 0, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

148:                                              ; preds = %4
  store i32 2, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %149

149:                                              ; preds = %148, %147, %119, %78, %32, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %150 = load i32, ptr %5, align 4
  ret i32 %150
}

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

declare i32 @HAL_GetTick() #2

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

; 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, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 132}
!14 = !{!"__USART_HandleTypeDef", !6, i64 0, !15, i64 8, !6, i64 48, !10, i64 56, !10, i64 58, !6, i64 64, !10, i64 72, !10, i64 74, !10, i64 76, !10, i64 78, !10, i64 80, !12, i64 84, !12, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !12, i64 132, !12, i64 136}
!15 = !{!"", !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}
!16 = !{!14, !12, i64 128}
!17 = !{!14, !12, i64 136}
!18 = !{!14, !10, i64 56}
!19 = !{!14, !10, i64 58}
!20 = !{!14, !12, i64 12}
!21 = !{!14, !12, i64 20}
!22 = !{!14, !6, i64 0}
!23 = !{!24, !12, i64 40}
!24 = !{!"", !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}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!24, !12, i64 32}
!29 = !{!24, !12, i64 24}


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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @HAL_USART_Transmit(ptr noundef %0, ptr noundef readonly %1, i16 noundef zeroext %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 132
  %6 = load volatile i32, ptr %5, align 4, !tbaa !5
  %7 = icmp eq i32 %6, 1
  br i1 %7, label %8, label %.loopexit

8:                                                ; preds = %4
  %9 = icmp eq ptr %1, null
  %10 = icmp eq i16 %2, 0
  %or.cond = or i1 %9, %10
  br i1 %or.cond, label %.loopexit, label %11

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 128
  %13 = load i32, ptr %12, align 8, !tbaa !13
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %.loopexit, label %15

15:                                               ; preds = %11
  store i32 1, ptr %12, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %0, i64 136
  store volatile i32 0, ptr %16, align 8, !tbaa !14
  store volatile i32 18, ptr %5, align 4, !tbaa !5
  %17 = tail call i32 @HAL_GetTick() #2
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  store i16 %2, ptr %18, align 8, !tbaa !15
  %19 = getelementptr inbounds i8, ptr %0, i64 58
  store volatile i16 %2, ptr %19, align 2, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %0, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !17
  %22 = icmp eq i32 %21, 4096
  br i1 %22, label %23, label %27

23:                                               ; preds = %15
  %24 = getelementptr inbounds i8, ptr %0, i64 20
  %25 = load i32, ptr %24, align 4, !tbaa !18
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %28, label %27

27:                                               ; preds = %23, %15
  br label %28

28:                                               ; preds = %23, %27
  %.039 = phi ptr [ %1, %27 ], [ null, %23 ]
  %.038 = phi ptr [ null, %27 ], [ %1, %23 ]
  %29 = load volatile i16, ptr %19, align 2, !tbaa !16
  %.not45 = icmp eq i16 %29, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %28, %46
  %.147 = phi ptr [ %.2, %46 ], [ %.038, %28 ]
  %.14046 = phi ptr [ %.241, %46 ], [ %.039, %28 ]
  %30 = tail call i32 @USART_WaitOnFlagUntilTimeout(ptr noundef nonnull %0, i32 noundef 128, i32 noundef 0, i32 noundef %17, i32 noundef %3)
  %.not44 = icmp eq i32 %30, 0
  br i1 %.not44, label %31, label %.loopexit

31:                                               ; preds = %.lr.ph
  %32 = icmp eq ptr %.14046, null
  br i1 %32, label %33, label %40

33:                                               ; preds = %31
  %34 = load i16, ptr %.147, align 2, !tbaa !19
  %35 = and i16 %34, 511
  %36 = zext nneg i16 %35 to i32
  %37 = load ptr, ptr %0, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %37, i64 40
  store volatile i32 %36, ptr %38, align 4, !tbaa !21
  %39 = getelementptr inbounds i8, ptr %.147, i64 2
  br label %46

40:                                               ; preds = %31
  %41 = load i8, ptr %.14046, align 1, !tbaa !23
  %42 = zext i8 %41 to i32
  %43 = load ptr, ptr %0, align 8, !tbaa !20
  %44 = getelementptr inbounds i8, ptr %43, i64 40
  store volatile i32 %42, ptr %44, align 4, !tbaa !21
  %45 = getelementptr inbounds i8, ptr %.14046, i64 1
  br label %46

46:                                               ; preds = %40, %33
  %.241 = phi ptr [ null, %33 ], [ %45, %40 ]
  %.2 = phi ptr [ %39, %33 ], [ %.147, %40 ]
  %47 = load volatile i16, ptr %19, align 2, !tbaa !16
  %48 = add i16 %47, -1
  store volatile i16 %48, ptr %19, align 2, !tbaa !16
  %49 = load volatile i16, ptr %19, align 2, !tbaa !16
  %.not = icmp eq i16 %49, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !24

._crit_edge:                                      ; preds = %46, %28
  %50 = tail call i32 @USART_WaitOnFlagUntilTimeout(ptr noundef nonnull %0, i32 noundef 64, i32 noundef 0, i32 noundef %17, i32 noundef %3)
  %.not43 = icmp eq i32 %50, 0
  br i1 %.not43, label %51, label %.loopexit

51:                                               ; preds = %._crit_edge
  %52 = load ptr, ptr %0, align 8, !tbaa !20
  %53 = getelementptr inbounds i8, ptr %52, i64 32
  store volatile i32 64, ptr %53, align 4, !tbaa !26
  store volatile i32 8, ptr %53, align 4, !tbaa !26
  %54 = getelementptr inbounds i8, ptr %52, i64 24
  %55 = load volatile i32, ptr %54, align 4, !tbaa !27
  %56 = or i32 %55, 8
  store volatile i32 %56, ptr %54, align 4, !tbaa !27
  %57 = load volatile i32, ptr %54, align 4, !tbaa !27
  %58 = or i32 %57, 16
  store volatile i32 %58, ptr %54, align 4, !tbaa !27
  store volatile i32 1, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %12, align 8, !tbaa !13
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %4, %._crit_edge, %11, %8, %51
  %.0 = phi i32 [ 0, %51 ], [ 1, %8 ], [ 2, %11 ], [ 3, %._crit_edge ], [ 2, %4 ], [ 3, %.lr.ph ]
  ret i32 %.0
}

declare i32 @HAL_GetTick() local_unnamed_addr #1

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

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 = { "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 132}
!6 = !{!"__USART_HandleTypeDef", !7, i64 0, !10, i64 8, !7, i64 48, !12, i64 56, !12, i64 58, !7, i64 64, !12, i64 72, !12, i64 74, !12, i64 76, !12, i64 78, !12, i64 80, !11, i64 84, !11, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !11, i64 128, !11, i64 132, !11, i64 136}
!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, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!11 = !{!"int", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !11, i64 128}
!14 = !{!6, !11, i64 136}
!15 = !{!6, !12, i64 56}
!16 = !{!6, !12, i64 58}
!17 = !{!6, !11, i64 12}
!18 = !{!6, !11, i64 20}
!19 = !{!12, !12, i64 0}
!20 = !{!6, !7, i64 0}
!21 = !{!22, !11, i64 40}
!22 = !{!"", !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}
!23 = !{!8, !8, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!22, !11, i64 32}
!27 = !{!22, !11, i64 24}


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