; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/vl (svm)

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

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__.vl_svm_new_with_abstract_data = external hidden unnamed_addr constant [104 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = 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: nounwind uwtable
define dso_local ptr @vl_svm_new_with_abstract_data(i32 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, double noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !11
  store i64 %3, ptr %11, align 8, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !9
  store double %5, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %16 = call ptr @vl_calloc(i64 noundef 1, i64 noundef 296)
  store ptr %16, ptr %14, align 8, !tbaa !9
  %17 = load i64, ptr %10, align 8, !tbaa !11
  %18 = icmp uge i64 %17, 1
  br i1 %18, label %19, label %20

19:                                               ; preds = %6
  br label %21

20:                                               ; preds = %6
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1023, ptr noundef @__PRETTY_FUNCTION__.vl_svm_new_with_abstract_data) #6
  unreachable

21:                                               ; preds = %19
  %22 = load i64, ptr %11, align 8, !tbaa !11
  %23 = icmp uge i64 %22, 1
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  br label %26

25:                                               ; preds = %21
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 1024, ptr noundef @__PRETTY_FUNCTION__.vl_svm_new_with_abstract_data) #6
  unreachable

26:                                               ; preds = %24
  %27 = load ptr, ptr %12, align 8, !tbaa !9
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  br label %31

30:                                               ; preds = %26
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 1025, ptr noundef @__PRETTY_FUNCTION__.vl_svm_new_with_abstract_data) #6
  unreachable

31:                                               ; preds = %29
  %32 = load i32, ptr %8, align 4, !tbaa !5
  %33 = load ptr, ptr %14, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.VlSvm_, ptr %33, i32 0, i32 0
  store i32 %32, ptr %34, align 8, !tbaa !15
  %35 = load i64, ptr %10, align 8, !tbaa !11
  %36 = load ptr, ptr %14, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.VlSvm_, ptr %36, i32 0, i32 1
  store i64 %35, ptr %37, align 8, !tbaa !18
  %38 = load ptr, ptr %14, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct.VlSvm_, ptr %38, i32 0, i32 2
  store ptr null, ptr %39, align 8, !tbaa !19
  %40 = load ptr, ptr %14, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.VlSvm_, ptr %40, i32 0, i32 3
  store double 0.000000e+00, ptr %41, align 8, !tbaa !20
  %42 = load ptr, ptr %14, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.VlSvm_, ptr %42, i32 0, i32 4
  store double 1.000000e+00, ptr %43, align 8, !tbaa !21
  %44 = load double, ptr %13, align 8, !tbaa !13
  %45 = load ptr, ptr %14, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.VlSvm_, ptr %45, i32 0, i32 5
  store double %44, ptr %46, align 8, !tbaa !22
  %47 = load ptr, ptr %9, align 8, !tbaa !9
  %48 = load ptr, ptr %14, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.VlSvm_, ptr %48, i32 0, i32 6
  store ptr %47, ptr %49, align 8, !tbaa !23
  %50 = load i64, ptr %11, align 8, !tbaa !11
  %51 = load ptr, ptr %14, align 8, !tbaa !9
  %52 = getelementptr inbounds %struct.VlSvm_, ptr %51, i32 0, i32 7
  store i64 %50, ptr %52, align 8, !tbaa !24
  %53 = load ptr, ptr %12, align 8, !tbaa !9
  %54 = load ptr, ptr %14, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.VlSvm_, ptr %54, i32 0, i32 8
  store ptr %53, ptr %55, align 8, !tbaa !25
  %56 = load i64, ptr %11, align 8, !tbaa !11
  %57 = load ptr, ptr %14, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.VlSvm_, ptr %57, i32 0, i32 13
  store i64 %56, ptr %58, align 8, !tbaa !26
  %59 = load ptr, ptr %14, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.VlSvm_, ptr %59, i32 0, i32 11
  store ptr null, ptr %60, align 8, !tbaa !27
  %61 = load ptr, ptr %14, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.VlSvm_, ptr %61, i32 0, i32 12
  store ptr null, ptr %62, align 8, !tbaa !28
  %63 = load ptr, ptr %14, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.VlSvm_, ptr %63, i32 0, i32 14
  store ptr @vl_svm_hinge_loss, ptr %64, align 8, !tbaa !29
  %65 = load ptr, ptr %14, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.VlSvm_, ptr %65, i32 0, i32 15
  store ptr @vl_svm_hinge_conjugate_loss, ptr %66, align 8, !tbaa !30
  %67 = load ptr, ptr %14, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.VlSvm_, ptr %67, i32 0, i32 16
  store ptr @vl_svm_hinge_loss_derivative, ptr %68, align 8, !tbaa !31
  %69 = load ptr, ptr %14, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.VlSvm_, ptr %69, i32 0, i32 17
  store ptr @vl_svm_hinge_dca_update, ptr %70, align 8, !tbaa !32
  %71 = load ptr, ptr %14, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.VlSvm_, ptr %71, i32 0, i32 18
  store ptr null, ptr %72, align 8, !tbaa !33
  %73 = load ptr, ptr %14, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.VlSvm_, ptr %73, i32 0, i32 19
  store ptr null, ptr %74, align 8, !tbaa !34
  %75 = load ptr, ptr %14, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.VlSvm_, ptr %75, i32 0, i32 20
  store i64 0, ptr %76, align 8, !tbaa !35
  %77 = load i64, ptr %11, align 8, !tbaa !11
  %78 = uitofp i64 %77 to double
  %79 = load double, ptr %13, align 8, !tbaa !13
  %80 = fdiv double 1.000000e+01, %79
  %81 = fptrunc double %80 to float
  %82 = call i64 @vl_ceil_f(float noundef %81)
  %83 = sitofp i64 %82 to double
  %84 = fcmp ogt double %78, %83
  br i1 %84, label %85, label %88

85:                                               ; preds = %31
  %86 = load i64, ptr %11, align 8, !tbaa !11
  %87 = uitofp i64 %86 to double
  br label %94

88:                                               ; preds = %31
  %89 = load double, ptr %13, align 8, !tbaa !13
  %90 = fdiv double 1.000000e+01, %89
  %91 = fptrunc double %90 to float
  %92 = call i64 @vl_ceil_f(float noundef %91)
  %93 = sitofp i64 %92 to double
  br label %94

94:                                               ; preds = %88, %85
  %95 = phi double [ %87, %85 ], [ %93, %88 ]
  %96 = fptoui double %95 to i64
  %97 = load ptr, ptr %14, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.VlSvm_, ptr %97, i32 0, i32 21
  store i64 %96, ptr %98, align 8, !tbaa !36
  %99 = load ptr, ptr %14, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.VlSvm_, ptr %99, i32 0, i32 22
  store double 1.000000e-02, ptr %100, align 8, !tbaa !37
  %101 = load ptr, ptr %14, align 8, !tbaa !9
  %102 = getelementptr inbounds %struct.VlSvm_, ptr %101, i32 0, i32 25
  store double 1.000000e-02, ptr %102, align 8, !tbaa !38
  %103 = load ptr, ptr %14, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.VlSvm_, ptr %103, i32 0, i32 26
  store ptr null, ptr %104, align 8, !tbaa !39
  %105 = load i64, ptr %10, align 8, !tbaa !11
  %106 = call ptr @vl_calloc(i64 noundef %105, i64 noundef 8)
  %107 = load ptr, ptr %14, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct.VlSvm_, ptr %107, i32 0, i32 2
  store ptr %106, ptr %108, align 8, !tbaa !19
  %109 = load ptr, ptr %14, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.VlSvm_, ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %110, align 8, !tbaa !19
  %112 = icmp eq ptr %111, null
  br i1 %112, label %113, label %114

113:                                              ; preds = %94
  br label %144

114:                                              ; preds = %94
  %115 = load ptr, ptr %14, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.VlSvm_, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !15
  %118 = icmp eq i32 %117, 2
  br i1 %118, label %119, label %132

119:                                              ; preds = %114
  %120 = load ptr, ptr %14, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.VlSvm_, ptr %120, i32 0, i32 7
  %122 = load i64, ptr %121, align 8, !tbaa !24
  %123 = call ptr @vl_calloc(i64 noundef %122, i64 noundef 8)
  %124 = load ptr, ptr %14, align 8, !tbaa !9
  %125 = getelementptr inbounds %struct.VlSvm_, ptr %124, i32 0, i32 26
  store ptr %123, ptr %125, align 8, !tbaa !39
  %126 = load ptr, ptr %14, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.VlSvm_, ptr %126, i32 0, i32 26
  %128 = load ptr, ptr %127, align 8, !tbaa !39
  %129 = icmp eq ptr %128, null
  br i1 %129, label %130, label %131

130:                                              ; preds = %119
  br label %144

131:                                              ; preds = %119
  br label %132

132:                                              ; preds = %131, %114
  %133 = load i64, ptr %11, align 8, !tbaa !11
  %134 = call ptr @vl_calloc(i64 noundef %133, i64 noundef 8)
  %135 = load ptr, ptr %14, align 8, !tbaa !9
  %136 = getelementptr inbounds %struct.VlSvm_, ptr %135, i32 0, i32 24
  store ptr %134, ptr %136, align 8, !tbaa !40
  %137 = load ptr, ptr %14, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct.VlSvm_, ptr %137, i32 0, i32 24
  %139 = load ptr, ptr %138, align 8, !tbaa !40
  %140 = icmp eq ptr %139, null
  br i1 %140, label %141, label %142

141:                                              ; preds = %132
  br label %144

142:                                              ; preds = %132
  %143 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %143, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %178

144:                                              ; preds = %141, %130, %113
  %145 = load ptr, ptr %14, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.VlSvm_, ptr %145, i32 0, i32 24
  %147 = load ptr, ptr %146, align 8, !tbaa !40
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %155

149:                                              ; preds = %144
  %150 = load ptr, ptr %14, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct.VlSvm_, ptr %150, i32 0, i32 24
  %152 = load ptr, ptr %151, align 8, !tbaa !40
  call void @vl_free(ptr noundef %152)
  %153 = load ptr, ptr %14, align 8, !tbaa !9
  %154 = getelementptr inbounds %struct.VlSvm_, ptr %153, i32 0, i32 24
  store ptr null, ptr %154, align 8, !tbaa !40
  br label %155

155:                                              ; preds = %149, %144
  %156 = load ptr, ptr %14, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.VlSvm_, ptr %156, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !19
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %166

160:                                              ; preds = %155
  %161 = load ptr, ptr %14, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.VlSvm_, ptr %161, i32 0, i32 2
  %163 = load ptr, ptr %162, align 8, !tbaa !19
  call void @vl_free(ptr noundef %163)
  %164 = load ptr, ptr %14, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.VlSvm_, ptr %164, i32 0, i32 2
  store ptr null, ptr %165, align 8, !tbaa !19
  br label %166

166:                                              ; preds = %160, %155
  %167 = load ptr, ptr %14, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.VlSvm_, ptr %167, i32 0, i32 26
  %169 = load ptr, ptr %168, align 8, !tbaa !39
  %170 = icmp ne ptr %169, null
  br i1 %170, label %171, label %177

171:                                              ; preds = %166
  %172 = load ptr, ptr %14, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct.VlSvm_, ptr %172, i32 0, i32 26
  %174 = load ptr, ptr %173, align 8, !tbaa !39
  call void @vl_free(ptr noundef %174)
  %175 = load ptr, ptr %14, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.VlSvm_, ptr %175, i32 0, i32 26
  store ptr null, ptr %176, align 8, !tbaa !39
  br label %177

177:                                              ; preds = %171, %166
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %178

178:                                              ; preds = %177, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %179 = load ptr, ptr %7, align 8
  ret ptr %179
}

declare ptr @vl_calloc(i64 noundef, i64 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local double @vl_svm_hinge_loss(double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @vl_svm_hinge_conjugate_loss(double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @vl_svm_hinge_loss_derivative(double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local double @vl_svm_hinge_dca_update(double noundef, double noundef, double noundef, double noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @vl_ceil_f(float noundef) #4

declare void @vl_free(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint 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 #5 = { nounwind }
attributes #6 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"VlSvm_", !6, i64 0, !12, i64 8, !10, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !10, i64 48, !12, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !12, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !12, i64 160, !12, i64 168, !14, i64 176, !17, i64 184, !10, i64 272, !14, i64 280, !10, i64 288}
!17 = !{!"VlSvmStatistics_", !6, i64 0, !12, i64 8, !12, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80}
!18 = !{!16, !12, i64 8}
!19 = !{!16, !10, i64 16}
!20 = !{!16, !14, i64 24}
!21 = !{!16, !14, i64 32}
!22 = !{!16, !14, i64 40}
!23 = !{!16, !10, i64 48}
!24 = !{!16, !12, i64 56}
!25 = !{!16, !10, i64 64}
!26 = !{!16, !12, i64 104}
!27 = !{!16, !10, i64 88}
!28 = !{!16, !10, i64 96}
!29 = !{!16, !10, i64 112}
!30 = !{!16, !10, i64 120}
!31 = !{!16, !10, i64 128}
!32 = !{!16, !10, i64 136}
!33 = !{!16, !10, i64 144}
!34 = !{!16, !10, i64 152}
!35 = !{!16, !12, i64 160}
!36 = !{!16, !12, i64 168}
!37 = !{!16, !14, i64 176}
!38 = !{!16, !14, i64 280}
!39 = !{!16, !10, i64 288}
!40 = !{!16, !10, i64 272}


; 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 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__.vl_svm_new_with_abstract_data = external hidden unnamed_addr constant [104 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @vl_svm_new_with_abstract_data(i32 noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, double noundef %5) local_unnamed_addr #0 {
  %7 = tail call ptr @vl_calloc(i64 noundef 1, i64 noundef 296) #5
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %8, label %9

8:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1023, ptr noundef nonnull @__PRETTY_FUNCTION__.vl_svm_new_with_abstract_data) #6
  unreachable

9:                                                ; preds = %6
  %.not64 = icmp eq i64 %3, 0
  br i1 %.not64, label %10, label %11

10:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 1024, ptr noundef nonnull @__PRETTY_FUNCTION__.vl_svm_new_with_abstract_data) #6
  unreachable

11:                                               ; preds = %9
  %.not65 = icmp eq ptr %4, null
  br i1 %.not65, label %12, label %13

12:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 1025, ptr noundef nonnull @__PRETTY_FUNCTION__.vl_svm_new_with_abstract_data) #6
  unreachable

13:                                               ; preds = %11
  store i32 %0, ptr %7, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 %2, ptr %14, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %7, i64 16
  %16 = getelementptr inbounds i8, ptr %7, i64 32
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, i8 0, i64 16, i1 false)
  store double 1.000000e+00, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %7, i64 40
  store double %5, ptr %17, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %7, i64 48
  store ptr %1, ptr %18, align 8, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %7, i64 56
  store i64 %3, ptr %19, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %7, i64 64
  store ptr %4, ptr %20, align 8, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %7, i64 104
  store i64 %3, ptr %21, align 8, !tbaa !20
  %22 = getelementptr inbounds i8, ptr %7, i64 88
  %23 = getelementptr inbounds i8, ptr %7, i64 112
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %22, i8 0, i64 16, i1 false)
  store ptr @vl_svm_hinge_loss, ptr %23, align 8, !tbaa !21
  %24 = getelementptr inbounds i8, ptr %7, i64 120
  store ptr @vl_svm_hinge_conjugate_loss, ptr %24, align 8, !tbaa !22
  %25 = getelementptr inbounds i8, ptr %7, i64 128
  store ptr @vl_svm_hinge_loss_derivative, ptr %25, align 8, !tbaa !23
  %26 = getelementptr inbounds i8, ptr %7, i64 136
  store ptr @vl_svm_hinge_dca_update, ptr %26, align 8, !tbaa !24
  %27 = getelementptr inbounds i8, ptr %7, i64 144
  %28 = uitofp i64 %3 to double
  %29 = fdiv double 1.000000e+01, %5
  %30 = fptrunc double %29 to float
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %27, i8 0, i64 24, i1 false)
  %31 = tail call i64 @vl_ceil_f(float noundef %30)
  %32 = sitofp i64 %31 to double
  %33 = fcmp ogt double %28, %32
  br i1 %33, label %37, label %34

34:                                               ; preds = %13
  %35 = tail call i64 @vl_ceil_f(float noundef %30)
  %36 = sitofp i64 %35 to double
  br label %37

37:                                               ; preds = %13, %34
  %38 = phi double [ %36, %34 ], [ %28, %13 ]
  %39 = fptoui double %38 to i64
  %40 = getelementptr inbounds i8, ptr %7, i64 168
  store i64 %39, ptr %40, align 8, !tbaa !25
  %41 = getelementptr inbounds i8, ptr %7, i64 176
  store double 1.000000e-02, ptr %41, align 8, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %7, i64 280
  store double 1.000000e-02, ptr %42, align 8, !tbaa !27
  %43 = getelementptr inbounds i8, ptr %7, i64 288
  store ptr null, ptr %43, align 8, !tbaa !28
  %44 = tail call ptr @vl_calloc(i64 noundef %2, i64 noundef 8) #5
  store ptr %44, ptr %15, align 8, !tbaa !29
  %45 = icmp eq ptr %44, null
  br i1 %45, label %57, label %46

46:                                               ; preds = %37
  %47 = load i32, ptr %7, align 8, !tbaa !5
  %48 = icmp eq i32 %47, 2
  br i1 %48, label %49, label %53

49:                                               ; preds = %46
  %50 = load i64, ptr %19, align 8, !tbaa !18
  %51 = tail call ptr @vl_calloc(i64 noundef %50, i64 noundef 8) #5
  store ptr %51, ptr %43, align 8, !tbaa !28
  %52 = icmp eq ptr %51, null
  br i1 %52, label %57, label %53

53:                                               ; preds = %49, %46
  %54 = tail call ptr @vl_calloc(i64 noundef %3, i64 noundef 8) #5
  %55 = getelementptr inbounds i8, ptr %7, i64 272
  store ptr %54, ptr %55, align 8, !tbaa !30
  %56 = icmp eq ptr %54, null
  br i1 %56, label %57, label %67

57:                                               ; preds = %53, %49, %37
  %58 = getelementptr inbounds i8, ptr %7, i64 272
  %59 = load ptr, ptr %58, align 8, !tbaa !30
  %.not66 = icmp eq ptr %59, null
  br i1 %.not66, label %61, label %60

60:                                               ; preds = %57
  tail call void @vl_free(ptr noundef nonnull %59) #5
  store ptr null, ptr %58, align 8, !tbaa !30
  br label %61

61:                                               ; preds = %60, %57
  %62 = load ptr, ptr %15, align 8, !tbaa !29
  %.not67 = icmp eq ptr %62, null
  br i1 %.not67, label %64, label %63

63:                                               ; preds = %61
  tail call void @vl_free(ptr noundef nonnull %62) #5
  store ptr null, ptr %15, align 8, !tbaa !29
  br label %64

64:                                               ; preds = %63, %61
  %65 = load ptr, ptr %43, align 8, !tbaa !28
  %.not68 = icmp eq ptr %65, null
  br i1 %.not68, label %67, label %66

66:                                               ; preds = %64
  tail call void @vl_free(ptr noundef nonnull %65) #5
  store ptr null, ptr %43, align 8, !tbaa !28
  br label %67

67:                                               ; preds = %64, %66, %53
  %.0 = phi ptr [ %7, %53 ], [ null, %66 ], [ null, %64 ]
  ret ptr %.0
}

declare ptr @vl_calloc(i64 noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local double @vl_svm_hinge_loss(double noundef, double noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @vl_svm_hinge_conjugate_loss(double noundef, double noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @vl_svm_hinge_loss_derivative(double noundef, double noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @vl_svm_hinge_dca_update(double noundef, double noundef, double noundef, double noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @vl_ceil_f(float noundef) local_unnamed_addr #3

declare void @vl_free(ptr noundef) 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) #4

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 = { "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 = { 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 #3 = { inlinehint 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"VlSvm_", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !11, i64 48, !10, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !10, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !10, i64 160, !10, i64 168, !12, i64 176, !13, i64 184, !11, i64 272, !12, i64 280, !11, i64 288}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!"VlSvmStatistics_", !7, i64 0, !10, i64 8, !10, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80}
!14 = !{!6, !10, i64 8}
!15 = !{!6, !12, i64 32}
!16 = !{!6, !12, i64 40}
!17 = !{!6, !11, i64 48}
!18 = !{!6, !10, i64 56}
!19 = !{!6, !11, i64 64}
!20 = !{!6, !10, i64 104}
!21 = !{!6, !11, i64 112}
!22 = !{!6, !11, i64 120}
!23 = !{!6, !11, i64 128}
!24 = !{!6, !11, i64 136}
!25 = !{!6, !10, i64 168}
!26 = !{!6, !12, i64 176}
!27 = !{!6, !12, i64 280}
!28 = !{!6, !11, i64 288}
!29 = !{!6, !11, i64 16}
!30 = !{!6, !11, i64 272}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass