; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/SHORT/COOK70/Problem E (E)

; 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.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%"class.std::bitset<11>::reference" = type { ptr, i64 }

@dp = external dso_local global [11 x %"class.std::bitset"], align 16
@coins = external dso_local global [15 x i32], align 16
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::bitset<11>::reference", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::bitset", align 8
  %6 = alloca %"class.std::bitset", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::bitset", align 8
  %9 = alloca %"class.std::bitset", align 8
  %10 = alloca %"class.std::bitset<11>::reference", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #7
  call void @_ZNSt6bitsetILm11EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<11>::reference") align 8 %2, ptr noundef nonnull align 8 dereferenceable(8) @dp, i64 noundef 0)
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm11EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %2, i1 noundef zeroext true) #7
  call void @_ZNSt6bitsetILm11EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %96, %0
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 11
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %99

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %24 = load i32, ptr %3, align 4, !tbaa !5
  %25 = sub nsw i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %26
  %28 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef 1) #7
  %29 = getelementptr inbounds %"class.std::bitset", ptr %6, i32 0, i32 0
  %30 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %29, i32 0, i32 0
  store i64 %28, ptr %30, align 8
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sub nsw i32 %31, 1
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %33
  %35 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  %36 = getelementptr inbounds %"class.std::bitset", ptr %5, i32 0, i32 0
  %37 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %36, i32 0, i32 0
  store i64 %35, ptr %37, align 8
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %39
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %5, i64 8, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %85, %23
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = icmp slt i32 %42, 15
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 5, ptr %4, align 4
  br label %88

45:                                               ; preds = %41
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [15 x i32], ptr @coins, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = icmp sgt i32 %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %45
  store i32 5, ptr %4, align 4
  br label %88

53:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = load i32, ptr %7, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [15 x i32], ptr @coins, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = sub nsw i32 %54, %58
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %60
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [15 x i32], ptr @coins, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %61, i64 noundef %66) #7
  %68 = getelementptr inbounds %"class.std::bitset", ptr %9, i32 0, i32 0
  %69 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %68, i32 0, i32 0
  store i64 %67, ptr %69, align 8
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [15 x i32], ptr @coins, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = sub nsw i32 %70, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %76
  %78 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %77) #7
  %79 = getelementptr inbounds %"class.std::bitset", ptr %8, i32 0, i32 0
  %80 = getelementptr inbounds %"struct.std::_Base_bitset", ptr %79, i32 0, i32 0
  store i64 %78, ptr %80, align 8
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %82
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %85

85:                                               ; preds = %53
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %7, align 4, !tbaa !5
  br label %41, !llvm.loop !9

88:                                               ; preds = %52, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %89

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %91
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  call void @_ZNSt6bitsetILm11EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<11>::reference") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %92, i64 noundef %94)
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm11EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %10, i1 noundef zeroext true) #7
  call void @_ZNSt6bitsetILm11EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  br label %96

96:                                               ; preds = %89
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %3, align 4, !tbaa !5
  br label %19, !llvm.loop !11

99:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %108, %99
  %101 = load i32, ptr %11, align 4, !tbaa !5
  %102 = icmp slt i32 %101, 11
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %111

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 52, ptr %12, align 4, !tbaa !5
  %105 = load i32, ptr %11, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %106
  call void @_Z2trIPKcJiiSt6bitsetILm11EEEEvT_DpRKT0_(ptr noundef @__FUNCTION__.main, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 8 dereferenceable(8) %107)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %108

108:                                              ; preds = %104
  %109 = load i32, ptr %11, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %11, align 4, !tbaa !5
  br label %100, !llvm.loop !12

111:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %112 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %142, %111
  %114 = load i32, ptr %14, align 4, !tbaa !5
  %115 = load i32, ptr %13, align 4, !tbaa !5
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %145

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %119 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %15, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %120 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %120, ptr %17, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %137, %118
  %122 = load i32, ptr %17, align 4, !tbaa !5
  %123 = load i32, ptr %16, align 4, !tbaa !5
  %124 = icmp sge i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 14, ptr %4, align 4
  br label %140

126:                                              ; preds = %121
  %127 = load i32, ptr %17, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %128
  %130 = load i32, ptr %16, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = call noundef zeroext i1 @_ZNKSt6bitsetILm11EE4testEm(ptr noundef nonnull align 8 dereferenceable(8) %129, i64 noundef %131)
  br i1 %132, label %133, label %136

133:                                              ; preds = %126
  %134 = load i32, ptr %17, align 4, !tbaa !5
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %134)
  store i32 14, ptr %4, align 4
  br label %140

136:                                              ; preds = %126
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %17, align 4, !tbaa !5
  %139 = add nsw i32 %138, -1
  store i32 %139, ptr %17, align 4, !tbaa !5
  br label %121, !llvm.loop !13

140:                                              ; preds = %133, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %141

141:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %14, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %14, align 4, !tbaa !5
  br label %113, !llvm.loop !14

145:                                              ; preds = %117
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %146 = load i32, ptr %1, align 4
  ret i32 %146
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm11EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<11>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm11EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm11EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2trIPKcJiiSt6bitsetILm11EEEEvT_DpRKT0_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) #5

declare i32 @__isoc99_scanf(ptr noundef, ...) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm11EE4testEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { "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 #7 = { 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.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%"class.std::bitset<11>::reference" = type { ptr, i64 }

@dp = external dso_local global [11 x %"class.std::bitset"], align 16
@coins = external dso_local local_unnamed_addr global [15 x i32], align 16
@__FUNCTION__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %"class.std::bitset<11>::reference", align 8
  %2 = alloca %"class.std::bitset", align 8
  %3 = alloca %"class.std::bitset", align 8
  %4 = alloca %"class.std::bitset", align 8
  %5 = alloca %"class.std::bitset<11>::reference", align 8
  %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
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #6
  call void @_ZNSt6bitsetILm11EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<11>::reference") align 8 %1, ptr noundef nonnull align 8 dereferenceable(8) @dp, i64 noundef 0)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm11EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %1, i1 noundef zeroext true) #6
  call void @_ZNSt6bitsetILm11EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %1) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  br label %13

12:                                               ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %222

13:                                               ; preds = %0, %216
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next, %216 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %14 = add nsw i64 %indvars.iv, -1
  %15 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %14
  %16 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %15, i64 noundef 1) #6
  store i64 %16, ptr %2, align 8
  %17 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %18 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %indvars.iv
  store i64 %17, ptr %18, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 4), align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv, %20
  br i1 %21, label %216, label %22

22:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %23 = trunc nuw nsw i64 %indvars.iv to i32
  %24 = sub nsw i32 %23, %19
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %25
  %27 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %26, i64 noundef %20) #6
  store i64 %27, ptr %4, align 8
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 4), align 4, !tbaa !5
  %29 = sub nsw i32 %23, %28
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %30
  %32 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  store i64 %32, ptr %3, align 8
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %34 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 8), align 8, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = icmp slt i64 %indvars.iv, %35
  br i1 %36, label %216, label %37

37:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %38 = sub nsw i32 %23, %34
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %39
  %41 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %40, i64 noundef %35) #6
  store i64 %41, ptr %4, align 8
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 8), align 8, !tbaa !5
  %43 = sub nsw i32 %23, %42
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %44
  %46 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %45) #6
  store i64 %46, ptr %3, align 8
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 12), align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = icmp slt i64 %indvars.iv, %49
  br i1 %50, label %216, label %51

51:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %52 = sub nsw i32 %23, %48
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %53
  %55 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %54, i64 noundef %49) #6
  store i64 %55, ptr %4, align 8
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 12), align 4, !tbaa !5
  %57 = sub nsw i32 %23, %56
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %58
  %60 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %59) #6
  store i64 %60, ptr %3, align 8
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 16), align 16, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv, %63
  br i1 %64, label %216, label %65

65:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %66 = sub nsw i32 %23, %62
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %67
  %69 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %68, i64 noundef %63) #6
  store i64 %69, ptr %4, align 8
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 16), align 16, !tbaa !5
  %71 = sub nsw i32 %23, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %72
  %74 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %73) #6
  store i64 %74, ptr %3, align 8
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 20), align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = icmp slt i64 %indvars.iv, %77
  br i1 %78, label %216, label %79

79:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %80 = sub nsw i32 %23, %76
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %81
  %83 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %82, i64 noundef %77) #6
  store i64 %83, ptr %4, align 8
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 20), align 4, !tbaa !5
  %85 = sub nsw i32 %23, %84
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %86
  %88 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %87) #6
  store i64 %88, ptr %3, align 8
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 24), align 8, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv, %91
  br i1 %92, label %216, label %93

93:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %94 = sub nsw i32 %23, %90
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %95
  %97 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %96, i64 noundef %91) #6
  store i64 %97, ptr %4, align 8
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 24), align 8, !tbaa !5
  %99 = sub nsw i32 %23, %98
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %100
  %102 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %101) #6
  store i64 %102, ptr %3, align 8
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 28), align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv, %105
  br i1 %106, label %216, label %107

107:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %108 = sub nsw i32 %23, %104
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %109
  %111 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %110, i64 noundef %105) #6
  store i64 %111, ptr %4, align 8
  %112 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 28), align 4, !tbaa !5
  %113 = sub nsw i32 %23, %112
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %114
  %116 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %115) #6
  store i64 %116, ptr %3, align 8
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 32), align 16, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = icmp slt i64 %indvars.iv, %119
  br i1 %120, label %216, label %121

121:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %122 = sub nsw i32 %23, %118
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %123
  %125 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %124, i64 noundef %119) #6
  store i64 %125, ptr %4, align 8
  %126 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 32), align 16, !tbaa !5
  %127 = sub nsw i32 %23, %126
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %128
  %130 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %129) #6
  store i64 %130, ptr %3, align 8
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 36), align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = icmp slt i64 %indvars.iv, %133
  br i1 %134, label %216, label %135

135:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %136 = sub nsw i32 %23, %132
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %137
  %139 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %138, i64 noundef %133) #6
  store i64 %139, ptr %4, align 8
  %140 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 36), align 4, !tbaa !5
  %141 = sub nsw i32 %23, %140
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %142
  %144 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %143) #6
  store i64 %144, ptr %3, align 8
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %146 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 40), align 8, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = icmp slt i64 %indvars.iv, %147
  br i1 %148, label %216, label %149

149:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %150 = sub nsw i32 %23, %146
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %151
  %153 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %152, i64 noundef %147) #6
  store i64 %153, ptr %4, align 8
  %154 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 40), align 8, !tbaa !5
  %155 = sub nsw i32 %23, %154
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %156
  %158 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %157) #6
  store i64 %158, ptr %3, align 8
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %160 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 44), align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = icmp slt i64 %indvars.iv, %161
  br i1 %162, label %216, label %163

163:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %164 = sub nsw i32 %23, %160
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %165
  %167 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %166, i64 noundef %161) #6
  store i64 %167, ptr %4, align 8
  %168 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 44), align 4, !tbaa !5
  %169 = sub nsw i32 %23, %168
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %170
  %172 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %171) #6
  store i64 %172, ptr %3, align 8
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %174 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 48), align 16, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = icmp slt i64 %indvars.iv, %175
  br i1 %176, label %216, label %177

177:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %178 = sub nsw i32 %23, %174
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %179
  %181 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %180, i64 noundef %175) #6
  store i64 %181, ptr %4, align 8
  %182 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 48), align 16, !tbaa !5
  %183 = sub nsw i32 %23, %182
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %184
  %186 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %185) #6
  store i64 %186, ptr %3, align 8
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %188 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 52), align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = icmp slt i64 %indvars.iv, %189
  br i1 %190, label %216, label %191

191:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %192 = sub nsw i32 %23, %188
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %193
  %195 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %194, i64 noundef %189) #6
  store i64 %195, ptr %4, align 8
  %196 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 52), align 4, !tbaa !5
  %197 = sub nsw i32 %23, %196
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %198
  %200 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %199) #6
  store i64 %200, ptr %3, align 8
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %202 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 56), align 8, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = icmp slt i64 %indvars.iv, %203
  br i1 %204, label %216, label %205

205:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %206 = sub nsw i32 %23, %202
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %207
  %209 = call i64 @_ZNKSt6bitsetILm11EElsEm(ptr noundef nonnull align 8 dereferenceable(8) %208, i64 noundef %203) #6
  store i64 %209, ptr %4, align 8
  %210 = load i32, ptr getelementptr inbounds (i8, ptr @coins, i64 56), align 8, !tbaa !5
  %211 = sub nsw i32 %23, %210
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %212
  %214 = call i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %213) #6
  store i64 %214, ptr %3, align 8
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm11EEaNERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %216

216:                                              ; preds = %205, %191, %177, %163, %149, %135, %121, %107, %93, %79, %65, %51, %37, %22, %13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZNSt6bitsetILm11EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<11>::reference") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %indvars.iv)
  %217 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm11EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %5, i1 noundef zeroext true) #6
  call void @_ZNSt6bitsetILm11EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 11
  br i1 %exitcond.not, label %12, label %13, !llvm.loop !9

218:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %219 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %8)
  %220 = load i32, ptr %8, align 4, !tbaa !5
  %221 = icmp sgt i32 %220, 0
  br i1 %221, label %.lr.ph35, label %._crit_edge

222:                                              ; preds = %12, %222
  %storemerge31 = phi i32 [ 1, %12 ], [ %226, %222 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 52, ptr %7, align 4, !tbaa !5
  %223 = sext i32 %storemerge31 to i64
  %224 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %223
  call void @_Z2trIPKcJiiSt6bitsetILm11EEEEvT_DpRKT0_(ptr noundef nonnull @__FUNCTION__.main, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %224)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  %225 = load i32, ptr %6, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %6, align 4, !tbaa !5
  %227 = icmp slt i32 %225, 10
  br i1 %227, label %222, label %218, !llvm.loop !11

._crit_edge:                                      ; preds = %.loopexit, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  ret i32 0

.lr.ph35:                                         ; preds = %218, %.loopexit
  %.02434 = phi i32 [ %242, %.loopexit ], [ 0, %218 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %228 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %229 = load i32, ptr %9, align 4, !tbaa !5
  %230 = load i32, ptr %10, align 4, !tbaa !5
  %.not32 = icmp slt i32 %229, %230
  br i1 %.not32, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph35
  %231 = sext i32 %229 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %239
  %indvars.iv39 = phi i64 [ %231, %.lr.ph.preheader ], [ %indvars.iv.next40, %239 ]
  %232 = phi i32 [ %230, %.lr.ph.preheader ], [ %240, %239 ]
  %233 = getelementptr inbounds [11 x %"class.std::bitset"], ptr @dp, i64 0, i64 %indvars.iv39
  %234 = sext i32 %232 to i64
  %235 = call noundef zeroext i1 @_ZNKSt6bitsetILm11EE4testEm(ptr noundef nonnull align 8 dereferenceable(8) %233, i64 noundef %234)
  br i1 %235, label %236, label %239

236:                                              ; preds = %.lr.ph
  %237 = trunc nsw i64 %indvars.iv39 to i32
  %238 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %237)
  br label %.loopexit

239:                                              ; preds = %.lr.ph
  %indvars.iv.next40 = add nsw i64 %indvars.iv39, -1
  %240 = load i32, ptr %10, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %.not.not = icmp sgt i64 %indvars.iv39, %241
  br i1 %.not.not, label %.lr.ph, label %.loopexit, !llvm.loop !12

.loopexit:                                        ; preds = %239, %.lr.ph35, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %242 = add nuw nsw i32 %.02434, 1
  %243 = load i32, ptr %8, align 4, !tbaa !5
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %.lr.ph35, label %._crit_edge, !llvm.loop !13
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm11EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<11>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm11EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm11EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i64 @_ZStorILm11EESt6bitsetIXT_EERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2trIPKcJiiSt6bitsetILm11EEEEvT_DpRKT0_(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm11EE4testEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4 align 2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 = { 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 #5 = { 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 #6 = { 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}


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