; LLVM IR from interpretml/interpret :: shared/libebm (Purify)

; 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.NAMESPACE_MAIN::RandomDeterministic" = type { i64, i64, i64 }

@g_traceLevel = external global i32, align 4
@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZ6PurifyE13LOG__sMessage = external hidden constant [204 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_0 = external hidden constant [24 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_1 = external hidden constant [47 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_2 = external hidden constant [54 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_3 = external hidden constant [61 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_4 = external hidden constant [28 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_5 = external hidden constant [46 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_6 = external hidden constant [81 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_7 = external hidden constant [41 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_8 = external hidden constant [55 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_9 = external hidden constant [25 x i8], align 16
@__func__.Purify = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.Purify = external hidden unnamed_addr constant [136 x i8], align 1
@_ZZ6PurifyE13LOG__sMessage__10_ = external hidden constant [54 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__11_ = external hidden constant [49 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__12_ = external hidden constant [32 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__13_ = external hidden constant [36 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__14_ = external hidden constant [80 x i8], align 16
@.str.107 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [28 x i8], align 1
@_ZZ6PurifyE13LOG__sMessage__15_ = external hidden constant [68 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__16_ = external hidden constant [66 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__17_ = external hidden constant [37 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__18_ = external hidden constant [14 x i8], align 1

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

declare void @InteralLogWithArguments(i32 noundef, ptr noundef, ...) #1

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

declare void @InteralLogWithoutArguments(i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef, i64 noundef) #2

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14NAMESPACE_MAIN14PurifyInternalEdmmmPNS_19RandomDeterministicEPmPKmPKdPdS7_S7_(double noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE3minEv() #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @Purify(double noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #4 {
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i64, align 8
  %34 = alloca i32, align 4
  %35 = alloca i8, align 1
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i64, align 8
  %41 = alloca [30 x i64], align 16
  %42 = alloca i64, align 8
  %43 = alloca i32, align 4
  %44 = alloca i64, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i64, align 8
  %50 = alloca i64, align 8
  %51 = alloca i64, align 8
  %52 = alloca i64, align 8
  %53 = alloca i32, align 4
  %54 = alloca %"class.NAMESPACE_MAIN::RandomDeterministic", align 8
  %55 = alloca ptr, align 8
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i64, align 8
  %59 = alloca ptr, align 8
  %60 = alloca ptr, align 8
  %61 = alloca ptr, align 8
  %62 = alloca ptr, align 8
  %63 = alloca i32, align 4
  store double %0, ptr %12, align 8, !tbaa !5
  store i32 %1, ptr %13, align 4, !tbaa !9
  store i32 %2, ptr %14, align 4, !tbaa !9
  store i64 %3, ptr %15, align 8, !tbaa !11
  store i64 %4, ptr %16, align 8, !tbaa !11
  store ptr %5, ptr %17, align 8, !tbaa !13
  store ptr %6, ptr %18, align 8, !tbaa !13
  store ptr %7, ptr %19, align 8, !tbaa !13
  store ptr %8, ptr %20, align 8, !tbaa !13
  store ptr %9, ptr %21, align 8, !tbaa !13
  br label %64

64:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 3, ptr %22, align 4, !tbaa !9
  %65 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %66 = icmp sle i32 3, %65
  br i1 %66, label %67, label %80

67:                                               ; preds = %64
  %68 = load double, ptr %12, align 8, !tbaa !5
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = call noundef ptr @_ZL11ObtainTruthi(i32 noundef %69)
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = call noundef ptr @_ZL11ObtainTruthi(i32 noundef %71)
  %73 = load i64, ptr %15, align 8, !tbaa !11
  %74 = load i64, ptr %16, align 8, !tbaa !11
  %75 = load ptr, ptr %17, align 8, !tbaa !13
  %76 = load ptr, ptr %18, align 8, !tbaa !13
  %77 = load ptr, ptr %19, align 8, !tbaa !13
  %78 = load ptr, ptr %20, align 8, !tbaa !13
  %79 = load ptr, ptr %21, align 8, !tbaa !13
  call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef 3, ptr noundef @_ZZ6PurifyE13LOG__sMessage, double noundef %68, ptr noundef %70, ptr noundef %72, i64 noundef %73, i64 noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79)
  br label %80

80:                                               ; preds = %67, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %81

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %82 = load i64, ptr %15, align 8, !tbaa !11
  %83 = icmp sle i64 %82, 0
  br i1 %83, label %84, label %103

84:                                               ; preds = %81
  %85 = load i64, ptr %15, align 8, !tbaa !11
  %86 = icmp eq i64 0, %85
  br i1 %86, label %87, label %95

87:                                               ; preds = %84
  br label %88

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 3, ptr %24, align 4, !tbaa !9
  %89 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %90 = icmp sle i32 3, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZ6PurifyE13LOG__sMessage_0)
  br label %92

92:                                               ; preds = %91, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  store i32 0, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %472

95:                                               ; preds = %84
  br label %96

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 1, ptr %26, align 4, !tbaa !9
  %97 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %98 = icmp sle i32 1, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %96
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage_1)
  br label %100

100:                                              ; preds = %99, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %472

103:                                              ; preds = %81
  %104 = load i64, ptr %15, align 8, !tbaa !11
  %105 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %104) #9
  br i1 %105, label %106, label %114

106:                                              ; preds = %103
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 1, ptr %27, align 4, !tbaa !9
  %108 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %109 = icmp sle i32 1, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %107
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage_2)
  br label %111

111:                                              ; preds = %110, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %472

114:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %115 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %115, ptr %28, align 8, !tbaa !11
  %116 = load i64, ptr %28, align 8, !tbaa !11
  %117 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %116) #9
  br i1 %117, label %118, label %126

118:                                              ; preds = %114
  br label %119

119:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 1, ptr %29, align 4, !tbaa !9
  %120 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %121 = icmp sle i32 1, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage_3)
  br label %123

123:                                              ; preds = %122, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %471

126:                                              ; preds = %114
  %127 = load ptr, ptr %21, align 8, !tbaa !13
  %128 = icmp ne ptr null, %127
  br i1 %128, label %129, label %133

129:                                              ; preds = %126
  %130 = load ptr, ptr %21, align 8, !tbaa !13
  %131 = load i64, ptr %28, align 8, !tbaa !11
  %132 = mul i64 8, %131
  call void @llvm.memset.p0.i64(ptr align 8 %130, i8 0, i64 %132, i1 false)
  br label %133

133:                                              ; preds = %129, %126
  %134 = load i64, ptr %16, align 8, !tbaa !11
  %135 = icmp sle i64 %134, 0
  br i1 %135, label %136, label %155

136:                                              ; preds = %133
  %137 = load i64, ptr %16, align 8, !tbaa !11
  %138 = icmp eq i64 0, %137
  br i1 %138, label %139, label %147

139:                                              ; preds = %136
  br label %140

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 3, ptr %30, align 4, !tbaa !9
  %141 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %142 = icmp sle i32 3, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %140
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZ6PurifyE13LOG__sMessage_4)
  br label %144

144:                                              ; preds = %143, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  store i32 0, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %471

147:                                              ; preds = %136
  br label %148

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 1, ptr %31, align 4, !tbaa !9
  %149 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %150 = icmp sle i32 1, %149
  br i1 %150, label %151, label %152

151:                                              ; preds = %148
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage_5)
  br label %152

152:                                              ; preds = %151, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %471

155:                                              ; preds = %133
  %156 = load i64, ptr %16, align 8, !tbaa !11
  %157 = icmp slt i64 30, %156
  br i1 %157, label %158, label %166

158:                                              ; preds = %155
  br label %159

159:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  store i32 2, ptr %32, align 4, !tbaa !9
  %160 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %161 = icmp sle i32 2, %160
  br i1 %161, label %162, label %163

162:                                              ; preds = %159
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ6PurifyE13LOG__sMessage_6)
  br label %163

163:                                              ; preds = %162, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  store i32 -1, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %471

166:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %167 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %167, ptr %33, align 8, !tbaa !11
  %168 = load ptr, ptr %17, align 8, !tbaa !13
  %169 = icmp eq ptr null, %168
  br i1 %169, label %170, label %178

170:                                              ; preds = %166
  br label %171

171:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  store i32 1, ptr %34, align 4, !tbaa !9
  %172 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %173 = icmp sle i32 1, %172
  br i1 %173, label %174, label %175

174:                                              ; preds = %171
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage_7)
  br label %175

175:                                              ; preds = %174, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %176

176:                                              ; preds = %175
  br label %177

177:                                              ; preds = %176
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %470

178:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #9
  store i8 0, ptr %35, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  store i64 0, ptr %36, align 8, !tbaa !11
  br label %179

179:                                              ; preds = %204, %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %180 = load ptr, ptr %17, align 8, !tbaa !13
  %181 = load i64, ptr %36, align 8, !tbaa !11
  %182 = getelementptr inbounds i64, ptr %180, i64 %181
  %183 = load i64, ptr %182, align 8, !tbaa !11
  store i64 %183, ptr %37, align 8, !tbaa !11
  %184 = load i64, ptr %37, align 8, !tbaa !11
  %185 = icmp sle i64 %184, 0
  br i1 %185, label %186, label %198

186:                                              ; preds = %179
  %187 = load i64, ptr %37, align 8, !tbaa !11
  %188 = icmp slt i64 %187, 0
  br i1 %188, label %189, label %197

189:                                              ; preds = %186
  br label %190

190:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 1, ptr %38, align 4, !tbaa !9
  %191 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %192 = icmp sle i32 1, %191
  br i1 %192, label %193, label %194

193:                                              ; preds = %190
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage_8)
  br label %194

194:                                              ; preds = %193, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %201

197:                                              ; preds = %186
  store i8 1, ptr %35, align 1, !tbaa !15
  br label %198

198:                                              ; preds = %197, %179
  %199 = load i64, ptr %36, align 8, !tbaa !11
  %200 = add i64 %199, 1
  store i64 %200, ptr %36, align 8, !tbaa !11
  store i32 0, ptr %25, align 4
  br label %201

201:                                              ; preds = %198, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  %202 = load i32, ptr %25, align 4
  switch i32 %202, label %469 [
    i32 0, label %203
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = load i64, ptr %33, align 8, !tbaa !11
  %206 = load i64, ptr %36, align 8, !tbaa !11
  %207 = icmp ne i64 %205, %206
  br i1 %207, label %179, label %208, !llvm.loop !17

208:                                              ; preds = %204
  %209 = load i8, ptr %35, align 1, !tbaa !15, !range !19, !noundef !20
  %210 = trunc i8 %209 to i1
  br i1 %210, label %211, label %219

211:                                              ; preds = %208
  br label %212

212:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  store i32 3, ptr %39, align 4, !tbaa !9
  %213 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %214 = icmp sle i32 3, %213
  br i1 %214, label %215, label %216

215:                                              ; preds = %212
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZ6PurifyE13LOG__sMessage_9)
  br label %216

216:                                              ; preds = %215, %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217
  store i32 0, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %469

219:                                              ; preds = %208
  store i64 0, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  store i64 1, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 240, ptr %41) #9
  br label %220

220:                                              ; preds = %267, %219
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %221 = load ptr, ptr %17, align 8, !tbaa !13
  %222 = load i64, ptr %36, align 8, !tbaa !11
  %223 = getelementptr inbounds i64, ptr %221, i64 %222
  %224 = load i64, ptr %223, align 8, !tbaa !11
  store i64 %224, ptr %42, align 8, !tbaa !11
  %225 = load i64, ptr %42, align 8, !tbaa !11
  %226 = icmp sle i64 1, %225
  br i1 %226, label %229, label %227

227:                                              ; preds = %220
  call void @LogAssertFailure(i64 noundef 2031, ptr noundef @.str, ptr noundef @__func__.Purify, ptr noundef @.str.1)
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str, i32 noundef 2031, ptr noundef @__PRETTY_FUNCTION__.Purify) #10
  unreachable

228:                                              ; No predecessors!
  br label %229

229:                                              ; preds = %228, %220
  %230 = phi i1 [ true, %220 ], [ false, %228 ]
  %231 = load i64, ptr %42, align 8, !tbaa !11
  %232 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %231) #9
  br i1 %232, label %233, label %241

233:                                              ; preds = %229
  br label %234

234:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  store i32 1, ptr %43, align 4, !tbaa !9
  %235 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %236 = icmp sle i32 1, %235
  br i1 %236, label %237, label %238

237:                                              ; preds = %234
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage__10_)
  br label %238

238:                                              ; preds = %237, %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %264

241:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #9
  %242 = load i64, ptr %42, align 8, !tbaa !11
  store i64 %242, ptr %44, align 8, !tbaa !11
  %243 = load i64, ptr %44, align 8, !tbaa !11
  %244 = load i64, ptr %36, align 8, !tbaa !11
  %245 = getelementptr inbounds [30 x i64], ptr %41, i64 0, i64 %244
  store i64 %243, ptr %245, align 8, !tbaa !11
  %246 = load i64, ptr %40, align 8, !tbaa !11
  %247 = load i64, ptr %44, align 8, !tbaa !11
  %248 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %246, i64 noundef %247) #9
  br i1 %248, label %249, label %257

249:                                              ; preds = %241
  br label %250

250:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #9
  store i32 1, ptr %45, align 4, !tbaa !9
  %251 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %252 = icmp sle i32 1, %251
  br i1 %252, label %253, label %254

253:                                              ; preds = %250
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage__11_)
  br label %254

254:                                              ; preds = %253, %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #9
  br label %255

255:                                              ; preds = %254
  br label %256

256:                                              ; preds = %255
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %263

257:                                              ; preds = %241
  %258 = load i64, ptr %44, align 8, !tbaa !11
  %259 = load i64, ptr %40, align 8, !tbaa !11
  %260 = mul i64 %259, %258
  store i64 %260, ptr %40, align 8, !tbaa !11
  %261 = load i64, ptr %36, align 8, !tbaa !11
  %262 = add i64 %261, 1
  store i64 %262, ptr %36, align 8, !tbaa !11
  store i32 0, ptr %25, align 4
  br label %263

263:                                              ; preds = %257, %256
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #9
  br label %264

264:                                              ; preds = %263, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  %265 = load i32, ptr %25, align 4
  switch i32 %265, label %468 [
    i32 0, label %266
  ]

266:                                              ; preds = %264
  br label %267

267:                                              ; preds = %266
  %268 = load i64, ptr %33, align 8, !tbaa !11
  %269 = load i64, ptr %36, align 8, !tbaa !11
  %270 = icmp ne i64 %268, %269
  br i1 %270, label %220, label %271, !llvm.loop !21

271:                                              ; preds = %267
  %272 = load i64, ptr %40, align 8, !tbaa !11
  %273 = icmp ule i64 1, %272
  br i1 %273, label %276, label %274

274:                                              ; preds = %271
  call void @LogAssertFailure(i64 noundef 2049, ptr noundef @.str, ptr noundef @__func__.Purify, ptr noundef @.str.3)
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 2049, ptr noundef @__PRETTY_FUNCTION__.Purify) #10
  unreachable

275:                                              ; No predecessors!
  br label %276

276:                                              ; preds = %275, %271
  %277 = phi i1 [ true, %271 ], [ false, %275 ]
  %278 = load ptr, ptr %18, align 8, !tbaa !13
  %279 = icmp eq ptr null, %278
  br i1 %279, label %280, label %288

280:                                              ; preds = %276
  br label %281

281:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  store i32 1, ptr %46, align 4, !tbaa !9
  %282 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %283 = icmp sle i32 1, %282
  br i1 %283, label %284, label %285

284:                                              ; preds = %281
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage__12_)
  br label %285

285:                                              ; preds = %284, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  br label %286

286:                                              ; preds = %285
  br label %287

287:                                              ; preds = %286
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %468

288:                                              ; preds = %276
  %289 = load ptr, ptr %19, align 8, !tbaa !13
  %290 = icmp eq ptr null, %289
  br i1 %290, label %291, label %299

291:                                              ; preds = %288
  br label %292

292:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #9
  store i32 1, ptr %47, align 4, !tbaa !9
  %293 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %294 = icmp sle i32 1, %293
  br i1 %294, label %295, label %296

295:                                              ; preds = %292
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage__13_)
  br label %296

296:                                              ; preds = %295, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #9
  br label %297

297:                                              ; preds = %296
  br label %298

298:                                              ; preds = %297
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %468

299:                                              ; preds = %288
  %300 = load double, ptr %12, align 8, !tbaa !5
  %301 = call noundef zeroext i1 @_ZSt5isnand(double noundef %300)
  br i1 %301, label %308, label %302

302:                                              ; preds = %299
  %303 = load double, ptr %12, align 8, !tbaa !5
  %304 = call noundef zeroext i1 @_ZSt5isinfd(double noundef %303)
  br i1 %304, label %308, label %305

305:                                              ; preds = %302
  %306 = load double, ptr %12, align 8, !tbaa !5
  %307 = fcmp olt double %306, 0.000000e+00
  br i1 %307, label %308, label %316

308:                                              ; preds = %305, %302, %299
  br label %309

309:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  store i32 1, ptr %48, align 4, !tbaa !9
  %310 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %311 = icmp sle i32 1, %310
  br i1 %311, label %312, label %313

312:                                              ; preds = %309
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage__14_)
  br label %313

313:                                              ; preds = %312, %309
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %468

316:                                              ; preds = %305
  %317 = load double, ptr %12, align 8, !tbaa !5
  %318 = call noundef double @_ZNSt14numeric_limitsIdE3minEv() #9
  %319 = fcmp olt double %317, %318
  br i1 %319, label %320, label %321

320:                                              ; preds = %316
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  br label %321

321:                                              ; preds = %320, %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #9
  store i64 0, ptr %49, align 8, !tbaa !11
  %322 = load i64, ptr %33, align 8, !tbaa !11
  %323 = icmp ult i64 1, %322
  br i1 %323, label %324, label %350

324:                                              ; preds = %321
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #9
  store i64 0, ptr %50, align 8, !tbaa !11
  br label %325

325:                                              ; preds = %345, %324
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  %326 = load i64, ptr %50, align 8, !tbaa !11
  %327 = getelementptr inbounds [30 x i64], ptr %41, i64 0, i64 %326
  %328 = load i64, ptr %327, align 8, !tbaa !11
  store i64 %328, ptr %51, align 8, !tbaa !11
  %329 = load i64, ptr %40, align 8, !tbaa !11
  %330 = load i64, ptr %51, align 8, !tbaa !11
  %331 = urem i64 %329, %330
  %332 = icmp eq i64 0, %331
  br i1 %332, label %335, label %333

333:                                              ; preds = %325
  call void @LogAssertFailure(i64 noundef 2076, ptr noundef @.str, ptr noundef @__func__.Purify, ptr noundef @.str.107)
  call void @__assert_fail(ptr noundef @.str.108, ptr noundef @.str, i32 noundef 2076, ptr noundef @__PRETTY_FUNCTION__.Purify) #10
  unreachable

334:                                              ; No predecessors!
  br label %335

335:                                              ; preds = %334, %325
  %336 = phi i1 [ true, %325 ], [ false, %334 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  %337 = load i64, ptr %40, align 8, !tbaa !11
  %338 = load i64, ptr %51, align 8, !tbaa !11
  %339 = udiv i64 %337, %338
  store i64 %339, ptr %52, align 8, !tbaa !11
  %340 = load i64, ptr %52, align 8, !tbaa !11
  %341 = load i64, ptr %49, align 8, !tbaa !11
  %342 = add i64 %341, %340
  store i64 %342, ptr %49, align 8, !tbaa !11
  %343 = load i64, ptr %50, align 8, !tbaa !11
  %344 = add i64 %343, 1
  store i64 %344, ptr %50, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  br label %345

345:                                              ; preds = %335
  %346 = load i64, ptr %33, align 8, !tbaa !11
  %347 = load i64, ptr %50, align 8, !tbaa !11
  %348 = icmp ne i64 %346, %347
  br i1 %348, label %325, label %349, !llvm.loop !22

349:                                              ; preds = %345
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #9
  br label %350

350:                                              ; preds = %349, %321
  %351 = load i64, ptr %28, align 8, !tbaa !11
  %352 = load i64, ptr %49, align 8, !tbaa !11
  %353 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef 8, i64 noundef %351, i64 noundef %352) #9
  br i1 %353, label %354, label %362

354:                                              ; preds = %350
  br label %355

355:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #9
  store i32 1, ptr %53, align 4, !tbaa !9
  %356 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %357 = icmp sle i32 1, %356
  br i1 %357, label %358, label %359

358:                                              ; preds = %355
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ6PurifyE13LOG__sMessage__15_)
  br label %359

359:                                              ; preds = %358, %355
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #9
  br label %360

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360
  store i32 -3, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %467

362:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #9
  store ptr null, ptr %55, align 8, !tbaa !13
  %363 = load i32, ptr %13, align 4, !tbaa !9
  %364 = icmp ne i32 0, %363
  br i1 %364, label %365, label %391

365:                                              ; preds = %362
  %366 = load i64, ptr %49, align 8, !tbaa !11
  %367 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %366) #9
  br i1 %367, label %368, label %376

368:                                              ; preds = %365
  br label %369

369:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #9
  store i32 2, ptr %56, align 4, !tbaa !9
  %370 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %371 = icmp sle i32 2, %370
  br i1 %371, label %372, label %373

372:                                              ; preds = %369
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ6PurifyE13LOG__sMessage__16_)
  br label %373

373:                                              ; preds = %372, %369
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #9
  br label %374

374:                                              ; preds = %373
  br label %375

375:                                              ; preds = %374
  store i32 -1, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %466

376:                                              ; preds = %365
  %377 = load i64, ptr %49, align 8, !tbaa !11
  %378 = mul i64 8, %377
  %379 = call noalias ptr @malloc(i64 noundef %378) #11
  store ptr %379, ptr %55, align 8, !tbaa !13
  %380 = load ptr, ptr %55, align 8, !tbaa !13
  %381 = icmp eq ptr null, %380
  br i1 %381, label %382, label %390

382:                                              ; preds = %376
  br label %383

383:                                              ; preds = %382
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #9
  store i32 2, ptr %57, align 4, !tbaa !9
  %384 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %385 = icmp sle i32 2, %384
  br i1 %385, label %386, label %387

386:                                              ; preds = %383
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ6PurifyE13LOG__sMessage__17_)
  br label %387

387:                                              ; preds = %386, %383
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #9
  br label %388

388:                                              ; preds = %387
  br label %389

389:                                              ; preds = %388
  store i32 -1, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %466

390:                                              ; preds = %376
  call void @_ZN14NAMESPACE_MAIN19RandomDeterministic10InitializeEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef -9175694745306675706)
  br label %391

391:                                              ; preds = %390, %362
  %392 = load i64, ptr %28, align 8, !tbaa !11
  %393 = icmp ne i64 1, %392
  br i1 %393, label %394, label %408

394:                                              ; preds = %391
  %395 = load i32, ptr %14, align 4, !tbaa !9
  %396 = icmp ne i32 0, %395
  br i1 %396, label %397, label %408

397:                                              ; preds = %394
  %398 = load i64, ptr %28, align 8, !tbaa !11
  %399 = load i64, ptr %40, align 8, !tbaa !11
  %400 = load i64, ptr %49, align 8, !tbaa !11
  %401 = load ptr, ptr %55, align 8, !tbaa !13
  %402 = getelementptr inbounds [30 x i64], ptr %41, i64 0, i64 0
  %403 = load ptr, ptr %18, align 8, !tbaa !13
  %404 = load ptr, ptr %19, align 8, !tbaa !13
  %405 = load ptr, ptr %20, align 8, !tbaa !13
  %406 = load ptr, ptr %21, align 8, !tbaa !13
  %407 = call noundef i32 @_ZN14NAMESPACE_MAINL26PurifyNormalizedMulticlassEmmmPNS_19RandomDeterministicEPmPKmPKdPdS7_S7_(i64 noundef %398, i64 noundef %399, i64 noundef %400, ptr noundef %54, ptr noundef %401, ptr noundef %402, ptr noundef %403, ptr noundef %404, ptr noundef %405, ptr noundef %406)
  store i32 %407, ptr %23, align 4, !tbaa !9
  br label %456

408:                                              ; preds = %394, %391
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #9
  %409 = load i64, ptr %28, align 8, !tbaa !11
  %410 = mul i64 8, %409
  store i64 %410, ptr %58, align 8, !tbaa !11
  %411 = load ptr, ptr %20, align 8, !tbaa !13
  %412 = icmp ne ptr null, %411
  br i1 %412, label %413, label %418

413:                                              ; preds = %408
  %414 = load ptr, ptr %20, align 8, !tbaa !13
  %415 = load i64, ptr %58, align 8, !tbaa !11
  %416 = load i64, ptr %49, align 8, !tbaa !11
  %417 = mul i64 %415, %416
  call void @llvm.memset.p0.i64(ptr align 8 %414, i8 0, i64 %417, i1 false)
  br label %418

418:                                              ; preds = %413, %408
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #9
  %419 = load ptr, ptr %19, align 8, !tbaa !13
  %420 = load i64, ptr %28, align 8, !tbaa !11
  %421 = getelementptr inbounds double, ptr %419, i64 %420
  store ptr %421, ptr %59, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #9
  %422 = load ptr, ptr %19, align 8, !tbaa !13
  store ptr %422, ptr %60, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #9
  %423 = load ptr, ptr %20, align 8, !tbaa !13
  store ptr %423, ptr %61, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #9
  %424 = load ptr, ptr %21, align 8, !tbaa !13
  store ptr %424, ptr %62, align 8, !tbaa !13
  br label %425

425:                                              ; preds = %451, %418
  %426 = load double, ptr %12, align 8, !tbaa !5
  %427 = load i64, ptr %28, align 8, !tbaa !11
  %428 = load i64, ptr %40, align 8, !tbaa !11
  %429 = load i64, ptr %49, align 8, !tbaa !11
  %430 = load ptr, ptr %55, align 8, !tbaa !13
  %431 = getelementptr inbounds [30 x i64], ptr %41, i64 0, i64 0
  %432 = load ptr, ptr %18, align 8, !tbaa !13
  %433 = load ptr, ptr %60, align 8, !tbaa !13
  %434 = load ptr, ptr %61, align 8, !tbaa !13
  %435 = load ptr, ptr %62, align 8, !tbaa !13
  %436 = call noundef i32 @_ZN14NAMESPACE_MAIN14PurifyInternalEdmmmPNS_19RandomDeterministicEPmPKmPKdPdS7_S7_(double noundef %426, i64 noundef %427, i64 noundef %428, i64 noundef %429, ptr noundef %54, ptr noundef %430, ptr noundef %431, ptr noundef %432, ptr noundef %433, ptr noundef %434, ptr noundef %435)
  store i32 %436, ptr %23, align 4, !tbaa !9
  %437 = load ptr, ptr %60, align 8, !tbaa !13
  %438 = getelementptr inbounds double, ptr %437, i32 1
  store ptr %438, ptr %60, align 8, !tbaa !13
  %439 = load ptr, ptr %61, align 8, !tbaa !13
  %440 = icmp ne ptr null, %439
  br i1 %440, label %441, label %444

441:                                              ; preds = %425
  %442 = load ptr, ptr %61, align 8, !tbaa !13
  %443 = getelementptr inbounds double, ptr %442, i32 1
  store ptr %443, ptr %61, align 8, !tbaa !13
  br label %444

444:                                              ; preds = %441, %425
  %445 = load ptr, ptr %62, align 8, !tbaa !13
  %446 = icmp ne ptr null, %445
  br i1 %446, label %447, label %450

447:                                              ; preds = %444
  %448 = load ptr, ptr %62, align 8, !tbaa !13
  %449 = getelementptr inbounds double, ptr %448, i32 1
  store ptr %449, ptr %62, align 8, !tbaa !13
  br label %450

450:                                              ; preds = %447, %444
  br label %451

451:                                              ; preds = %450
  %452 = load ptr, ptr %59, align 8, !tbaa !13
  %453 = load ptr, ptr %60, align 8, !tbaa !13
  %454 = icmp ne ptr %452, %453
  br i1 %454, label %425, label %455, !llvm.loop !23

455:                                              ; preds = %451
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #9
  br label %456

456:                                              ; preds = %455, %397
  %457 = load ptr, ptr %55, align 8, !tbaa !13
  call void @free(ptr noundef %457) #9
  br label %458

458:                                              ; preds = %456
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #9
  store i32 3, ptr %63, align 4, !tbaa !9
  %459 = load i32, ptr @g_traceLevel, align 4, !tbaa !9
  %460 = icmp sle i32 3, %459
  br i1 %460, label %461, label %462

461:                                              ; preds = %458
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZ6PurifyE13LOG__sMessage__18_)
  br label %462

462:                                              ; preds = %461, %458
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #9
  br label %463

463:                                              ; preds = %462
  br label %464

464:                                              ; preds = %463
  %465 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %465, ptr %11, align 4
  store i32 1, ptr %25, align 4
  br label %466

466:                                              ; preds = %464, %389, %375
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #9
  br label %467

467:                                              ; preds = %466, %361
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #9
  br label %468

468:                                              ; preds = %467, %315, %298, %287, %264
  call void @llvm.lifetime.end.p0(i64 240, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  br label %469

469:                                              ; preds = %468, %218, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #9
  br label %470

470:                                              ; preds = %469, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %471

471:                                              ; preds = %470, %165, %154, %146, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %472

472:                                              ; preds = %471, %113, %102, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  %473 = load i32, ptr %11, align 4
  ret i32 %473
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL11ObtainTruthi(i32 noundef) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef, i64 noundef, i64 noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #7

declare void @_ZN14NAMESPACE_MAIN19RandomDeterministic10InitializeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN14NAMESPACE_MAINL26PurifyNormalizedMulticlassEmmmPNS_19RandomDeterministicEPmPKmPKdPdS7_S7_(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #8

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind allocsize(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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind allocsize(0) }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}


; 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.NAMESPACE_MAIN::RandomDeterministic" = type { i64, i64, i64 }

@g_traceLevel = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [80 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZ6PurifyE13LOG__sMessage = external hidden constant [204 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_0 = external hidden constant [24 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_1 = external hidden constant [47 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_2 = external hidden constant [54 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_3 = external hidden constant [61 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_4 = external hidden constant [28 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_5 = external hidden constant [46 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_6 = external hidden constant [81 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_7 = external hidden constant [41 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_8 = external hidden constant [55 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage_9 = external hidden constant [25 x i8], align 16
@__func__.Purify = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.Purify = external hidden unnamed_addr constant [136 x i8], align 1
@_ZZ6PurifyE13LOG__sMessage__10_ = external hidden constant [54 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__11_ = external hidden constant [49 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__12_ = external hidden constant [32 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__13_ = external hidden constant [36 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__14_ = external hidden constant [80 x i8], align 16
@.str.107 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [28 x i8], align 1
@_ZZ6PurifyE13LOG__sMessage__15_ = external hidden constant [68 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__16_ = external hidden constant [66 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__17_ = external hidden constant [37 x i8], align 16
@_ZZ6PurifyE13LOG__sMessage__18_ = external hidden constant [14 x i8], align 1

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

declare void @InteralLogWithArguments(i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

declare void @InteralLogWithoutArguments(i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14NAMESPACE_MAIN14PurifyInternalEdmmmPNS_19RandomDeterministicEPmPKmPKdPdS7_S7_(double noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinfd(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE3minEv() local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @Purify(double noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #4 {
  %11 = alloca [30 x i64], align 16
  %12 = alloca %"class.NAMESPACE_MAIN::RandomDeterministic", align 8
  %13 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 2
  br i1 %14, label %15, label %18

15:                                               ; preds = %10
  %16 = tail call noundef ptr @_ZL11ObtainTruthi(i32 noundef %1)
  %17 = tail call noundef ptr @_ZL11ObtainTruthi(i32 noundef %2)
  tail call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef 3, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage, double noundef %0, ptr noundef %16, ptr noundef %17, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9)
  br label %18

18:                                               ; preds = %15, %10
  %19 = icmp slt i64 %3, 1
  br i1 %19, label %20, label %29

20:                                               ; preds = %18
  %21 = icmp eq i64 %3, 0
  %22 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  br i1 %21, label %23, label %26

23:                                               ; preds = %20
  %24 = icmp sgt i32 %22, 2
  br i1 %24, label %25, label %.thread

25:                                               ; preds = %23
  tail call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_0)
  br label %.thread

26:                                               ; preds = %20
  %27 = icmp sgt i32 %22, 0
  br i1 %27, label %28, label %.thread

28:                                               ; preds = %26
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_1)
  br label %.thread

29:                                               ; preds = %18
  %30 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %3) #9
  br i1 %30, label %31, label %35

31:                                               ; preds = %29
  %32 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %.thread

34:                                               ; preds = %31
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_2)
  br label %.thread

35:                                               ; preds = %29
  %36 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %3) #9
  br i1 %36, label %37, label %41

37:                                               ; preds = %35
  %38 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %40, label %.thread

40:                                               ; preds = %37
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_3)
  br label %.thread

41:                                               ; preds = %35
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %44, label %42

42:                                               ; preds = %41
  %43 = shl i64 %3, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %9, i8 0, i64 %43, i1 false)
  br label %44

44:                                               ; preds = %42, %41
  %45 = icmp slt i64 %4, 1
  br i1 %45, label %46, label %55

46:                                               ; preds = %44
  %47 = icmp eq i64 %4, 0
  %48 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  br i1 %47, label %49, label %52

49:                                               ; preds = %46
  %50 = icmp sgt i32 %48, 2
  br i1 %50, label %51, label %.thread

51:                                               ; preds = %49
  tail call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_4)
  br label %.thread

52:                                               ; preds = %46
  %53 = icmp sgt i32 %48, 0
  br i1 %53, label %54, label %.thread

54:                                               ; preds = %52
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_5)
  br label %.thread

55:                                               ; preds = %44
  %56 = icmp ugt i64 %4, 30
  br i1 %56, label %57, label %61

57:                                               ; preds = %55
  %58 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %59 = icmp sgt i32 %58, 1
  br i1 %59, label %60, label %.thread

60:                                               ; preds = %57
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_6)
  br label %.thread

61:                                               ; preds = %55
  %62 = icmp eq ptr %5, null
  br i1 %62, label %63, label %.preheader173.outer

.preheader173.outer:                              ; preds = %61, %.thread178
  %.0127.ph = phi i64 [ %78, %.thread178 ], [ 0, %61 ]
  %.0123.ph = phi i1 [ true, %.thread178 ], [ false, %61 ]
  br label %.preheader173

63:                                               ; preds = %61
  %64 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %66, label %.thread

66:                                               ; preds = %63
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_7)
  br label %.thread

.preheader173:                                    ; preds = %.preheader173.outer, %76
  %.0127 = phi i64 [ %77, %76 ], [ %.0127.ph, %.preheader173.outer ]
  %67 = getelementptr inbounds i64, ptr %5, i64 %.0127
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = icmp slt i64 %68, 1
  br i1 %69, label %70, label %76

70:                                               ; preds = %.preheader173
  %71 = icmp slt i64 %68, 0
  br i1 %71, label %72, label %.thread178

72:                                               ; preds = %70
  %73 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %75, label %.thread

75:                                               ; preds = %72
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_8)
  br label %.thread

76:                                               ; preds = %.preheader173
  %77 = add nuw nsw i64 %.0127, 1
  %.not153 = icmp eq i64 %77, %4
  br i1 %.not153, label %79, label %.preheader173, !llvm.loop !11

.thread178:                                       ; preds = %70
  %78 = add nuw nsw i64 %.0127, 1
  %.not153180 = icmp eq i64 %78, %4
  br i1 %.not153180, label %.thread182, label %.preheader173.outer, !llvm.loop !11

79:                                               ; preds = %76
  br i1 %.0123.ph, label %.thread182, label %83

.thread182:                                       ; preds = %.thread178, %79
  %80 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %81 = icmp sgt i32 %80, 2
  br i1 %81, label %82, label %.thread

82:                                               ; preds = %.thread182
  tail call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage_9)
  br label %.thread

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %11) #9
  br label %84

84:                                               ; preds = %102, %83
  %.0132 = phi i64 [ 1, %83 ], [ %103, %102 ]
  %.2129 = phi i64 [ 0, %83 ], [ %104, %102 ]
  %85 = getelementptr inbounds i64, ptr %5, i64 %.2129
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = icmp sgt i64 %86, 0
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  tail call void @LogAssertFailure(i64 noundef 2031, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.Purify, ptr noundef nonnull @.str.1)
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, i32 noundef 2031, ptr noundef nonnull @__PRETTY_FUNCTION__.Purify) #10
  unreachable

89:                                               ; preds = %84
  %90 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %86) #9
  br i1 %90, label %91, label %95

91:                                               ; preds = %89
  %92 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %94, label %.thread167

94:                                               ; preds = %91
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__10_)
  br label %.thread167

95:                                               ; preds = %89
  %96 = getelementptr inbounds [30 x i64], ptr %11, i64 0, i64 %.2129
  store i64 %86, ptr %96, align 8, !tbaa !9
  %97 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %.0132, i64 noundef %86) #9
  br i1 %97, label %98, label %102

98:                                               ; preds = %95
  %99 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %100 = icmp sgt i32 %99, 0
  br i1 %100, label %101, label %.thread167

101:                                              ; preds = %98
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__11_)
  br label %.thread167

102:                                              ; preds = %95
  %103 = mul i64 %86, %.0132
  %104 = add nuw nsw i64 %.2129, 1
  %.not154 = icmp eq i64 %104, %4
  br i1 %.not154, label %105, label %84, !llvm.loop !13

105:                                              ; preds = %102
  %.not155 = icmp eq i64 %103, 0
  br i1 %.not155, label %106, label %107

106:                                              ; preds = %105
  tail call void @LogAssertFailure(i64 noundef 2049, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.Purify, ptr noundef nonnull @.str.3)
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 2049, ptr noundef nonnull @__PRETTY_FUNCTION__.Purify) #10
  unreachable

107:                                              ; preds = %105
  %108 = icmp eq ptr %6, null
  br i1 %108, label %109, label %113

109:                                              ; preds = %107
  %110 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %112, label %.thread167

112:                                              ; preds = %109
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__12_)
  br label %.thread167

113:                                              ; preds = %107
  %114 = icmp eq ptr %7, null
  br i1 %114, label %115, label %119

115:                                              ; preds = %113
  %116 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %118, label %.thread167

118:                                              ; preds = %115
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__13_)
  br label %.thread167

119:                                              ; preds = %113
  %120 = tail call noundef zeroext i1 @_ZSt5isnand(double noundef %0)
  br i1 %120, label %124, label %121

121:                                              ; preds = %119
  %122 = tail call noundef zeroext i1 @_ZSt5isinfd(double noundef %0)
  %123 = fcmp olt double %0, 0.000000e+00
  %or.cond = or i1 %123, %122
  br i1 %or.cond, label %124, label %128

124:                                              ; preds = %119, %121
  %125 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %127, label %.thread167

127:                                              ; preds = %124
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__14_)
  br label %.thread167

128:                                              ; preds = %121
  %129 = tail call noundef double @_ZNSt14numeric_limitsIdE3minEv() #9
  %130 = fcmp ogt double %129, %0
  %.0118 = select i1 %130, double 0.000000e+00, double %0
  %.not156 = icmp eq i64 %4, 1
  br i1 %.not156, label %.loopexit172, label %.preheader

.preheader:                                       ; preds = %128, %137
  %.0137 = phi i64 [ %139, %137 ], [ 0, %128 ]
  %.0135 = phi i64 [ %138, %137 ], [ 0, %128 ]
  %131 = getelementptr inbounds [30 x i64], ptr %11, i64 0, i64 %.0137
  %132 = load i64, ptr %131, align 8, !tbaa !9
  %133 = urem i64 %103, %132
  %134 = udiv i64 %103, %132
  %135 = icmp eq i64 %133, 0
  br i1 %135, label %137, label %136

136:                                              ; preds = %.preheader
  tail call void @LogAssertFailure(i64 noundef 2076, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.Purify, ptr noundef nonnull @.str.107)
  tail call void @__assert_fail(ptr noundef nonnull @.str.108, ptr noundef nonnull @.str, i32 noundef 2076, ptr noundef nonnull @__PRETTY_FUNCTION__.Purify) #10
  unreachable

137:                                              ; preds = %.preheader
  %138 = add i64 %134, %.0135
  %139 = add nuw nsw i64 %.0137, 1
  %.not157 = icmp eq i64 %139, %4
  br i1 %.not157, label %.loopexit172, label %.preheader, !llvm.loop !14

.loopexit172:                                     ; preds = %137, %128
  %.1136 = phi i64 [ 0, %128 ], [ %138, %137 ]
  %140 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef 8, i64 noundef %3, i64 noundef %.1136) #9
  br i1 %140, label %141, label %145

141:                                              ; preds = %.loopexit172
  %142 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %143 = icmp sgt i32 %142, 0
  br i1 %143, label %144, label %.thread167

144:                                              ; preds = %141
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__15_)
  br label %.thread167

145:                                              ; preds = %.loopexit172
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #9
  %.not158 = icmp eq i32 %1, 0
  br i1 %.not158, label %161, label %146

146:                                              ; preds = %145
  %147 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %.1136) #9
  br i1 %147, label %148, label %152

148:                                              ; preds = %146
  %149 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %150 = icmp sgt i32 %149, 1
  br i1 %150, label %151, label %180

151:                                              ; preds = %148
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__16_)
  br label %180

152:                                              ; preds = %146
  %153 = shl i64 %.1136, 3
  %154 = tail call noalias ptr @malloc(i64 noundef %153) #11
  %155 = icmp eq ptr %154, null
  br i1 %155, label %156, label %160

156:                                              ; preds = %152
  %157 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %158 = icmp sgt i32 %157, 1
  br i1 %158, label %159, label %180

159:                                              ; preds = %156
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__17_)
  br label %180

160:                                              ; preds = %152
  call void @_ZN14NAMESPACE_MAIN19RandomDeterministic10InitializeEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef -9175694745306675706)
  br label %161

161:                                              ; preds = %160, %145
  %.0126 = phi ptr [ %154, %160 ], [ null, %145 ]
  %162 = icmp ne i64 %3, 1
  %163 = icmp ne i32 %2, 0
  %or.cond4 = and i1 %163, %162
  br i1 %or.cond4, label %164, label %166

164:                                              ; preds = %161
  %165 = call noundef i32 @_ZN14NAMESPACE_MAINL26PurifyNormalizedMulticlassEmmmPNS_19RandomDeterministicEPmPKmPKdPdS7_S7_(i64 noundef %3, i64 noundef %103, i64 noundef %.1136, ptr noundef nonnull %12, ptr noundef %.0126, ptr noundef nonnull %11, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef %8, ptr noundef %9)
  br label %.loopexit

166:                                              ; preds = %161
  %.not159 = icmp eq ptr %8, null
  br i1 %.not159, label %170, label %167

167:                                              ; preds = %166
  %168 = shl i64 %3, 3
  %169 = mul i64 %168, %.1136
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %8, i8 0, i64 %169, i1 false)
  br label %170

170:                                              ; preds = %167, %166
  %171 = getelementptr inbounds double, ptr %7, i64 %3
  br label %172

172:                                              ; preds = %172, %170
  %.0117 = phi ptr [ %7, %170 ], [ %174, %172 ]
  %.0115 = phi ptr [ %8, %170 ], [ %spec.select, %172 ]
  %.0113 = phi ptr [ %9, %170 ], [ %.1114, %172 ]
  %173 = call noundef i32 @_ZN14NAMESPACE_MAIN14PurifyInternalEdmmmPNS_19RandomDeterministicEPmPKmPKdPdS7_S7_(double noundef %.0118, i64 noundef %3, i64 noundef %103, i64 noundef %.1136, ptr noundef nonnull %12, ptr noundef %.0126, ptr noundef nonnull %11, ptr noundef nonnull %6, ptr noundef nonnull %.0117, ptr noundef %.0115, ptr noundef %.0113)
  %174 = getelementptr inbounds i8, ptr %.0117, i64 8
  %.not160 = icmp eq ptr %.0115, null
  %175 = getelementptr inbounds i8, ptr %.0115, i64 8
  %spec.select = select i1 %.not160, ptr null, ptr %175
  %.not161 = icmp eq ptr %.0113, null
  %176 = getelementptr inbounds i8, ptr %.0113, i64 8
  %.1114 = select i1 %.not161, ptr null, ptr %176
  %.not162 = icmp eq ptr %171, %174
  br i1 %.not162, label %.loopexit, label %172, !llvm.loop !15

.loopexit:                                        ; preds = %172, %164
  %.0119 = phi i32 [ %165, %164 ], [ %173, %172 ]
  call void @free(ptr noundef %.0126) #9
  %177 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %178 = icmp sgt i32 %177, 2
  br i1 %178, label %179, label %180

179:                                              ; preds = %.loopexit
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZ6PurifyE13LOG__sMessage__18_)
  br label %180

180:                                              ; preds = %.loopexit, %179, %156, %159, %148, %151
  %.5 = phi i32 [ -1, %151 ], [ -1, %148 ], [ -1, %159 ], [ -1, %156 ], [ %.0119, %179 ], [ %.0119, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #9
  br label %.thread167

.thread167:                                       ; preds = %98, %101, %91, %94, %180, %144, %141, %124, %127, %115, %118, %109, %112
  %.7 = phi i32 [ -3, %112 ], [ -3, %109 ], [ -3, %118 ], [ -3, %115 ], [ -3, %127 ], [ -3, %124 ], [ %.5, %180 ], [ -3, %144 ], [ -3, %141 ], [ -3, %94 ], [ -3, %91 ], [ -3, %101 ], [ -3, %98 ]
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %11) #9
  br label %.thread

.thread:                                          ; preds = %72, %75, %40, %37, %51, %49, %54, %52, %60, %57, %.thread167, %82, %.thread182, %63, %66, %31, %34, %26, %28, %23, %25
  %.11 = phi i32 [ 0, %25 ], [ 0, %23 ], [ -3, %28 ], [ -3, %26 ], [ -3, %34 ], [ -3, %31 ], [ -3, %40 ], [ -3, %37 ], [ 0, %51 ], [ 0, %49 ], [ -3, %54 ], [ -3, %52 ], [ -1, %60 ], [ -1, %57 ], [ -3, %66 ], [ -3, %63 ], [ %.7, %.thread167 ], [ 0, %82 ], [ 0, %.thread182 ], [ -3, %75 ], [ -3, %72 ]
  ret i32 %.11
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL11ObtainTruthi(i32 noundef) 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) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #7

declare void @_ZN14NAMESPACE_MAIN19RandomDeterministic10InitializeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN14NAMESPACE_MAINL26PurifyNormalizedMulticlassEmmmPNS_19RandomDeterministicEPmPKmPKdPdS7_S7_(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { 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 #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 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind allocsize(0) }

!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", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,DivRemPairsPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass