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

; 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.RCC_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [9 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32] }

@SystemCoreClock = external global i32, align 4
@SystemD2Clock = external global i32, align 4
@uwTickPrio = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_RCC_DeInit() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  %4 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 4, !tbaa !5
  %5 = zext i32 %4 to i64
  %6 = and i64 %5, 15
  %7 = icmp ugt i64 7, %6
  br i1 %7, label %8, label %20

8:                                                ; preds = %0
  %9 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 4, !tbaa !5
  %10 = zext i32 %9 to i64
  %11 = and i64 %10, -16
  %12 = or i64 %11, 7
  %13 = trunc i64 %12 to i32
  store volatile i32 %13, ptr inttoptr (i64 1375739904 to ptr), align 4, !tbaa !5
  %14 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 4, !tbaa !5
  %15 = zext i32 %14 to i64
  %16 = and i64 %15, 15
  %17 = icmp ne i64 %16, 7
  br i1 %17, label %18, label %19

18:                                               ; preds = %8
  store i32 1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

19:                                               ; preds = %8
  br label %20

20:                                               ; preds = %19, %0
  %21 = call i32 @HAL_GetTick()
  store i32 %21, ptr %2, align 4, !tbaa !10
  %22 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %23 = zext i32 %22 to i64
  %24 = or i64 %23, 1
  %25 = trunc i64 %24 to i32
  store volatile i32 %25, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  br label %26

26:                                               ; preds = %37, %20
  %27 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %28 = zext i32 %27 to i64
  %29 = and i64 %28, 4
  %30 = icmp eq i64 %29, 0
  br i1 %30, label %31, label %38

31:                                               ; preds = %26
  %32 = call i32 @HAL_GetTick()
  %33 = load i32, ptr %2, align 4, !tbaa !10
  %34 = sub i32 %32, %33
  %35 = icmp ugt i32 %34, 2
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

37:                                               ; preds = %31
  br label %26, !llvm.loop !13

38:                                               ; preds = %26
  %39 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 1), align 4, !tbaa !15
  %40 = zext i32 %39 to i64
  %41 = or i64 %40, 1073741824
  %42 = trunc i64 %41 to i32
  store volatile i32 %42, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 1), align 4, !tbaa !15
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 4), align 4, !tbaa !16
  store i32 64000000, ptr @SystemCoreClock, align 4, !tbaa !10
  store i32 64000000, ptr @SystemD2Clock, align 4, !tbaa !10
  %43 = load i32, ptr @uwTickPrio, align 4, !tbaa !10
  %44 = call i32 @HAL_InitTick(i32 noundef %43)
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %38
  store i32 1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

47:                                               ; preds = %38
  %48 = call i32 @HAL_GetTick()
  store i32 %48, ptr %2, align 4, !tbaa !10
  br label %49

49:                                               ; preds = %60, %47
  %50 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 4), align 4, !tbaa !16
  %51 = zext i32 %50 to i64
  %52 = and i64 %51, 56
  %53 = icmp ne i64 %52, 0
  br i1 %53, label %54, label %61

54:                                               ; preds = %49
  %55 = call i32 @HAL_GetTick()
  %56 = load i32, ptr %2, align 4, !tbaa !10
  %57 = sub i32 %55, %56
  %58 = icmp ugt i32 %57, 5000
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

60:                                               ; preds = %54
  br label %49, !llvm.loop !17

61:                                               ; preds = %49
  %62 = call i32 @HAL_GetTick()
  store i32 %62, ptr %2, align 4, !tbaa !10
  %63 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %64 = zext i32 %63 to i64
  %65 = and i64 %64, -594619
  %66 = trunc i64 %65 to i32
  store volatile i32 %66, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  br label %67

67:                                               ; preds = %79, %61
  %68 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %69 = zext i32 %68 to i64
  %70 = and i64 %69, 131072
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %80

72:                                               ; preds = %67
  %73 = call i32 @HAL_GetTick()
  %74 = load i32, ptr %2, align 4, !tbaa !10
  %75 = sub i32 %73, %74
  %76 = zext i32 %75 to i64
  %77 = icmp ugt i64 %76, 100
  br i1 %77, label %78, label %79

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

79:                                               ; preds = %72
  br label %67, !llvm.loop !18

80:                                               ; preds = %67
  %81 = call i32 @HAL_GetTick()
  store i32 %81, ptr %2, align 4, !tbaa !10
  %82 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %83 = zext i32 %82 to i64
  %84 = and i64 %83, -16777217
  %85 = trunc i64 %84 to i32
  store volatile i32 %85, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  br label %86

86:                                               ; preds = %97, %80
  %87 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %88 = zext i32 %87 to i64
  %89 = and i64 %88, 33554432
  %90 = icmp ne i64 %89, 0
  br i1 %90, label %91, label %98

91:                                               ; preds = %86
  %92 = call i32 @HAL_GetTick()
  %93 = load i32, ptr %2, align 4, !tbaa !10
  %94 = sub i32 %92, %93
  %95 = icmp ugt i32 %94, 2
  br i1 %95, label %96, label %97

96:                                               ; preds = %91
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

97:                                               ; preds = %91
  br label %86, !llvm.loop !19

98:                                               ; preds = %86
  %99 = call i32 @HAL_GetTick()
  store i32 %99, ptr %2, align 4, !tbaa !10
  %100 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %101 = zext i32 %100 to i64
  %102 = and i64 %101, -67108865
  %103 = trunc i64 %102 to i32
  store volatile i32 %103, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  br label %104

104:                                              ; preds = %115, %98
  %105 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %106 = zext i32 %105 to i64
  %107 = and i64 %106, 134217728
  %108 = icmp ne i64 %107, 0
  br i1 %108, label %109, label %116

109:                                              ; preds = %104
  %110 = call i32 @HAL_GetTick()
  %111 = load i32, ptr %2, align 4, !tbaa !10
  %112 = sub i32 %110, %111
  %113 = icmp ugt i32 %112, 2
  br i1 %113, label %114, label %115

114:                                              ; preds = %109
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

115:                                              ; preds = %109
  br label %104, !llvm.loop !20

116:                                              ; preds = %104
  %117 = call i32 @HAL_GetTick()
  store i32 %117, ptr %2, align 4, !tbaa !10
  %118 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %119 = zext i32 %118 to i64
  %120 = and i64 %119, -268435457
  %121 = trunc i64 %120 to i32
  store volatile i32 %121, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  br label %122

122:                                              ; preds = %133, %116
  %123 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %124 = zext i32 %123 to i64
  %125 = and i64 %124, 536870912
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %134

127:                                              ; preds = %122
  %128 = call i32 @HAL_GetTick()
  %129 = load i32, ptr %2, align 4, !tbaa !10
  %130 = sub i32 %128, %129
  %131 = icmp ugt i32 %130, 2
  br i1 %131, label %132, label %133

132:                                              ; preds = %127
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

133:                                              ; preds = %127
  br label %122, !llvm.loop !21

134:                                              ; preds = %122
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 6), align 4, !tbaa !22
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 7), align 4, !tbaa !23
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 8), align 4, !tbaa !24
  store volatile i32 33686016, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 10), align 4, !tbaa !25
  store volatile i32 33488896, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 11), align 4, !tbaa !26
  store volatile i32 16843392, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 12), align 4, !tbaa !27
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 13), align 4, !tbaa !28
  store volatile i32 16843392, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 14), align 4, !tbaa !29
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 15), align 4, !tbaa !30
  store volatile i32 16843392, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 16), align 4, !tbaa !31
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 17), align 4, !tbaa !32
  %135 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  %136 = zext i32 %135 to i64
  %137 = and i64 %136, -262145
  %138 = trunc i64 %137 to i32
  store volatile i32 %138, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !11
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 24), align 4, !tbaa !33
  store volatile i32 -1, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 26), align 4, !tbaa !34
  %139 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 44), align 4, !tbaa !35
  %140 = zext i32 %139 to i64
  %141 = or i64 %140, 65536
  %142 = trunc i64 %141 to i32
  store volatile i32 %142, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 44), align 4, !tbaa !35
  %143 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 4, !tbaa !5
  %144 = zext i32 %143 to i64
  %145 = and i64 %144, 15
  %146 = icmp ult i64 7, %145
  br i1 %146, label %147, label %159

147:                                              ; preds = %134
  %148 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 4, !tbaa !5
  %149 = zext i32 %148 to i64
  %150 = and i64 %149, -16
  %151 = or i64 %150, 7
  %152 = trunc i64 %151 to i32
  store volatile i32 %152, ptr inttoptr (i64 1375739904 to ptr), align 4, !tbaa !5
  %153 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 4, !tbaa !5
  %154 = zext i32 %153 to i64
  %155 = and i64 %154, 15
  %156 = icmp ne i64 %155, 7
  br i1 %156, label %157, label %158

157:                                              ; preds = %147
  store i32 1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

158:                                              ; preds = %147
  br label %159

159:                                              ; preds = %158, %134
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %160

160:                                              ; preds = %159, %157, %132, %114, %96, %78, %59, %46, %36, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  %161 = load i32, ptr %1, align 4
  ret i32 %161
}

; 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

declare i32 @HAL_InitTick(i32 noundef) #2

; 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !8, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !8, i64 100, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !8, i64 280, !7, i64 296, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !7, i64 316, !8, i64 320, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !8, i64 172, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !8, i64 288}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!12, !7, i64 4}
!16 = !{!12, !7, i64 16}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!12, !7, i64 24}
!23 = !{!12, !7, i64 28}
!24 = !{!12, !7, i64 32}
!25 = !{!12, !7, i64 40}
!26 = !{!12, !7, i64 44}
!27 = !{!12, !7, i64 48}
!28 = !{!12, !7, i64 52}
!29 = !{!12, !7, i64 56}
!30 = !{!12, !7, i64 60}
!31 = !{!12, !7, i64 64}
!32 = !{!12, !7, i64 68}
!33 = !{!12, !7, i64 96}
!34 = !{!12, !7, i64 104}
!35 = !{!12, !7, i64 208}


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

@SystemCoreClock = external local_unnamed_addr global i32, align 4
@SystemD2Clock = external local_unnamed_addr global i32, align 4
@uwTickPrio = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @HAL_RCC_DeInit() local_unnamed_addr #0 {
  %1 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 8192, !tbaa !5
  %2 = and i32 %1, 15
  %3 = icmp ult i32 %2, 7
  br i1 %3, label %4, label %10

4:                                                ; preds = %0
  %5 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 8192, !tbaa !5
  %6 = and i32 %5, -16
  %7 = or disjoint i32 %6, 7
  store volatile i32 %7, ptr inttoptr (i64 1375739904 to ptr), align 8192, !tbaa !5
  %8 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 8192, !tbaa !5
  %9 = and i32 %8, 15
  %.not = icmp eq i32 %9, 7
  br i1 %.not, label %10, label %.loopexit

10:                                               ; preds = %4, %0
  %11 = tail call i32 @HAL_GetTick() #2
  %12 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %13 = or i32 %12, 1
  store volatile i32 %13, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  br label %14

14:                                               ; preds = %18, %10
  %15 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %16 = and i32 %15, 4
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %22

18:                                               ; preds = %14
  %19 = tail call i32 @HAL_GetTick() #2
  %20 = sub i32 %19, %11
  %21 = icmp ugt i32 %20, 2
  br i1 %21, label %.loopexit, label %14, !llvm.loop !12

22:                                               ; preds = %14
  %23 = load volatile i32, ptr inttoptr (i64 1476543492 to ptr), align 4, !tbaa !14
  %24 = or i32 %23, 1073741824
  store volatile i32 %24, ptr inttoptr (i64 1476543492 to ptr), align 4, !tbaa !14
  store volatile i32 0, ptr inttoptr (i64 1476543504 to ptr), align 16, !tbaa !15
  store i32 64000000, ptr @SystemCoreClock, align 4, !tbaa !16
  store i32 64000000, ptr @SystemD2Clock, align 4, !tbaa !16
  %25 = load i32, ptr @uwTickPrio, align 4, !tbaa !16
  %26 = tail call i32 @HAL_InitTick(i32 noundef %25) #2
  %.not7 = icmp eq i32 %26, 0
  br i1 %.not7, label %27, label %.loopexit

27:                                               ; preds = %22
  %28 = tail call i32 @HAL_GetTick() #2
  br label %29

29:                                               ; preds = %33, %27
  %30 = load volatile i32, ptr inttoptr (i64 1476543504 to ptr), align 16, !tbaa !15
  %31 = and i32 %30, 56
  %.not8 = icmp eq i32 %31, 0
  %32 = tail call i32 @HAL_GetTick() #2
  br i1 %.not8, label %36, label %33

33:                                               ; preds = %29
  %34 = sub i32 %32, %28
  %35 = icmp ugt i32 %34, 5000
  br i1 %35, label %.loopexit, label %29, !llvm.loop !17

36:                                               ; preds = %29
  %37 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %38 = and i32 %37, -594619
  store volatile i32 %38, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  br label %39

39:                                               ; preds = %43, %36
  %40 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %41 = and i32 %40, 131072
  %.not9 = icmp eq i32 %41, 0
  %42 = tail call i32 @HAL_GetTick() #2
  br i1 %.not9, label %46, label %43

43:                                               ; preds = %39
  %44 = sub i32 %42, %32
  %45 = icmp ugt i32 %44, 100
  br i1 %45, label %.loopexit, label %39, !llvm.loop !18

46:                                               ; preds = %39
  %47 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %48 = and i32 %47, -16777217
  store volatile i32 %48, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  br label %49

49:                                               ; preds = %53, %46
  %50 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %51 = and i32 %50, 33554432
  %.not10 = icmp eq i32 %51, 0
  %52 = tail call i32 @HAL_GetTick() #2
  br i1 %.not10, label %56, label %53

53:                                               ; preds = %49
  %54 = sub i32 %52, %42
  %55 = icmp ugt i32 %54, 2
  br i1 %55, label %.loopexit, label %49, !llvm.loop !19

56:                                               ; preds = %49
  %57 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %58 = and i32 %57, -67108865
  store volatile i32 %58, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  br label %59

59:                                               ; preds = %63, %56
  %60 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %61 = and i32 %60, 134217728
  %.not11 = icmp eq i32 %61, 0
  %62 = tail call i32 @HAL_GetTick() #2
  br i1 %.not11, label %66, label %63

63:                                               ; preds = %59
  %64 = sub i32 %62, %52
  %65 = icmp ugt i32 %64, 2
  br i1 %65, label %.loopexit, label %59, !llvm.loop !20

66:                                               ; preds = %59
  %67 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %68 = and i32 %67, -268435457
  store volatile i32 %68, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  br label %69

69:                                               ; preds = %72, %66
  %70 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %71 = and i32 %70, 536870912
  %.not12 = icmp eq i32 %71, 0
  br i1 %.not12, label %76, label %72

72:                                               ; preds = %69
  %73 = tail call i32 @HAL_GetTick() #2
  %74 = sub i32 %73, %62
  %75 = icmp ugt i32 %74, 2
  br i1 %75, label %.loopexit, label %69, !llvm.loop !21

76:                                               ; preds = %69
  store volatile i32 0, ptr inttoptr (i64 1476543512 to ptr), align 8, !tbaa !22
  store volatile i32 0, ptr inttoptr (i64 1476543516 to ptr), align 4, !tbaa !23
  store volatile i32 0, ptr inttoptr (i64 1476543520 to ptr), align 32, !tbaa !24
  store volatile i32 33686016, ptr inttoptr (i64 1476543528 to ptr), align 8, !tbaa !25
  store volatile i32 33488896, ptr inttoptr (i64 1476543532 to ptr), align 4, !tbaa !26
  store volatile i32 16843392, ptr inttoptr (i64 1476543536 to ptr), align 16, !tbaa !27
  store volatile i32 0, ptr inttoptr (i64 1476543540 to ptr), align 4, !tbaa !28
  store volatile i32 16843392, ptr inttoptr (i64 1476543544 to ptr), align 8, !tbaa !29
  store volatile i32 0, ptr inttoptr (i64 1476543548 to ptr), align 4, !tbaa !30
  store volatile i32 16843392, ptr inttoptr (i64 1476543552 to ptr), align 64, !tbaa !31
  store volatile i32 0, ptr inttoptr (i64 1476543556 to ptr), align 4, !tbaa !32
  %77 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  %78 = and i32 %77, -262145
  store volatile i32 %78, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !10
  store volatile i32 0, ptr inttoptr (i64 1476543584 to ptr), align 32, !tbaa !33
  store volatile i32 -1, ptr inttoptr (i64 1476543592 to ptr), align 8, !tbaa !34
  %79 = load volatile i32, ptr inttoptr (i64 1476543696 to ptr), align 16, !tbaa !35
  %80 = or i32 %79, 65536
  store volatile i32 %80, ptr inttoptr (i64 1476543696 to ptr), align 16, !tbaa !35
  %81 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 8192, !tbaa !5
  %82 = and i32 %81, 8
  %.not13 = icmp eq i32 %82, 0
  br i1 %.not13, label %89, label %83

83:                                               ; preds = %76
  %84 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 8192, !tbaa !5
  %85 = and i32 %84, -16
  %86 = or disjoint i32 %85, 7
  store volatile i32 %86, ptr inttoptr (i64 1375739904 to ptr), align 8192, !tbaa !5
  %87 = load volatile i32, ptr inttoptr (i64 1375739904 to ptr), align 8192, !tbaa !5
  %88 = and i32 %87, 15
  %.not14 = icmp eq i32 %88, 7
  br i1 %.not14, label %89, label %.loopexit

89:                                               ; preds = %83, %76
  br label %.loopexit

.loopexit:                                        ; preds = %18, %33, %43, %53, %63, %72, %83, %22, %4, %89
  %.0 = phi i32 [ 0, %89 ], [ 1, %4 ], [ 1, %22 ], [ 1, %83 ], [ 3, %72 ], [ 3, %63 ], [ 3, %53 ], [ 3, %43 ], [ 3, %33 ], [ 3, %18 ]
  ret i32 %.0
}

declare i32 @HAL_GetTick() local_unnamed_addr #1

declare i32 @HAL_InitTick(i32 noundef) local_unnamed_addr #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 = { "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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !8, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !8, i64 100, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !8, i64 280, !7, i64 296, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !7, i64 316, !8, i64 320, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !8, i64 172, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !8, i64 288}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!11, !7, i64 4}
!15 = !{!11, !7, i64 16}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = !{!11, !7, i64 24}
!23 = !{!11, !7, i64 28}
!24 = !{!11, !7, i64 32}
!25 = !{!11, !7, i64 40}
!26 = !{!11, !7, i64 44}
!27 = !{!11, !7, i64 48}
!28 = !{!11, !7, i64 52}
!29 = !{!11, !7, i64 56}
!30 = !{!11, !7, i64 60}
!31 = !{!11, !7, i64 64}
!32 = !{!11, !7, i64 68}
!33 = !{!11, !7, i64 96}
!34 = !{!11, !7, i64 104}
!35 = !{!11, !7, i64 208}


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