; LLVM IR from reazon-research/OpenArm :: control/canfd_control/Drivers/STM32H7xx_HAL_Driver/Src (stm32h7xx_hal_ospi)

; 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.OSPI_HandleTypeDef = type { ptr, %struct.OSPI_InitTypeDef, ptr, i32, i32, ptr, i32, i32, i32 }
%struct.OSPI_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.OCTOSPI_TypeDef = type { i32, i32, i32, i32, i32, i32, [2 x i32], i32, i32, [6 x i32], i32, i32, i32, i32, i32, [11 x i32], i32, i32, i32, i32, i32, [27 x i32], i32, i32, i32, i32, i32, [3 x i32], i32, [3 x i32], i32, [3 x i32], i32, i32, i32, i32, i32, [3 x i32], i32, [7 x i32], i32, i32, i32, i32, i32, [3 x i32], i32, [23 x i32], i32, [122 x i32], i32, i32, 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: nounwind uwtable
declare hidden i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; 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
define dso_local i32 @HAL_OSPI_Receive(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %12 = call i32 @HAL_GetTick()
  store i32 %12, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %15, i32 0, i32 14
  store ptr %16, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %19, i32 0, i32 12
  %21 = load volatile i32, ptr %20, align 4, !tbaa !14
  store i32 %21, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %24, i32 0, i32 26
  %26 = load volatile i32, ptr %25, align 4, !tbaa !16
  store i32 %26, ptr %11, align 4, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %32

29:                                               ; preds = %3
  store i32 1, ptr %7, align 4, !tbaa !9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %30, i32 0, i32 7
  store volatile i32 8, ptr %31, align 4, !tbaa !17
  br label %151

32:                                               ; preds = %3
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %33, i32 0, i32 6
  %35 = load volatile i32, ptr %34, align 8, !tbaa !18
  %36 = icmp eq i32 %35, 4
  br i1 %36, label %37, label %147

37:                                               ; preds = %32
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %40, i32 0, i32 10
  %42 = load volatile i32, ptr %41, align 4, !tbaa !19
  %43 = add i32 %42, 1
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %44, i32 0, i32 4
  store volatile i32 %43, ptr %45, align 4, !tbaa !20
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %46, i32 0, i32 4
  %48 = load volatile i32, ptr %47, align 4, !tbaa !20
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %49, i32 0, i32 3
  store volatile i32 %48, ptr %50, align 8, !tbaa !21
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %52, i32 0, i32 2
  store ptr %51, ptr %53, align 8, !tbaa !22
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %56, i32 0, i32 0
  %58 = load volatile i32, ptr %57, align 4, !tbaa !23
  %59 = zext i32 %58 to i64
  %60 = and i64 %59, -805306369
  %61 = or i64 %60, 268435456
  %62 = trunc i64 %61 to i32
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %65, i32 0, i32 0
  store volatile i32 %62, ptr %66, align 4, !tbaa !23
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds %struct.OSPI_InitTypeDef, ptr %68, i32 0, i32 2
  %70 = load i32, ptr %69, align 8, !tbaa !24
  %71 = icmp eq i32 %70, 67108864
  br i1 %71, label %72, label %78

72:                                               ; preds = %37
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %76, i32 0, i32 12
  store volatile i32 %73, ptr %77, align 4, !tbaa !14
  br label %100

78:                                               ; preds = %37
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %81, i32 0, i32 22
  %83 = load volatile i32, ptr %82, align 4, !tbaa !25
  %84 = zext i32 %83 to i64
  %85 = and i64 %84, 1792
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %87, label %93

87:                                               ; preds = %78
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %91, i32 0, i32 12
  store volatile i32 %88, ptr %92, align 4, !tbaa !14
  br label %99

93:                                               ; preds = %78
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %97, i32 0, i32 26
  store volatile i32 %94, ptr %98, align 4, !tbaa !16
  br label %99

99:                                               ; preds = %93, %87
  br label %100

100:                                              ; preds = %99, %72
  br label %101

101:                                              ; preds = %123, %100
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = call i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef %102, i32 noundef 6, i32 noundef 1, i32 noundef %103, i32 noundef %104)
  store i32 %105, ptr %7, align 4, !tbaa !9
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %101
  br label %128

109:                                              ; preds = %101
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load volatile i8, ptr %110, align 1, !tbaa !26
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !22
  store i8 %111, ptr %114, align 1, !tbaa !26
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %115, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = getelementptr inbounds i8, ptr %117, i32 1
  store ptr %118, ptr %116, align 8, !tbaa !22
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %119, i32 0, i32 4
  %121 = load volatile i32, ptr %120, align 4, !tbaa !20
  %122 = add i32 %121, -1
  store volatile i32 %122, ptr %120, align 4, !tbaa !20
  br label %123

123:                                              ; preds = %109
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %124, i32 0, i32 4
  %126 = load volatile i32, ptr %125, align 4, !tbaa !20
  %127 = icmp ugt i32 %126, 0
  br i1 %127, label %101, label %128, !llvm.loop !27

128:                                              ; preds = %123, %108
  %129 = load i32, ptr %7, align 4, !tbaa !9
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %146

131:                                              ; preds = %128
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = load i32, ptr %8, align 4, !tbaa !9
  %134 = load i32, ptr %6, align 4, !tbaa !9
  %135 = call i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef %132, i32 noundef 2, i32 noundef 1, i32 noundef %133, i32 noundef %134)
  store i32 %135, ptr %7, align 4, !tbaa !9
  %136 = load i32, ptr %7, align 4, !tbaa !9
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %145

138:                                              ; preds = %131
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %139, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8, !tbaa !11
  %142 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %141, i32 0, i32 8
  store volatile i32 2, ptr %142, align 4, !tbaa !29
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %143, i32 0, i32 6
  store volatile i32 2, ptr %144, align 8, !tbaa !18
  br label %145

145:                                              ; preds = %138, %131
  br label %146

146:                                              ; preds = %145, %128
  br label %150

147:                                              ; preds = %32
  store i32 1, ptr %7, align 4, !tbaa !9
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %148, i32 0, i32 7
  store volatile i32 16, ptr %149, align 4, !tbaa !17
  br label %150

150:                                              ; preds = %147, %146
  br label %151

151:                                              ; preds = %150, %29
  %152 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret i32 %152
}

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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !13, i64 8, !6, i64 72, !10, i64 80, !10, i64 84, !6, i64 88, !10, i64 96, !10, i64 100, !10, i64 104}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56}
!14 = !{!15, !10, i64 72}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !7, i64 84, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !7, i64 148, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !7, i64 276, !10, i64 288, !7, i64 292, !10, i64 304, !7, i64 308, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !7, i64 340, !10, i64 352, !7, i64 356, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !7, i64 404, !10, i64 416, !7, i64 420, !10, i64 512, !7, i64 516, !10, i64 1004, !10, i64 1008, !10, i64 1012, !10, i64 1016}
!16 = !{!15, !10, i64 272}
!17 = !{!12, !10, i64 100}
!18 = !{!12, !10, i64 96}
!19 = !{!15, !10, i64 64}
!20 = !{!12, !10, i64 84}
!21 = !{!12, !10, i64 80}
!22 = !{!12, !6, i64 72}
!23 = !{!15, !10, i64 0}
!24 = !{!12, !10, i64 16}
!25 = !{!15, !10, i64 256}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!15, !10, i64 36}


; 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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_OSPI_Receive(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = tail call i32 @HAL_GetTick() #2
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 80
  %7 = getelementptr inbounds i8, ptr %5, i64 72
  %8 = load volatile i32, ptr %7, align 4, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %5, i64 272
  %10 = load volatile i32, ptr %9, align 4, !tbaa !14
  %11 = icmp eq ptr %1, null
  br i1 %11, label %12, label %14

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %0, i64 100
  store volatile i32 8, ptr %13, align 4, !tbaa !15
  br label %.loopexit

14:                                               ; preds = %3
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  %16 = load volatile i32, ptr %15, align 8, !tbaa !16
  %17 = icmp eq i32 %16, 4
  br i1 %17, label %18, label %55

18:                                               ; preds = %14
  %19 = getelementptr inbounds i8, ptr %5, i64 64
  %20 = load volatile i32, ptr %19, align 4, !tbaa !17
  %21 = add i32 %20, 1
  %22 = getelementptr inbounds i8, ptr %0, i64 84
  store volatile i32 %21, ptr %22, align 4, !tbaa !18
  %23 = load volatile i32, ptr %22, align 4, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  store volatile i32 %23, ptr %24, align 8, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %1, ptr %25, align 8, !tbaa !20
  %26 = load volatile i32, ptr %5, align 4, !tbaa !21
  %27 = and i32 %26, -805306369
  %28 = or disjoint i32 %27, 268435456
  store volatile i32 %28, ptr %5, align 4, !tbaa !21
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = load i32, ptr %29, align 8, !tbaa !22
  %31 = icmp eq i32 %30, 67108864
  br i1 %31, label %32, label %33

32:                                               ; preds = %18
  store volatile i32 %8, ptr %7, align 4, !tbaa !12
  br label %.preheader

33:                                               ; preds = %18
  %34 = getelementptr inbounds i8, ptr %5, i64 256
  %35 = load volatile i32, ptr %34, align 4, !tbaa !23
  %36 = and i32 %35, 1792
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %38, label %37

37:                                               ; preds = %33
  store volatile i32 %8, ptr %7, align 4, !tbaa !12
  br label %.preheader

38:                                               ; preds = %33
  store volatile i32 %10, ptr %9, align 4, !tbaa !14
  br label %.preheader

.preheader:                                       ; preds = %37, %38, %32
  br label %39

39:                                               ; preds = %.preheader, %41
  %40 = tail call i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef nonnull %0, i32 noundef 6, i32 noundef 1, i32 noundef %4, i32 noundef %2)
  %cond = icmp eq i32 %40, 0
  br i1 %cond, label %41, label %.loopexit

41:                                               ; preds = %39
  %42 = load volatile i8, ptr %6, align 1, !tbaa !24
  %43 = load ptr, ptr %25, align 8, !tbaa !20
  store i8 %42, ptr %43, align 1, !tbaa !24
  %44 = load ptr, ptr %25, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  store ptr %45, ptr %25, align 8, !tbaa !20
  %46 = load volatile i32, ptr %22, align 4, !tbaa !18
  %47 = add i32 %46, -1
  store volatile i32 %47, ptr %22, align 4, !tbaa !18
  %48 = load volatile i32, ptr %22, align 4, !tbaa !18
  %.not43 = icmp eq i32 %48, 0
  br i1 %.not43, label %49, label %39, !llvm.loop !25

49:                                               ; preds = %41
  %50 = tail call i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef nonnull %0, i32 noundef 2, i32 noundef 1, i32 noundef %4, i32 noundef %2)
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %.loopexit

52:                                               ; preds = %49
  %53 = load ptr, ptr %0, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 36
  store volatile i32 2, ptr %54, align 4, !tbaa !27
  store volatile i32 2, ptr %15, align 8, !tbaa !16
  br label %.loopexit

55:                                               ; preds = %14
  %56 = getelementptr inbounds i8, ptr %0, i64 100
  store volatile i32 16, ptr %56, align 4, !tbaa !15
  br label %.loopexit

.loopexit:                                        ; preds = %39, %55, %49, %52, %12
  %.0 = phi i32 [ 1, %12 ], [ 0, %52 ], [ %50, %49 ], [ 1, %55 ], [ %40, %39 ]
  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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 72, !11, i64 80, !11, i64 84, !7, i64 88, !11, i64 96, !11, i64 100, !11, i64 104}
!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, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 72}
!13 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !8, i64 24, !11, i64 32, !11, i64 36, !8, i64 40, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !8, i64 84, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !8, i64 148, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !8, i64 276, !11, i64 288, !8, i64 292, !11, i64 304, !8, i64 308, !11, i64 320, !11, i64 324, !11, i64 328, !11, i64 332, !11, i64 336, !8, i64 340, !11, i64 352, !8, i64 356, !11, i64 384, !11, i64 388, !11, i64 392, !11, i64 396, !11, i64 400, !8, i64 404, !11, i64 416, !8, i64 420, !11, i64 512, !8, i64 516, !11, i64 1004, !11, i64 1008, !11, i64 1012, !11, i64 1016}
!14 = !{!13, !11, i64 272}
!15 = !{!6, !11, i64 100}
!16 = !{!6, !11, i64 96}
!17 = !{!13, !11, i64 64}
!18 = !{!6, !11, i64 84}
!19 = !{!6, !11, i64 80}
!20 = !{!6, !7, i64 72}
!21 = !{!13, !11, i64 0}
!22 = !{!6, !11, i64 16}
!23 = !{!13, !11, i64 256}
!24 = !{!8, !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!13, !11, i64 36}


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