; LLVM IR from sgtlaugh/algovault :: code_library (binomial_coefficients)

; 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.Binomial = type { i64, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<BinomialPrimePow, std::allocator<BinomialPrimePow>>::_Vector_impl" }
%"struct.std::_Vector_base<BinomialPrimePow, std::allocator<BinomialPrimePow>>::_Vector_impl" = type { %"struct.std::_Vector_base<BinomialPrimePow, std::allocator<BinomialPrimePow>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BinomialPrimePow, std::allocator<BinomialPrimePow>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [85 x i8], align 1
@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca [30 x [30 x i64]], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.Binomial, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.Binomial, align 8
  %14 = alloca %struct.Binomial, align 8
  %15 = alloca %struct.Binomial, align 8
  %16 = alloca %struct.Binomial, align 8
  %17 = alloca %struct.Binomial, align 8
  %18 = alloca %struct.Binomial, align 8
  %19 = alloca %struct.Binomial, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  %20 = call i64 @clock() #7
  store i64 %20, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 7200, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 1, ptr %4, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %133, %0
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 30
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %136

25:                                               ; preds = %21
  %26 = getelementptr inbounds [30 x [30 x i64]], ptr %3, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 7200, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #7
  %27 = load i32, ptr %4, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %6, i64 noundef %28)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %89, %25
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = icmp slt i32 %30, 30
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %92

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %85, %33
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = icmp sle i32 %35, %36
  br i1 %37, label %39, label %38

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

39:                                               ; preds = %34
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %46, label %42

42:                                               ; preds = %39
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = icmp eq i32 %43, %44
  br i1 %45, label %46, label %56

46:                                               ; preds = %42, %39
  %47 = load i32, ptr %4, align 4, !tbaa !9
  %48 = srem i32 1, %47
  %49 = sext i32 %48 to i64
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [30 x [30 x i64]], ptr %3, i64 0, i64 %51
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [30 x i64], ptr %52, i64 0, i64 %54
  store i64 %49, ptr %55, align 8, !tbaa !5
  br label %84

56:                                               ; preds = %42
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = sub nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [30 x [30 x i64]], ptr %3, i64 0, i64 %59
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [30 x i64], ptr %60, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = sub nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [30 x [30 x i64]], ptr %3, i64 0, i64 %68
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [30 x i64], ptr %69, i64 0, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = add nsw i64 %65, %73
  %75 = load i32, ptr %4, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = srem i64 %74, %76
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [30 x [30 x i64]], ptr %3, i64 0, i64 %79
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [30 x i64], ptr %80, i64 0, i64 %82
  store i64 %77, ptr %83, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %56, %46
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %8, align 4, !tbaa !9
  br label %34, !llvm.loop !11

88:                                               ; preds = %38
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !9
  br label %29, !llvm.loop !13

92:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %129, %92
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = icmp slt i32 %94, 30
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %132

97:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %125, %97
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = icmp slt i32 %99, 30
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %128

102:                                              ; preds = %98
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [30 x [30 x i64]], ptr %3, i64 0, i64 %104
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [30 x i64], ptr %105, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !5
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %6, i64 noundef %111, i64 noundef %113)
          to label %115 unwind label %119

115:                                              ; preds = %102
  %116 = icmp eq i64 %109, %114
  br i1 %116, label %117, label %118

117:                                              ; preds = %115
  br label %124

118:                                              ; preds = %115
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 162, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

119:                                              ; preds = %102
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %11, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %222

123:                                              ; No predecessors!
  br label %124

124:                                              ; preds = %123, %117
  br label %125

125:                                              ; preds = %124
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %10, align 4, !tbaa !9
  br label %98, !llvm.loop !14

128:                                              ; preds = %101
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %9, align 4, !tbaa !9
  br label %93, !llvm.loop !15

132:                                              ; preds = %96
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #7
  br label %133

133:                                              ; preds = %132
  %134 = load i32, ptr %4, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %4, align 4, !tbaa !9
  br label %21, !llvm.loop !16

136:                                              ; preds = %24
  call void @llvm.lifetime.start.p0(i64 80, ptr %13) #7
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %13, i64 noundef 253)
  %137 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %13, i64 noundef 10, i64 noundef 5)
          to label %138 unwind label %142

138:                                              ; preds = %136
  %139 = icmp eq i64 %137, 252
  br i1 %139, label %140, label %141

140:                                              ; preds = %138
  br label %147

141:                                              ; preds = %138
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 167, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

142:                                              ; preds = %136
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %11, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %12, align 4
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #7
  br label %222

146:                                              ; No predecessors!
  br label %147

147:                                              ; preds = %146, %140
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %14) #7
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %14, i64 noundef 997002991)
  %148 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %14, i64 noundef 123456789012345, i64 noundef 1000000009)
          to label %149 unwind label %153

149:                                              ; preds = %147
  %150 = icmp eq i64 %148, 140000420
  br i1 %150, label %151, label %152

151:                                              ; preds = %149
  br label %158

152:                                              ; preds = %149
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 168, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

153:                                              ; preds = %147
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %11, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %12, align 4
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #7
  br label %222

157:                                              ; No predecessors!
  br label %158

158:                                              ; preds = %157, %151
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %14) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #7
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %15, i64 noundef 1000003)
  %159 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %15, i64 noundef 1000000000000000000, i64 noundef 1000000000)
          to label %160 unwind label %164

160:                                              ; preds = %158
  %161 = icmp eq i64 %159, 0
  br i1 %161, label %162, label %163

162:                                              ; preds = %160
  br label %169

163:                                              ; preds = %160
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 169, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

164:                                              ; preds = %158
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %11, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %12, align 4
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #7
  br label %222

168:                                              ; No predecessors!
  br label %169

169:                                              ; preds = %168, %162
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %15) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #7
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %16, i64 noundef 666666667)
  %170 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %16, i64 noundef 1000000000000000000, i64 noundef 1000000000)
          to label %171 unwind label %175

171:                                              ; preds = %169
  %172 = icmp eq i64 %170, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %171
  br label %180

174:                                              ; preds = %171
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 170, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

175:                                              ; preds = %169
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %11, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %12, align 4
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #7
  br label %222

179:                                              ; No predecessors!
  br label %180

180:                                              ; preds = %179, %173
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #7
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %17, i64 noundef 997000006979)
  %181 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %17, i64 noundef 100000000000000000, i64 noundef 10000000009)
          to label %182 unwind label %186

182:                                              ; preds = %180
  %183 = icmp eq i64 %181, 353000002471
  br i1 %183, label %184, label %185

184:                                              ; preds = %182
  br label %191

185:                                              ; preds = %182
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 171, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

186:                                              ; preds = %180
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %11, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %12, align 4
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #7
  br label %222

190:                                              ; No predecessors!
  br label %191

191:                                              ; preds = %190, %184
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %17) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %18) #7
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %18, i64 noundef 997000006979)
  %192 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %18, i64 noundef 1000000000000000000, i64 noundef 10000000009)
          to label %193 unwind label %197

193:                                              ; preds = %191
  %194 = icmp eq i64 %192, 361000002527
  br i1 %194, label %195, label %196

195:                                              ; preds = %193
  br label %202

196:                                              ; preds = %193
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 172, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

197:                                              ; preds = %191
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %11, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %12, align 4
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %18) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #7
  br label %222

201:                                              ; No predecessors!
  br label %202

202:                                              ; preds = %201, %195
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %18) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #7
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %19, i64 noundef 997000006979)
  %203 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %19, i64 noundef 1000000000000000000, i64 noundef 1000)
          to label %204 unwind label %208

204:                                              ; preds = %202
  %205 = icmp eq i64 %203, 625000004375
  br i1 %205, label %206, label %207

206:                                              ; preds = %204
  br label %213

207:                                              ; preds = %204
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 173, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

208:                                              ; preds = %202
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %11, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %12, align 4
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #7
  br label %222

212:                                              ; No predecessors!
  br label %213

213:                                              ; preds = %212, %206
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #7
  %214 = load ptr, ptr @stderr, align 8, !tbaa !17
  %215 = call i64 @clock() #7
  %216 = load i64, ptr %2, align 8, !tbaa !5
  %217 = sub nsw i64 %215, %216
  %218 = sitofp i64 %217 to double
  %219 = fdiv double %218, 1.000000e+06
  %220 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str.9, double noundef %219) #7
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 7200, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %221 = load i32, ptr %1, align 4
  ret i32 %221

222:                                              ; preds = %208, %197, %186, %175, %164, %153, %142, %119
  call void @llvm.lifetime.end.p0(i64 7200, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %223

223:                                              ; preds = %222
  %224 = load ptr, ptr %11, align 8
  %225 = load i32, ptr %12, align 4
  %226 = insertvalue { ptr, i32 } poison, ptr %224, 0
  %227 = insertvalue { ptr, i32 } %226, i32 %225, 1
  resume { ptr, i32 } %227
}

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

; Function Attrs: nounwind
declare i64 @clock() #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) unnamed_addr #4 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: mustprogress uwtable
declare dso_local noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef, i64 noundef) #4 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

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

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !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"

%struct.Binomial = type { i64, %"class.std::vector", %"class.std::vector.0", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<BinomialPrimePow, std::allocator<BinomialPrimePow>>::_Vector_impl" }
%"struct.std::_Vector_base<BinomialPrimePow, std::allocator<BinomialPrimePow>>::_Vector_impl" = type { %"struct.std::_Vector_base<BinomialPrimePow, std::allocator<BinomialPrimePow>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BinomialPrimePow, std::allocator<BinomialPrimePow>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [85 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [30 x [30 x i64]], align 16
  %2 = alloca %struct.Binomial, align 8
  %3 = alloca %struct.Binomial, align 8
  %4 = alloca %struct.Binomial, align 8
  %5 = alloca %struct.Binomial, align 8
  %6 = alloca %struct.Binomial, align 8
  %7 = alloca %struct.Binomial, align 8
  %8 = alloca %struct.Binomial, align 8
  %9 = alloca %struct.Binomial, align 8
  %10 = tail call i64 @clock() #8
  call void @llvm.lifetime.start.p0(i64 7200, ptr nonnull %1) #8
  br label %13

11:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #8
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %3, i64 noundef 253)
  %12 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %3, i64 noundef 10, i64 noundef 5)
          to label %214 unwind label %217

13:                                               ; preds = %0, %33
  %indvars.iv66 = phi i64 [ 1, %0 ], [ %indvars.iv.next67, %33 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(7200) %1, i8 0, i64 7200, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #8
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv66)
  %14 = icmp ne i64 %indvars.iv66, 1
  %15 = zext i1 %14 to i64
  br label %16

16:                                               ; preds = %13, %.loopexit
  %indvars.iv52 = phi i64 [ 0, %13 ], [ %indvars.iv.next53, %.loopexit ]
  %indvars.iv50 = phi i64 [ 1, %13 ], [ %indvars.iv.next51, %.loopexit ]
  %17 = add nsw i64 %indvars.iv52, -1
  %18 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv52, i64 0
  store i64 %15, ptr %18, align 16
  %exitcond.peel.not = icmp eq i64 %indvars.iv50, 1
  br i1 %exitcond.peel.not, label %.loopexit, label %.peel.next

.loopexit:                                        ; preds = %28, %16
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %exitcond57.not = icmp eq i64 %indvars.iv.next53, 30
  br i1 %exitcond57.not, label %.preheader, label %16, !llvm.loop !5

.peel.next:                                       ; preds = %16, %28
  %indvars.iv = phi i64 [ %indvars.iv.next, %28 ], [ 1, %16 ]
  %19 = icmp eq i64 %indvars.iv52, %indvars.iv
  br i1 %19, label %28, label %20

20:                                               ; preds = %.peel.next
  %21 = add nsw i64 %indvars.iv, -1
  %22 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %17, i64 %21
  %23 = load i64, ptr %22, align 8, !tbaa !7
  %24 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %17, i64 %indvars.iv
  %25 = load i64, ptr %24, align 8, !tbaa !7
  %26 = add nsw i64 %25, %23
  %27 = srem i64 %26, %indvars.iv66
  br label %28

28:                                               ; preds = %.peel.next, %20
  %.sink70 = phi i64 [ %27, %20 ], [ %15, %.peel.next ]
  %29 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv52, i64 %indvars.iv
  store i64 %.sink70, ptr %29, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv50
  br i1 %exitcond.not, label %.loopexit, label %.peel.next, !llvm.loop !11

.preheader:                                       ; preds = %.loopexit, %208
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %208 ], [ 0, %.loopexit ]
  %30 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 0
  %31 = load i64, ptr %30, align 16, !tbaa !7
  %32 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 0)
          to label %209 unwind label %212

33:                                               ; preds = %208
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #8
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond69.not = icmp eq i64 %indvars.iv.next67, 30
  br i1 %exitcond69.not, label %11, label %13, !llvm.loop !13

34:                                               ; preds = %209
  %35 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 1
  %36 = load i64, ptr %35, align 8, !tbaa !7
  %37 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 1)
          to label %38 unwind label %212

38:                                               ; preds = %34
  %39 = icmp eq i64 %36, %37
  br i1 %39, label %40, label %211

40:                                               ; preds = %38
  %41 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 2
  %42 = load i64, ptr %41, align 16, !tbaa !7
  %43 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 2)
          to label %44 unwind label %212

44:                                               ; preds = %40
  %45 = icmp eq i64 %42, %43
  br i1 %45, label %46, label %211

46:                                               ; preds = %44
  %47 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 3
  %48 = load i64, ptr %47, align 8, !tbaa !7
  %49 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 3)
          to label %50 unwind label %212

50:                                               ; preds = %46
  %51 = icmp eq i64 %48, %49
  br i1 %51, label %52, label %211

52:                                               ; preds = %50
  %53 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 4
  %54 = load i64, ptr %53, align 16, !tbaa !7
  %55 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 4)
          to label %56 unwind label %212

56:                                               ; preds = %52
  %57 = icmp eq i64 %54, %55
  br i1 %57, label %58, label %211

58:                                               ; preds = %56
  %59 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 5
  %60 = load i64, ptr %59, align 8, !tbaa !7
  %61 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 5)
          to label %62 unwind label %212

62:                                               ; preds = %58
  %63 = icmp eq i64 %60, %61
  br i1 %63, label %64, label %211

64:                                               ; preds = %62
  %65 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 6
  %66 = load i64, ptr %65, align 16, !tbaa !7
  %67 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 6)
          to label %68 unwind label %212

68:                                               ; preds = %64
  %69 = icmp eq i64 %66, %67
  br i1 %69, label %70, label %211

70:                                               ; preds = %68
  %71 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 7
  %72 = load i64, ptr %71, align 8, !tbaa !7
  %73 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 7)
          to label %74 unwind label %212

74:                                               ; preds = %70
  %75 = icmp eq i64 %72, %73
  br i1 %75, label %76, label %211

76:                                               ; preds = %74
  %77 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 8
  %78 = load i64, ptr %77, align 16, !tbaa !7
  %79 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 8)
          to label %80 unwind label %212

80:                                               ; preds = %76
  %81 = icmp eq i64 %78, %79
  br i1 %81, label %82, label %211

82:                                               ; preds = %80
  %83 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 9
  %84 = load i64, ptr %83, align 8, !tbaa !7
  %85 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 9)
          to label %86 unwind label %212

86:                                               ; preds = %82
  %87 = icmp eq i64 %84, %85
  br i1 %87, label %88, label %211

88:                                               ; preds = %86
  %89 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 10
  %90 = load i64, ptr %89, align 16, !tbaa !7
  %91 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 10)
          to label %92 unwind label %212

92:                                               ; preds = %88
  %93 = icmp eq i64 %90, %91
  br i1 %93, label %94, label %211

94:                                               ; preds = %92
  %95 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 11
  %96 = load i64, ptr %95, align 8, !tbaa !7
  %97 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 11)
          to label %98 unwind label %212

98:                                               ; preds = %94
  %99 = icmp eq i64 %96, %97
  br i1 %99, label %100, label %211

100:                                              ; preds = %98
  %101 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 12
  %102 = load i64, ptr %101, align 16, !tbaa !7
  %103 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 12)
          to label %104 unwind label %212

104:                                              ; preds = %100
  %105 = icmp eq i64 %102, %103
  br i1 %105, label %106, label %211

106:                                              ; preds = %104
  %107 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 13
  %108 = load i64, ptr %107, align 8, !tbaa !7
  %109 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 13)
          to label %110 unwind label %212

110:                                              ; preds = %106
  %111 = icmp eq i64 %108, %109
  br i1 %111, label %112, label %211

112:                                              ; preds = %110
  %113 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 14
  %114 = load i64, ptr %113, align 16, !tbaa !7
  %115 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 14)
          to label %116 unwind label %212

116:                                              ; preds = %112
  %117 = icmp eq i64 %114, %115
  br i1 %117, label %118, label %211

118:                                              ; preds = %116
  %119 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 15
  %120 = load i64, ptr %119, align 8, !tbaa !7
  %121 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 15)
          to label %122 unwind label %212

122:                                              ; preds = %118
  %123 = icmp eq i64 %120, %121
  br i1 %123, label %124, label %211

124:                                              ; preds = %122
  %125 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 16
  %126 = load i64, ptr %125, align 16, !tbaa !7
  %127 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 16)
          to label %128 unwind label %212

128:                                              ; preds = %124
  %129 = icmp eq i64 %126, %127
  br i1 %129, label %130, label %211

130:                                              ; preds = %128
  %131 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 17
  %132 = load i64, ptr %131, align 8, !tbaa !7
  %133 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 17)
          to label %134 unwind label %212

134:                                              ; preds = %130
  %135 = icmp eq i64 %132, %133
  br i1 %135, label %136, label %211

136:                                              ; preds = %134
  %137 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 18
  %138 = load i64, ptr %137, align 16, !tbaa !7
  %139 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 18)
          to label %140 unwind label %212

140:                                              ; preds = %136
  %141 = icmp eq i64 %138, %139
  br i1 %141, label %142, label %211

142:                                              ; preds = %140
  %143 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 19
  %144 = load i64, ptr %143, align 8, !tbaa !7
  %145 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 19)
          to label %146 unwind label %212

146:                                              ; preds = %142
  %147 = icmp eq i64 %144, %145
  br i1 %147, label %148, label %211

148:                                              ; preds = %146
  %149 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 20
  %150 = load i64, ptr %149, align 16, !tbaa !7
  %151 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 20)
          to label %152 unwind label %212

152:                                              ; preds = %148
  %153 = icmp eq i64 %150, %151
  br i1 %153, label %154, label %211

154:                                              ; preds = %152
  %155 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 21
  %156 = load i64, ptr %155, align 8, !tbaa !7
  %157 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 21)
          to label %158 unwind label %212

158:                                              ; preds = %154
  %159 = icmp eq i64 %156, %157
  br i1 %159, label %160, label %211

160:                                              ; preds = %158
  %161 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 22
  %162 = load i64, ptr %161, align 16, !tbaa !7
  %163 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 22)
          to label %164 unwind label %212

164:                                              ; preds = %160
  %165 = icmp eq i64 %162, %163
  br i1 %165, label %166, label %211

166:                                              ; preds = %164
  %167 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 23
  %168 = load i64, ptr %167, align 8, !tbaa !7
  %169 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 23)
          to label %170 unwind label %212

170:                                              ; preds = %166
  %171 = icmp eq i64 %168, %169
  br i1 %171, label %172, label %211

172:                                              ; preds = %170
  %173 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 24
  %174 = load i64, ptr %173, align 16, !tbaa !7
  %175 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 24)
          to label %176 unwind label %212

176:                                              ; preds = %172
  %177 = icmp eq i64 %174, %175
  br i1 %177, label %178, label %211

178:                                              ; preds = %176
  %179 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 25
  %180 = load i64, ptr %179, align 8, !tbaa !7
  %181 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 25)
          to label %182 unwind label %212

182:                                              ; preds = %178
  %183 = icmp eq i64 %180, %181
  br i1 %183, label %184, label %211

184:                                              ; preds = %182
  %185 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 26
  %186 = load i64, ptr %185, align 16, !tbaa !7
  %187 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 26)
          to label %188 unwind label %212

188:                                              ; preds = %184
  %189 = icmp eq i64 %186, %187
  br i1 %189, label %190, label %211

190:                                              ; preds = %188
  %191 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 27
  %192 = load i64, ptr %191, align 8, !tbaa !7
  %193 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 27)
          to label %194 unwind label %212

194:                                              ; preds = %190
  %195 = icmp eq i64 %192, %193
  br i1 %195, label %196, label %211

196:                                              ; preds = %194
  %197 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 28
  %198 = load i64, ptr %197, align 16, !tbaa !7
  %199 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 28)
          to label %200 unwind label %212

200:                                              ; preds = %196
  %201 = icmp eq i64 %198, %199
  br i1 %201, label %202, label %211

202:                                              ; preds = %200
  %203 = getelementptr inbounds [30 x [30 x i64]], ptr %1, i64 0, i64 %indvars.iv62, i64 29
  %204 = load i64, ptr %203, align 8, !tbaa !7
  %205 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %2, i64 noundef %indvars.iv62, i64 noundef 29)
          to label %206 unwind label %212

206:                                              ; preds = %202
  %207 = icmp eq i64 %204, %205
  br i1 %207, label %208, label %211

208:                                              ; preds = %206
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %exitcond65.not = icmp eq i64 %indvars.iv.next63, 30
  br i1 %exitcond65.not, label %33, label %.preheader, !llvm.loop !14

209:                                              ; preds = %.preheader
  %210 = icmp eq i64 %31, %32
  br i1 %210, label %34, label %211

211:                                              ; preds = %206, %200, %194, %188, %182, %176, %170, %164, %158, %152, %146, %140, %134, %128, %122, %116, %110, %104, %98, %92, %86, %80, %74, %68, %62, %56, %50, %44, %38, %209
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 162, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

212:                                              ; preds = %202, %196, %190, %184, %178, %172, %166, %160, %154, %148, %142, %136, %130, %124, %118, %112, %106, %100, %94, %88, %82, %76, %70, %64, %58, %52, %46, %40, %34, %.preheader
  %213 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #8
  br label %268

214:                                              ; preds = %11
  %215 = icmp eq i64 %12, 252
  br i1 %215, label %219, label %216

216:                                              ; preds = %214
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 167, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

217:                                              ; preds = %11
  %218 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  br label %268

219:                                              ; preds = %214
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #8
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %4, i64 noundef 997002991)
  %220 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %4, i64 noundef 123456789012345, i64 noundef 1000000009)
          to label %221 unwind label %224

221:                                              ; preds = %219
  %222 = icmp eq i64 %220, 140000420
  br i1 %222, label %226, label %223

223:                                              ; preds = %221
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 168, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

224:                                              ; preds = %219
  %225 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #8
  br label %268

226:                                              ; preds = %221
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #8
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %5, i64 noundef 1000003)
  %227 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %5, i64 noundef 1000000000000000000, i64 noundef 1000000000)
          to label %228 unwind label %231

228:                                              ; preds = %226
  %229 = icmp eq i64 %227, 0
  br i1 %229, label %233, label %230

230:                                              ; preds = %228
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 169, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

231:                                              ; preds = %226
  %232 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #8
  br label %268

233:                                              ; preds = %228
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %6) #8
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %6, i64 noundef 666666667)
  %234 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %6, i64 noundef 1000000000000000000, i64 noundef 1000000000)
          to label %235 unwind label %238

235:                                              ; preds = %233
  %236 = icmp eq i64 %234, 0
  br i1 %236, label %240, label %237

237:                                              ; preds = %235
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 170, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

238:                                              ; preds = %233
  %239 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #8
  br label %268

240:                                              ; preds = %235
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %6) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #8
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %7, i64 noundef 997000006979)
  %241 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %7, i64 noundef 100000000000000000, i64 noundef 10000000009)
          to label %242 unwind label %245

242:                                              ; preds = %240
  %243 = icmp eq i64 %241, 353000002471
  br i1 %243, label %247, label %244

244:                                              ; preds = %242
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 171, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

245:                                              ; preds = %240
  %246 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #8
  br label %268

247:                                              ; preds = %242
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #8
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %8, i64 noundef 997000006979)
  %248 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %8, i64 noundef 1000000000000000000, i64 noundef 10000000009)
          to label %249 unwind label %252

249:                                              ; preds = %247
  %250 = icmp eq i64 %248, 361000002527
  br i1 %250, label %254, label %251

251:                                              ; preds = %249
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 172, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

252:                                              ; preds = %247
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #8
  br label %268

254:                                              ; preds = %249
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #8
  call void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80) %9, i64 noundef 997000006979)
  %255 = invoke noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80) %9, i64 noundef 1000000000000000000, i64 noundef 1000)
          to label %256 unwind label %259

256:                                              ; preds = %254
  %257 = icmp eq i64 %255, 625000004375
  br i1 %257, label %261, label %258

258:                                              ; preds = %256
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 173, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #9
  unreachable

259:                                              ; preds = %254
  %260 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #8
  br label %268

261:                                              ; preds = %256
  call void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #8
  %262 = load ptr, ptr @stderr, align 8, !tbaa !15
  %263 = call i64 @clock() #8
  %264 = sub nsw i64 %263, %10
  %265 = sitofp i64 %264 to double
  %266 = fdiv double %265, 1.000000e+06
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef nonnull @.str.9, double noundef %266) #10
  call void @llvm.lifetime.end.p0(i64 7200, ptr nonnull %1) #8
  ret i32 0

268:                                              ; preds = %259, %252, %245, %238, %231, %224, %217, %212
  %.pn = phi { ptr, i32 } [ %213, %212 ], [ %260, %259 ], [ %253, %252 ], [ %246, %245 ], [ %239, %238 ], [ %232, %231 ], [ %225, %224 ], [ %218, %217 ]
  call void @llvm.lifetime.end.p0(i64 7200, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8BinomialC2Em(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) unnamed_addr #4 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: mustprogress uwtable
declare dso_local noundef i64 @_ZN8Binomial8binomialEll(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef, i64 noundef) local_unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8BinomialD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

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

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { cold nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6, !12}
!12 = !{!"llvm.loop.peeled.count", i32 1}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !9, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass