; LLVM IR from softmin/ReHLine-SVM :: liblinear (train)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.parameter = type { i32, double, double, i32, ptr, ptr, double, double, ptr, i32 }

@stderr = external global ptr, align 8
@param = external dso_local global %struct.parameter, align 8
@flag_find_parameters = external dso_local global i32, align 4
@flag_cross_validation = external dso_local global i32, align 4
@flag_C_specified = external dso_local global i32, align 4
@flag_p_specified = external dso_local global i32, align 4
@nr_fold = external dso_local global i32, align 4
@flag_solver_specified = external dso_local global i32, align 4
@bias = external dso_local global double, align 8
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [69 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @print_null(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @exit_with_help() #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @parse_command_line(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store ptr null, ptr %10, align 8, !tbaa !9
  store i32 1, ptr @param, align 8, !tbaa !11
  store double 1.000000e+00, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 2), align 8, !tbaa !14
  store double 1.000000e-01, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 6), align 8, !tbaa !15
  store double 5.000000e-01, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 7), align 8, !tbaa !16
  store double 0x7FF0000000000000, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  store i32 0, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 3), align 8, !tbaa !18
  store i32 1, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 9), align 8, !tbaa !19
  store ptr null, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 4), align 8, !tbaa !20
  store ptr null, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 5), align 8, !tbaa !21
  store ptr null, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 8), align 8, !tbaa !22
  store i32 0, ptr @flag_cross_validation, align 4, !tbaa !5
  store i32 0, ptr @flag_C_specified, align 4, !tbaa !5
  store i32 0, ptr @flag_p_specified, align 4, !tbaa !5
  store i32 0, ptr @flag_solver_specified, align 4, !tbaa !5
  store i32 0, ptr @flag_find_parameters, align 4, !tbaa !5
  store double -1.000000e+00, ptr @bias, align 8, !tbaa !23
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %157, %4
  %13 = load i32, ptr %9, align 4, !tbaa !5
  %14 = load i32, ptr %5, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %16, label %160

16:                                               ; preds = %12
  %17 = load ptr, ptr %6, align 8, !tbaa !9
  %18 = load i32, ptr %9, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds ptr, ptr %17, i64 %19
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %21, i64 0
  %23 = load i8, ptr %22, align 1, !tbaa !24
  %24 = sext i8 %23 to i32
  %25 = icmp ne i32 %24, 45
  br i1 %25, label %26, label %27

26:                                               ; preds = %16
  br label %160

27:                                               ; preds = %16
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %9, align 4, !tbaa !5
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = icmp sge i32 %29, %30
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  call void @exit_with_help()
  br label %33

33:                                               ; preds = %32, %27
  %34 = load ptr, ptr %6, align 8, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !5
  %36 = sub nsw i32 %35, 1
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds ptr, ptr %34, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %39, i64 1
  %41 = load i8, ptr %40, align 1, !tbaa !24
  %42 = sext i8 %41 to i32
  switch i32 %42, label %144 [
    i32 115, label %43
    i32 99, label %50
    i32 112, label %57
    i32 110, label %64
    i32 101, label %71
    i32 66, label %78
    i32 119, label %85
    i32 118, label %122
    i32 113, label %135
    i32 67, label %138
    i32 82, label %141
  ]

43:                                               ; preds = %33
  %44 = load ptr, ptr %6, align 8, !tbaa !9
  %45 = load i32, ptr %9, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds ptr, ptr %44, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = call i32 @atoi(ptr noundef %48) #8
  store i32 %49, ptr @param, align 8, !tbaa !11
  store i32 1, ptr @flag_solver_specified, align 4, !tbaa !5
  br label %156

50:                                               ; preds = %33
  %51 = load ptr, ptr %6, align 8, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %51, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = call double @atof(ptr noundef %55) #8
  store double %56, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 2), align 8, !tbaa !14
  store i32 1, ptr @flag_C_specified, align 4, !tbaa !5
  br label %156

57:                                               ; preds = %33
  store i32 1, ptr @flag_p_specified, align 4, !tbaa !5
  %58 = load ptr, ptr %6, align 8, !tbaa !9
  %59 = load i32, ptr %9, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %58, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = call double @atof(ptr noundef %62) #8
  store double %63, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 6), align 8, !tbaa !15
  br label %156

64:                                               ; preds = %33
  %65 = load ptr, ptr %6, align 8, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %65, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call double @atof(ptr noundef %69) #8
  store double %70, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 7), align 8, !tbaa !16
  br label %156

71:                                               ; preds = %33
  %72 = load ptr, ptr %6, align 8, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %72, i64 %74
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = call double @atof(ptr noundef %76) #8
  store double %77, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  br label %156

78:                                               ; preds = %33
  %79 = load ptr, ptr %6, align 8, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %79, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = call double @atof(ptr noundef %83) #8
  store double %84, ptr @bias, align 8, !tbaa !23
  br label %156

85:                                               ; preds = %33
  %86 = load i32, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 3), align 8, !tbaa !18
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 3), align 8, !tbaa !18
  %88 = load ptr, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 4), align 8, !tbaa !20
  %89 = load i32, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 3), align 8, !tbaa !18
  %90 = sext i32 %89 to i64
  %91 = mul i64 4, %90
  %92 = call ptr @realloc(ptr noundef %88, i64 noundef %91) #9
  store ptr %92, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 4), align 8, !tbaa !20
  %93 = load ptr, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 5), align 8, !tbaa !21
  %94 = load i32, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 3), align 8, !tbaa !18
  %95 = sext i32 %94 to i64
  %96 = mul i64 8, %95
  %97 = call ptr @realloc(ptr noundef %93, i64 noundef %96) #9
  store ptr %97, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 5), align 8, !tbaa !21
  %98 = load ptr, ptr %6, align 8, !tbaa !9
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = sub nsw i32 %99, 1
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds ptr, ptr %98, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds i8, ptr %103, i64 2
  %105 = call i32 @atoi(ptr noundef %104) #8
  %106 = load ptr, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 4), align 8, !tbaa !20
  %107 = load i32, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 3), align 8, !tbaa !18
  %108 = sub nsw i32 %107, 1
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %106, i64 %109
  store i32 %105, ptr %110, align 4, !tbaa !5
  %111 = load ptr, ptr %6, align 8, !tbaa !9
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds ptr, ptr %111, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !9
  %116 = call double @atof(ptr noundef %115) #8
  %117 = load ptr, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 5), align 8, !tbaa !21
  %118 = load i32, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 3), align 8, !tbaa !18
  %119 = sub nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %117, i64 %120
  store double %116, ptr %121, align 8, !tbaa !23
  br label %156

122:                                              ; preds = %33
  store i32 1, ptr @flag_cross_validation, align 4, !tbaa !5
  %123 = load ptr, ptr %6, align 8, !tbaa !9
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds ptr, ptr %123, i64 %125
  %127 = load ptr, ptr %126, align 8, !tbaa !9
  %128 = call i32 @atoi(ptr noundef %127) #8
  store i32 %128, ptr @nr_fold, align 4, !tbaa !5
  %129 = load i32, ptr @nr_fold, align 4, !tbaa !5
  %130 = icmp slt i32 %129, 2
  br i1 %130, label %131, label %134

131:                                              ; preds = %122
  %132 = load ptr, ptr @stderr, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.10) #7
  call void @exit_with_help()
  br label %134

134:                                              ; preds = %131, %122
  br label %156

135:                                              ; preds = %33
  store ptr @print_null, ptr %10, align 8, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !5
  %137 = add nsw i32 %136, -1
  store i32 %137, ptr %9, align 4, !tbaa !5
  br label %156

138:                                              ; preds = %33
  store i32 1, ptr @flag_find_parameters, align 4, !tbaa !5
  %139 = load i32, ptr %9, align 4, !tbaa !5
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr %9, align 4, !tbaa !5
  br label %156

141:                                              ; preds = %33
  store i32 0, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 9), align 8, !tbaa !19
  %142 = load i32, ptr %9, align 4, !tbaa !5
  %143 = add nsw i32 %142, -1
  store i32 %143, ptr %9, align 4, !tbaa !5
  br label %156

144:                                              ; preds = %33
  %145 = load ptr, ptr @stderr, align 8, !tbaa !9
  %146 = load ptr, ptr %6, align 8, !tbaa !9
  %147 = load i32, ptr %9, align 4, !tbaa !5
  %148 = sub nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds ptr, ptr %146, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %151, i64 1
  %153 = load i8, ptr %152, align 1, !tbaa !24
  %154 = sext i8 %153 to i32
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.11, i32 noundef %154) #7
  call void @exit_with_help()
  br label %156

156:                                              ; preds = %144, %141, %138, %135, %134, %85, %78, %71, %64, %57, %50, %43
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %9, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %9, align 4, !tbaa !5
  br label %12, !llvm.loop !25

160:                                              ; preds = %26, %12
  %161 = load ptr, ptr %10, align 8, !tbaa !9
  call void @set_print_string_function(ptr noundef %161)
  %162 = load i32, ptr %9, align 4, !tbaa !5
  %163 = load i32, ptr %5, align 4, !tbaa !5
  %164 = icmp sge i32 %162, %163
  br i1 %164, label %165, label %166

165:                                              ; preds = %160
  call void @exit_with_help()
  br label %166

166:                                              ; preds = %165, %160
  %167 = load ptr, ptr %7, align 8, !tbaa !9
  %168 = load ptr, ptr %6, align 8, !tbaa !9
  %169 = load i32, ptr %9, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds ptr, ptr %168, i64 %170
  %172 = load ptr, ptr %171, align 8, !tbaa !9
  %173 = call ptr @strcpy(ptr noundef %167, ptr noundef %172) #7
  %174 = load i32, ptr %9, align 4, !tbaa !5
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = sub nsw i32 %175, 1
  %177 = icmp slt i32 %174, %176
  br i1 %177, label %178, label %187

178:                                              ; preds = %166
  %179 = load ptr, ptr %8, align 8, !tbaa !9
  %180 = load ptr, ptr %6, align 8, !tbaa !9
  %181 = load i32, ptr %9, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds ptr, ptr %180, i64 %183
  %185 = load ptr, ptr %184, align 8, !tbaa !9
  %186 = call ptr @strcpy(ptr noundef %179, ptr noundef %185) #7
  br label %209

187:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %188 = load ptr, ptr %6, align 8, !tbaa !9
  %189 = load i32, ptr %9, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds ptr, ptr %188, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !9
  %193 = call ptr @strrchr(ptr noundef %192, i32 noundef 47) #8
  store ptr %193, ptr %11, align 8, !tbaa !9
  %194 = load ptr, ptr %11, align 8, !tbaa !9
  %195 = icmp eq ptr %194, null
  br i1 %195, label %196, label %202

196:                                              ; preds = %187
  %197 = load ptr, ptr %6, align 8, !tbaa !9
  %198 = load i32, ptr %9, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds ptr, ptr %197, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !9
  store ptr %201, ptr %11, align 8, !tbaa !9
  br label %205

202:                                              ; preds = %187
  %203 = load ptr, ptr %11, align 8, !tbaa !9
  %204 = getelementptr inbounds i8, ptr %203, i32 1
  store ptr %204, ptr %11, align 8, !tbaa !9
  br label %205

205:                                              ; preds = %202, %196
  %206 = load ptr, ptr %8, align 8, !tbaa !9
  %207 = load ptr, ptr %11, align 8, !tbaa !9
  %208 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %206, ptr noundef @.str.12, ptr noundef %207) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %209

209:                                              ; preds = %205, %178
  %210 = load i32, ptr @flag_find_parameters, align 4, !tbaa !5
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %236

212:                                              ; preds = %209
  %213 = load i32, ptr @flag_cross_validation, align 4, !tbaa !5
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %216, label %215

215:                                              ; preds = %212
  store i32 5, ptr @nr_fold, align 4, !tbaa !5
  br label %216

216:                                              ; preds = %215, %212
  %217 = load i32, ptr @flag_solver_specified, align 4, !tbaa !5
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %222, label %219

219:                                              ; preds = %216
  %220 = load ptr, ptr @stderr, align 8, !tbaa !9
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef @.str.13) #7
  store i32 2, ptr @param, align 8, !tbaa !11
  br label %235

222:                                              ; preds = %216
  %223 = load i32, ptr @param, align 8, !tbaa !11
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %234

225:                                              ; preds = %222
  %226 = load i32, ptr @param, align 8, !tbaa !11
  %227 = icmp ne i32 %226, 2
  br i1 %227, label %228, label %234

228:                                              ; preds = %225
  %229 = load i32, ptr @param, align 8, !tbaa !11
  %230 = icmp ne i32 %229, 11
  br i1 %230, label %231, label %234

231:                                              ; preds = %228
  %232 = load ptr, ptr @stderr, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.14) #7
  call void @exit_with_help()
  br label %234

234:                                              ; preds = %231, %228, %225, %222
  br label %235

235:                                              ; preds = %234, %219
  br label %236

236:                                              ; preds = %235, %209
  %237 = load double, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  %238 = fcmp oeq double %237, 0x7FF0000000000000
  br i1 %238, label %239, label %248

239:                                              ; preds = %236
  %240 = load i32, ptr @param, align 8, !tbaa !11
  switch i32 %240, label %247 [
    i32 0, label %241
    i32 2, label %241
    i32 11, label %242
    i32 1, label %243
    i32 3, label %243
    i32 4, label %243
    i32 7, label %243
    i32 5, label %244
    i32 6, label %244
    i32 13, label %245
    i32 12, label %245
    i32 21, label %246
  ]

241:                                              ; preds = %239, %239
  store double 1.000000e-02, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  br label %247

242:                                              ; preds = %239
  store double 1.000000e-04, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  br label %247

243:                                              ; preds = %239, %239, %239, %239
  store double 1.000000e-01, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  br label %247

244:                                              ; preds = %239, %239
  store double 1.000000e-02, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  br label %247

245:                                              ; preds = %239, %239
  store double 1.000000e-01, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  br label %247

246:                                              ; preds = %239
  store double 1.000000e-02, ptr getelementptr inbounds (%struct.parameter, ptr @param, i32 0, i32 1), align 8, !tbaa !17
  br label %247

247:                                              ; preds = %246, %245, %244, %243, %242, %241, %239
  br label %248

248:                                              ; preds = %247, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  ret void
}

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

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #3

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #4

declare void @set_print_string_function(ptr noundef) #5

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strrchr(ptr noundef, i32 noundef) #6

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1

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

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"parameter", !6, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !13, i64 56, !10, i64 64, !6, i64 72}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !13, i64 16}
!15 = !{!12, !13, i64 48}
!16 = !{!12, !13, i64 56}
!17 = !{!12, !13, i64 8}
!18 = !{!12, !6, i64 24}
!19 = !{!12, !6, i64 72}
!20 = !{!12, !10, i64 32}
!21 = !{!12, !10, i64 40}
!22 = !{!12, !10, i64 64}
!23 = !{!13, !13, i64 0}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.parameter = type { i32, double, double, i32, ptr, ptr, double, double, ptr, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@param = external dso_local local_unnamed_addr global %struct.parameter, align 8
@flag_find_parameters = external dso_local local_unnamed_addr global i32, align 4
@flag_cross_validation = external dso_local local_unnamed_addr global i32, align 4
@flag_C_specified = external dso_local local_unnamed_addr global i32, align 4
@flag_p_specified = external dso_local local_unnamed_addr global i32, align 4
@nr_fold = external dso_local local_unnamed_addr global i32, align 4
@flag_solver_specified = external dso_local local_unnamed_addr global i32, align 4
@bias = external dso_local local_unnamed_addr global double, align 8
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [69 x i8], align 1
@switch.table.parse_command_line = private unnamed_addr constant [22 x double] [double 1.000000e-02, double 1.000000e-01, double 1.000000e-02, double 1.000000e-01, double 1.000000e-01, double 1.000000e-02, double 1.000000e-02, double 1.000000e-01, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02, double 1.000000e-04, double 1.000000e-01, double 1.000000e-01, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02, double 1.000000e-02], align 8

; Function Attrs: nounwind uwtable
declare dso_local void @print_null(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @exit_with_help() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @parse_command_line(i32 noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  store i32 1, ptr @param, align 8, !tbaa !5
  store <2 x double> <double 1.000000e-01, double 5.000000e-01>, ptr getelementptr inbounds (i8, ptr @param, i64 48), align 8, !tbaa !12
  store <2 x double> <double 0x7FF0000000000000, double 1.000000e+00>, ptr getelementptr inbounds (i8, ptr @param, i64 8), align 8, !tbaa !12
  store i32 0, ptr getelementptr inbounds (i8, ptr @param, i64 24), align 8, !tbaa !13
  store i32 1, ptr getelementptr inbounds (i8, ptr @param, i64 72), align 8, !tbaa !14
  store ptr null, ptr getelementptr inbounds (i8, ptr @param, i64 64), align 8, !tbaa !15
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @param, i64 32), i8 0, i64 16, i1 false)
  store i32 0, ptr @flag_cross_validation, align 4, !tbaa !16
  store i32 0, ptr @flag_C_specified, align 4, !tbaa !16
  store i32 0, ptr @flag_p_specified, align 4, !tbaa !16
  store i32 0, ptr @flag_solver_specified, align 4, !tbaa !16
  store i32 0, ptr @flag_find_parameters, align 4, !tbaa !16
  store double -1.000000e+00, ptr @bias, align 8, !tbaa !12
  %5 = icmp sgt i32 %0, 1
  br i1 %5, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4, %90
  %.05367 = phi ptr [ %.1, %90 ], [ null, %4 ]
  %.05466 = phi i32 [ %91, %90 ], [ 1, %4 ]
  %6 = sext i32 %.05466 to i64
  %7 = getelementptr inbounds ptr, ptr %1, i64 %6
  %8 = load ptr, ptr %7, align 8, !tbaa !17
  %9 = load i8, ptr %8, align 1, !tbaa !18
  %.not = icmp eq i8 %9, 45
  br i1 %.not, label %10, label %.thread

.thread:                                          ; preds = %.lr.ph
  tail call void @set_print_string_function(ptr noundef %.05367) #8
  br label %93

10:                                               ; preds = %.lr.ph
  %11 = add nsw i32 %.05466, 1
  %.not58 = icmp slt i32 %11, %0
  br i1 %.not58, label %13, label %12

12:                                               ; preds = %10
  tail call void @exit_with_help()
  %.pre = load ptr, ptr %7, align 8, !tbaa !17
  br label %13

13:                                               ; preds = %12, %10
  %14 = phi ptr [ %.pre, %12 ], [ %8, %10 ]
  %15 = getelementptr inbounds i8, ptr %14, i64 1
  %16 = load i8, ptr %15, align 1, !tbaa !18
  switch i8 %16, label %86 [
    i8 115, label %17
    i8 99, label %22
    i8 112, label %27
    i8 110, label %32
    i8 101, label %37
    i8 66, label %42
    i8 119, label %47
    i8 118, label %75
    i8 113, label %90
    i8 67, label %84
    i8 82, label %85
  ]

17:                                               ; preds = %13
  %18 = sext i32 %11 to i64
  %19 = getelementptr inbounds ptr, ptr %1, i64 %18
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = tail call i32 @atoi(ptr nocapture noundef %20) #9
  store i32 %21, ptr @param, align 8, !tbaa !5
  store i32 1, ptr @flag_solver_specified, align 4, !tbaa !16
  br label %90

22:                                               ; preds = %13
  %23 = sext i32 %11 to i64
  %24 = getelementptr inbounds ptr, ptr %1, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %26 = tail call double @atof(ptr noundef %25) #9
  store double %26, ptr getelementptr inbounds (i8, ptr @param, i64 16), align 8, !tbaa !19
  store i32 1, ptr @flag_C_specified, align 4, !tbaa !16
  br label %90

27:                                               ; preds = %13
  store i32 1, ptr @flag_p_specified, align 4, !tbaa !16
  %28 = sext i32 %11 to i64
  %29 = getelementptr inbounds ptr, ptr %1, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %31 = tail call double @atof(ptr noundef %30) #9
  store double %31, ptr getelementptr inbounds (i8, ptr @param, i64 48), align 8, !tbaa !20
  br label %90

32:                                               ; preds = %13
  %33 = sext i32 %11 to i64
  %34 = getelementptr inbounds ptr, ptr %1, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  %36 = tail call double @atof(ptr noundef %35) #9
  store double %36, ptr getelementptr inbounds (i8, ptr @param, i64 56), align 8, !tbaa !21
  br label %90

37:                                               ; preds = %13
  %38 = sext i32 %11 to i64
  %39 = getelementptr inbounds ptr, ptr %1, i64 %38
  %40 = load ptr, ptr %39, align 8, !tbaa !17
  %41 = tail call double @atof(ptr noundef %40) #9
  store double %41, ptr getelementptr inbounds (i8, ptr @param, i64 8), align 8, !tbaa !22
  br label %90

42:                                               ; preds = %13
  %43 = sext i32 %11 to i64
  %44 = getelementptr inbounds ptr, ptr %1, i64 %43
  %45 = load ptr, ptr %44, align 8, !tbaa !17
  %46 = tail call double @atof(ptr noundef %45) #9
  store double %46, ptr @bias, align 8, !tbaa !12
  br label %90

47:                                               ; preds = %13
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @param, i64 24), align 8, !tbaa !13
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr getelementptr inbounds (i8, ptr @param, i64 24), align 8, !tbaa !13
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @param, i64 32), align 8, !tbaa !23
  %51 = sext i32 %49 to i64
  %52 = shl nsw i64 %51, 2
  %53 = tail call ptr @realloc(ptr noundef %50, i64 noundef %52) #10
  store ptr %53, ptr getelementptr inbounds (i8, ptr @param, i64 32), align 8, !tbaa !23
  %54 = load ptr, ptr getelementptr inbounds (i8, ptr @param, i64 40), align 8, !tbaa !24
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @param, i64 24), align 8, !tbaa !13
  %56 = sext i32 %55 to i64
  %57 = shl nsw i64 %56, 3
  %58 = tail call ptr @realloc(ptr noundef %54, i64 noundef %57) #10
  store ptr %58, ptr getelementptr inbounds (i8, ptr @param, i64 40), align 8, !tbaa !24
  %59 = load ptr, ptr %7, align 8, !tbaa !17
  %60 = getelementptr inbounds i8, ptr %59, i64 2
  %61 = tail call i32 @atoi(ptr nocapture noundef %60) #9
  %62 = load ptr, ptr getelementptr inbounds (i8, ptr @param, i64 32), align 8, !tbaa !23
  %63 = load i32, ptr getelementptr inbounds (i8, ptr @param, i64 24), align 8, !tbaa !13
  %64 = sext i32 %63 to i64
  %65 = getelementptr i32, ptr %62, i64 %64
  %66 = getelementptr i8, ptr %65, i64 -4
  store i32 %61, ptr %66, align 4, !tbaa !16
  %67 = sext i32 %11 to i64
  %68 = getelementptr inbounds ptr, ptr %1, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !17
  %70 = tail call double @atof(ptr noundef %69) #9
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @param, i64 24), align 8, !tbaa !13
  %72 = sext i32 %71 to i64
  %73 = getelementptr double, ptr %58, i64 %72
  %74 = getelementptr i8, ptr %73, i64 -8
  store double %70, ptr %74, align 8, !tbaa !12
  br label %90

75:                                               ; preds = %13
  store i32 1, ptr @flag_cross_validation, align 4, !tbaa !16
  %76 = sext i32 %11 to i64
  %77 = getelementptr inbounds ptr, ptr %1, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %79 = tail call i32 @atoi(ptr nocapture noundef %78) #9
  store i32 %79, ptr @nr_fold, align 4, !tbaa !16
  %80 = icmp slt i32 %79, 2
  br i1 %80, label %81, label %90

81:                                               ; preds = %75
  %82 = load ptr, ptr @stderr, align 8, !tbaa !17
  %83 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.10) #11
  tail call void @exit_with_help()
  br label %90

84:                                               ; preds = %13
  store i32 1, ptr @flag_find_parameters, align 4, !tbaa !16
  br label %90

85:                                               ; preds = %13
  store i32 0, ptr getelementptr inbounds (i8, ptr @param, i64 72), align 8, !tbaa !14
  br label %90

86:                                               ; preds = %13
  %87 = sext i8 %16 to i32
  %88 = load ptr, ptr @stderr, align 8, !tbaa !17
  %89 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str.11, i32 noundef %87) #11
  tail call void @exit_with_help()
  br label %90

90:                                               ; preds = %13, %17, %22, %27, %32, %37, %42, %47, %84, %85, %86, %81, %75
  %.155 = phi i32 [ %11, %86 ], [ %.05466, %85 ], [ %.05466, %84 ], [ %11, %81 ], [ %11, %75 ], [ %11, %47 ], [ %11, %42 ], [ %11, %37 ], [ %11, %32 ], [ %11, %27 ], [ %11, %22 ], [ %11, %17 ], [ %.05466, %13 ]
  %.1 = phi ptr [ %.05367, %86 ], [ %.05367, %85 ], [ %.05367, %84 ], [ %.05367, %81 ], [ %.05367, %75 ], [ %.05367, %47 ], [ %.05367, %42 ], [ %.05367, %37 ], [ %.05367, %32 ], [ %.05367, %27 ], [ %.05367, %22 ], [ %.05367, %17 ], [ @print_null, %13 ]
  %91 = add nsw i32 %.155, 1
  %92 = icmp slt i32 %91, %0
  br i1 %92, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %90, %4
  %.054.lcssa = phi i32 [ 1, %4 ], [ %91, %90 ]
  %.053.lcssa = phi ptr [ null, %4 ], [ %.1, %90 ]
  tail call void @set_print_string_function(ptr noundef %.053.lcssa) #8
  tail call void @exit_with_help()
  %.pre71 = sext i32 %.054.lcssa to i64
  br label %93

93:                                               ; preds = %.thread, %._crit_edge
  %.pre-phi = phi i64 [ %6, %.thread ], [ %.pre71, %._crit_edge ]
  %.05465 = phi i32 [ %.05466, %.thread ], [ %.054.lcssa, %._crit_edge ]
  %94 = getelementptr inbounds ptr, ptr %1, i64 %.pre-phi
  %95 = load ptr, ptr %94, align 8, !tbaa !17
  %96 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) %95) #8
  %97 = add nsw i32 %0, -1
  %98 = icmp slt i32 %.05465, %97
  br i1 %98, label %99, label %103

99:                                               ; preds = %93
  %100 = getelementptr i8, ptr %94, i64 8
  %101 = load ptr, ptr %100, align 8, !tbaa !17
  %102 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %101) #8
  br label %109

103:                                              ; preds = %93
  %104 = load ptr, ptr %94, align 8, !tbaa !17
  %105 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) %104, i32 noundef 47) #9
  %106 = icmp eq ptr %105, null
  %107 = getelementptr inbounds i8, ptr %105, i64 1
  %.0 = select i1 %106, ptr %104, ptr %107
  %108 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str.12, ptr noundef %.0) #8
  br label %109

109:                                              ; preds = %103, %99
  %110 = load i32, ptr @flag_find_parameters, align 4, !tbaa !16
  %.not60 = icmp eq i32 %110, 0
  br i1 %.not60, label %124, label %111

111:                                              ; preds = %109
  %112 = load i32, ptr @flag_cross_validation, align 4, !tbaa !16
  %.not61 = icmp eq i32 %112, 0
  br i1 %.not61, label %113, label %114

113:                                              ; preds = %111
  store i32 5, ptr @nr_fold, align 4, !tbaa !16
  br label %114

114:                                              ; preds = %113, %111
  %115 = load i32, ptr @flag_solver_specified, align 4, !tbaa !16
  %.not62 = icmp eq i32 %115, 0
  br i1 %.not62, label %116, label %119

116:                                              ; preds = %114
  %117 = load ptr, ptr @stderr, align 8, !tbaa !17
  %118 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef nonnull @.str.13) #11
  store i32 2, ptr @param, align 8, !tbaa !5
  br label %124

119:                                              ; preds = %114
  %120 = load i32, ptr @param, align 8
  switch i32 %120, label %121 [
    i32 11, label %124
    i32 2, label %124
    i32 0, label %124
  ]

121:                                              ; preds = %119
  %122 = load ptr, ptr @stderr, align 8, !tbaa !17
  %123 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.14) #11
  tail call void @exit_with_help()
  br label %124

124:                                              ; preds = %119, %119, %119, %116, %121, %109
  %125 = load double, ptr getelementptr inbounds (i8, ptr @param, i64 8), align 8, !tbaa !22
  %126 = fcmp oeq double %125, 0x7FF0000000000000
  br i1 %126, label %127, label %131

127:                                              ; preds = %124
  %128 = load i32, ptr @param, align 8, !tbaa !5
  %129 = icmp ult i32 %128, 22
  br i1 %129, label %switch.hole_check, label %131

switch.hole_check:                                ; preds = %127
  %switch.shifted = lshr i32 2111743, %128
  %switch.lobit = trunc i32 %switch.shifted to i1
  br i1 %switch.lobit, label %switch.lookup, label %131

switch.lookup:                                    ; preds = %switch.hole_check
  %130 = zext nneg i32 %128 to i64
  %switch.gep = getelementptr inbounds [22 x double], ptr @switch.table.parse_command_line, i64 0, i64 %130
  %switch.load = load double, ptr %switch.gep, align 8
  store double %switch.load, ptr getelementptr inbounds (i8, ptr @param, i64 8), align 8, !tbaa !22
  br label %131

131:                                              ; preds = %switch.hole_check, %127, %switch.lookup, %124
  ret void
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #3

declare void @set_print_string_function(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strrchr(ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

attributes #0 = { 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 #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #4 = { "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 nofree nounwind willreturn memory(argmem: readwrite) "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 nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(1) }
attributes #11 = { cold nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"parameter", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !11, i64 40, !10, i64 48, !10, i64 56, !11, i64 64, !7, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 72}
!15 = !{!6, !11, i64 64}
!16 = !{!7, !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!8, !8, i64 0}
!19 = !{!6, !10, i64 16}
!20 = !{!6, !10, i64 48}
!21 = !{!6, !10, i64 56}
!22 = !{!6, !10, i64 8}
!23 = !{!6, !11, i64 32}
!24 = !{!6, !11, i64 40}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass