; LLVM IR from kylewray/nova :: src/mdp/algorithms (mdp_vi_cpu)

; 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.nova::NovaMDP" = type { i32, i32, i32, float, i32, float, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.nova::NovaMDPVICPU" = type { ptr, i32, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mdp_vi_initialize_cpu(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: mustprogress uwtable
define dso_local i32 @mdp_vi_execute_cpu(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %65, label %14

14:                                               ; preds = %3
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %65, label %19

19:                                               ; preds = %14
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 4, !tbaa !13
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %65, label %24

24:                                               ; preds = %19
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 8, !tbaa !14
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %65, label %29

29:                                               ; preds = %24
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %30, i32 0, i32 9
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = icmp eq ptr %32, null
  br i1 %33, label %65, label %34

34:                                               ; preds = %29
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %35, i32 0, i32 10
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = icmp eq ptr %37, null
  br i1 %38, label %65, label %39

39:                                               ; preds = %34
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %40, i32 0, i32 11
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = icmp eq ptr %42, null
  br i1 %43, label %65, label %44

44:                                               ; preds = %39
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %45, i32 0, i32 3
  %47 = load float, ptr %46, align 4, !tbaa !18
  %48 = fcmp olt float %47, 0.000000e+00
  br i1 %48, label %65, label %49

49:                                               ; preds = %44
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %50, i32 0, i32 3
  %52 = load float, ptr %51, align 4, !tbaa !18
  %53 = fcmp ogt float %52, 1.000000e+00
  br i1 %53, label %65, label %54

54:                                               ; preds = %49
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %55, i32 0, i32 4
  %57 = load i32, ptr %56, align 8, !tbaa !19
  %58 = icmp ult i32 %57, 1
  br i1 %58, label %65, label %59

59:                                               ; preds = %54
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %65, label %62

62:                                               ; preds = %59
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %68

65:                                               ; preds = %62, %59, %54, %49, %44, %39, %34, %29, %24, %19, %14, %3
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.2, ptr noundef @.str.1) #4
  store i32 1, ptr %4, align 4
  br label %139

68:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = call i32 @mdp_vi_initialize_cpu(ptr noundef %69, ptr noundef %70)
  store i32 %71, ptr %8, align 4, !tbaa !20
  %72 = load i32, ptr %8, align 4, !tbaa !20
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %78

74:                                               ; preds = %68
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.2, ptr noundef @.str.3) #4
  %77 = load i32, ptr %8, align 4, !tbaa !20
  store i32 %77, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %138

78:                                               ; preds = %68
  br label %79

79:                                               ; preds = %106, %78
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.nova::NovaMDPVICPU", ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !21
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %83, i32 0, i32 4
  %85 = load i32, ptr %84, align 8, !tbaa !19
  %86 = icmp ult i32 %82, %85
  br i1 %86, label %87, label %107

87:                                               ; preds = %79
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = call i32 @mdp_vi_update_cpu(ptr noundef %88, ptr noundef %89)
  store i32 %90, ptr %8, align 4, !tbaa !20
  %91 = load i32, ptr %8, align 4, !tbaa !20
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %106

93:                                               ; preds = %87
  %94 = load ptr, ptr @stderr, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.2, ptr noundef @.str.4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = call i32 @mdp_vi_uninitialize_cpu(ptr noundef %96, ptr noundef %97)
  store i32 %98, ptr %10, align 4, !tbaa !20
  %99 = load i32, ptr %10, align 4, !tbaa !20
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %104

101:                                              ; preds = %93
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.2, ptr noundef @.str.5) #4
  br label %104

104:                                              ; preds = %101, %93
  %105 = load i32, ptr %8, align 4, !tbaa !20
  store i32 %105, ptr %4, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %138

106:                                              ; preds = %87
  br label %79, !llvm.loop !23

107:                                              ; preds = %79
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = call i32 @mdp_vi_get_policy_cpu(ptr noundef %108, ptr noundef %109, ptr noundef %110)
  store i32 %111, ptr %8, align 4, !tbaa !20
  %112 = load i32, ptr %8, align 4, !tbaa !20
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %127

114:                                              ; preds = %107
  %115 = load ptr, ptr @stderr, align 8, !tbaa !5
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.2, ptr noundef @.str.6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = call i32 @mdp_vi_uninitialize_cpu(ptr noundef %117, ptr noundef %118)
  store i32 %119, ptr %11, align 4, !tbaa !20
  %120 = load i32, ptr %11, align 4, !tbaa !20
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %125

122:                                              ; preds = %114
  %123 = load ptr, ptr @stderr, align 8, !tbaa !5
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.2, ptr noundef @.str.5) #4
  br label %125

125:                                              ; preds = %122, %114
  %126 = load i32, ptr %8, align 4, !tbaa !20
  store i32 %126, ptr %4, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %138

127:                                              ; preds = %107
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = call i32 @mdp_vi_uninitialize_cpu(ptr noundef %128, ptr noundef %129)
  store i32 %130, ptr %8, align 4, !tbaa !20
  %131 = load i32, ptr %8, align 4, !tbaa !20
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %137

133:                                              ; preds = %127
  %134 = load ptr, ptr @stderr, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.2, ptr noundef @.str.5) #4
  %136 = load i32, ptr %8, align 4, !tbaa !20
  store i32 %136, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %138

137:                                              ; preds = %127
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %138

138:                                              ; preds = %137, %133, %125, %104, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %139

139:                                              ; preds = %138, %65
  %140 = load i32, ptr %4, align 4
  ret i32 %140
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @mdp_vi_update_cpu(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @mdp_vi_uninitialize_cpu(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mdp_vi_get_policy_cpu(ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 "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 = { mustprogress 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN4nova7NovaMDPE", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 12, !11, i64 16, !12, i64 20, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !6, i64 40}
!16 = !{!10, !6, i64 48}
!17 = !{!10, !6, i64 56}
!18 = !{!10, !12, i64 12}
!19 = !{!10, !11, i64 16}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !11, i64 8}
!22 = !{!"_ZTSN4nova12NovaMDPVICPUE", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mdp_vi_initialize_cpu(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local i32 @mdp_vi_execute_cpu(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %.sink.split, label %5

5:                                                ; preds = %3
  %6 = load i32, ptr %0, align 8, !tbaa !5
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %.sink.split, label %8

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !12
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %.sink.split, label %12

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !13
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %.sink.split, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  %19 = icmp eq ptr %18, null
  br i1 %19, label %.sink.split, label %20

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = icmp eq ptr %22, null
  br i1 %23, label %.sink.split, label %24

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %0, i64 56
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = icmp eq ptr %26, null
  br i1 %27, label %.sink.split, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %0, i64 12
  %30 = load float, ptr %29, align 4, !tbaa !17
  %31 = fcmp olt float %30, 0.000000e+00
  %32 = fcmp ogt float %30, 1.000000e+00
  %or.cond53 = or i1 %31, %32
  br i1 %or.cond53, label %.sink.split, label %33

33:                                               ; preds = %28
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = load i32, ptr %34, align 8, !tbaa !18
  %36 = icmp eq i32 %35, 0
  %37 = icmp eq ptr %1, null
  %or.cond = or i1 %37, %36
  %38 = icmp eq ptr %2, null
  %or.cond3 = or i1 %38, %or.cond
  br i1 %or.cond3, label %.sink.split, label %39

39:                                               ; preds = %33
  %40 = tail call i32 @mdp_vi_initialize_cpu(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %.not = icmp eq i32 %40, 0
  br i1 %.not, label %.preheader, label %.sink.split

.preheader:                                       ; preds = %39
  %41 = getelementptr inbounds i8, ptr %1, i64 8
  br label %42

42:                                               ; preds = %.preheader, %46
  %43 = load i32, ptr %41, align 8, !tbaa !19
  %44 = load i32, ptr %34, align 8, !tbaa !18
  %45 = icmp ult i32 %43, %44
  br i1 %45, label %46, label %52

46:                                               ; preds = %42
  %47 = tail call i32 @mdp_vi_update_cpu(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %.not51 = icmp eq i32 %47, 0
  br i1 %.not51, label %42, label %48, !llvm.loop !21

48:                                               ; preds = %46
  %49 = load ptr, ptr @stderr, align 8, !tbaa !23
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.4) #3
  %51 = tail call i32 @mdp_vi_uninitialize_cpu(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %.not52 = icmp eq i32 %51, 0
  br i1 %.not52, label %62, label %.sink.split

52:                                               ; preds = %42
  %53 = tail call i32 @mdp_vi_get_policy_cpu(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2)
  %.not48 = icmp eq i32 %53, 0
  br i1 %.not48, label %58, label %54

54:                                               ; preds = %52
  %55 = load ptr, ptr @stderr, align 8, !tbaa !23
  %56 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.6) #3
  %57 = tail call i32 @mdp_vi_uninitialize_cpu(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %.not50 = icmp eq i32 %57, 0
  br i1 %.not50, label %62, label %.sink.split

58:                                               ; preds = %52
  %59 = tail call i32 @mdp_vi_uninitialize_cpu(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %.not49 = icmp eq i32 %59, 0
  br i1 %.not49, label %62, label %.sink.split

.sink.split:                                      ; preds = %58, %54, %48, %39, %3, %5, %8, %12, %16, %20, %24, %28, %33
  %.str.3.sink = phi ptr [ @.str.1, %33 ], [ @.str.1, %28 ], [ @.str.1, %24 ], [ @.str.1, %20 ], [ @.str.1, %16 ], [ @.str.1, %12 ], [ @.str.1, %8 ], [ @.str.1, %5 ], [ @.str.1, %3 ], [ @.str.3, %39 ], [ @.str.5, %48 ], [ @.str.5, %54 ], [ @.str.5, %58 ]
  %.1.ph = phi i32 [ 1, %33 ], [ 1, %28 ], [ 1, %24 ], [ 1, %20 ], [ 1, %16 ], [ 1, %12 ], [ 1, %8 ], [ 1, %5 ], [ 1, %3 ], [ %40, %39 ], [ %47, %48 ], [ %53, %54 ], [ %59, %58 ]
  %60 = load ptr, ptr @stderr, align 8, !tbaa !23
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.2, ptr noundef nonnull %.str.3.sink) #3
  br label %62

62:                                               ; preds = %.sink.split, %48, %54, %58
  %.1 = phi i32 [ %47, %48 ], [ %53, %54 ], [ 0, %58 ], [ %.1.ph, %.sink.split ]
  ret i32 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @mdp_vi_update_cpu(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @mdp_vi_uninitialize_cpu(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @mdp_vi_get_policy_cpu(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "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 = { mustprogress 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 = { cold nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN4nova7NovaMDPE", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 12, !7, i64 16, !10, i64 20, !7, i64 24, !7, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !11, i64 40}
!15 = !{!6, !11, i64 48}
!16 = !{!6, !11, i64 56}
!17 = !{!6, !10, i64 12}
!18 = !{!6, !7, i64 16}
!19 = !{!20, !7, i64 8}
!20 = !{!"_ZTSN4nova12NovaMDPVICPUE", !11, i64 0, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!11, !11, i64 0}


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