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

; 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._MODULE_CONFIGURATION_TYPE = type { i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, i64, ptr, ptr, i32, ptr, ptr }

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

declare i32 @PORT_GETCORE() #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @INITIALIZE_PARTITION_INFORMATION(i32 noundef, i8 noundef zeroext) #2

declare void @PRIORITYQUEUE_STARTUP(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
define dso_local void @INITIALIZE_MODULE_INFORMATION() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %5 = call i32 @PORT_GETCORE()
  %6 = zext i32 %5 to i64
  %7 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %6
  store ptr %7, ptr %1, align 8, !tbaa !5
  call void @PORT_GETCONTEXTIDENTIFIERRANGE(ptr noundef %2, ptr noundef %3)
  %8 = load i32, ptr %2, align 4, !tbaa !9
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %9, i32 0, i32 2
  store i32 %8, ptr %10, align 8, !tbaa !11
  %11 = load i32, ptr %3, align 4, !tbaa !9
  %12 = load ptr, ptr %1, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %12, i32 0, i32 3
  store i32 %11, ptr %13, align 4, !tbaa !18
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %14, i32 0, i32 4
  store i32 2, ptr %15, align 8, !tbaa !19
  %16 = load ptr, ptr %1, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %16, i32 0, i32 5
  %18 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %17, i32 0, i32 0
  store i32 0, ptr %18, align 8, !tbaa !20
  %19 = load ptr, ptr %1, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %19, i32 0, i32 5
  %21 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %20, i32 0, i32 1
  store ptr null, ptr %21, align 8, !tbaa !21
  %22 = load ptr, ptr %1, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %22, i32 0, i32 5
  %24 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %23, i32 0, i32 2
  store ptr null, ptr %24, align 8, !tbaa !22
  %25 = load ptr, ptr %1, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %25, i32 0, i32 5
  %27 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %26, i32 0, i32 3
  store ptr null, ptr %27, align 8, !tbaa !23
  %28 = load ptr, ptr %1, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %28, i32 0, i32 5
  %30 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %29, i32 0, i32 4
  store i32 0, ptr %30, align 8, !tbaa !24
  %31 = load ptr, ptr %1, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %31, i32 0, i32 5
  %33 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %32, i32 0, i32 5
  store i8 0, ptr %33, align 4, !tbaa !25
  %34 = load ptr, ptr %1, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %34, i32 0, i32 5
  %36 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %35, i32 0, i32 6
  store ptr null, ptr %36, align 8, !tbaa !26
  %37 = load ptr, ptr %1, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %37, i32 0, i32 5
  %39 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %38, i32 0, i32 7
  store ptr null, ptr %39, align 8, !tbaa !27
  %40 = load ptr, ptr %1, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %40, i32 0, i32 5
  %42 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %41, i32 0, i32 8
  store i32 0, ptr %42, align 8, !tbaa !28
  %43 = load ptr, ptr %1, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %43, i32 0, i32 5
  %45 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %44, i32 0, i32 9
  store i32 0, ptr %45, align 4, !tbaa !29
  %46 = load ptr, ptr %1, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %46, i32 0, i32 5
  %48 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %47, i32 0, i32 10
  store i32 0, ptr %48, align 8, !tbaa !30
  %49 = load ptr, ptr %1, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %49, i32 0, i32 5
  %51 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %50, i32 0, i32 11
  store i32 0, ptr %51, align 4, !tbaa !31
  %52 = load ptr, ptr %1, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %52, i32 0, i32 6
  store i32 0, ptr %53, align 8, !tbaa !32
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %64, %0
  %55 = load i32, ptr %4, align 4, !tbaa !9
  %56 = load ptr, ptr %1, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !33
  %59 = getelementptr inbounds %struct._MODULE_CONFIGURATION_TYPE, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !34
  %61 = icmp ult i32 %55, %60
  br i1 %61, label %62, label %67

62:                                               ; preds = %54
  %63 = load i32, ptr %4, align 4, !tbaa !9
  call void @INITIALIZE_PARTITION_INFORMATION(i32 noundef %63, i8 noundef zeroext 0)
  br label %64

64:                                               ; preds = %62
  %65 = load i32, ptr %4, align 4, !tbaa !9
  %66 = add i32 %65, 1
  store i32 %66, ptr %4, align 4, !tbaa !9
  br label %54, !llvm.loop !36

67:                                               ; preds = %54
  %68 = load ptr, ptr %1, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %68, i32 0, i32 8
  store ptr null, ptr %69, align 8, !tbaa !38
  %70 = load ptr, ptr %1, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %70, i32 0, i32 9
  %72 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %71, i32 0, i32 0
  store i8 0, ptr %72, align 8, !tbaa !39
  %73 = load ptr, ptr %1, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %73, i32 0, i32 9
  %75 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %74, i32 0, i32 1
  store ptr null, ptr %75, align 8, !tbaa !40
  %76 = load ptr, ptr %1, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %76, i32 0, i32 9
  %78 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %77, i32 0, i32 2
  store i32 0, ptr %78, align 8, !tbaa !41
  %79 = load ptr, ptr %1, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %79, i32 0, i32 9
  %81 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %80, i32 0, i32 3
  %82 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %81, i32 0, i32 0
  store i32 0, ptr %82, align 8, !tbaa !42
  %83 = load ptr, ptr %1, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %83, i32 0, i32 9
  %85 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %84, i32 0, i32 3
  %86 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %85, i32 0, i32 1
  store ptr null, ptr %86, align 8, !tbaa !43
  %87 = load ptr, ptr %1, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %87, i32 0, i32 9
  %89 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %88, i32 0, i32 3
  %90 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %89, i32 0, i32 2
  store ptr null, ptr %90, align 8, !tbaa !44
  %91 = load ptr, ptr %1, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %91, i32 0, i32 9
  %93 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %92, i32 0, i32 3
  %94 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %93, i32 0, i32 3
  store ptr null, ptr %94, align 8, !tbaa !45
  %95 = load ptr, ptr %1, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %95, i32 0, i32 9
  %97 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %96, i32 0, i32 3
  %98 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %97, i32 0, i32 4
  store i32 0, ptr %98, align 8, !tbaa !46
  %99 = load ptr, ptr %1, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %99, i32 0, i32 9
  %101 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %100, i32 0, i32 3
  %102 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %101, i32 0, i32 5
  store i8 0, ptr %102, align 4, !tbaa !47
  %103 = load ptr, ptr %1, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %103, i32 0, i32 9
  %105 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %104, i32 0, i32 3
  %106 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %105, i32 0, i32 6
  store ptr null, ptr %106, align 8, !tbaa !48
  %107 = load ptr, ptr %1, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %107, i32 0, i32 9
  %109 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %108, i32 0, i32 3
  %110 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %109, i32 0, i32 7
  store ptr null, ptr %110, align 8, !tbaa !49
  %111 = load ptr, ptr %1, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %111, i32 0, i32 9
  %113 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %112, i32 0, i32 3
  %114 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %113, i32 0, i32 8
  store i32 0, ptr %114, align 8, !tbaa !50
  %115 = load ptr, ptr %1, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %115, i32 0, i32 9
  %117 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %116, i32 0, i32 3
  %118 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %117, i32 0, i32 9
  store i32 0, ptr %118, align 4, !tbaa !51
  %119 = load ptr, ptr %1, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %119, i32 0, i32 9
  %121 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %120, i32 0, i32 4
  store i8 0, ptr %121, align 8, !tbaa !52
  %122 = load ptr, ptr %1, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %122, i32 0, i32 9
  %124 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %123, i32 0, i32 5
  store i8 0, ptr %124, align 1, !tbaa !53
  %125 = load ptr, ptr %1, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %125, i32 0, i32 9
  %127 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %126, i32 0, i32 6
  store i8 0, ptr %127, align 2, !tbaa !54
  %128 = load ptr, ptr %1, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %128, i32 0, i32 9
  %130 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %129, i32 0, i32 7
  store i8 0, ptr %130, align 1, !tbaa !55
  %131 = load ptr, ptr %1, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %131, i32 0, i32 9
  %133 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %132, i32 0, i32 8
  store i32 0, ptr %133, align 4, !tbaa !56
  %134 = load ptr, ptr %1, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %134, i32 0, i32 9
  %136 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %135, i32 0, i32 9
  store i32 0, ptr %136, align 8, !tbaa !57
  %137 = load ptr, ptr %1, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %137, i32 0, i32 10
  store i64 -1, ptr %138, align 8, !tbaa !58
  %139 = load ptr, ptr %1, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %139, i32 0, i32 11
  store i64 -1, ptr %140, align 8, !tbaa !59
  %141 = load ptr, ptr %1, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %141, i32 0, i32 12
  store i64 -1, ptr %142, align 8, !tbaa !60
  %143 = load ptr, ptr %1, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._MODULE_INFORMATION_TYPE, ptr %143, i32 0, i32 13
  call void @PRIORITYQUEUE_STARTUP(ptr noundef %144, i8 noundef zeroext 1, i8 noundef zeroext 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  ret void
}

declare void @PORT_GETCONTEXTIDENTIFIERRANGE(ptr noundef, ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 32}
!12 = !{!"_MODULE_INFORMATION_TYPE", !6, i64 0, !13, i64 8, !10, i64 32, !10, i64 36, !10, i64 40, !14, i64 48, !10, i64 120, !6, i64 128, !6, i64 136, !15, i64 144, !16, i64 256, !16, i64 264, !16, i64 272, !17, i64 280}
!13 = !{!"_heapRECORD", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!"_CONTEXT_TYPE", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !7, i64 36, !6, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68}
!15 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !7, i64 0, !6, i64 8, !10, i64 16, !14, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !10, i64 100, !10, i64 104}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"_priorityqueueRECORD", !6, i64 0, !10, i64 8, !7, i64 12, !7, i64 13}
!18 = !{!12, !10, i64 36}
!19 = !{!12, !10, i64 40}
!20 = !{!12, !10, i64 48}
!21 = !{!12, !6, i64 56}
!22 = !{!12, !6, i64 64}
!23 = !{!12, !6, i64 72}
!24 = !{!12, !10, i64 80}
!25 = !{!12, !7, i64 84}
!26 = !{!12, !6, i64 88}
!27 = !{!12, !6, i64 96}
!28 = !{!12, !10, i64 104}
!29 = !{!12, !10, i64 108}
!30 = !{!12, !10, i64 112}
!31 = !{!12, !10, i64 116}
!32 = !{!12, !10, i64 120}
!33 = !{!12, !6, i64 0}
!34 = !{!35, !10, i64 0}
!35 = !{!"_MODULE_CONFIGURATION_TYPE", !10, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !16, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !6, i64 128}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!12, !6, i64 136}
!39 = !{!12, !7, i64 144}
!40 = !{!12, !6, i64 152}
!41 = !{!12, !10, i64 160}
!42 = !{!12, !10, i64 168}
!43 = !{!12, !6, i64 176}
!44 = !{!12, !6, i64 184}
!45 = !{!12, !6, i64 192}
!46 = !{!12, !10, i64 200}
!47 = !{!12, !7, i64 204}
!48 = !{!12, !6, i64 208}
!49 = !{!12, !6, i64 216}
!50 = !{!12, !10, i64 224}
!51 = !{!12, !10, i64 228}
!52 = !{!12, !7, i64 240}
!53 = !{!12, !7, i64 241}
!54 = !{!12, !7, i64 242}
!55 = !{!12, !7, i64 243}
!56 = !{!12, !10, i64 244}
!57 = !{!12, !10, i64 248}
!58 = !{!12, !16, i64 256}
!59 = !{!12, !16, i64 264}
!60 = !{!12, !16, i64 272}


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

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

declare i32 @PORT_GETCORE() local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @INITIALIZE_PARTITION_INFORMATION(i32 noundef, i8 noundef zeroext) local_unnamed_addr #2

declare void @PRIORITYQUEUE_STARTUP(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @INITIALIZE_MODULE_INFORMATION() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %3 = tail call i32 @PORT_GETCORE() #4
  %4 = zext i32 %3 to i64
  %5 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %4
  call void @PORT_GETCONTEXTIDENTIFIERRANGE(ptr noundef nonnull %1, ptr noundef nonnull %2) #4
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %5, i64 32
  store i32 %6, ptr %7, align 8, !tbaa !9
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %5, i64 36
  store i32 %8, ptr %9, align 4, !tbaa !17
  %10 = getelementptr inbounds i8, ptr %5, i64 40
  store i32 2, ptr %10, align 8, !tbaa !18
  %11 = getelementptr inbounds i8, ptr %5, i64 48
  store i32 0, ptr %11, align 8, !tbaa !19
  %12 = getelementptr inbounds i8, ptr %5, i64 56
  %13 = getelementptr inbounds i8, ptr %5, i64 88
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(29) %12, i8 0, i64 29, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(36) %13, i8 0, i64 36, i1 false)
  %14 = load ptr, ptr %5, align 8, !tbaa !20
  %15 = load i32, ptr %14, align 8, !tbaa !21
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.043 = phi i32 [ %16, %.lr.ph ], [ 0, %0 ]
  call void @INITIALIZE_PARTITION_INFORMATION(i32 noundef %.043, i8 noundef zeroext 0)
  %16 = add nuw i32 %.043, 1
  %17 = load ptr, ptr %5, align 8, !tbaa !20
  %18 = load i32, ptr %17, align 8, !tbaa !21
  %19 = icmp ult i32 %16, %18
  br i1 %19, label %.lr.ph, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph, %0
  %20 = getelementptr inbounds i8, ptr %5, i64 136
  store ptr null, ptr %20, align 8, !tbaa !25
  %21 = getelementptr inbounds i8, ptr %5, i64 144
  store i8 0, ptr %21, align 8, !tbaa !26
  %22 = getelementptr inbounds i8, ptr %5, i64 152
  store ptr null, ptr %22, align 8, !tbaa !27
  %23 = getelementptr inbounds i8, ptr %5, i64 160
  store i32 0, ptr %23, align 8, !tbaa !28
  %24 = getelementptr inbounds i8, ptr %5, i64 168
  store i32 0, ptr %24, align 8, !tbaa !29
  %25 = getelementptr inbounds i8, ptr %5, i64 176
  %26 = getelementptr inbounds i8, ptr %5, i64 208
  %27 = getelementptr inbounds i8, ptr %5, i64 240
  %28 = getelementptr inbounds i8, ptr %5, i64 256
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(29) %25, i8 0, i64 29, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %26, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %27, i8 0, i64 12, i1 false)
  %29 = getelementptr inbounds i8, ptr %5, i64 280
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %28, i8 -1, i64 24, i1 false)
  call void @PRIORITYQUEUE_STARTUP(ptr noundef nonnull %29, i8 noundef zeroext 1, i8 noundef zeroext 1) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret void
}

declare void @PORT_GETCONTEXTIDENTIFIERRANGE(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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, !6, i64 32}
!10 = !{!"_MODULE_INFORMATION_TYPE", !11, i64 0, !12, i64 8, !6, i64 32, !6, i64 36, !6, i64 40, !13, i64 48, !6, i64 120, !11, i64 128, !11, i64 136, !14, i64 144, !15, i64 256, !15, i64 264, !15, i64 272, !16, i64 280}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_heapRECORD", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!13 = !{!"_CONTEXT_TYPE", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !7, i64 36, !11, i64 40, !11, i64 48, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68}
!14 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !7, i64 0, !11, i64 8, !6, i64 16, !13, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100, !6, i64 104}
!15 = !{!"long long", !7, i64 0}
!16 = !{!"_priorityqueueRECORD", !11, i64 0, !6, i64 8, !7, i64 12, !7, i64 13}
!17 = !{!10, !6, i64 36}
!18 = !{!10, !6, i64 40}
!19 = !{!10, !6, i64 48}
!20 = !{!10, !11, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_MODULE_CONFIGURATION_TYPE", !6, i64 0, !11, i64 8, !6, i64 16, !11, i64 24, !6, i64 32, !11, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !11, i64 72, !6, i64 80, !15, i64 88, !11, i64 96, !11, i64 104, !6, i64 112, !11, i64 120, !11, i64 128}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !11, i64 136}
!26 = !{!10, !7, i64 144}
!27 = !{!10, !11, i64 152}
!28 = !{!10, !6, i64 160}
!29 = !{!10, !6, i64 168}


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