; LLVM IR from lfarcaro/ARINC653_ARMV7A_Z7000 :: ARINC653_ARMV7A_Z7000.sw/ARINC653_ARMV7A_Z7000/src/ARINC653 (MESSAGE)

; 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._MODULE_INFORMATION_TYPE = type { ptr, %struct._heapRECORD, i32, i32, i32, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i64, i64, i64, %struct._priorityqueueRECORD }
%struct._heapRECORD = type { ptr, i32, i32, i32 }
%struct._CONTEXT_TYPE = type { i32, ptr, ptr, ptr, i32, i8, ptr, ptr, i32, i32, i32, i32 }
%struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32, i32 }
%struct._priorityqueueRECORD = type { ptr, i32, i8, i8 }
%struct._PARTITION_INFORMATION_TYPE = type { i8, ptr, ptr, i32, i32, i32, i32, i8, %struct._heapRECORD, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._ERRORHANDLER_INFORMATION_TYPE, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i32, %struct._priorityqueueENTRY, %struct._priorityqueueRECORD, %struct._priorityqueueRECORD, %struct._priorityqueueRECORD, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr }
%struct._ERRORHANDLER_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32 }
%struct._priorityqueueENTRY = type { i64, i64, ptr, ptr, ptr }
%struct._SAMPLINGPORT_INFORMATION_TYPE = type { i32, ptr, i32, i32, i64, i64, i64, i32, i32, ptr, i32 }

@CORE_MODULE_INFORMATION = external global [2 x %struct._MODULE_INFORMATION_TYPE], align 16

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

declare void @ENTER_CORE() #1

declare i32 @PORT_GETCORE() #1

declare void @EXIT_CORE() #1

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

; Function Attrs: nounwind uwtable
define dso_local void @WRITE_SAMPLING_MESSAGE(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @ENTER_CORE()
  %13 = call i32 @PORT_GETCORE()
  %14 = zext i32 %13 to i64
  %15 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %14
  store ptr %15, ptr %9, align 8, !tbaa !9
  %16 = load ptr, ptr %9, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %16, i32 0, i32 8
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %22

20:                                               ; preds = %4
  %21 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 6, ptr %21, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %12, align 4
  br label %91

22:                                               ; preds = %4
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %24, i32 0, i32 8
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %26, i32 0, i32 23
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %29 = icmp uge i32 %23, %28
  br i1 %29, label %30, label %32

30:                                               ; preds = %22
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 4, ptr %31, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %12, align 4
  br label %91

32:                                               ; preds = %22
  %33 = load ptr, ptr %9, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %33, i32 0, i32 8
  %35 = load ptr, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %35, i32 0, i32 24
  %37 = load ptr, ptr %36, align 8, !tbaa !22
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds %struct._SAMPLINGPORT_INFORMATION_TYPE, ptr %37, i64 %39
  store ptr %40, ptr %10, align 8, !tbaa !9
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load ptr, ptr %10, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct._SAMPLINGPORT_INFORMATION_TYPE, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !23
  %45 = icmp ugt i32 %41, %44
  br i1 %45, label %46, label %48

46:                                               ; preds = %32
  %47 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 5, ptr %47, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %12, align 4
  br label %91

48:                                               ; preds = %32
  %49 = load ptr, ptr %10, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct._SAMPLINGPORT_INFORMATION_TYPE, ptr %49, i32 0, i32 3
  %51 = load i32, ptr %50, align 4, !tbaa !25
  %52 = icmp ne i32 %51, 1
  br i1 %52, label %53, label %55

53:                                               ; preds = %48
  %54 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 6, ptr %54, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 1, ptr %12, align 4
  br label %91

55:                                               ; preds = %48
  %56 = load ptr, ptr %10, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct._SAMPLINGPORT_INFORMATION_TYPE, ptr %56, i32 0, i32 8
  store i32 2, ptr %57, align 4, !tbaa !26
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %74, %55
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = icmp ult i32 %59, %60
  br i1 %61, label %62, label %77

62:                                               ; preds = %58
  %63 = load ptr, ptr %6, align 8, !tbaa !9
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %63, i64 %65
  %67 = load i8, ptr %66, align 1, !tbaa !27
  %68 = load ptr, ptr %10, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct._SAMPLINGPORT_INFORMATION_TYPE, ptr %68, i32 0, i32 9
  %70 = load ptr, ptr %69, align 8, !tbaa !28
  %71 = load i32, ptr %11, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds i8, ptr %70, i64 %72
  store i8 %67, ptr %73, align 1, !tbaa !27
  br label %74

74:                                               ; preds = %62
  %75 = load i32, ptr %11, align 4, !tbaa !5
  %76 = add i32 %75, 1
  store i32 %76, ptr %11, align 4, !tbaa !5
  br label %58, !llvm.loop !29

77:                                               ; preds = %58
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = load ptr, ptr %10, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct._SAMPLINGPORT_INFORMATION_TYPE, ptr %79, i32 0, i32 10
  store i32 %78, ptr %80, align 8, !tbaa !31
  %81 = load ptr, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %81, i32 0, i32 10
  %83 = load i64, ptr %82, align 8, !tbaa !32
  %84 = load ptr, ptr %9, align 8, !tbaa !9
  %85 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %84, i32 0, i32 11
  %86 = load i64, ptr %85, align 8, !tbaa !33
  %87 = add nsw i64 %83, %86
  %88 = load ptr, ptr %10, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct._SAMPLINGPORT_INFORMATION_TYPE, ptr %88, i32 0, i32 6
  store i64 %87, ptr %89, align 8, !tbaa !34
  %90 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 1, ptr %90, align 4, !tbaa !5
  call void @EXIT_CORE()
  store i32 0, ptr %12, align 4
  br label %91

91:                                               ; preds = %77, %53, %46, %30, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %92 = load i32, ptr %12, align 4
  switch i32 %92, label %94 [
    i32 0, label %93
    i32 1, label %93
  ]

93:                                               ; preds = %91, %91
  ret void

94:                                               ; preds = %91
  unreachable
}

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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 136}
!12 = !{!"_MODULE_INFORMATION_TYPE", !10, i64 0, !13, i64 8, !6, i64 32, !6, i64 36, !6, i64 40, !14, i64 48, !6, i64 120, !10, i64 128, !10, i64 136, !15, i64 144, !16, i64 256, !16, i64 264, !16, i64 272, !17, i64 280}
!13 = !{!"_heapRECORD", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!14 = !{!"_CONTEXT_TYPE", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68}
!15 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !6, i64 16, !14, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100, !6, i64 104}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"_priorityqueueRECORD", !10, i64 0, !6, i64 8, !7, i64 12, !7, i64 13}
!18 = !{!19, !6, i64 496}
!19 = !{!"_PARTITION_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !7, i64 40, !13, i64 48, !14, i64 72, !6, i64 144, !10, i64 152, !10, i64 160, !20, i64 168, !15, i64 272, !6, i64 384, !21, i64 392, !17, i64 432, !17, i64 448, !17, i64 464, !6, i64 480, !6, i64 484, !10, i64 488, !6, i64 496, !10, i64 504, !6, i64 512, !10, i64 520, !6, i64 528, !10, i64 536, !6, i64 544, !10, i64 552, !6, i64 560, !10, i64 568, !6, i64 576, !10, i64 584}
!20 = !{!"_ERRORHANDLER_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !6, i64 16, !14, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100}
!21 = !{!"_priorityqueueENTRY", !16, i64 0, !16, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!22 = !{!19, !10, i64 504}
!23 = !{!24, !6, i64 16}
!24 = !{!"_SAMPLINGPORT_INFORMATION_TYPE", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !16, i64 24, !16, i64 32, !16, i64 40, !6, i64 48, !6, i64 52, !10, i64 56, !6, i64 64}
!25 = !{!24, !6, i64 20}
!26 = !{!24, !6, i64 52}
!27 = !{!7, !7, i64 0}
!28 = !{!24, !10, i64 56}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!24, !6, i64 64}
!32 = !{!12, !16, i64 256}
!33 = !{!12, !16, i64 264}
!34 = !{!24, !16, i64 40}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._MODULE_INFORMATION_TYPE = type { ptr, %struct._heapRECORD, i32, i32, i32, %struct._CONTEXT_TYPE, i32, ptr, ptr, %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, i64, i64, i64, %struct._priorityqueueRECORD }
%struct._heapRECORD = type { ptr, i32, i32, i32 }
%struct._CONTEXT_TYPE = type { i32, ptr, ptr, ptr, i32, i8, ptr, ptr, i32, i32, i32, i32 }
%struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE = type { i8, ptr, i32, %struct._CONTEXT_TYPE, i8, i8, i8, i8, i32, i32 }
%struct._priorityqueueRECORD = type { ptr, i32, i8, i8 }
%struct._SAMPLINGPORT_INFORMATION_TYPE = type { i32, ptr, i32, i32, i64, i64, i64, i32, i32, ptr, i32 }

@CORE_MODULE_INFORMATION = external local_unnamed_addr global [2 x %struct._MODULE_INFORMATION_TYPE], align 16

declare void @ENTER_CORE() local_unnamed_addr #0

declare i32 @PORT_GETCORE() local_unnamed_addr #0

declare void @EXIT_CORE() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @WRITE_SAMPLING_MESSAGE(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #1 {
  tail call void @ENTER_CORE() #2
  %5 = tail call i32 @PORT_GETCORE() #2
  %6 = zext i32 %5 to i64
  %7 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %6
  %8 = getelementptr inbounds i8, ptr %7, i64 136
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %57, label %11

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %9, i64 496
  %13 = load i32, ptr %12, align 8, !tbaa !16
  %.not = icmp ugt i32 %13, %0
  br i1 %.not, label %14, label %57

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %9, i64 504
  %16 = load ptr, ptr %15, align 8, !tbaa !20
  %17 = zext i32 %0 to i64
  %18 = getelementptr inbounds %struct._SAMPLINGPORT_INFORMATION_TYPE, ptr %16, i64 %17
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %20 = load i32, ptr %19, align 8, !tbaa !21
  %21 = icmp ult i32 %20, %2
  br i1 %21, label %57, label %22

22:                                               ; preds = %14
  %23 = getelementptr inbounds i8, ptr %18, i64 20
  %24 = load i32, ptr %23, align 4, !tbaa !23
  %.not28 = icmp eq i32 %24, 1
  br i1 %.not28, label %25, label %57

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %18, i64 52
  store i32 2, ptr %26, align 4, !tbaa !24
  %.not30 = icmp eq i32 %2, 0
  br i1 %.not30, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %25
  %27 = getelementptr inbounds i8, ptr %18, i64 56
  %wide.trip.count = zext i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %28 = icmp ult i32 %2, 4
  br i1 %28, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %29

29:                                               ; preds = %29, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %29 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %29 ]
  %30 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  %31 = load i8, ptr %30, align 1, !tbaa !25
  %32 = load ptr, ptr %27, align 8, !tbaa !26
  %33 = getelementptr inbounds i8, ptr %32, i64 %indvars.iv
  store i8 %31, ptr %33, align 1, !tbaa !25
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %34 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv.next
  %35 = load i8, ptr %34, align 1, !tbaa !25
  %36 = load ptr, ptr %27, align 8, !tbaa !26
  %37 = getelementptr inbounds i8, ptr %36, i64 %indvars.iv.next
  store i8 %35, ptr %37, align 1, !tbaa !25
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %38 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv.next.1
  %39 = load i8, ptr %38, align 1, !tbaa !25
  %40 = load ptr, ptr %27, align 8, !tbaa !26
  %41 = getelementptr inbounds i8, ptr %40, i64 %indvars.iv.next.1
  store i8 %39, ptr %41, align 1, !tbaa !25
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %42 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv.next.2
  %43 = load i8, ptr %42, align 1, !tbaa !25
  %44 = load ptr, ptr %27, align 8, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv.next.2
  store i8 %43, ptr %45, align 1, !tbaa !25
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %29, !llvm.loop !27

._crit_edge.loopexit.unr-lcssa:                   ; preds = %29, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %29 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %46 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv.epil
  %47 = load i8, ptr %46, align 1, !tbaa !25
  %48 = load ptr, ptr %27, align 8, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %48, i64 %indvars.iv.epil
  store i8 %47, ptr %49, align 1, !tbaa !25
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !29

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %25
  %50 = getelementptr inbounds i8, ptr %18, i64 64
  store i32 %2, ptr %50, align 8, !tbaa !31
  %51 = getelementptr inbounds i8, ptr %7, i64 256
  %52 = load i64, ptr %51, align 8, !tbaa !32
  %53 = getelementptr inbounds i8, ptr %7, i64 264
  %54 = load i64, ptr %53, align 8, !tbaa !33
  %55 = add nsw i64 %54, %52
  %56 = getelementptr inbounds i8, ptr %18, i64 40
  store i64 %55, ptr %56, align 8, !tbaa !34
  br label %57

57:                                               ; preds = %22, %14, %11, %4, %._crit_edge
  %.sink = phi i32 [ 1, %._crit_edge ], [ 6, %4 ], [ 4, %11 ], [ 5, %14 ], [ 6, %22 ]
  store i32 %.sink, ptr %3, align 4, !tbaa !35
  tail call void @EXIT_CORE() #2
  ret void
}

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 136}
!6 = !{!"_MODULE_INFORMATION_TYPE", !7, i64 0, !10, i64 8, !11, i64 32, !11, i64 36, !11, i64 40, !12, i64 48, !11, i64 120, !7, i64 128, !7, i64 136, !13, i64 144, !14, i64 256, !14, i64 264, !14, i64 272, !15, i64 280}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_heapRECORD", !7, i64 0, !11, i64 8, !11, i64 12, !11, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_CONTEXT_TYPE", !11, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !8, i64 36, !7, i64 40, !7, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68}
!13 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 96, !8, i64 97, !8, i64 98, !8, i64 99, !11, i64 100, !11, i64 104}
!14 = !{!"long long", !8, i64 0}
!15 = !{!"_priorityqueueRECORD", !7, i64 0, !11, i64 8, !8, i64 12, !8, i64 13}
!16 = !{!17, !11, i64 496}
!17 = !{!"_PARTITION_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !8, i64 40, !10, i64 48, !12, i64 72, !11, i64 144, !7, i64 152, !7, i64 160, !18, i64 168, !13, i64 272, !11, i64 384, !19, i64 392, !15, i64 432, !15, i64 448, !15, i64 464, !11, i64 480, !11, i64 484, !7, i64 488, !11, i64 496, !7, i64 504, !11, i64 512, !7, i64 520, !11, i64 528, !7, i64 536, !11, i64 544, !7, i64 552, !11, i64 560, !7, i64 568, !11, i64 576, !7, i64 584}
!18 = !{!"_ERRORHANDLER_INFORMATION_TYPE", !8, i64 0, !7, i64 8, !11, i64 16, !12, i64 24, !8, i64 96, !8, i64 97, !8, i64 98, !8, i64 99, !11, i64 100}
!19 = !{!"_priorityqueueENTRY", !14, i64 0, !14, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!20 = !{!17, !7, i64 504}
!21 = !{!22, !11, i64 16}
!22 = !{!"_SAMPLINGPORT_INFORMATION_TYPE", !11, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !14, i64 24, !14, i64 32, !14, i64 40, !11, i64 48, !11, i64 52, !7, i64 56, !11, i64 64}
!23 = !{!22, !11, i64 20}
!24 = !{!22, !11, i64 52}
!25 = !{!8, !8, i64 0}
!26 = !{!22, !7, i64 56}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.unroll.disable"}
!31 = !{!22, !11, i64 64}
!32 = !{!6, !14, i64 256}
!33 = !{!6, !14, i64 264}
!34 = !{!22, !14, i64 40}
!35 = !{!11, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass