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

; 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.model = type { %struct.parameter, i32, i32, ptr, ptr, double, double }
%struct.parameter = type { i32, double, double, i32, ptr, ptr, double, double, ptr, i32 }

@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL17solver_type_table = external hidden global [23 x ptr], align 16
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @check_oneclass_model(ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @save_model(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.model, ptr %16, i32 0, i32 2
  %18 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %18, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.model, ptr %19, i32 0, i32 0
  store ptr %20, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.model, ptr %21, i32 0, i32 5
  %23 = load double, ptr %22, align 8, !tbaa !15
  %24 = fcmp oge double %23, 0.000000e+00
  br i1 %24, label %25, label %28

25:                                               ; preds = %2
  %26 = load i32, ptr %7, align 4, !tbaa !14
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %8, align 4, !tbaa !14
  br label %30

28:                                               ; preds = %2
  %29 = load i32, ptr %7, align 4, !tbaa !14
  store i32 %29, ptr %8, align 4, !tbaa !14
  br label %30

30:                                               ; preds = %28, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %31 = load i32, ptr %8, align 4, !tbaa !14
  store i32 %31, ptr %10, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noalias ptr @fopen(ptr noundef %32, ptr noundef @.str.8)
  store ptr %33, ptr %11, align 8, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %30
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %171

37:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %38 = call ptr @setlocale(i32 noundef 6, ptr noundef null) #5
  store ptr %38, ptr %13, align 8, !tbaa !5
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %44

41:                                               ; preds = %37
  %42 = load ptr, ptr %13, align 8, !tbaa !5
  %43 = call noalias ptr @strdup(ptr noundef %42) #5
  store ptr %43, ptr %13, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %41, %37
  %45 = call ptr @setlocale(i32 noundef 6, ptr noundef @.str.9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.model, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !16
  %49 = icmp eq i32 %48, 2
  br i1 %49, label %50, label %57

50:                                               ; preds = %44
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.model, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %struct.parameter, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !17
  %55 = icmp ne i32 %54, 4
  br i1 %55, label %56, label %57

56:                                               ; preds = %50
  store i32 1, ptr %14, align 4, !tbaa !14
  br label %61

57:                                               ; preds = %50, %44
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.model, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !16
  store i32 %60, ptr %14, align 4, !tbaa !14
  br label %61

61:                                               ; preds = %57, %56
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.parameter, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !18
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [23 x ptr], ptr @_ZL17solver_type_table, i64 0, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.10, ptr noundef %68) #5
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.model, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 8, !tbaa !16
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.11, i32 noundef %73) #5
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.model, ptr %75, i32 0, i32 4
  %77 = load ptr, ptr %76, align 8, !tbaa !19
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %104

79:                                               ; preds = %61
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.12) #5
  store i32 0, ptr %6, align 4, !tbaa !14
  br label %82

82:                                               ; preds = %98, %79
  %83 = load i32, ptr %6, align 4, !tbaa !14
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.model, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !16
  %87 = icmp slt i32 %83, %86
  br i1 %87, label %88, label %101

88:                                               ; preds = %82
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.model, ptr %90, i32 0, i32 4
  %92 = load ptr, ptr %91, align 8, !tbaa !19
  %93 = load i32, ptr %6, align 4, !tbaa !14
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !14
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.13, i32 noundef %96) #5
  br label %98

98:                                               ; preds = %88
  %99 = load i32, ptr %6, align 4, !tbaa !14
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %6, align 4, !tbaa !14
  br label %82, !llvm.loop !20

101:                                              ; preds = %82
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.14) #5
  br label %104

104:                                              ; preds = %101, %61
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load i32, ptr %7, align 4, !tbaa !14
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.15, i32 noundef %106) #5
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.model, ptr %109, i32 0, i32 5
  %111 = load double, ptr %110, align 8, !tbaa !15
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.16, double noundef %111) #5
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = call i32 @check_oneclass_model(ptr noundef %113)
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %122

116:                                              ; preds = %104
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.model, ptr %118, i32 0, i32 6
  %120 = load double, ptr %119, align 8, !tbaa !22
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.17, double noundef %120) #5
  br label %122

122:                                              ; preds = %116, %104
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.18) #5
  store i32 0, ptr %6, align 4, !tbaa !14
  br label %125

125:                                              ; preds = %154, %122
  %126 = load i32, ptr %6, align 4, !tbaa !14
  %127 = load i32, ptr %10, align 4, !tbaa !14
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %129, label %157

129:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !14
  br label %130

130:                                              ; preds = %148, %129
  %131 = load i32, ptr %15, align 4, !tbaa !14
  %132 = load i32, ptr %14, align 4, !tbaa !14
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %134, label %151

134:                                              ; preds = %130
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.model, ptr %136, i32 0, i32 3
  %138 = load ptr, ptr %137, align 8, !tbaa !23
  %139 = load i32, ptr %6, align 4, !tbaa !14
  %140 = load i32, ptr %14, align 4, !tbaa !14
  %141 = mul nsw i32 %139, %140
  %142 = load i32, ptr %15, align 4, !tbaa !14
  %143 = add nsw i32 %141, %142
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds double, ptr %138, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !24
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.19, double noundef %146) #5
  br label %148

148:                                              ; preds = %134
  %149 = load i32, ptr %15, align 4, !tbaa !14
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %15, align 4, !tbaa !14
  br label %130, !llvm.loop !25

151:                                              ; preds = %130
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %154

154:                                              ; preds = %151
  %155 = load i32, ptr %6, align 4, !tbaa !14
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %6, align 4, !tbaa !14
  br label %125, !llvm.loop !26

157:                                              ; preds = %125
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = call ptr @setlocale(i32 noundef 6, ptr noundef %158) #5
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %160) #5
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = call i32 @ferror(ptr noundef %161) #5
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %168, label %164

164:                                              ; preds = %157
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = call i32 @fclose(ptr noundef %165)
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %164, %157
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %170

169:                                              ; preds = %164
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %170

170:                                              ; preds = %169, %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %171

171:                                              ; preds = %170, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %172 = load i32, ptr %3, align 4
  ret i32 %172
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

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

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @ferror(ptr noundef) #2

declare i32 @fclose(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { "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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 84}
!10 = !{!"_ZTS5model", !11, i64 0, !12, i64 80, !12, i64 84, !6, i64 88, !6, i64 96, !13, i64 104, !13, i64 112}
!11 = !{!"_ZTS9parameter", !12, i64 0, !13, i64 8, !13, i64 16, !12, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !13, i64 56, !6, i64 64, !12, i64 72}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !13, i64 104}
!16 = !{!10, !12, i64 80}
!17 = !{!10, !12, i64 0}
!18 = !{!11, !12, i64 0}
!19 = !{!10, !6, i64 96}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !13, i64 112}
!23 = !{!10, !6, i64 88}
!24 = !{!13, !13, i64 0}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}


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

@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@_ZL17solver_type_table = external hidden local_unnamed_addr global [23 x ptr], align 16
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @check_oneclass_model(ptr noundef) 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: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local range(i32 -1, 1) i32 @save_model(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %1, i64 84
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 104
  %6 = load double, ptr %5, align 8, !tbaa !13
  %7 = fcmp oge double %6, 0.000000e+00
  %8 = zext i1 %7 to i32
  %.055 = add i32 %4, %8
  %9 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.8)
  %10 = icmp eq ptr %9, null
  br i1 %10, label %69, label %11

11:                                               ; preds = %2
  %12 = tail call ptr @setlocale(i32 noundef 6, ptr noundef null) #6
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %15, label %13

13:                                               ; preds = %11
  %14 = tail call noalias ptr @strdup(ptr noundef nonnull %12) #6
  br label %15

15:                                               ; preds = %13, %11
  %.051 = phi ptr [ %14, %13 ], [ null, %11 ]
  %16 = tail call ptr @setlocale(i32 noundef 6, ptr noundef nonnull @.str.9) #6
  %17 = getelementptr inbounds i8, ptr %1, i64 80
  %18 = load i32, ptr %17, align 8, !tbaa !14
  %19 = icmp ne i32 %18, 2
  %.pre.pre = load i32, ptr %1, align 8, !tbaa !15
  %.not59 = icmp eq i32 %.pre.pre, 4
  %or.cond = or i1 %19, %.not59
  %.050 = select i1 %or.cond, i32 %18, i32 1
  %20 = sext i32 %.pre.pre to i64
  %21 = getelementptr inbounds [23 x ptr], ptr @_ZL17solver_type_table, i64 0, i64 %20
  %22 = load ptr, ptr %21, align 8, !tbaa !16
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.10, ptr noundef %22) #6
  %24 = load i32, ptr %17, align 8, !tbaa !14
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.11, i32 noundef %24) #6
  %26 = getelementptr inbounds i8, ptr %1, i64 96
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %.not60 = icmp eq ptr %27, null
  br i1 %.not60, label %40, label %28

28:                                               ; preds = %15
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.12) #6
  %30 = load i32, ptr %17, align 8, !tbaa !14
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %28, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %28 ]
  %32 = load ptr, ptr %26, align 8, !tbaa !17
  %33 = getelementptr inbounds i32, ptr %32, i64 %indvars.iv
  %34 = load i32, ptr %33, align 4, !tbaa !18
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.13, i32 noundef %34) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = load i32, ptr %17, align 8, !tbaa !14
  %37 = sext i32 %36 to i64
  %38 = icmp slt i64 %indvars.iv.next, %37
  br i1 %38, label %.lr.ph, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %28
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.14) #6
  br label %40

40:                                               ; preds = %._crit_edge, %15
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.15, i32 noundef %4) #6
  %42 = load double, ptr %5, align 8, !tbaa !13
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.16, double noundef %42) #6
  %44 = tail call i32 @check_oneclass_model(ptr noundef nonnull %1)
  %.not61 = icmp eq i32 %44, 0
  br i1 %.not61, label %49, label %45

45:                                               ; preds = %40
  %46 = getelementptr inbounds i8, ptr %1, i64 112
  %47 = load double, ptr %46, align 8, !tbaa !21
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.17, double noundef %47) #6
  br label %49

49:                                               ; preds = %45, %40
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.18) #6
  %51 = icmp sgt i32 %.055, 0
  br i1 %51, label %.preheader.lr.ph, label %._crit_edge69

.preheader.lr.ph:                                 ; preds = %49
  %52 = icmp sgt i32 %.050, 0
  %53 = getelementptr inbounds i8, ptr %1, i64 88
  br i1 %52, label %.preheader.us.preheader, label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %54 = zext nneg i32 %.050 to i64
  %wide.trip.count79 = zext nneg i32 %.055 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge67.us
  %indvars.iv76 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next77, %._crit_edge67.us ]
  %55 = mul nuw nsw i64 %indvars.iv76, %54
  br label %56

56:                                               ; preds = %.preheader.us, %56
  %indvars.iv72 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next73, %56 ]
  %57 = load ptr, ptr %53, align 8, !tbaa !22
  %58 = getelementptr inbounds double, ptr %57, i64 %indvars.iv72
  %59 = getelementptr inbounds double, ptr %58, i64 %55
  %60 = load double, ptr %59, align 8, !tbaa !23
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.19, double noundef %60) #6
  %indvars.iv.next73 = add nuw nsw i64 %indvars.iv72, 1
  %exitcond75.not = icmp eq i64 %indvars.iv.next73, %54
  br i1 %exitcond75.not, label %._crit_edge67.us, label %56, !llvm.loop !24

._crit_edge67.us:                                 ; preds = %56
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.14) #6
  %indvars.iv.next77 = add nuw nsw i64 %indvars.iv76, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next77, %wide.trip.count79
  br i1 %exitcond80.not, label %._crit_edge69, label %.preheader.us, !llvm.loop !25

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %.15468 = phi i32 [ %64, %.preheader ], [ 0, %.preheader.lr.ph ]
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.14) #6
  %64 = add nuw nsw i32 %.15468, 1
  %exitcond.not = icmp eq i32 %64, %.055
  br i1 %exitcond.not, label %._crit_edge69, label %.preheader, !llvm.loop !25

._crit_edge69:                                    ; preds = %.preheader, %._crit_edge67.us, %49
  %65 = tail call ptr @setlocale(i32 noundef 6, ptr noundef %.051) #6
  tail call void @free(ptr noundef %.051) #6
  %66 = tail call i32 @ferror(ptr noundef nonnull %9) #6
  %.not62 = icmp eq i32 %66, 0
  br i1 %.not62, label %67, label %69

67:                                               ; preds = %._crit_edge69
  %68 = tail call i32 @fclose(ptr noundef nonnull %9)
  %.not63 = icmp ne i32 %68, 0
  %spec.select = sext i1 %.not63 to i32
  br label %69

69:                                               ; preds = %67, %._crit_edge69, %2
  %.1 = phi i32 [ -1, %2 ], [ -1, %._crit_edge69 ], [ %spec.select, %67 ]
  ret i32 %.1
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind memory(read)
declare noundef i32 @ferror(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn 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 #5 = { nofree nounwind 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 #6 = { 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, !8, i64 84}
!6 = !{!"_ZTS5model", !7, i64 0, !8, i64 80, !8, i64 84, !12, i64 88, !12, i64 96, !11, i64 104, !11, i64 112}
!7 = !{!"_ZTS9parameter", !8, i64 0, !11, i64 8, !11, i64 16, !8, i64 24, !12, i64 32, !12, i64 40, !11, i64 48, !11, i64 56, !12, i64 64, !8, i64 72}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!6, !11, i64 104}
!14 = !{!6, !8, i64 80}
!15 = !{!7, !8, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!6, !12, i64 96}
!18 = !{!8, !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !11, i64 112}
!22 = !{!6, !12, i64 88}
!23 = !{!11, !11, i64 0}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass