; 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"

@g_traceLevel = external global i32, align 4
@_ZZ15MeasureImpurityE13LOG__sMessage = external hidden constant [132 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_0 = external hidden constant [33 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_1 = external hidden constant [56 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_2 = external hidden constant [63 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_3 = external hidden constant [63 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_4 = external hidden constant [58 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_5 = external hidden constant [55 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_6 = external hidden constant [37 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_7 = external hidden constant [55 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_8 = external hidden constant [90 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_9 = external hidden constant [50 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage__10_ = external hidden constant [64 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage__11_ = external hidden constant [34 x i8], align 16
@.str = external hidden unnamed_addr constant [80 x i8], align 1
@__func__.MeasureImpurity = external hidden unnamed_addr constant [16 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
@__PRETTY_FUNCTION__.MeasureImpurity = external hidden unnamed_addr constant [111 x i8], align 1
@_ZZ15MeasureImpurityE13LOG__sMessage__12_ = external hidden constant [63 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage__13_ = external hidden constant [58 x i8], align 16
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZ15MeasureImpurityE13LOG__sMessage__14_ = external hidden constant [41 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage__15_ = external hidden constant [45 x i8], align 16
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1

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

63:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 3, ptr %14, align 4, !tbaa !11
  %64 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %65 = icmp sle i32 3, %64
  br i1 %65, label %66, label %73

66:                                               ; preds = %63
  %67 = load i64, ptr %8, align 8, !tbaa !5
  %68 = load i64, ptr %9, align 8, !tbaa !5
  %69 = load i64, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %11, align 8, !tbaa !9
  %71 = load ptr, ptr %12, align 8, !tbaa !9
  %72 = load ptr, ptr %13, align 8, !tbaa !9
  call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef 3, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage, i64 noundef %67, i64 noundef %68, i64 noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72)
  br label %73

73:                                               ; preds = %66, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %74

74:                                               ; preds = %73
  %75 = load i64, ptr %8, align 8, !tbaa !5
  %76 = icmp sle i64 %75, 0
  br i1 %76, label %77, label %94

77:                                               ; preds = %74
  %78 = load i64, ptr %8, align 8, !tbaa !5
  %79 = icmp eq i64 0, %78
  br i1 %79, label %80, label %87

80:                                               ; preds = %77
  br label %81

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 3, ptr %15, align 4, !tbaa !11
  %82 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %83 = icmp sle i32 3, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_0)
  br label %85

85:                                               ; preds = %84, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %86

86:                                               ; preds = %85
  store double 0.000000e+00, ptr %7, align 8
  br label %439

87:                                               ; preds = %77
  br label %88

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

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

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

93:                                               ; preds = %92
  store double -3.000000e+00, ptr %7, align 8
  br label %439

94:                                               ; preds = %74
  %95 = load i64, ptr %8, align 8, !tbaa !5
  %96 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %95) #6
  br i1 %96, label %97, label %104

97:                                               ; preds = %94
  br label %98

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

101:                                              ; preds = %98
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_2)
  br label %102

102:                                              ; preds = %101, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %103

103:                                              ; preds = %102
  store double -3.000000e+00, ptr %7, align 8
  br label %439

104:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %105 = load i64, ptr %8, align 8, !tbaa !5
  store i64 %105, ptr %18, align 8, !tbaa !5
  %106 = load i64, ptr %18, align 8, !tbaa !5
  %107 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %106) #6
  br i1 %107, label %108, label %116

108:                                              ; preds = %104
  br label %109

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

112:                                              ; preds = %109
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_3)
  br label %113

113:                                              ; preds = %112, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %438

116:                                              ; preds = %104
  %117 = load i64, ptr %8, align 8, !tbaa !5
  %118 = load i64, ptr %9, align 8, !tbaa !5
  %119 = icmp sle i64 %117, %118
  br i1 %119, label %120, label %128

120:                                              ; preds = %116
  br label %121

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

124:                                              ; preds = %121
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_4)
  br label %125

125:                                              ; preds = %124, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %438

128:                                              ; preds = %116
  %129 = load i64, ptr %9, align 8, !tbaa !5
  %130 = icmp slt i64 %129, 0
  br i1 %130, label %131, label %139

131:                                              ; preds = %128
  br label %132

132:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 1, ptr %22, align 4, !tbaa !11
  %133 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %134 = icmp sle i32 1, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %132
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_5)
  br label %136

136:                                              ; preds = %135, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %438

139:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %140 = load i64, ptr %9, align 8, !tbaa !5
  store i64 %140, ptr %23, align 8, !tbaa !5
  %141 = load i64, ptr %10, align 8, !tbaa !5
  %142 = icmp sle i64 %141, 0
  br i1 %142, label %143, label %162

143:                                              ; preds = %139
  %144 = load i64, ptr %10, align 8, !tbaa !5
  %145 = icmp eq i64 0, %144
  br i1 %145, label %146, label %154

146:                                              ; preds = %143
  br label %147

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

150:                                              ; preds = %147
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_6)
  br label %151

151:                                              ; preds = %150, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  store double 0.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %437

154:                                              ; preds = %143
  br label %155

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 1, ptr %25, align 4, !tbaa !11
  %156 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %157 = icmp sle i32 1, %156
  br i1 %157, label %158, label %159

158:                                              ; preds = %155
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_7)
  br label %159

159:                                              ; preds = %158, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %437

162:                                              ; preds = %139
  %163 = load i64, ptr %10, align 8, !tbaa !5
  %164 = icmp slt i64 30, %163
  br i1 %164, label %165, label %173

165:                                              ; preds = %162
  br label %166

166:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 2, ptr %26, align 4, !tbaa !11
  %167 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %168 = icmp sle i32 2, %167
  br i1 %168, label %169, label %170

169:                                              ; preds = %166
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_8)
  br label %170

170:                                              ; preds = %169, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %171

171:                                              ; preds = %170
  br label %172

172:                                              ; preds = %171
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %437

173:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %174 = load i64, ptr %10, align 8, !tbaa !5
  store i64 %174, ptr %27, align 8, !tbaa !5
  %175 = load ptr, ptr %11, align 8, !tbaa !9
  %176 = icmp eq ptr null, %175
  br i1 %176, label %177, label %185

177:                                              ; preds = %173
  br label %178

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 1, ptr %28, align 4, !tbaa !11
  %179 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %180 = icmp sle i32 1, %179
  br i1 %180, label %181, label %182

181:                                              ; preds = %178
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage_9)
  br label %182

182:                                              ; preds = %181, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %436

185:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  store i8 0, ptr %29, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store i64 0, ptr %30, align 8, !tbaa !5
  br label %186

186:                                              ; preds = %211, %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %187 = load ptr, ptr %11, align 8, !tbaa !9
  %188 = load i64, ptr %30, align 8, !tbaa !5
  %189 = getelementptr inbounds i64, ptr %187, i64 %188
  %190 = load i64, ptr %189, align 8, !tbaa !5
  store i64 %190, ptr %31, align 8, !tbaa !5
  %191 = load i64, ptr %31, align 8, !tbaa !5
  %192 = icmp sle i64 %191, 0
  br i1 %192, label %193, label %205

193:                                              ; preds = %186
  %194 = load i64, ptr %31, align 8, !tbaa !5
  %195 = icmp slt i64 %194, 0
  br i1 %195, label %196, label %204

196:                                              ; preds = %193
  br label %197

197:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 1, ptr %32, align 4, !tbaa !11
  %198 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %199 = icmp sle i32 1, %198
  br i1 %199, label %200, label %201

200:                                              ; preds = %197
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage__10_)
  br label %201

201:                                              ; preds = %200, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %208

204:                                              ; preds = %193
  store i8 1, ptr %29, align 1, !tbaa !13
  br label %205

205:                                              ; preds = %204, %186
  %206 = load i64, ptr %30, align 8, !tbaa !5
  %207 = add i64 %206, 1
  store i64 %207, ptr %30, align 8, !tbaa !5
  store i32 0, ptr %20, align 4
  br label %208

208:                                              ; preds = %205, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  %209 = load i32, ptr %20, align 4
  switch i32 %209, label %435 [
    i32 0, label %210
  ]

210:                                              ; preds = %208
  br label %211

211:                                              ; preds = %210
  %212 = load i64, ptr %27, align 8, !tbaa !5
  %213 = load i64, ptr %30, align 8, !tbaa !5
  %214 = icmp ne i64 %212, %213
  br i1 %214, label %186, label %215, !llvm.loop !15

215:                                              ; preds = %211
  %216 = load i8, ptr %29, align 1, !tbaa !13, !range !17, !noundef !18
  %217 = trunc i8 %216 to i1
  br i1 %217, label %218, label %226

218:                                              ; preds = %215
  br label %219

219:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 3, ptr %33, align 4, !tbaa !11
  %220 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %221 = icmp sle i32 3, %220
  br i1 %221, label %222, label %223

222:                                              ; preds = %219
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage__11_)
  br label %223

223:                                              ; preds = %222, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  store double 0.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %435

226:                                              ; preds = %215
  store i64 0, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store i64 1, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 240, ptr %35) #6
  br label %227

227:                                              ; preds = %274, %226
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %228 = load ptr, ptr %11, align 8, !tbaa !9
  %229 = load i64, ptr %30, align 8, !tbaa !5
  %230 = getelementptr inbounds i64, ptr %228, i64 %229
  %231 = load i64, ptr %230, align 8, !tbaa !5
  store i64 %231, ptr %36, align 8, !tbaa !5
  %232 = load i64, ptr %36, align 8, !tbaa !5
  %233 = icmp sle i64 1, %232
  br i1 %233, label %236, label %234

234:                                              ; preds = %227
  call void @LogAssertFailure(i64 noundef 123, ptr noundef @.str, ptr noundef @__func__.MeasureImpurity, ptr noundef @.str.1)
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str, i32 noundef 123, ptr noundef @__PRETTY_FUNCTION__.MeasureImpurity) #7
  unreachable

235:                                              ; No predecessors!
  br label %236

236:                                              ; preds = %235, %227
  %237 = phi i1 [ true, %227 ], [ false, %235 ]
  %238 = load i64, ptr %36, align 8, !tbaa !5
  %239 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %238) #6
  br i1 %239, label %240, label %248

240:                                              ; preds = %236
  br label %241

241:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  store i32 1, ptr %37, align 4, !tbaa !11
  %242 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %243 = icmp sle i32 1, %242
  br i1 %243, label %244, label %245

244:                                              ; preds = %241
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage__12_)
  br label %245

245:                                              ; preds = %244, %241
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %271

248:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %249 = load i64, ptr %36, align 8, !tbaa !5
  store i64 %249, ptr %38, align 8, !tbaa !5
  %250 = load i64, ptr %38, align 8, !tbaa !5
  %251 = load i64, ptr %30, align 8, !tbaa !5
  %252 = getelementptr inbounds [30 x i64], ptr %35, i64 0, i64 %251
  store i64 %250, ptr %252, align 8, !tbaa !5
  %253 = load i64, ptr %34, align 8, !tbaa !5
  %254 = load i64, ptr %38, align 8, !tbaa !5
  %255 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %253, i64 noundef %254) #6
  br i1 %255, label %256, label %264

256:                                              ; preds = %248
  br label %257

257:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 1, ptr %39, align 4, !tbaa !11
  %258 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %259 = icmp sle i32 1, %258
  br i1 %259, label %260, label %261

260:                                              ; preds = %257
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage__13_)
  br label %261

261:                                              ; preds = %260, %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %270

264:                                              ; preds = %248
  %265 = load i64, ptr %38, align 8, !tbaa !5
  %266 = load i64, ptr %34, align 8, !tbaa !5
  %267 = mul i64 %266, %265
  store i64 %267, ptr %34, align 8, !tbaa !5
  %268 = load i64, ptr %30, align 8, !tbaa !5
  %269 = add i64 %268, 1
  store i64 %269, ptr %30, align 8, !tbaa !5
  store i32 0, ptr %20, align 4
  br label %270

270:                                              ; preds = %264, %263
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %271

271:                                              ; preds = %270, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  %272 = load i32, ptr %20, align 4
  switch i32 %272, label %434 [
    i32 0, label %273
  ]

273:                                              ; preds = %271
  br label %274

274:                                              ; preds = %273
  %275 = load i64, ptr %27, align 8, !tbaa !5
  %276 = load i64, ptr %30, align 8, !tbaa !5
  %277 = icmp ne i64 %275, %276
  br i1 %277, label %227, label %278, !llvm.loop !19

278:                                              ; preds = %274
  %279 = load i64, ptr %34, align 8, !tbaa !5
  %280 = icmp ule i64 1, %279
  br i1 %280, label %283, label %281

281:                                              ; preds = %278
  call void @LogAssertFailure(i64 noundef 141, ptr noundef @.str, ptr noundef @__func__.MeasureImpurity, ptr noundef @.str.3)
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 141, ptr noundef @__PRETTY_FUNCTION__.MeasureImpurity) #7
  unreachable

282:                                              ; No predecessors!
  br label %283

283:                                              ; preds = %282, %278
  %284 = phi i1 [ true, %278 ], [ false, %282 ]
  %285 = load ptr, ptr %12, align 8, !tbaa !9
  %286 = icmp eq ptr null, %285
  br i1 %286, label %287, label %295

287:                                              ; preds = %283
  br label %288

288:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  store i32 1, ptr %40, align 4, !tbaa !11
  %289 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %290 = icmp sle i32 1, %289
  br i1 %290, label %291, label %292

291:                                              ; preds = %288
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage__14_)
  br label %292

292:                                              ; preds = %291, %288
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %293

293:                                              ; preds = %292
  br label %294

294:                                              ; preds = %293
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %434

295:                                              ; preds = %283
  %296 = load ptr, ptr %13, align 8, !tbaa !9
  %297 = icmp eq ptr null, %296
  br i1 %297, label %298, label %306

298:                                              ; preds = %295
  br label %299

299:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 1, ptr %41, align 4, !tbaa !11
  %300 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %301 = icmp sle i32 1, %300
  br i1 %301, label %302, label %303

302:                                              ; preds = %299
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ15MeasureImpurityE13LOG__sMessage__15_)
  br label %303

303:                                              ; preds = %302, %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %304

304:                                              ; preds = %303
  br label %305

305:                                              ; preds = %304
  store double -3.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %434

306:                                              ; preds = %295
  %307 = load ptr, ptr %13, align 8, !tbaa !9
  %308 = load i64, ptr %23, align 8, !tbaa !5
  %309 = getelementptr inbounds double, ptr %307, i64 %308
  store ptr %309, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %310 = load i64, ptr %27, align 8, !tbaa !5
  %311 = getelementptr inbounds [30 x i64], ptr %35, i64 0, i64 %310
  store ptr %311, ptr %42, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %312 = getelementptr inbounds [30 x i64], ptr %35, i64 0, i64 0
  store ptr %312, ptr %43, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  store i64 8, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  store double 0.000000e+00, ptr %45, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  store i64 0, ptr %46, align 8, !tbaa !5
  br label %313

313:                                              ; preds = %428, %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %314 = load ptr, ptr %43, align 8, !tbaa !9
  %315 = load i64, ptr %314, align 8, !tbaa !5
  store i64 %315, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  store i64 0, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  %316 = load i64, ptr %44, align 8, !tbaa !5
  %317 = load i64, ptr %18, align 8, !tbaa !5
  %318 = mul i64 %316, %317
  store i64 %318, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %319 = load i64, ptr %49, align 8, !tbaa !5
  %320 = load i64, ptr %47, align 8, !tbaa !5
  %321 = mul i64 %319, %320
  store i64 %321, ptr %50, align 8, !tbaa !5
  %322 = load i64, ptr %46, align 8, !tbaa !5
  %323 = icmp eq i64 0, %322
  br i1 %323, label %326, label %324

324:                                              ; preds = %313
  call void @LogAssertFailure(i64 noundef 168, ptr noundef @.str, ptr noundef @__func__.MeasureImpurity, ptr noundef @.str.5)
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str, i32 noundef 168, ptr noundef @__PRETTY_FUNCTION__.MeasureImpurity) #7
  unreachable

325:                                              ; No predecessors!
  br label %326

326:                                              ; preds = %325, %313
  %327 = phi i1 [ true, %313 ], [ false, %325 ]
  br label %328

328:                                              ; preds = %326
  br label %329

329:                                              ; preds = %412, %328
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %330 = load i64, ptr %46, align 8, !tbaa !5
  store i64 %330, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #6
  %331 = load i64, ptr %46, align 8, !tbaa !5
  %332 = load i64, ptr %18, align 8, !tbaa !5
  %333 = mul i64 %331, %332
  store i64 %333, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #6
  %334 = load i64, ptr %52, align 8, !tbaa !5
  %335 = load i64, ptr %50, align 8, !tbaa !5
  %336 = add i64 %334, %335
  store i64 %336, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  store double 0.000000e+00, ptr %54, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  store double 0.000000e+00, ptr %55, align 8, !tbaa !20
  br label %337

337:                                              ; preds = %359, %329
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #6
  %338 = load ptr, ptr %12, align 8, !tbaa !9
  %339 = load i64, ptr %51, align 8, !tbaa !5
  %340 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIdEEPKT_S3_m(ptr noundef %338, i64 noundef %339) #6
  %341 = load double, ptr %340, align 8, !tbaa !20
  store double %341, ptr %56, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #6
  %342 = load ptr, ptr %13, align 8, !tbaa !9
  %343 = load i64, ptr %52, align 8, !tbaa !5
  %344 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIdEEPKT_S3_m(ptr noundef %342, i64 noundef %343) #6
  %345 = load double, ptr %344, align 8, !tbaa !20
  store double %345, ptr %57, align 8, !tbaa !20
  %346 = load double, ptr %56, align 8, !tbaa !20
  %347 = load double, ptr %55, align 8, !tbaa !20
  %348 = fadd double %347, %346
  store double %348, ptr %55, align 8, !tbaa !20
  %349 = load double, ptr %56, align 8, !tbaa !20
  %350 = load double, ptr %57, align 8, !tbaa !20
  %351 = load double, ptr %54, align 8, !tbaa !20
  %352 = call double @llvm.fmuladd.f64(double %349, double %350, double %351)
  store double %352, ptr %54, align 8, !tbaa !20
  %353 = load i64, ptr %44, align 8, !tbaa !5
  %354 = load i64, ptr %51, align 8, !tbaa !5
  %355 = add i64 %354, %353
  store i64 %355, ptr %51, align 8, !tbaa !5
  %356 = load i64, ptr %49, align 8, !tbaa !5
  %357 = load i64, ptr %52, align 8, !tbaa !5
  %358 = add i64 %357, %356
  store i64 %358, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  br label %359

359:                                              ; preds = %337
  %360 = load i64, ptr %53, align 8, !tbaa !5
  %361 = load i64, ptr %52, align 8, !tbaa !5
  %362 = icmp ne i64 %360, %361
  br i1 %362, label %337, label %363, !llvm.loop !22

363:                                              ; preds = %359
  %364 = load double, ptr %54, align 8, !tbaa !20
  %365 = load double, ptr %55, align 8, !tbaa !20
  %366 = fdiv double %364, %365
  store double %366, ptr %54, align 8, !tbaa !20
  %367 = load double, ptr %54, align 8, !tbaa !20
  %368 = call noundef double @_ZSt3absd(double noundef %367)
  %369 = load double, ptr %45, align 8, !tbaa !20
  %370 = fadd double %369, %368
  store double %370, ptr %45, align 8, !tbaa !20
  %371 = load i64, ptr %48, align 8, !tbaa !5
  %372 = add i64 %371, 1
  store i64 %372, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #6
  %373 = load i64, ptr %48, align 8, !tbaa !5
  store i64 %373, ptr %58, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #6
  store i64 8, ptr %59, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #6
  %374 = getelementptr inbounds [30 x i64], ptr %35, i64 0, i64 0
  store ptr %374, ptr %60, align 8, !tbaa !9
  br label %375

375:                                              ; preds = %407, %363
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #6
  %376 = load ptr, ptr %60, align 8, !tbaa !9
  %377 = load i64, ptr %376, align 8, !tbaa !5
  store i64 %377, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #6
  %378 = load i64, ptr %59, align 8, !tbaa !5
  %379 = load i64, ptr %61, align 8, !tbaa !5
  %380 = mul i64 %378, %379
  store i64 %380, ptr %62, align 8, !tbaa !5
  %381 = load ptr, ptr %60, align 8, !tbaa !9
  %382 = load ptr, ptr %43, align 8, !tbaa !9
  %383 = icmp ne ptr %381, %382
  br i1 %383, label %384, label %400

384:                                              ; preds = %375
  %385 = load i64, ptr %59, align 8, !tbaa !5
  %386 = load i64, ptr %46, align 8, !tbaa !5
  %387 = add i64 %386, %385
  store i64 %387, ptr %46, align 8, !tbaa !5
  %388 = load i64, ptr %58, align 8, !tbaa !5
  %389 = load i64, ptr %61, align 8, !tbaa !5
  %390 = urem i64 %388, %389
  %391 = icmp ne i64 0, %390
  br i1 %391, label %392, label %393

392:                                              ; preds = %384
  store i32 44, ptr %20, align 4
  br label %404

393:                                              ; preds = %384
  %394 = load i64, ptr %61, align 8, !tbaa !5
  %395 = load i64, ptr %58, align 8, !tbaa !5
  %396 = udiv i64 %395, %394
  store i64 %396, ptr %58, align 8, !tbaa !5
  %397 = load i64, ptr %62, align 8, !tbaa !5
  %398 = load i64, ptr %46, align 8, !tbaa !5
  %399 = sub i64 %398, %397
  store i64 %399, ptr %46, align 8, !tbaa !5
  br label %400

400:                                              ; preds = %393, %375
  %401 = load i64, ptr %62, align 8, !tbaa !5
  store i64 %401, ptr %59, align 8, !tbaa !5
  %402 = load ptr, ptr %60, align 8, !tbaa !9
  %403 = getelementptr inbounds i64, ptr %402, i32 1
  store ptr %403, ptr %60, align 8, !tbaa !9
  store i32 0, ptr %20, align 4
  br label %404

404:                                              ; preds = %400, %392
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  %405 = load i32, ptr %20, align 4
  switch i32 %405, label %412 [
    i32 0, label %406
  ]

406:                                              ; preds = %404
  br label %407

407:                                              ; preds = %406
  %408 = load ptr, ptr %42, align 8, !tbaa !9
  %409 = load ptr, ptr %60, align 8, !tbaa !9
  %410 = icmp ne ptr %408, %409
  br i1 %410, label %375, label %411, !llvm.loop !23

411:                                              ; preds = %407
  store i32 0, ptr %20, align 4
  br label %412

412:                                              ; preds = %411, %404
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  %413 = load i32, ptr %20, align 4
  switch i32 %413, label %441 [
    i32 0, label %414
    i32 44, label %329
  ]

414:                                              ; preds = %412
  br label %415

415:                                              ; preds = %414
  br label %416

416:                                              ; preds = %415
  %417 = load i64, ptr %46, align 8, !tbaa !5
  %418 = icmp eq i64 0, %417
  br i1 %418, label %421, label %419

419:                                              ; preds = %416
  call void @LogAssertFailure(i64 noundef 208, ptr noundef @.str, ptr noundef @__func__.MeasureImpurity, ptr noundef @.str.5)
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str, i32 noundef 208, ptr noundef @__PRETTY_FUNCTION__.MeasureImpurity) #7
  unreachable

420:                                              ; No predecessors!
  br label %421

421:                                              ; preds = %420, %416
  %422 = phi i1 [ true, %416 ], [ false, %420 ]
  %423 = load i64, ptr %47, align 8, !tbaa !5
  %424 = load i64, ptr %44, align 8, !tbaa !5
  %425 = mul i64 %424, %423
  store i64 %425, ptr %44, align 8, !tbaa !5
  %426 = load ptr, ptr %43, align 8, !tbaa !9
  %427 = getelementptr inbounds i64, ptr %426, i32 1
  store ptr %427, ptr %43, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  br label %428

428:                                              ; preds = %421
  %429 = load ptr, ptr %42, align 8, !tbaa !9
  %430 = load ptr, ptr %43, align 8, !tbaa !9
  %431 = icmp ne ptr %429, %430
  br i1 %431, label %313, label %432, !llvm.loop !24

432:                                              ; preds = %428
  %433 = load double, ptr %45, align 8, !tbaa !20
  store double %433, ptr %7, align 8
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  br label %434

434:                                              ; preds = %432, %305, %294, %271
  call void @llvm.lifetime.end.p0(i64 240, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %435

435:                                              ; preds = %434, %225, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  br label %436

436:                                              ; preds = %435, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %437

437:                                              ; preds = %436, %172, %161, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %438

438:                                              ; preds = %437, %138, %127, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %439

439:                                              ; preds = %438, %103, %93, %86
  %440 = load double, ptr %7, align 8
  ret double %440

441:                                              ; preds = %412
  unreachable
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIdEEPKT_S3_m(ptr noundef, i64 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !16}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}


; 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"

@g_traceLevel = external local_unnamed_addr global i32, align 4
@_ZZ15MeasureImpurityE13LOG__sMessage = external hidden constant [132 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_0 = external hidden constant [33 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_1 = external hidden constant [56 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_2 = external hidden constant [63 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_3 = external hidden constant [63 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_4 = external hidden constant [58 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_5 = external hidden constant [55 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_6 = external hidden constant [37 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_7 = external hidden constant [55 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_8 = external hidden constant [90 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage_9 = external hidden constant [50 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage__10_ = external hidden constant [64 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage__11_ = external hidden constant [34 x i8], align 16
@.str = external hidden unnamed_addr constant [80 x i8], align 1
@__func__.MeasureImpurity = external hidden unnamed_addr constant [16 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
@__PRETTY_FUNCTION__.MeasureImpurity = external hidden unnamed_addr constant [111 x i8], align 1
@_ZZ15MeasureImpurityE13LOG__sMessage__12_ = external hidden constant [63 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage__13_ = external hidden constant [58 x i8], align 16
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZ15MeasureImpurityE13LOG__sMessage__14_ = external hidden constant [41 x i8], align 16
@_ZZ15MeasureImpurityE13LOG__sMessage__15_ = external hidden constant [45 x i8], align 16
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local double @MeasureImpurity(i64 noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = alloca [30 x i64], align 16
  %8 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 2
  br i1 %9, label %10, label %11

10:                                               ; preds = %6
  tail call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef 3, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage, i64 noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  br label %11

11:                                               ; preds = %10, %6
  %12 = icmp slt i64 %0, 1
  br i1 %12, label %13, label %22

13:                                               ; preds = %11
  %14 = icmp eq i64 %0, 0
  %15 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  br i1 %14, label %16, label %19

16:                                               ; preds = %13
  %17 = icmp sgt i32 %15, 2
  br i1 %17, label %18, label %.thread

18:                                               ; preds = %16
  tail call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_0)
  br label %.thread

19:                                               ; preds = %13
  %20 = icmp sgt i32 %15, 0
  br i1 %20, label %21, label %.thread

21:                                               ; preds = %19
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_1)
  br label %.thread

22:                                               ; preds = %11
  %23 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %0) #6
  br i1 %23, label %24, label %28

24:                                               ; preds = %22
  %25 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %27, label %.thread

27:                                               ; preds = %24
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_2)
  br label %.thread

28:                                               ; preds = %22
  %29 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 8, i64 noundef %0) #6
  br i1 %29, label %30, label %34

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

33:                                               ; preds = %30
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_3)
  br label %.thread

34:                                               ; preds = %28
  %.not = icmp sgt i64 %0, %1
  br i1 %.not, label %39, label %35

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

38:                                               ; preds = %35
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_4)
  br label %.thread

39:                                               ; preds = %34
  %40 = icmp slt i64 %1, 0
  br i1 %40, label %41, label %45

41:                                               ; preds = %39
  %42 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %44, label %.thread

44:                                               ; preds = %41
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_5)
  br label %.thread

45:                                               ; preds = %39
  %46 = icmp slt i64 %2, 1
  br i1 %46, label %47, label %56

47:                                               ; preds = %45
  %48 = icmp eq i64 %2, 0
  %49 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  br i1 %48, label %50, label %53

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

52:                                               ; preds = %50
  tail call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_6)
  br label %.thread

53:                                               ; preds = %47
  %54 = icmp sgt i32 %49, 0
  br i1 %54, label %55, label %.thread

55:                                               ; preds = %53
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_7)
  br label %.thread

56:                                               ; preds = %45
  %57 = icmp ugt i64 %2, 30
  br i1 %57, label %58, label %62

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

61:                                               ; preds = %58
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_8)
  br label %.thread

62:                                               ; preds = %56
  %63 = icmp eq ptr %3, null
  br i1 %63, label %64, label %.preheader.outer

.preheader.outer:                                 ; preds = %62, %.thread202
  %.0127.ph = phi i64 [ %79, %.thread202 ], [ 0, %62 ]
  %.0122.ph = phi i1 [ true, %.thread202 ], [ false, %62 ]
  br label %.preheader

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

67:                                               ; preds = %64
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage_9)
  br label %.thread

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

71:                                               ; preds = %.preheader
  %72 = icmp slt i64 %69, 0
  br i1 %72, label %73, label %.thread202

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

76:                                               ; preds = %73
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage__10_)
  br label %.thread

77:                                               ; preds = %.preheader
  %78 = add nuw nsw i64 %.0127, 1
  %.not158 = icmp eq i64 %78, %2
  br i1 %.not158, label %80, label %.preheader, !llvm.loop !11

.thread202:                                       ; preds = %71
  %79 = add nuw nsw i64 %.0127, 1
  %.not158204 = icmp eq i64 %79, %2
  br i1 %.not158204, label %.thread206, label %.preheader.outer, !llvm.loop !11

80:                                               ; preds = %77
  br i1 %.0122.ph, label %.thread206, label %84

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

83:                                               ; preds = %.thread206
  tail call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZ15MeasureImpurityE13LOG__sMessage__11_)
  br label %.thread

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %7) #6
  br label %85

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

89:                                               ; preds = %85
  tail call void @LogAssertFailure(i64 noundef 123, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.MeasureImpurity, ptr noundef nonnull @.str.1)
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, i32 noundef 123, ptr noundef nonnull @__PRETTY_FUNCTION__.MeasureImpurity) #7
  unreachable

90:                                               ; preds = %85
  %91 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %87) #6
  br i1 %91, label %92, label %95

92:                                               ; preds = %90
  %93 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %94 = icmp sgt i32 %93, 0
  br i1 %94, label %.thread170.sink.split, label %.thread170

95:                                               ; preds = %90
  %96 = getelementptr inbounds [30 x i64], ptr %7, i64 0, i64 %.2129
  store i64 %87, ptr %96, align 8, !tbaa !9
  %97 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %.0134, i64 noundef %87) #6
  br i1 %97, label %98, label %101

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

101:                                              ; preds = %95
  %102 = mul i64 %87, %.0134
  %103 = add nuw nsw i64 %.2129, 1
  %.not159 = icmp eq i64 %103, %2
  br i1 %.not159, label %104, label %85, !llvm.loop !13

104:                                              ; preds = %101
  %.not160 = icmp eq i64 %102, 0
  br i1 %.not160, label %105, label %106

105:                                              ; preds = %104
  tail call void @LogAssertFailure(i64 noundef 141, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.MeasureImpurity, ptr noundef nonnull @.str.3)
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 141, ptr noundef nonnull @__PRETTY_FUNCTION__.MeasureImpurity) #7
  unreachable

106:                                              ; preds = %104
  %107 = icmp eq ptr %4, null
  br i1 %107, label %108, label %111

108:                                              ; preds = %106
  %109 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %.thread170.sink.split, label %.thread170

111:                                              ; preds = %106
  %112 = icmp eq ptr %5, null
  br i1 %112, label %113, label %116

113:                                              ; preds = %111
  %114 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %115 = icmp sgt i32 %114, 0
  br i1 %115, label %.thread170.sink.split, label %.thread170

116:                                              ; preds = %111
  %117 = getelementptr inbounds double, ptr %5, i64 %1
  %118 = getelementptr inbounds [30 x i64], ptr %7, i64 0, i64 %2
  br label %119

119:                                              ; preds = %153, %116
  %.0145 = phi double [ 0.000000e+00, %116 ], [ %137, %153 ]
  %.0139 = phi i64 [ 8, %116 ], [ %154, %153 ]
  %.0137 = phi ptr [ %7, %116 ], [ %155, %153 ]
  %120 = load i64, ptr %.0137, align 8, !tbaa !9
  %121 = mul i64 %.0139, %0
  %122 = mul i64 %120, %121
  br label %.loopexit

.loopexit:                                        ; preds = %142, %119
  %.1146 = phi double [ %.0145, %119 ], [ %137, %142 ]
  %.1141 = phi i64 [ 0, %119 ], [ %143, %142 ]
  %.0138 = phi i64 [ 0, %119 ], [ %138, %142 ]
  %123 = mul i64 %.1141, %0
  %124 = add i64 %123, %122
  br label %125

125:                                              ; preds = %125, %.loopexit
  %.0133 = phi i64 [ %.1141, %.loopexit ], [ %132, %125 ]
  %.0132 = phi i64 [ %123, %.loopexit ], [ %133, %125 ]
  %.0126 = phi double [ 0.000000e+00, %.loopexit ], [ %131, %125 ]
  %.0125 = phi double [ 0.000000e+00, %.loopexit ], [ %130, %125 ]
  %126 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIdEEPKT_S3_m(ptr noundef nonnull %4, i64 noundef %.0133) #6
  %127 = load double, ptr %126, align 8, !tbaa !14
  %128 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIdEEPKT_S3_m(ptr noundef nonnull %117, i64 noundef %.0132) #6
  %129 = load double, ptr %128, align 8, !tbaa !14
  %130 = fadd double %.0125, %127
  %131 = call double @llvm.fmuladd.f64(double %127, double %129, double %.0126)
  %132 = add i64 %.0133, %.0139
  %133 = add i64 %.0132, %121
  %.not161 = icmp eq i64 %124, %133
  br i1 %.not161, label %134, label %125, !llvm.loop !16

134:                                              ; preds = %125
  %135 = fdiv double %131, %130
  %136 = call noundef double @_ZSt3absd(double noundef %135)
  %137 = fadd double %.1146, %136
  %138 = add i64 %.0138, 1
  br label %139

139:                                              ; preds = %148, %134
  %.2142 = phi i64 [ %.1141, %134 ], [ %.3143, %148 ]
  %.0114 = phi i64 [ %138, %134 ], [ %.1115, %148 ]
  %.0112 = phi i64 [ 8, %134 ], [ %141, %148 ]
  %.0110 = phi ptr [ %7, %134 ], [ %149, %148 ]
  %140 = load i64, ptr %.0110, align 8, !tbaa !9
  %141 = mul i64 %140, %.0112
  %.not162 = icmp eq ptr %.0110, %.0137
  br i1 %.not162, label %148, label %142

142:                                              ; preds = %139
  %143 = add i64 %.0112, %.2142
  %144 = urem i64 %.0114, %140
  %145 = udiv i64 %.0114, %140
  %.not163 = icmp eq i64 %144, 0
  br i1 %.not163, label %146, label %.loopexit

146:                                              ; preds = %142
  %147 = sub i64 %143, %141
  br label %148

148:                                              ; preds = %139, %146
  %.3143 = phi i64 [ %147, %146 ], [ %.2142, %139 ]
  %.1115 = phi i64 [ %145, %146 ], [ %.0114, %139 ]
  %149 = getelementptr inbounds i8, ptr %.0110, i64 8
  %.not164 = icmp eq ptr %118, %149
  br i1 %.not164, label %150, label %139, !llvm.loop !17

150:                                              ; preds = %148
  %151 = icmp eq i64 %.3143, 0
  br i1 %151, label %153, label %152

152:                                              ; preds = %150
  call void @LogAssertFailure(i64 noundef 208, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.MeasureImpurity, ptr noundef nonnull @.str.5)
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str, i32 noundef 208, ptr noundef nonnull @__PRETTY_FUNCTION__.MeasureImpurity) #7
  unreachable

153:                                              ; preds = %150
  %154 = mul i64 %120, %.0139
  %155 = getelementptr inbounds i8, ptr %.0137, i64 8
  %.not165 = icmp eq ptr %118, %155
  br i1 %.not165, label %.thread170, label %119, !llvm.loop !18

.thread170.sink.split:                            ; preds = %113, %108, %98, %92
  %_ZZ15MeasureImpurityE13LOG__sMessage__13_.sink = phi ptr [ @_ZZ15MeasureImpurityE13LOG__sMessage__12_, %92 ], [ @_ZZ15MeasureImpurityE13LOG__sMessage__13_, %98 ], [ @_ZZ15MeasureImpurityE13LOG__sMessage__14_, %108 ], [ @_ZZ15MeasureImpurityE13LOG__sMessage__15_, %113 ]
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull %_ZZ15MeasureImpurityE13LOG__sMessage__13_.sink)
  br label %.thread170

.thread170:                                       ; preds = %153, %.thread170.sink.split, %98, %92, %113, %108
  %.5 = phi double [ -3.000000e+00, %108 ], [ -3.000000e+00, %113 ], [ -3.000000e+00, %92 ], [ -3.000000e+00, %98 ], [ -3.000000e+00, %.thread170.sink.split ], [ %137, %153 ]
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %7) #6
  br label %.thread

.thread:                                          ; preds = %73, %76, %33, %30, %38, %35, %44, %41, %67, %64, %.thread206, %83, %.thread170, %58, %61, %53, %55, %50, %52, %24, %27, %19, %21, %16, %18
  %.10 = phi double [ 0.000000e+00, %18 ], [ 0.000000e+00, %16 ], [ -3.000000e+00, %21 ], [ -3.000000e+00, %19 ], [ -3.000000e+00, %27 ], [ -3.000000e+00, %24 ], [ -3.000000e+00, %33 ], [ -3.000000e+00, %30 ], [ -3.000000e+00, %38 ], [ -3.000000e+00, %35 ], [ -3.000000e+00, %44 ], [ -3.000000e+00, %41 ], [ 0.000000e+00, %52 ], [ 0.000000e+00, %50 ], [ -3.000000e+00, %55 ], [ -3.000000e+00, %53 ], [ -3.000000e+00, %61 ], [ -3.000000e+00, %58 ], [ -3.000000e+00, %67 ], [ -3.000000e+00, %64 ], [ %.5, %.thread170 ], [ 0.000000e+00, %83 ], [ 0.000000e+00, %.thread206 ], [ -3.000000e+00, %76 ], [ -3.000000e+00, %73 ]
  ret double %.10
}

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

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

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

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

; 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 #3

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIdEEPKT_S3_m(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #3

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


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