; LLVM IR from google-deepmind/open_spiel :: open_spiel/games/spades (spades_scoring)

; 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.std::array" = type { [2 x i32] }
%"struct.std::array.0" = type { [4 x i32] }

; Function Attrs: mustprogress uwtable
define dso_local i64 @_ZN10open_spiel6spades5ScoreESt5arrayIiLm4EES2_S1_IiLm2EE(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) #0 {
  %6 = alloca %"struct.std::array", align 4
  %7 = alloca %"struct.std::array.0", align 4
  %8 = alloca %"struct.std::array.0", align 4
  %9 = alloca %"struct.std::array", align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  store i64 %0, ptr %15, align 4
  %16 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  store i64 %1, ptr %16, align 4
  %17 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 0
  store i64 %2, ptr %17, align 4
  %18 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 1
  store i64 %3, ptr %18, align 4
  %19 = getelementptr inbounds %"struct.std::array", ptr %9, i32 0, i32 0
  store i64 %4, ptr %19, align 4
  call void @llvm.memset.p0.i64(ptr align 4 %6, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %20

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

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %106

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %25 = load i32, ptr %10, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef %26) #4
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = load i32, ptr %10, align 4, !tbaa !5
  %30 = add nsw i32 %29, 2
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef %31) #4
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = add nsw i32 %28, %33
  store i32 %34, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %35 = load i32, ptr %10, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef %36) #4
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = add nsw i32 %39, 2
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef %41) #4
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add nsw i32 %38, %43
  %45 = load i32, ptr %11, align 4, !tbaa !5
  %46 = sub nsw i32 %44, %45
  store i32 %46, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  %47 = load i32, ptr %10, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef %48) #4
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %60

52:                                               ; preds = %24
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef %54) #4
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_18ScoreNilEi(i32 noundef %56)
  %58 = load i32, ptr %13, align 4, !tbaa !5
  %59 = add nsw i32 %58, %57
  store i32 %59, ptr %13, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %52, %24
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = add nsw i32 %61, 2
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef %63) #4
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = icmp eq i32 %65, 0
  br i1 %66, label %67, label %76

67:                                               ; preds = %60
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = add nsw i32 %68, 2
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef %70) #4
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_18ScoreNilEi(i32 noundef %72)
  %74 = load i32, ptr %13, align 4, !tbaa !5
  %75 = add nsw i32 %74, %73
  store i32 %75, ptr %13, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %67, %60
  %77 = load i32, ptr %12, align 4, !tbaa !5
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %79, label %83

79:                                               ; preds = %76
  %80 = load i32, ptr %11, align 4, !tbaa !5
  %81 = sub nsw i32 0, %80
  %82 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_113ScoreContractEi(i32 noundef %81)
  store i32 %82, ptr %14, align 4, !tbaa !5
  br label %96

83:                                               ; preds = %76
  %84 = load i32, ptr %11, align 4, !tbaa !5
  %85 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_113ScoreContractEi(i32 noundef %84)
  store i32 %85, ptr %14, align 4, !tbaa !5
  %86 = load i32, ptr %12, align 4, !tbaa !5
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %9, i64 noundef %88) #4
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_117ScoreBagPenaltiesEii(i32 noundef %90, i32 noundef %91)
  %93 = add nsw i32 %86, %92
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = add nsw i32 %94, %93
  store i32 %95, ptr %13, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %83, %79
  %97 = load i32, ptr %14, align 4, !tbaa !5
  %98 = load i32, ptr %13, align 4, !tbaa !5
  %99 = add nsw i32 %97, %98
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %6, i64 noundef %101) #4
  store i32 %99, ptr %102, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %103

103:                                              ; preds = %96
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %10, align 4, !tbaa !5
  br label %20, !llvm.loop !9

106:                                              ; preds = %23
  %107 = getelementptr inbounds %"struct.std::array", ptr %6, i32 0, i32 0
  %108 = load i64, ptr %107, align 4
  ret i64 %108
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_18ScoreNilEi(i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_113ScoreContractEi(i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_117ScoreBagPenaltiesEii(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) #3 align 2

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"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"

%"struct.std::array" = type { [2 x i32] }
%"struct.std::array.0" = type { [4 x i32] }

; Function Attrs: mustprogress nounwind uwtable
define dso_local i64 @_ZN10open_spiel6spades5ScoreESt5arrayIiLm4EES2_S1_IiLm2EE(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4) local_unnamed_addr #0 {
  %6 = alloca %"struct.std::array", align 8
  %7 = alloca %"struct.std::array.0", align 8
  %8 = alloca %"struct.std::array.0", align 8
  %9 = alloca %"struct.std::array", align 8
  store i64 %0, ptr %7, align 8
  %10 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 %1, ptr %10, align 8
  store i64 %2, ptr %8, align 8
  %11 = getelementptr inbounds i8, ptr %8, i64 8
  store i64 %3, ptr %11, align 8
  store i64 %4, ptr %9, align 8
  store i64 0, ptr %6, align 8
  %12 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef 0) #1
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef 2) #1
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = add nsw i32 %15, %13
  %17 = sub i32 0, %16
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 0) #1
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 2) #1
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = sub i32 %19, %16
  %23 = add i32 %22, %21
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef 0) #1
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %31

27:                                               ; preds = %5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 0) #1
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_18ScoreNilEi(i32 noundef %29)
  br label %31

31:                                               ; preds = %27, %5
  %.023 = phi i32 [ %30, %27 ], [ 0, %5 ]
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef 2) #1
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %40

35:                                               ; preds = %31
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 2) #1
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_18ScoreNilEi(i32 noundef %37)
  %39 = add nsw i32 %38, %.023
  br label %40

40:                                               ; preds = %35, %31
  %.1 = phi i32 [ %39, %35 ], [ %.023, %31 ]
  %41 = icmp slt i32 %23, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %40
  %43 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_113ScoreContractEi(i32 noundef %17)
  br label %51

44:                                               ; preds = %40
  %45 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_113ScoreContractEi(i32 noundef %16)
  %46 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %9, i64 noundef 0) #1
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_117ScoreBagPenaltiesEii(i32 noundef %47, i32 noundef %23)
  %49 = add i32 %.1, %23
  %50 = add i32 %49, %48
  br label %51

51:                                               ; preds = %44, %42
  %.2 = phi i32 [ %.1, %42 ], [ %50, %44 ]
  %.0 = phi i32 [ %43, %42 ], [ %45, %44 ]
  %52 = add nsw i32 %.0, %.2
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %6, i64 noundef 0) #1
  store i32 %52, ptr %53, align 4, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef 1) #1
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef 3) #1
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = add nsw i32 %57, %55
  %59 = sub i32 0, %58
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 1) #1
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 3) #1
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = sub i32 %61, %58
  %65 = add i32 %64, %63
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef 1) #1
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %73

69:                                               ; preds = %51
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 1) #1
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_18ScoreNilEi(i32 noundef %71)
  br label %73

73:                                               ; preds = %69, %51
  %.023.1 = phi i32 [ %72, %69 ], [ 0, %51 ]
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %7, i64 noundef 3) #1
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %82

77:                                               ; preds = %73
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16) %8, i64 noundef 3) #1
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_18ScoreNilEi(i32 noundef %79)
  %81 = add nsw i32 %80, %.023.1
  br label %82

82:                                               ; preds = %77, %73
  %.1.1 = phi i32 [ %81, %77 ], [ %.023.1, %73 ]
  %83 = icmp slt i32 %65, 0
  br i1 %83, label %91, label %84

84:                                               ; preds = %82
  %85 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_113ScoreContractEi(i32 noundef %58)
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %9, i64 noundef 1) #1
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_117ScoreBagPenaltiesEii(i32 noundef %87, i32 noundef %65)
  %89 = add i32 %.1.1, %65
  %90 = add i32 %89, %88
  br label %93

91:                                               ; preds = %82
  %92 = call noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_113ScoreContractEi(i32 noundef %59)
  br label %93

93:                                               ; preds = %91, %84
  %.2.1 = phi i32 [ %.1.1, %91 ], [ %90, %84 ]
  %.0.1 = phi i32 [ %92, %91 ], [ %85, %84 ]
  %94 = add nsw i32 %.0.1, %.2.1
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %6, i64 noundef 1) #1
  store i32 %94, ptr %95, align 4, !tbaa !5
  %96 = load i64, ptr %6, align 8
  ret i64 %96
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm4EEixEm(ptr noundef nonnull align 4 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_18ScoreNilEi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_113ScoreContractEi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN10open_spiel6spades12_GLOBAL__N_117ScoreBagPenaltiesEii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass