; 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._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._PARTITION_CONFIGURATION_TYPE = type { i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, 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_PROCESS_INFORMATION(i32 noundef, i32 noundef) #2

declare void @PRIORITYQUEUE_REMOVE(ptr noundef) #0

declare void @PRIORITYQUEUE_INITIALIZEENTRY(ptr noundef) #0

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

19:                                               ; preds = %2
  %20 = load ptr, ptr %6, align 8, !tbaa !10
  %21 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %20, i32 0, i32 0
  store i8 0, ptr %21, align 8, !tbaa !19
  br label %22

22:                                               ; preds = %19, %2
  %23 = load ptr, ptr %6, align 8, !tbaa !10
  %24 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %23, i32 0, i32 0
  %25 = load i8, ptr %24, align 8, !tbaa !19
  %26 = icmp ne i8 %25, 0
  br i1 %26, label %38, label %27

27:                                               ; preds = %22
  %28 = load ptr, ptr %6, align 8, !tbaa !10
  %29 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %28, i32 0, i32 1
  store ptr null, ptr %29, align 8, !tbaa !23
  %30 = load ptr, ptr %6, align 8, !tbaa !10
  %31 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %30, i32 0, i32 2
  store ptr null, ptr %31, align 8, !tbaa !24
  %32 = load ptr, ptr %6, align 8, !tbaa !10
  %33 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %32, i32 0, i32 3
  store i32 -1, ptr %33, align 8, !tbaa !25
  %34 = load ptr, ptr %6, align 8, !tbaa !10
  %35 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %34, i32 0, i32 4
  store i32 1, ptr %35, align 4, !tbaa !26
  %36 = load ptr, ptr %6, align 8, !tbaa !10
  %37 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %36, i32 0, i32 5
  store i32 1, ptr %37, align 8, !tbaa !27
  br label %38

38:                                               ; preds = %27, %22
  %39 = load ptr, ptr %6, align 8, !tbaa !10
  %40 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %39, i32 0, i32 6
  store i32 0, ptr %40, align 4, !tbaa !28
  %41 = load ptr, ptr %6, align 8, !tbaa !10
  %42 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %41, i32 0, i32 7
  store i8 0, ptr %42, align 8, !tbaa !29
  %43 = load ptr, ptr %6, align 8, !tbaa !10
  %44 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %43, i32 0, i32 0
  %45 = load i8, ptr %44, align 8, !tbaa !19
  %46 = icmp ne i8 %45, 0
  br i1 %46, label %87, label %47

47:                                               ; preds = %38
  %48 = load ptr, ptr %6, align 8, !tbaa !10
  %49 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %48, i32 0, i32 8
  %50 = getelementptr inbounds %struct._heapRECORD, ptr %49, i32 0, i32 0
  store ptr null, ptr %50, align 8, !tbaa !30
  %51 = load ptr, ptr %6, align 8, !tbaa !10
  %52 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %51, i32 0, i32 8
  %53 = getelementptr inbounds %struct._heapRECORD, ptr %52, i32 0, i32 1
  store i32 0, ptr %53, align 8, !tbaa !31
  %54 = load ptr, ptr %6, align 8, !tbaa !10
  %55 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %54, i32 0, i32 8
  %56 = getelementptr inbounds %struct._heapRECORD, ptr %55, i32 0, i32 3
  store i32 0, ptr %56, align 8, !tbaa !32
  %57 = load ptr, ptr %6, align 8, !tbaa !10
  %58 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %57, i32 0, i32 9
  %59 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %58, i32 0, i32 0
  store i32 0, ptr %59, align 8, !tbaa !33
  %60 = load ptr, ptr %6, align 8, !tbaa !10
  %61 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %60, i32 0, i32 9
  %62 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %61, i32 0, i32 1
  store ptr null, ptr %62, align 8, !tbaa !34
  %63 = load ptr, ptr %6, align 8, !tbaa !10
  %64 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %63, i32 0, i32 9
  %65 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %64, i32 0, i32 2
  store ptr null, ptr %65, align 8, !tbaa !35
  %66 = load ptr, ptr %6, align 8, !tbaa !10
  %67 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %66, i32 0, i32 9
  %68 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %67, i32 0, i32 3
  store ptr null, ptr %68, align 8, !tbaa !36
  %69 = load ptr, ptr %6, align 8, !tbaa !10
  %70 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %69, i32 0, i32 9
  %71 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %70, i32 0, i32 4
  store i32 0, ptr %71, align 8, !tbaa !37
  %72 = load ptr, ptr %6, align 8, !tbaa !10
  %73 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %72, i32 0, i32 9
  %74 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %73, i32 0, i32 5
  store i8 0, ptr %74, align 4, !tbaa !38
  %75 = load ptr, ptr %6, align 8, !tbaa !10
  %76 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %75, i32 0, i32 9
  %77 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %76, i32 0, i32 6
  store ptr null, ptr %77, align 8, !tbaa !39
  %78 = load ptr, ptr %6, align 8, !tbaa !10
  %79 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %78, i32 0, i32 9
  %80 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %79, i32 0, i32 7
  store ptr null, ptr %80, align 8, !tbaa !40
  %81 = load ptr, ptr %6, align 8, !tbaa !10
  %82 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %81, i32 0, i32 9
  %83 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %82, i32 0, i32 8
  store i32 0, ptr %83, align 8, !tbaa !41
  %84 = load ptr, ptr %6, align 8, !tbaa !10
  %85 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %84, i32 0, i32 9
  %86 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %85, i32 0, i32 9
  store i32 0, ptr %86, align 4, !tbaa !42
  br label %87

87:                                               ; preds = %47, %38
  %88 = load ptr, ptr %6, align 8, !tbaa !10
  %89 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %88, i32 0, i32 10
  store i32 0, ptr %89, align 8, !tbaa !43
  %90 = load ptr, ptr %6, align 8, !tbaa !10
  %91 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %90, i32 0, i32 0
  %92 = load i8, ptr %91, align 8, !tbaa !19
  %93 = icmp ne i8 %92, 0
  br i1 %93, label %97, label %94

94:                                               ; preds = %87
  %95 = load ptr, ptr %6, align 8, !tbaa !10
  %96 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %95, i32 0, i32 11
  store ptr null, ptr %96, align 8, !tbaa !44
  br label %113

97:                                               ; preds = %87
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %109, %97
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = load ptr, ptr %6, align 8, !tbaa !10
  %101 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !24
  %103 = getelementptr inbounds %struct._PARTITION_CONFIGURATION_TYPE, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 8, !tbaa !45
  %105 = icmp ult i32 %99, %104
  br i1 %105, label %106, label %112

106:                                              ; preds = %98
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = load i32, ptr %7, align 4, !tbaa !5
  call void @INITIALIZE_PROCESS_INFORMATION(i32 noundef %107, i32 noundef %108)
  br label %109

109:                                              ; preds = %106
  %110 = load i32, ptr %7, align 4, !tbaa !5
  %111 = add i32 %110, 1
  store i32 %111, ptr %7, align 4, !tbaa !5
  br label %98, !llvm.loop !47

112:                                              ; preds = %98
  br label %113

113:                                              ; preds = %112, %94
  %114 = load ptr, ptr %6, align 8, !tbaa !10
  %115 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %114, i32 0, i32 12
  store ptr null, ptr %115, align 8, !tbaa !49
  %116 = load ptr, ptr %6, align 8, !tbaa !10
  %117 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %116, i32 0, i32 13
  %118 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %117, i32 0, i32 0
  store i8 0, ptr %118, align 8, !tbaa !50
  %119 = load ptr, ptr %6, align 8, !tbaa !10
  %120 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %119, i32 0, i32 13
  %121 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %120, i32 0, i32 1
  store ptr null, ptr %121, align 8, !tbaa !51
  %122 = load ptr, ptr %6, align 8, !tbaa !10
  %123 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %122, i32 0, i32 13
  %124 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %123, i32 0, i32 2
  store i32 0, ptr %124, align 8, !tbaa !52
  %125 = load ptr, ptr %6, align 8, !tbaa !10
  %126 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %125, i32 0, i32 0
  %127 = load i8, ptr %126, align 8, !tbaa !19
  %128 = icmp ne i8 %127, 0
  br i1 %128, label %170, label %129

129:                                              ; preds = %113
  %130 = load ptr, ptr %6, align 8, !tbaa !10
  %131 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %130, i32 0, i32 13
  %132 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %131, i32 0, i32 3
  %133 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %132, i32 0, i32 0
  store i32 0, ptr %133, align 8, !tbaa !53
  %134 = load ptr, ptr %6, align 8, !tbaa !10
  %135 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %134, i32 0, i32 13
  %136 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %135, i32 0, i32 3
  %137 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %136, i32 0, i32 1
  store ptr null, ptr %137, align 8, !tbaa !54
  %138 = load ptr, ptr %6, align 8, !tbaa !10
  %139 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %138, i32 0, i32 13
  %140 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %139, i32 0, i32 3
  %141 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %140, i32 0, i32 2
  store ptr null, ptr %141, align 8, !tbaa !55
  %142 = load ptr, ptr %6, align 8, !tbaa !10
  %143 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %142, i32 0, i32 13
  %144 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %143, i32 0, i32 3
  %145 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %144, i32 0, i32 3
  store ptr null, ptr %145, align 8, !tbaa !56
  %146 = load ptr, ptr %6, align 8, !tbaa !10
  %147 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %146, i32 0, i32 13
  %148 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %147, i32 0, i32 3
  %149 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %148, i32 0, i32 4
  store i32 0, ptr %149, align 8, !tbaa !57
  %150 = load ptr, ptr %6, align 8, !tbaa !10
  %151 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %150, i32 0, i32 13
  %152 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %151, i32 0, i32 3
  %153 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %152, i32 0, i32 5
  store i8 0, ptr %153, align 4, !tbaa !58
  %154 = load ptr, ptr %6, align 8, !tbaa !10
  %155 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %154, i32 0, i32 13
  %156 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %155, i32 0, i32 3
  %157 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %156, i32 0, i32 6
  store ptr null, ptr %157, align 8, !tbaa !59
  %158 = load ptr, ptr %6, align 8, !tbaa !10
  %159 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %158, i32 0, i32 13
  %160 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %159, i32 0, i32 3
  %161 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %160, i32 0, i32 7
  store ptr null, ptr %161, align 8, !tbaa !60
  %162 = load ptr, ptr %6, align 8, !tbaa !10
  %163 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %162, i32 0, i32 13
  %164 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %163, i32 0, i32 3
  %165 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %164, i32 0, i32 8
  store i32 0, ptr %165, align 8, !tbaa !61
  %166 = load ptr, ptr %6, align 8, !tbaa !10
  %167 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %166, i32 0, i32 13
  %168 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %167, i32 0, i32 3
  %169 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %168, i32 0, i32 9
  store i32 0, ptr %169, align 4, !tbaa !62
  br label %170

170:                                              ; preds = %129, %113
  %171 = load ptr, ptr %6, align 8, !tbaa !10
  %172 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %171, i32 0, i32 13
  %173 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %172, i32 0, i32 4
  store i8 0, ptr %173, align 8, !tbaa !63
  %174 = load ptr, ptr %6, align 8, !tbaa !10
  %175 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %174, i32 0, i32 13
  %176 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %175, i32 0, i32 5
  store i8 0, ptr %176, align 1, !tbaa !64
  %177 = load ptr, ptr %6, align 8, !tbaa !10
  %178 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %177, i32 0, i32 13
  %179 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %178, i32 0, i32 6
  store i8 0, ptr %179, align 2, !tbaa !65
  %180 = load ptr, ptr %6, align 8, !tbaa !10
  %181 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %180, i32 0, i32 13
  %182 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %181, i32 0, i32 7
  store i8 0, ptr %182, align 1, !tbaa !66
  %183 = load ptr, ptr %6, align 8, !tbaa !10
  %184 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %183, i32 0, i32 13
  %185 = getelementptr inbounds %struct._ERRORHANDLER_INFORMATION_TYPE, ptr %184, i32 0, i32 8
  store i32 -1, ptr %185, align 4, !tbaa !67
  %186 = load ptr, ptr %6, align 8, !tbaa !10
  %187 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %186, i32 0, i32 0
  %188 = load i8, ptr %187, align 8, !tbaa !19
  %189 = icmp ne i8 %188, 0
  br i1 %189, label %240, label %190

190:                                              ; preds = %170
  %191 = load ptr, ptr %6, align 8, !tbaa !10
  %192 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %191, i32 0, i32 14
  %193 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %192, i32 0, i32 0
  store i8 0, ptr %193, align 8, !tbaa !68
  %194 = load ptr, ptr %6, align 8, !tbaa !10
  %195 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %194, i32 0, i32 14
  %196 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %195, i32 0, i32 1
  store ptr null, ptr %196, align 8, !tbaa !69
  %197 = load ptr, ptr %6, align 8, !tbaa !10
  %198 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %197, i32 0, i32 14
  %199 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %198, i32 0, i32 2
  store i32 0, ptr %199, align 8, !tbaa !70
  %200 = load ptr, ptr %6, align 8, !tbaa !10
  %201 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %200, i32 0, i32 14
  %202 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %201, i32 0, i32 3
  %203 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %202, i32 0, i32 0
  store i32 0, ptr %203, align 8, !tbaa !71
  %204 = load ptr, ptr %6, align 8, !tbaa !10
  %205 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %204, i32 0, i32 14
  %206 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %205, i32 0, i32 3
  %207 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %206, i32 0, i32 1
  store ptr null, ptr %207, align 8, !tbaa !72
  %208 = load ptr, ptr %6, align 8, !tbaa !10
  %209 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %208, i32 0, i32 14
  %210 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %209, i32 0, i32 3
  %211 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %210, i32 0, i32 2
  store ptr null, ptr %211, align 8, !tbaa !73
  %212 = load ptr, ptr %6, align 8, !tbaa !10
  %213 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %212, i32 0, i32 14
  %214 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %213, i32 0, i32 3
  %215 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %214, i32 0, i32 3
  store ptr null, ptr %215, align 8, !tbaa !74
  %216 = load ptr, ptr %6, align 8, !tbaa !10
  %217 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %216, i32 0, i32 14
  %218 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %217, i32 0, i32 3
  %219 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %218, i32 0, i32 4
  store i32 0, ptr %219, align 8, !tbaa !75
  %220 = load ptr, ptr %6, align 8, !tbaa !10
  %221 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %220, i32 0, i32 14
  %222 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %221, i32 0, i32 3
  %223 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %222, i32 0, i32 5
  store i8 0, ptr %223, align 4, !tbaa !76
  %224 = load ptr, ptr %6, align 8, !tbaa !10
  %225 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %224, i32 0, i32 14
  %226 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %225, i32 0, i32 3
  %227 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %226, i32 0, i32 6
  store ptr null, ptr %227, align 8, !tbaa !77
  %228 = load ptr, ptr %6, align 8, !tbaa !10
  %229 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %228, i32 0, i32 14
  %230 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %229, i32 0, i32 3
  %231 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %230, i32 0, i32 7
  store ptr null, ptr %231, align 8, !tbaa !78
  %232 = load ptr, ptr %6, align 8, !tbaa !10
  %233 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %232, i32 0, i32 14
  %234 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %233, i32 0, i32 3
  %235 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %234, i32 0, i32 8
  store i32 0, ptr %235, align 8, !tbaa !79
  %236 = load ptr, ptr %6, align 8, !tbaa !10
  %237 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %236, i32 0, i32 14
  %238 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %237, i32 0, i32 3
  %239 = getelementptr inbounds %struct._CONTEXT_TYPE, ptr %238, i32 0, i32 9
  store i32 0, ptr %239, align 4, !tbaa !80
  br label %240

240:                                              ; preds = %190, %170
  %241 = load ptr, ptr %6, align 8, !tbaa !10
  %242 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %241, i32 0, i32 14
  %243 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %242, i32 0, i32 4
  store i8 0, ptr %243, align 8, !tbaa !81
  %244 = load ptr, ptr %6, align 8, !tbaa !10
  %245 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %244, i32 0, i32 14
  %246 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %245, i32 0, i32 5
  store i8 0, ptr %246, align 1, !tbaa !82
  %247 = load ptr, ptr %6, align 8, !tbaa !10
  %248 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %247, i32 0, i32 14
  %249 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %248, i32 0, i32 6
  store i8 0, ptr %249, align 2, !tbaa !83
  %250 = load ptr, ptr %6, align 8, !tbaa !10
  %251 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %250, i32 0, i32 14
  %252 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %251, i32 0, i32 7
  store i8 0, ptr %252, align 1, !tbaa !84
  %253 = load ptr, ptr %6, align 8, !tbaa !10
  %254 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %253, i32 0, i32 14
  %255 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %254, i32 0, i32 8
  store i32 0, ptr %255, align 4, !tbaa !85
  %256 = load ptr, ptr %6, align 8, !tbaa !10
  %257 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %256, i32 0, i32 14
  %258 = getelementptr inbounds %struct._HEALTHMONITORINGCALLBACK_INFORMATION_TYPE, ptr %257, i32 0, i32 9
  store i32 0, ptr %258, align 8, !tbaa !86
  %259 = load ptr, ptr %6, align 8, !tbaa !10
  %260 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %259, i32 0, i32 15
  store i32 0, ptr %260, align 8, !tbaa !87
  %261 = load ptr, ptr %6, align 8, !tbaa !10
  %262 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %261, i32 0, i32 0
  %263 = load i8, ptr %262, align 8, !tbaa !19
  %264 = icmp ne i8 %263, 0
  br i1 %264, label %265, label %268

265:                                              ; preds = %240
  %266 = load ptr, ptr %6, align 8, !tbaa !10
  %267 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %266, i32 0, i32 16
  call void @PRIORITYQUEUE_REMOVE(ptr noundef %267)
  br label %268

268:                                              ; preds = %265, %240
  %269 = load ptr, ptr %6, align 8, !tbaa !10
  %270 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %269, i32 0, i32 16
  call void @PRIORITYQUEUE_INITIALIZEENTRY(ptr noundef %270)
  %271 = load ptr, ptr %6, align 8, !tbaa !10
  %272 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %271, i32 0, i32 0
  %273 = load i8, ptr %272, align 8, !tbaa !19
  %274 = icmp ne i8 %273, 0
  br i1 %274, label %282, label %275

275:                                              ; preds = %268
  %276 = load ptr, ptr %6, align 8, !tbaa !10
  %277 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %276, i32 0, i32 17
  call void @PRIORITYQUEUE_STARTUP(ptr noundef %277, i8 noundef zeroext 1, i8 noundef zeroext 0)
  %278 = load ptr, ptr %6, align 8, !tbaa !10
  %279 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %278, i32 0, i32 18
  call void @PRIORITYQUEUE_STARTUP(ptr noundef %279, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %280 = load ptr, ptr %6, align 8, !tbaa !10
  %281 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %280, i32 0, i32 19
  call void @PRIORITYQUEUE_STARTUP(ptr noundef %281, i8 noundef zeroext 1, i8 noundef zeroext 1)
  br label %289

282:                                              ; preds = %268
  %283 = load ptr, ptr %6, align 8, !tbaa !10
  %284 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %283, i32 0, i32 17
  call void @PRIORITYQUEUE_CLEAR(ptr noundef %284, i8 noundef zeroext 1, i8 noundef zeroext 0)
  %285 = load ptr, ptr %6, align 8, !tbaa !10
  %286 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %285, i32 0, i32 18
  call void @PRIORITYQUEUE_CLEAR(ptr noundef %286, i8 noundef zeroext 1, i8 noundef zeroext 1)
  %287 = load ptr, ptr %6, align 8, !tbaa !10
  %288 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %287, i32 0, i32 19
  call void @PRIORITYQUEUE_CLEAR(ptr noundef %288, i8 noundef zeroext 1, i8 noundef zeroext 1)
  br label %289

289:                                              ; preds = %282, %275
  %290 = load ptr, ptr %6, align 8, !tbaa !10
  %291 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %290, i32 0, i32 20
  store i32 0, ptr %291, align 8, !tbaa !88
  %292 = load ptr, ptr %6, align 8, !tbaa !10
  %293 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %292, i32 0, i32 21
  store i32 0, ptr %293, align 4, !tbaa !89
  %294 = load ptr, ptr %6, align 8, !tbaa !10
  %295 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %294, i32 0, i32 23
  store i32 0, ptr %295, align 8, !tbaa !90
  %296 = load ptr, ptr %6, align 8, !tbaa !10
  %297 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %296, i32 0, i32 0
  %298 = load i8, ptr %297, align 8, !tbaa !19
  %299 = icmp ne i8 %298, 0
  br i1 %299, label %303, label %300

300:                                              ; preds = %289
  %301 = load ptr, ptr %6, align 8, !tbaa !10
  %302 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %301, i32 0, i32 24
  store ptr null, ptr %302, align 8, !tbaa !91
  br label %303

303:                                              ; preds = %300, %289
  %304 = load ptr, ptr %6, align 8, !tbaa !10
  %305 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %304, i32 0, i32 25
  store i32 0, ptr %305, align 8, !tbaa !92
  %306 = load ptr, ptr %6, align 8, !tbaa !10
  %307 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %306, i32 0, i32 0
  %308 = load i8, ptr %307, align 8, !tbaa !19
  %309 = icmp ne i8 %308, 0
  br i1 %309, label %313, label %310

310:                                              ; preds = %303
  %311 = load ptr, ptr %6, align 8, !tbaa !10
  %312 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %311, i32 0, i32 26
  store ptr null, ptr %312, align 8, !tbaa !93
  br label %313

313:                                              ; preds = %310, %303
  %314 = load ptr, ptr %6, align 8, !tbaa !10
  %315 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %314, i32 0, i32 27
  store i32 0, ptr %315, align 8, !tbaa !94
  %316 = load ptr, ptr %6, align 8, !tbaa !10
  %317 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %316, i32 0, i32 0
  %318 = load i8, ptr %317, align 8, !tbaa !19
  %319 = icmp ne i8 %318, 0
  br i1 %319, label %323, label %320

320:                                              ; preds = %313
  %321 = load ptr, ptr %6, align 8, !tbaa !10
  %322 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %321, i32 0, i32 28
  store ptr null, ptr %322, align 8, !tbaa !95
  br label %323

323:                                              ; preds = %320, %313
  %324 = load ptr, ptr %6, align 8, !tbaa !10
  %325 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %324, i32 0, i32 29
  store i32 0, ptr %325, align 8, !tbaa !96
  %326 = load ptr, ptr %6, align 8, !tbaa !10
  %327 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %326, i32 0, i32 0
  %328 = load i8, ptr %327, align 8, !tbaa !19
  %329 = icmp ne i8 %328, 0
  br i1 %329, label %333, label %330

330:                                              ; preds = %323
  %331 = load ptr, ptr %6, align 8, !tbaa !10
  %332 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %331, i32 0, i32 30
  store ptr null, ptr %332, align 8, !tbaa !97
  br label %333

333:                                              ; preds = %330, %323
  %334 = load ptr, ptr %6, align 8, !tbaa !10
  %335 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %334, i32 0, i32 31
  store i32 0, ptr %335, align 8, !tbaa !98
  %336 = load ptr, ptr %6, align 8, !tbaa !10
  %337 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %336, i32 0, i32 0
  %338 = load i8, ptr %337, align 8, !tbaa !19
  %339 = icmp ne i8 %338, 0
  br i1 %339, label %343, label %340

340:                                              ; preds = %333
  %341 = load ptr, ptr %6, align 8, !tbaa !10
  %342 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %341, i32 0, i32 32
  store ptr null, ptr %342, align 8, !tbaa !99
  br label %343

343:                                              ; preds = %340, %333
  %344 = load ptr, ptr %6, align 8, !tbaa !10
  %345 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %344, i32 0, i32 33
  store i32 0, ptr %345, align 8, !tbaa !100
  %346 = load ptr, ptr %6, align 8, !tbaa !10
  %347 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %346, i32 0, i32 0
  %348 = load i8, ptr %347, align 8, !tbaa !19
  %349 = icmp ne i8 %348, 0
  br i1 %349, label %353, label %350

350:                                              ; preds = %343
  %351 = load ptr, ptr %6, align 8, !tbaa !10
  %352 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %351, i32 0, i32 34
  store ptr null, ptr %352, align 8, !tbaa !101
  br label %353

353:                                              ; preds = %350, %343
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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

declare void @PRIORITYQUEUE_CLEAR(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !11, i64 128}
!13 = !{!"_MODULE_INFORMATION_TYPE", !11, i64 0, !14, i64 8, !6, i64 32, !6, i64 36, !6, i64 40, !15, i64 48, !6, i64 120, !11, i64 128, !11, i64 136, !16, i64 144, !17, i64 256, !17, i64 264, !17, i64 272, !18, i64 280}
!14 = !{!"_heapRECORD", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16}
!15 = !{!"_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}
!16 = !{!"_HEALTHMONITORINGCALLBACK_INFORMATION_TYPE", !7, i64 0, !11, i64 8, !6, i64 16, !15, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100, !6, i64 104}
!17 = !{!"long long", !7, i64 0}
!18 = !{!"_priorityqueueRECORD", !11, i64 0, !6, i64 8, !7, i64 12, !7, i64 13}
!19 = !{!20, !7, i64 0}
!20 = !{!"_PARTITION_INFORMATION_TYPE", !7, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !7, i64 40, !14, i64 48, !15, i64 72, !6, i64 144, !11, i64 152, !11, i64 160, !21, i64 168, !16, i64 272, !6, i64 384, !22, i64 392, !18, i64 432, !18, i64 448, !18, i64 464, !6, i64 480, !6, i64 484, !11, i64 488, !6, i64 496, !11, i64 504, !6, i64 512, !11, i64 520, !6, i64 528, !11, i64 536, !6, i64 544, !11, i64 552, !6, i64 560, !11, i64 568, !6, i64 576, !11, i64 584}
!21 = !{!"_ERRORHANDLER_INFORMATION_TYPE", !7, i64 0, !11, i64 8, !6, i64 16, !15, i64 24, !7, i64 96, !7, i64 97, !7, i64 98, !7, i64 99, !6, i64 100}
!22 = !{!"_priorityqueueENTRY", !17, i64 0, !17, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!23 = !{!20, !11, i64 8}
!24 = !{!20, !11, i64 16}
!25 = !{!20, !6, i64 24}
!26 = !{!20, !6, i64 28}
!27 = !{!20, !6, i64 32}
!28 = !{!20, !6, i64 36}
!29 = !{!20, !7, i64 40}
!30 = !{!20, !11, i64 48}
!31 = !{!20, !6, i64 56}
!32 = !{!20, !6, i64 64}
!33 = !{!20, !6, i64 72}
!34 = !{!20, !11, i64 80}
!35 = !{!20, !11, i64 88}
!36 = !{!20, !11, i64 96}
!37 = !{!20, !6, i64 104}
!38 = !{!20, !7, i64 108}
!39 = !{!20, !11, i64 112}
!40 = !{!20, !11, i64 120}
!41 = !{!20, !6, i64 128}
!42 = !{!20, !6, i64 132}
!43 = !{!20, !6, i64 144}
!44 = !{!20, !11, i64 152}
!45 = !{!46, !6, i64 16}
!46 = !{!"_PARTITION_CONFIGURATION_TYPE", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !11, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !11, i64 96, !6, i64 104, !11, i64 112, !6, i64 120, !11, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !11, i64 160, !11, i64 168, !6, i64 176, !11, i64 184, !11, i64 192}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = !{!20, !11, i64 160}
!50 = !{!20, !7, i64 168}
!51 = !{!20, !11, i64 176}
!52 = !{!20, !6, i64 184}
!53 = !{!20, !6, i64 192}
!54 = !{!20, !11, i64 200}
!55 = !{!20, !11, i64 208}
!56 = !{!20, !11, i64 216}
!57 = !{!20, !6, i64 224}
!58 = !{!20, !7, i64 228}
!59 = !{!20, !11, i64 232}
!60 = !{!20, !11, i64 240}
!61 = !{!20, !6, i64 248}
!62 = !{!20, !6, i64 252}
!63 = !{!20, !7, i64 264}
!64 = !{!20, !7, i64 265}
!65 = !{!20, !7, i64 266}
!66 = !{!20, !7, i64 267}
!67 = !{!20, !6, i64 268}
!68 = !{!20, !7, i64 272}
!69 = !{!20, !11, i64 280}
!70 = !{!20, !6, i64 288}
!71 = !{!20, !6, i64 296}
!72 = !{!20, !11, i64 304}
!73 = !{!20, !11, i64 312}
!74 = !{!20, !11, i64 320}
!75 = !{!20, !6, i64 328}
!76 = !{!20, !7, i64 332}
!77 = !{!20, !11, i64 336}
!78 = !{!20, !11, i64 344}
!79 = !{!20, !6, i64 352}
!80 = !{!20, !6, i64 356}
!81 = !{!20, !7, i64 368}
!82 = !{!20, !7, i64 369}
!83 = !{!20, !7, i64 370}
!84 = !{!20, !7, i64 371}
!85 = !{!20, !6, i64 372}
!86 = !{!20, !6, i64 376}
!87 = !{!20, !6, i64 384}
!88 = !{!20, !6, i64 480}
!89 = !{!20, !6, i64 484}
!90 = !{!20, !6, i64 496}
!91 = !{!20, !11, i64 504}
!92 = !{!20, !6, i64 512}
!93 = !{!20, !11, i64 520}
!94 = !{!20, !6, i64 528}
!95 = !{!20, !11, i64 536}
!96 = !{!20, !6, i64 544}
!97 = !{!20, !11, i64 552}
!98 = !{!20, !6, i64 560}
!99 = !{!20, !11, i64 568}
!100 = !{!20, !6, i64 576}
!101 = !{!20, !11, i64 584}


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

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

declare i32 @PORT_GETCORE() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @INITIALIZE_PROCESS_INFORMATION(i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @PRIORITYQUEUE_REMOVE(ptr noundef) local_unnamed_addr #0

declare void @PRIORITYQUEUE_INITIALIZEENTRY(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @INITIALIZE_PARTITION_INFORMATION(i32 noundef %0, i8 noundef zeroext %1) local_unnamed_addr #1 {
  %3 = tail call i32 @PORT_GETCORE() #3
  %4 = zext i32 %3 to i64
  %5 = getelementptr inbounds [2 x %struct._MODULE_INFORMATION_TYPE], ptr @CORE_MODULE_INFORMATION, i64 0, i64 %4, i32 7
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = zext i32 %0 to i64
  %8 = getelementptr inbounds %struct._PARTITION_INFORMATION_TYPE, ptr %6, i64 %7
  %.not = icmp eq i8 %1, 0
  br i1 %.not, label %.thread, label %9

.thread:                                          ; preds = %2
  store i8 0, ptr %8, align 8, !tbaa !16
  br label %.loopexit.thread

9:                                                ; preds = %2
  %.pr = load i8, ptr %8, align 8, !tbaa !16
  %.not104 = icmp eq i8 %.pr, 0
  br i1 %.not104, label %.loopexit.thread, label %10

10:                                               ; preds = %9
  %11 = getelementptr inbounds i8, ptr %8, i64 36
  store i32 0, ptr %11, align 4, !tbaa !20
  %12 = getelementptr inbounds i8, ptr %8, i64 40
  store i8 0, ptr %12, align 8, !tbaa !21
  %13 = getelementptr inbounds i8, ptr %8, i64 144
  store i32 0, ptr %13, align 8, !tbaa !22
  %14 = getelementptr inbounds i8, ptr %8, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !23
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  %17 = load i32, ptr %16, align 8, !tbaa !24
  %.not133 = icmp eq i32 %17, 0
  br i1 %.not133, label %.loopexit.thread137, label %.lr.ph

.loopexit.thread137:                              ; preds = %10
  %18 = getelementptr inbounds i8, ptr %8, i64 160
  store ptr null, ptr %18, align 8, !tbaa !26
  %19 = getelementptr inbounds i8, ptr %8, i64 168
  store i8 0, ptr %19, align 8, !tbaa !27
  %20 = getelementptr inbounds i8, ptr %8, i64 176
  store ptr null, ptr %20, align 8, !tbaa !28
  %21 = getelementptr inbounds i8, ptr %8, i64 184
  store i32 0, ptr %21, align 8, !tbaa !29
  br label %.critedge

.loopexit.thread:                                 ; preds = %9, %.thread
  %22 = getelementptr inbounds i8, ptr %8, i64 8
  %23 = getelementptr inbounds i8, ptr %8, i64 24
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %22, i8 0, i64 16, i1 false)
  store <4 x i32> <i32 -1, i32 1, i32 1, i32 0>, ptr %23, align 8, !tbaa !30
  %24 = getelementptr inbounds i8, ptr %8, i64 40
  store i8 0, ptr %24, align 8, !tbaa !21
  %25 = getelementptr inbounds i8, ptr %8, i64 48
  store ptr null, ptr %25, align 8, !tbaa !31
  %26 = getelementptr inbounds i8, ptr %8, i64 56
  store i32 0, ptr %26, align 8, !tbaa !32
  %27 = getelementptr inbounds i8, ptr %8, i64 64
  store i32 0, ptr %27, align 8, !tbaa !33
  %28 = getelementptr inbounds i8, ptr %8, i64 72
  store i32 0, ptr %28, align 8, !tbaa !34
  %29 = getelementptr inbounds i8, ptr %8, i64 80
  %30 = getelementptr inbounds i8, ptr %8, i64 112
  %31 = getelementptr inbounds i8, ptr %8, i64 144
  store i32 0, ptr %31, align 8, !tbaa !22
  %32 = getelementptr inbounds i8, ptr %8, i64 152
  %33 = getelementptr inbounds i8, ptr %8, i64 176
  store ptr null, ptr %33, align 8, !tbaa !28
  %34 = getelementptr inbounds i8, ptr %8, i64 184
  store i32 0, ptr %34, align 8, !tbaa !29
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(29) %29, i8 0, i64 29, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %30, i8 0, i64 24, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(17) %32, i8 0, i64 17, i1 false)
  br label %50

.lr.ph:                                           ; preds = %10, %.lr.ph
  %.0132 = phi i32 [ %35, %.lr.ph ], [ 0, %10 ]
  tail call void @INITIALIZE_PROCESS_INFORMATION(i32 noundef %0, i32 noundef %.0132)
  %35 = add nuw i32 %.0132, 1
  %36 = load ptr, ptr %14, align 8, !tbaa !23
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %38 = load i32, ptr %37, align 8, !tbaa !24
  %39 = icmp ult i32 %35, %38
  br i1 %39, label %.lr.ph, label %.loopexit, !llvm.loop !35

.loopexit:                                        ; preds = %.lr.ph
  %.pre = load i8, ptr %8, align 8, !tbaa !16
  %40 = icmp eq i8 %.pre, 0
  %41 = getelementptr inbounds i8, ptr %8, i64 160
  store ptr null, ptr %41, align 8, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %8, i64 168
  store i8 0, ptr %42, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %8, i64 176
  store ptr null, ptr %43, align 8, !tbaa !28
  %44 = getelementptr inbounds i8, ptr %8, i64 184
  store i32 0, ptr %44, align 8, !tbaa !29
  br i1 %40, label %50, label %.critedge

.critedge:                                        ; preds = %.loopexit.thread137, %.loopexit
  %45 = getelementptr inbounds i8, ptr %8, i64 264
  store i32 0, ptr %45, align 8
  %46 = getelementptr inbounds i8, ptr %8, i64 268
  store i32 -1, ptr %46, align 4
  %47 = getelementptr inbounds i8, ptr %8, i64 368
  %48 = getelementptr inbounds i8, ptr %8, i64 384
  store i32 0, ptr %48, align 8, !tbaa !37
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %47, i8 0, i64 12, i1 false)
  %49 = getelementptr inbounds i8, ptr %8, i64 392
  tail call void @PRIORITYQUEUE_REMOVE(ptr noundef nonnull %49) #3
  br label %64

50:                                               ; preds = %.loopexit.thread, %.loopexit
  %51 = getelementptr inbounds i8, ptr %8, i64 192
  store i32 0, ptr %51, align 8, !tbaa !38
  %52 = getelementptr inbounds i8, ptr %8, i64 200
  %53 = getelementptr inbounds i8, ptr %8, i64 232
  %54 = getelementptr inbounds i8, ptr %8, i64 264
  %55 = getelementptr inbounds i8, ptr %8, i64 272
  store i8 0, ptr %55, align 8, !tbaa !39
  %56 = getelementptr inbounds i8, ptr %8, i64 280
  store ptr null, ptr %56, align 8, !tbaa !40
  %57 = getelementptr inbounds i8, ptr %8, i64 288
  store i32 0, ptr %57, align 8, !tbaa !41
  %58 = getelementptr inbounds i8, ptr %8, i64 296
  store i32 0, ptr %58, align 8, !tbaa !42
  %59 = getelementptr inbounds i8, ptr %8, i64 304
  %60 = getelementptr inbounds i8, ptr %8, i64 336
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(29) %52, i8 0, i64 29, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %53, i8 0, i64 24, i1 false)
  store i32 0, ptr %54, align 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(29) %59, i8 0, i64 29, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %60, i8 0, i64 24, i1 false)
  %61 = getelementptr inbounds i8, ptr %8, i64 268
  store i32 -1, ptr %61, align 4
  %62 = getelementptr inbounds i8, ptr %8, i64 368
  %63 = getelementptr inbounds i8, ptr %8, i64 384
  store i32 0, ptr %63, align 8, !tbaa !37
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %62, i8 0, i64 12, i1 false)
  br label %64

64:                                               ; preds = %50, %.critedge
  %65 = getelementptr inbounds i8, ptr %8, i64 392
  tail call void @PRIORITYQUEUE_INITIALIZEENTRY(ptr noundef nonnull %65) #3
  %66 = load i8, ptr %8, align 8, !tbaa !16
  %.not110 = icmp eq i8 %66, 0
  %67 = getelementptr inbounds i8, ptr %8, i64 432
  %68 = getelementptr inbounds i8, ptr %8, i64 448
  %69 = getelementptr inbounds i8, ptr %8, i64 464
  br i1 %.not110, label %70, label %71

70:                                               ; preds = %64
  tail call void @PRIORITYQUEUE_STARTUP(ptr noundef nonnull %67, i8 noundef zeroext 1, i8 noundef zeroext 0) #3
  tail call void @PRIORITYQUEUE_STARTUP(ptr noundef nonnull %68, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  tail call void @PRIORITYQUEUE_STARTUP(ptr noundef nonnull %69, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %72

71:                                               ; preds = %64
  tail call void @PRIORITYQUEUE_CLEAR(ptr noundef nonnull %67, i8 noundef zeroext 1, i8 noundef zeroext 0) #3
  tail call void @PRIORITYQUEUE_CLEAR(ptr noundef nonnull %68, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  tail call void @PRIORITYQUEUE_CLEAR(ptr noundef nonnull %69, i8 noundef zeroext 1, i8 noundef zeroext 1) #3
  br label %72

72:                                               ; preds = %71, %70
  %73 = getelementptr inbounds i8, ptr %8, i64 480
  store i32 0, ptr %73, align 8, !tbaa !43
  %74 = getelementptr inbounds i8, ptr %8, i64 484
  store i32 0, ptr %74, align 4, !tbaa !44
  %75 = getelementptr inbounds i8, ptr %8, i64 496
  store i32 0, ptr %75, align 8, !tbaa !45
  %76 = load i8, ptr %8, align 8, !tbaa !16
  %.not111 = icmp eq i8 %76, 0
  br i1 %.not111, label %77, label %84

77:                                               ; preds = %72
  %78 = getelementptr inbounds i8, ptr %8, i64 504
  store ptr null, ptr %78, align 8, !tbaa !46
  %79 = getelementptr inbounds i8, ptr %8, i64 520
  store ptr null, ptr %79, align 8, !tbaa !47
  %80 = getelementptr inbounds i8, ptr %8, i64 536
  store ptr null, ptr %80, align 8, !tbaa !48
  %81 = getelementptr inbounds i8, ptr %8, i64 552
  store ptr null, ptr %81, align 8, !tbaa !49
  %82 = getelementptr inbounds i8, ptr %8, i64 568
  store ptr null, ptr %82, align 8, !tbaa !50
  %83 = getelementptr inbounds i8, ptr %8, i64 584
  store ptr null, ptr %83, align 8, !tbaa !51
  br label %84

84:                                               ; preds = %72, %77
  %85 = getelementptr inbounds i8, ptr %8, i64 512
  store i32 0, ptr %85, align 8
  %86 = getelementptr inbounds i8, ptr %8, i64 528
  store i32 0, ptr %86, align 8
  %87 = getelementptr inbounds i8, ptr %8, i64 544
  store i32 0, ptr %87, align 8
  %88 = getelementptr inbounds i8, ptr %8, i64 560
  store i32 0, ptr %88, align 8
  %89 = getelementptr inbounds i8, ptr %8, i64 576
  store i32 0, ptr %89, align 8
  ret void
}

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

declare void @PRIORITYQUEUE_CLEAR(ptr noundef, i8 noundef zeroext, i8 noundef zeroext) 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) #2

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 128}
!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, !8, i64 0}
!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, !11, i64 36}
!21 = !{!17, !8, i64 40}
!22 = !{!17, !11, i64 144}
!23 = !{!17, !7, i64 16}
!24 = !{!25, !11, i64 16}
!25 = !{!"_PARTITION_CONFIGURATION_TYPE", !11, i64 0, !7, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !7, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !7, i64 80, !11, i64 88, !7, i64 96, !11, i64 104, !7, i64 112, !11, i64 120, !7, i64 128, !11, i64 136, !7, i64 144, !11, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !7, i64 184, !7, i64 192}
!26 = !{!17, !7, i64 160}
!27 = !{!17, !8, i64 168}
!28 = !{!17, !7, i64 176}
!29 = !{!17, !11, i64 184}
!30 = !{!11, !11, i64 0}
!31 = !{!17, !7, i64 48}
!32 = !{!17, !11, i64 56}
!33 = !{!17, !11, i64 64}
!34 = !{!17, !11, i64 72}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!17, !11, i64 384}
!38 = !{!17, !11, i64 192}
!39 = !{!17, !8, i64 272}
!40 = !{!17, !7, i64 280}
!41 = !{!17, !11, i64 288}
!42 = !{!17, !11, i64 296}
!43 = !{!17, !11, i64 480}
!44 = !{!17, !11, i64 484}
!45 = !{!17, !11, i64 496}
!46 = !{!17, !7, i64 504}
!47 = !{!17, !7, i64 520}
!48 = !{!17, !7, i64 536}
!49 = !{!17, !7, i64 552}
!50 = !{!17, !7, i64 568}
!51 = !{!17, !7, i64 584}


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