; LLVM IR from xirc/cp-algorithm :: atcoder/abc184/D/main.ll (Z4probiii)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::vector<bool>>, std::allocator<std::vector<std::vector<bool>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<bool>>, std::allocator<std::vector<std::vector<bool>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<bool>>, std::allocator<std::vector<std::vector<bool>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<bool>>, std::allocator<std::vector<std::vector<bool>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<std::vector<std::vector<long double>>, std::allocator<std::vector<std::vector<long double>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<long double>>, std::allocator<std::vector<std::vector<long double>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<long double>>, std::allocator<std::vector<std::vector<long double>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<long double>>, std::allocator<std::vector<std::vector<long double>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@A = external dso_local global i32, align 4
@B = external dso_local global i32, align 4
@C = external dso_local global i32, align 4
@cached = external dso_local global %"class.std::vector", align 8
@probability = external dso_local global %"class.std::vector.12", align 8

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef x86_fp80 @_Z4probiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca x86_fp80, align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::_Bit_reference", align 8
  %9 = alloca x86_fp80, align 16
  %10 = alloca x86_fp80, align 16
  %11 = alloca %"struct.std::_Bit_reference", align 8
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  %12 = load i32, ptr %5, align 4, !tbaa !5
  %13 = load i32, ptr @A, align 4, !tbaa !5
  %14 = icmp eq i32 %12, %13
  br i1 %14, label %15, label %24

15:                                               ; preds = %3
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = load i32, ptr @B, align 4, !tbaa !5
  %18 = icmp eq i32 %16, %17
  br i1 %18, label %19, label %24

19:                                               ; preds = %15
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = load i32, ptr @C, align 4, !tbaa !5
  %22 = icmp eq i32 %20, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  store x86_fp80 0xK3FFF8000000000000000, ptr %4, align 16
  br label %164

24:                                               ; preds = %19, %15, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IbSaIbEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @cached, i64 noundef %26) #3
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #3
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %30, i64 noundef %32)
  %34 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %35 = extractvalue { ptr, i64 } %33, 0
  store ptr %35, ptr %34, align 8
  %36 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %37 = extractvalue { ptr, i64 } %33, 1
  store i64 %37, ptr %36, align 8
  %38 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  br i1 %38, label %39, label %50

39:                                               ; preds = %24
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IeSaIeEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @probability, i64 noundef %41) #3
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IeSaIeEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44) #3
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %47) #3
  %49 = load x86_fp80, ptr %48, align 16, !tbaa !9
  store x86_fp80 %49, ptr %4, align 16
  br label %164

50:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  store x86_fp80 0xK00000000000000000000, ptr %9, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = add nsw i32 %51, %52
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = add nsw i32 %53, %54
  %56 = sub nsw i32 %55, 1
  %57 = sitofp i32 %56 to x86_fp80
  store x86_fp80 %57, ptr %10, align 16, !tbaa !9
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = load i32, ptr @A, align 4, !tbaa !5
  %60 = icmp sgt i32 %58, %59
  br i1 %60, label %61, label %81

61:                                               ; preds = %50
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = icmp ne i32 %62, 100
  br i1 %63, label %64, label %81

64:                                               ; preds = %61
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = icmp ne i32 %65, 100
  br i1 %66, label %67, label %81

67:                                               ; preds = %64
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = sub nsw i32 %68, 1
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = call noundef x86_fp80 @_Z4probiii(i32 noundef %69, i32 noundef %70, i32 noundef %71)
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sub nsw i32 %73, 1
  %75 = sitofp i32 %74 to x86_fp80
  %76 = fmul x86_fp80 %72, %75
  %77 = load x86_fp80, ptr %10, align 16, !tbaa !9
  %78 = fdiv x86_fp80 %76, %77
  %79 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %80 = fadd x86_fp80 %79, %78
  store x86_fp80 %80, ptr %9, align 16, !tbaa !9
  br label %81

81:                                               ; preds = %67, %64, %61, %50
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = icmp ne i32 %82, 100
  br i1 %83, label %84, label %105

84:                                               ; preds = %81
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = load i32, ptr @B, align 4, !tbaa !5
  %87 = icmp sgt i32 %85, %86
  br i1 %87, label %88, label %105

88:                                               ; preds = %84
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = icmp ne i32 %89, 100
  br i1 %90, label %91, label %105

91:                                               ; preds = %88
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sub nsw i32 %93, 1
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = call noundef x86_fp80 @_Z4probiii(i32 noundef %92, i32 noundef %94, i32 noundef %95)
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = sub nsw i32 %97, 1
  %99 = sitofp i32 %98 to x86_fp80
  %100 = fmul x86_fp80 %96, %99
  %101 = load x86_fp80, ptr %10, align 16, !tbaa !9
  %102 = fdiv x86_fp80 %100, %101
  %103 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %104 = fadd x86_fp80 %103, %102
  store x86_fp80 %104, ptr %9, align 16, !tbaa !9
  br label %105

105:                                              ; preds = %91, %88, %84, %81
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = icmp ne i32 %106, 100
  br i1 %107, label %108, label %129

108:                                              ; preds = %105
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = icmp ne i32 %109, 100
  br i1 %110, label %111, label %129

111:                                              ; preds = %108
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = load i32, ptr @C, align 4, !tbaa !5
  %114 = icmp sgt i32 %112, %113
  br i1 %114, label %115, label %129

115:                                              ; preds = %111
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = sub nsw i32 %118, 1
  %120 = call noundef x86_fp80 @_Z4probiii(i32 noundef %116, i32 noundef %117, i32 noundef %119)
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = sub nsw i32 %121, 1
  %123 = sitofp i32 %122 to x86_fp80
  %124 = fmul x86_fp80 %120, %123
  %125 = load x86_fp80, ptr %10, align 16, !tbaa !9
  %126 = fdiv x86_fp80 %124, %125
  %127 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %128 = fadd x86_fp80 %127, %126
  store x86_fp80 %128, ptr %9, align 16, !tbaa !9
  br label %129

129:                                              ; preds = %115, %111, %108, %105
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  %130 = load i32, ptr %5, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IbSaIbEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @cached, i64 noundef %131) #3
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #3
  %136 = load i32, ptr %7, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %135, i64 noundef %137)
  %139 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %140 = extractvalue { ptr, i64 } %138, 0
  store ptr %140, ptr %139, align 8
  %141 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %142 = extractvalue { ptr, i64 } %138, 1
  store i64 %142, ptr %141, align 8
  %143 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %11, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #3
  %144 = load x86_fp80, ptr %9, align 16, !tbaa !9
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IeSaIeEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @probability, i64 noundef %146) #3
  %148 = load i32, ptr %6, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IeSaIeEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149) #3
  %151 = load i32, ptr %7, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %152) #3
  store x86_fp80 %144, ptr %153, align 16, !tbaa !9
  %154 = load i32, ptr %5, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IeSaIeEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @probability, i64 noundef %155) #3
  %157 = load i32, ptr %6, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IeSaIeEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #3
  %160 = load i32, ptr %7, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #3
  %163 = load x86_fp80, ptr %162, align 16, !tbaa !9
  store x86_fp80 %163, ptr %4, align 16
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  br label %164

164:                                              ; preds = %129, %39, %23
  %165 = load x86_fp80, ptr %4, align 16
  ret x86_fp80 %165
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #1 align 2

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long double", !7, i64 0}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::vector<bool>>, std::allocator<std::vector<std::vector<bool>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<bool>>, std::allocator<std::vector<std::vector<bool>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<bool>>, std::allocator<std::vector<std::vector<bool>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<bool>>, std::allocator<std::vector<std::vector<bool>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = type { %"struct.std::_Vector_base<std::vector<std::vector<long double>>, std::allocator<std::vector<std::vector<long double>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<long double>>, std::allocator<std::vector<std::vector<long double>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<long double>>, std::allocator<std::vector<std::vector<long double>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<long double>>, std::allocator<std::vector<std::vector<long double>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@A = external dso_local local_unnamed_addr global i32, align 4
@B = external dso_local local_unnamed_addr global i32, align 4
@C = external dso_local local_unnamed_addr global i32, align 4
@cached = external dso_local global %"class.std::vector", align 8
@probability = external dso_local global %"class.std::vector.12", align 8

; 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 uwtable
define dso_local noundef x86_fp80 @_Z4probiii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca %"struct.std::_Bit_reference", align 8
  %5 = alloca %"struct.std::_Bit_reference", align 8
  %6 = load i32, ptr @A, align 4, !tbaa !5
  %7 = icmp eq i32 %6, %0
  %8 = load i32, ptr @B, align 4
  %9 = icmp eq i32 %8, %1
  %or.cond67 = select i1 %7, i1 %9, i1 false
  %10 = load i32, ptr @C, align 4
  %11 = icmp eq i32 %10, %2
  %or.cond69 = select i1 %or.cond67, i1 %11, i1 false
  br i1 %or.cond69, label %73, label %12

12:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  %13 = sext i32 %0 to i64
  %14 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IbSaIbEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @cached, i64 noundef %13) #3
  %15 = sext i32 %1 to i64
  %16 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %15) #3
  %17 = sext i32 %2 to i64
  %18 = tail call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %16, i64 noundef %17)
  %19 = extractvalue { ptr, i64 } %18, 0
  store ptr %19, ptr %4, align 8
  %20 = getelementptr inbounds i8, ptr %4, i64 8
  %21 = extractvalue { ptr, i64 } %18, 1
  store i64 %21, ptr %20, align 8
  %22 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %4) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  br i1 %22, label %.sink.split, label %23

23:                                               ; preds = %12
  %24 = add i32 %0, -1
  %25 = add i32 %24, %1
  %26 = add i32 %25, %2
  %27 = sitofp i32 %26 to x86_fp80
  %28 = load i32, ptr @A, align 4, !tbaa !5
  %29 = icmp slt i32 %28, %0
  %30 = icmp ne i32 %1, 100
  %or.cond = and i1 %30, %29
  %31 = icmp ne i32 %2, 100
  %or.cond3 = and i1 %31, %or.cond
  br i1 %or.cond3, label %32, label %38

32:                                               ; preds = %23
  %33 = call noundef x86_fp80 @_Z4probiii(i32 noundef %24, i32 noundef %1, i32 noundef %2)
  %34 = sitofp i32 %24 to x86_fp80
  %35 = fmul x86_fp80 %33, %34
  %36 = fdiv x86_fp80 %35, %27
  %37 = fadd x86_fp80 %36, 0xK00000000000000000000
  br label %38

38:                                               ; preds = %32, %23
  %.056 = phi x86_fp80 [ %37, %32 ], [ 0xK00000000000000000000, %23 ]
  %.not = icmp eq i32 %0, 100
  br i1 %.not, label %.thread, label %39

39:                                               ; preds = %38
  %40 = load i32, ptr @B, align 4, !tbaa !5
  %41 = icmp slt i32 %40, %1
  %or.cond5 = and i1 %31, %41
  br i1 %or.cond5, label %42, label %49

42:                                               ; preds = %39
  %43 = add nsw i32 %1, -1
  %44 = call noundef x86_fp80 @_Z4probiii(i32 noundef %0, i32 noundef %43, i32 noundef %2)
  %45 = sitofp i32 %43 to x86_fp80
  %46 = fmul x86_fp80 %44, %45
  %47 = fdiv x86_fp80 %46, %27
  %48 = fadd x86_fp80 %.056, %47
  br label %49

49:                                               ; preds = %42, %39
  %.1 = phi x86_fp80 [ %48, %42 ], [ %.056, %39 ]
  %50 = load i32, ptr @C, align 4
  %51 = icmp slt i32 %50, %2
  %or.cond71 = select i1 %30, i1 %51, i1 false
  br i1 %or.cond71, label %52, label %.thread

52:                                               ; preds = %49
  %53 = add nsw i32 %2, -1
  %54 = call noundef x86_fp80 @_Z4probiii(i32 noundef %0, i32 noundef %1, i32 noundef %53)
  %55 = sitofp i32 %53 to x86_fp80
  %56 = fmul x86_fp80 %54, %55
  %57 = fdiv x86_fp80 %56, %27
  %58 = fadd x86_fp80 %.1, %57
  br label %.thread

.thread:                                          ; preds = %38, %52, %49
  %.2 = phi x86_fp80 [ %58, %52 ], [ %.1, %49 ], [ %.056, %38 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IbSaIbEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @cached, i64 noundef %13) #3
  %60 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIS_IbSaIbEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %15) #3
  %61 = call { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %60, i64 noundef %17)
  %62 = extractvalue { ptr, i64 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = getelementptr inbounds i8, ptr %5, i64 8
  %64 = extractvalue { ptr, i64 } %61, 1
  store i64 %64, ptr %63, align 8
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %5, i1 noundef zeroext true) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IeSaIeEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @probability, i64 noundef %13) #3
  %67 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IeSaIeEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %15) #3
  %68 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %17) #3
  store x86_fp80 %.2, ptr %68, align 16, !tbaa !9
  br label %.sink.split

.sink.split:                                      ; preds = %12, %.thread
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IS_IeSaIeEESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @probability, i64 noundef %13) #3
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IeSaIeEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %15) #3
  %71 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %17) #3
  %72 = load x86_fp80, ptr %71, align 16, !tbaa !9
  br label %73

73:                                               ; preds = %.sink.split, %3
  %.0 = phi x86_fp80 [ 0xK3FFF8000000000000000, %3 ], [ %72, %.sink.split ]
  ret x86_fp80 %.0
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass