; LLVM IR from HenryRLee/PokerHandEvaluator :: cpp/test (evaluation5_standalone)

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

%"class.phevaluator::Rank" = type { i32 }
%"class.phevaluator::Card" = type { i32 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = 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 nounwind uwtable
declare dso_local noundef i32 @_Z10percentagexx(i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.phevaluator::Rank", align 4
  %13 = alloca %"class.phevaluator::Card", align 4
  %14 = alloca %"class.phevaluator::Card", align 4
  %15 = alloca %"class.phevaluator::Card", align 4
  %16 = alloca %"class.phevaluator::Card", align 4
  %17 = alloca %"class.phevaluator::Card", align 4
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 2598960, ptr %4, align 4, !tbaa !5
  %19 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %110, %0
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 48
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %113

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %7, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %106, %24
  %28 = load i32, ptr %7, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 49
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %109

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %8, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %102, %31
  %35 = load i32, ptr %8, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 50
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %105

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %39 = load i32, ptr %8, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %9, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %98, %38
  %42 = load i32, ptr %9, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 51
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %101

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %10, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %94, %45
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 52
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %97

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %53 = load i32, ptr %5, align 4, !tbaa !5
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %13, i32 noundef %53)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %54 = load i32, ptr %7, align 4, !tbaa !5
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 noundef %54)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %55 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef %55)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %56 = load i32, ptr %9, align 4, !tbaa !5
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef %56)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %57 = load i32, ptr %10, align 4, !tbaa !5
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef %57)
  %58 = call i32 @_ZN11phevaluator13EvaluateCardsERKNS_4CardES2_S2_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %59 = getelementptr inbounds %"class.phevaluator::Rank", ptr %12, i32 0, i32 0
  store i32 %58, ptr %59, align 4
  %60 = call noundef i32 @_ZNK11phevaluator4Rank5valueEv(ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  store i32 %60, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %61 = load i32, ptr %5, align 4, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = call signext i16 @kev_eval_5cards(i32 noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %64, i32 noundef %65)
  %67 = sext i16 %66 to i32
  store i32 %67, ptr %18, align 4, !tbaa !5
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = load i32, ptr %18, align 4, !tbaa !5
  %70 = icmp eq i32 %68, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %52
  br label %74

72:                                               ; preds = %52
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 30, ptr noundef @__PRETTY_FUNCTION__.main) #6
  unreachable

73:                                               ; No predecessors!
  br label %74

74:                                               ; preds = %73, %71
  %75 = load i32, ptr %2, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %2, align 4, !tbaa !5
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = call noundef i32 @_Z10percentagexx(i64 noundef %78, i64 noundef 2598960)
  %80 = load i32, ptr %3, align 4, !tbaa !5
  %81 = icmp sgt i32 %79, %80
  br i1 %81, label %82, label %93

82:                                               ; preds = %74
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = call noundef i32 @_Z10percentagexx(i64 noundef %84, i64 noundef 2598960)
  store i32 %85, ptr %3, align 4, !tbaa !5
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = srem i32 %86, 10
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %82
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %90)
  br label %92

92:                                               ; preds = %89, %82
  br label %93

93:                                               ; preds = %92, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %10, align 4, !tbaa !5
  br label %48, !llvm.loop !9

97:                                               ; preds = %51
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %9, align 4, !tbaa !5
  br label %41, !llvm.loop !11

101:                                              ; preds = %44
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %8, align 4, !tbaa !5
  br label %34, !llvm.loop !12

105:                                              ; preds = %37
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %7, align 4, !tbaa !5
  br label %27, !llvm.loop !13

109:                                              ; preds = %30
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %5, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %5, align 4, !tbaa !5
  br label %20, !llvm.loop !14

113:                                              ; preds = %23
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %115 = load i32, ptr %2, align 4, !tbaa !5
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %115)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %117 = load i32, ptr %1, align 4
  ret i32 %117
}

declare i32 @printf(ptr noundef, ...) #3

declare i32 @_ZN11phevaluator13EvaluateCardsERKNS_4CardES2_S2_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11phevaluator4Rank5valueEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

declare signext i16 @kev_eval_5cards(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress norecurse 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 = { "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 = { noreturn 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 #5 = { nounwind }
attributes #6 = { noreturn 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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

%"class.phevaluator::Rank" = type { i32 }
%"class.phevaluator::Card" = type { i32 }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [97 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10percentagexx(i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca %"class.phevaluator::Rank", align 4
  %2 = alloca %"class.phevaluator::Card", align 4
  %3 = alloca %"class.phevaluator::Card", align 4
  %4 = alloca %"class.phevaluator::Card", align 4
  %5 = alloca %"class.phevaluator::Card", align 4
  %6 = alloca %"class.phevaluator::Card", align 4
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  br label %.lr.ph75.preheader

.loopexit46:                                      ; preds = %.loopexit45
  %exitcond82.not = icmp eq i32 %11, 48
  br i1 %exitcond82.not, label %8, label %.lr.ph75.preheader, !llvm.loop !5

8:                                                ; preds = %.loopexit46
  %9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %.2.lcssa)
  ret i32 0

.lr.ph75.preheader:                               ; preds = %.loopexit46, %0
  %.080 = phi i32 [ 0, %0 ], [ %.2.lcssa, %.loopexit46 ]
  %.03479 = phi i32 [ 0, %0 ], [ %.236.lcssa, %.loopexit46 ]
  %.04378 = phi i32 [ 0, %0 ], [ %11, %.loopexit46 ]
  %11 = add nuw nsw i32 %.04378, 1
  br label %.lr.ph75

.loopexit45:                                      ; preds = %.loopexit44, %.lr.ph75
  %.236.lcssa = phi i32 [ %.13573, %.lr.ph75 ], [ %.5, %.loopexit44 ]
  %.2.lcssa = phi i32 [ %.174, %.lr.ph75 ], [ %16, %.loopexit44 ]
  %exitcond.not = icmp eq i32 %12, 49
  br i1 %exitcond.not, label %.loopexit46, label %.lr.ph75, !llvm.loop !7

.lr.ph75:                                         ; preds = %.lr.ph75.preheader, %.loopexit45
  %.174 = phi i32 [ %.2.lcssa, %.loopexit45 ], [ %.080, %.lr.ph75.preheader ]
  %.13573 = phi i32 [ %.236.lcssa, %.loopexit45 ], [ %.03479, %.lr.ph75.preheader ]
  %.04272 = phi i32 [ %12, %.loopexit45 ], [ %11, %.lr.ph75.preheader ]
  %12 = add nuw nsw i32 %.04272, 1
  %13 = icmp ult i32 %.04272, 49
  br i1 %13, label %.lr.ph63.preheader, label %.loopexit45

.loopexit44:                                      ; preds = %.loopexit
  %14 = icmp ult i32 %.04166, 49
  br i1 %14, label %.lr.ph63.preheader, label %.loopexit45, !llvm.loop !8

.lr.ph63.preheader:                               ; preds = %.lr.ph75, %.loopexit44
  %.268 = phi i32 [ %16, %.loopexit44 ], [ %.174, %.lr.ph75 ]
  %.23667 = phi i32 [ %.5, %.loopexit44 ], [ %.13573, %.lr.ph75 ]
  %.04166 = phi i32 [ %15, %.loopexit44 ], [ %12, %.lr.ph75 ]
  %15 = add nuw nsw i32 %.04166, 1
  br label %.lr.ph.preheader

.loopexit:                                        ; preds = %35
  %16 = trunc nsw i64 %indvars.iv.next to i32
  %17 = icmp ult i32 %.04060, 50
  br i1 %17, label %.lr.ph.preheader, label %.loopexit44, !llvm.loop !9

.lr.ph.preheader:                                 ; preds = %.loopexit, %.lr.ph63.preheader
  %.362 = phi i32 [ %16, %.loopexit ], [ %.268, %.lr.ph63.preheader ]
  %.33761 = phi i32 [ %.5, %.loopexit ], [ %.23667, %.lr.ph63.preheader ]
  %.04060 = phi i32 [ %18, %.loopexit ], [ %15, %.lr.ph63.preheader ]
  %18 = add nuw nsw i32 %.04060, 1
  %19 = sext i32 %.362 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %35
  %indvars.iv = phi i64 [ %19, %.lr.ph.preheader ], [ %indvars.iv.next, %35 ]
  %.43857 = phi i32 [ %.33761, %.lr.ph.preheader ], [ %.5, %35 ]
  %.03956 = phi i32 [ %18, %.lr.ph.preheader ], [ %36, %35 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %2, i32 noundef %.04378)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %.04272)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %4, i32 noundef %.04166)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %5, i32 noundef %.04060)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %6, i32 noundef %.03956)
  %20 = call i32 @_ZN11phevaluator13EvaluateCardsERKNS_4CardES2_S2_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  store i32 %20, ptr %1, align 4
  %21 = call noundef i32 @_ZNK11phevaluator4Rank5valueEv(ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %22 = call signext i16 @kev_eval_5cards(i32 noundef %.04378, i32 noundef %.04272, i32 noundef %.04166, i32 noundef %.04060, i32 noundef %.03956)
  %23 = sext i16 %22 to i32
  %24 = icmp eq i32 %21, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 30, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #7
  unreachable

26:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %27 = call noundef i32 @_Z10percentagexx(i64 noundef %indvars.iv.next, i64 noundef 2598960)
  %28 = icmp sgt i32 %27, %.43857
  br i1 %28, label %29, label %35

29:                                               ; preds = %26
  %30 = call noundef i32 @_Z10percentagexx(i64 noundef %indvars.iv.next, i64 noundef 2598960)
  %31 = srem i32 %30, 10
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %29
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %30)
  br label %35

35:                                               ; preds = %29, %33, %26
  %.5 = phi i32 [ %30, %33 ], [ %30, %29 ], [ %.43857, %26 ]
  %36 = add nuw nsw i32 %.03956, 1
  %37 = icmp ult i32 %.03956, 51
  br i1 %37, label %.lr.ph, label %.loopexit, !llvm.loop !10
}

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

declare i32 @_ZN11phevaluator13EvaluateCardsERKNS_4CardES2_S2_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11phevaluator4CardC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11phevaluator4Rank5valueEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

declare signext i16 @kev_eval_5cards(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress norecurse 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 = { 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 #4 = { "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 #5 = { noreturn 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 #6 = { nounwind }
attributes #7 = { noreturn 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}


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