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

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

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: nounwind uwtable
define dso_local void @_vl_svm_update_statistics(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.VlSvm_, ptr %7, i32 0, i32 23
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 88, i1 false)
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.VlSvm_, ptr %9, i32 0, i32 3
  %11 = load double, ptr %10, align 8, !tbaa !9
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.VlSvm_, ptr %12, i32 0, i32 3
  %14 = load double, ptr %13, align 8, !tbaa !9
  %15 = fmul double %11, %14
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.VlSvm_, ptr %16, i32 0, i32 23
  %18 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %17, i32 0, i32 4
  store double %15, ptr %18, align 8, !tbaa !15
  store i64 0, ptr %3, align 8, !tbaa !16
  br label %19

19:                                               ; preds = %43, %1
  %20 = load i64, ptr %3, align 8, !tbaa !16
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.VlSvm_, ptr %21, i32 0, i32 1
  %23 = load i64, ptr %22, align 8, !tbaa !17
  %24 = icmp ult i64 %20, %23
  br i1 %24, label %25, label %46

25:                                               ; preds = %19
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.VlSvm_, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = load i64, ptr %3, align 8, !tbaa !16
  %30 = getelementptr inbounds double, ptr %28, i64 %29
  %31 = load double, ptr %30, align 8, !tbaa !19
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.VlSvm_, ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  %35 = load i64, ptr %3, align 8, !tbaa !16
  %36 = getelementptr inbounds double, ptr %34, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !19
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.VlSvm_, ptr %38, i32 0, i32 23
  %40 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %39, i32 0, i32 4
  %41 = load double, ptr %40, align 8, !tbaa !15
  %42 = call double @llvm.fmuladd.f64(double %31, double %37, double %41)
  store double %42, ptr %40, align 8, !tbaa !15
  br label %43

43:                                               ; preds = %25
  %44 = load i64, ptr %3, align 8, !tbaa !16
  %45 = add i64 %44, 1
  store i64 %45, ptr %3, align 8, !tbaa !16
  br label %19, !llvm.loop !20

46:                                               ; preds = %19
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.VlSvm_, ptr %47, i32 0, i32 5
  %49 = load double, ptr %48, align 8, !tbaa !22
  %50 = fmul double %49, 5.000000e-01
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.VlSvm_, ptr %51, i32 0, i32 23
  %53 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %52, i32 0, i32 4
  %54 = load double, ptr %53, align 8, !tbaa !15
  %55 = fmul double %54, %50
  store double %55, ptr %53, align 8, !tbaa !15
  store i64 0, ptr %4, align 8, !tbaa !16
  br label %56

56:                                               ; preds = %155, %46
  %57 = load i64, ptr %4, align 8, !tbaa !16
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.VlSvm_, ptr %58, i32 0, i32 7
  %60 = load i64, ptr %59, align 8, !tbaa !23
  %61 = icmp ult i64 %57, %60
  br i1 %61, label %62, label %158

62:                                               ; preds = %56
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.VlSvm_, ptr %63, i32 0, i32 9
  %65 = load ptr, ptr %64, align 8, !tbaa !24
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %74

67:                                               ; preds = %62
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.VlSvm_, ptr %68, i32 0, i32 9
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  %71 = load i64, ptr %4, align 8, !tbaa !16
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !19
  br label %75

74:                                               ; preds = %62
  br label %75

75:                                               ; preds = %74, %67
  %76 = phi double [ %73, %67 ], [ 1.000000e+00, %74 ]
  store double %76, ptr %6, align 8, !tbaa !19
  %77 = load double, ptr %6, align 8, !tbaa !19
  %78 = fcmp ole double %77, 0.000000e+00
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  br label %155

80:                                               ; preds = %75
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.VlSvm_, ptr %81, i32 0, i32 18
  %83 = load ptr, ptr %82, align 8, !tbaa !25
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.VlSvm_, ptr %84, i32 0, i32 6
  %86 = load ptr, ptr %85, align 8, !tbaa !26
  %87 = load i64, ptr %4, align 8, !tbaa !16
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.VlSvm_, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %91 = call double %83(ptr noundef %86, i64 noundef %87, ptr noundef %90)
  store double %91, ptr %5, align 8, !tbaa !19
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.VlSvm_, ptr %92, i32 0, i32 3
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.VlSvm_, ptr %95, i32 0, i32 4
  %97 = load double, ptr %96, align 8, !tbaa !27
  %98 = load double, ptr %5, align 8, !tbaa !19
  %99 = call double @llvm.fmuladd.f64(double %94, double %97, double %98)
  store double %99, ptr %5, align 8, !tbaa !19
  %100 = load double, ptr %5, align 8, !tbaa !19
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.VlSvm_, ptr %101, i32 0, i32 24
  %103 = load ptr, ptr %102, align 8, !tbaa !28
  %104 = load i64, ptr %4, align 8, !tbaa !16
  %105 = getelementptr inbounds double, ptr %103, i64 %104
  store double %100, ptr %105, align 8, !tbaa !19
  %106 = load double, ptr %6, align 8, !tbaa !19
  %107 = load ptr, ptr %2, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.VlSvm_, ptr %107, i32 0, i32 14
  %109 = load ptr, ptr %108, align 8, !tbaa !29
  %110 = load double, ptr %5, align 8, !tbaa !19
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.VlSvm_, ptr %111, i32 0, i32 8
  %113 = load ptr, ptr %112, align 8, !tbaa !30
  %114 = load i64, ptr %4, align 8, !tbaa !16
  %115 = getelementptr inbounds double, ptr %113, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !19
  %117 = call double %109(double noundef %110, double noundef %116)
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.VlSvm_, ptr %118, i32 0, i32 23
  %120 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %119, i32 0, i32 5
  %121 = load double, ptr %120, align 8, !tbaa !31
  %122 = call double @llvm.fmuladd.f64(double %106, double %117, double %121)
  store double %122, ptr %120, align 8, !tbaa !31
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.VlSvm_, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !32
  %126 = icmp eq i32 %125, 2
  br i1 %126, label %127, label %154

127:                                              ; preds = %80
  %128 = load double, ptr %6, align 8, !tbaa !19
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.VlSvm_, ptr %129, i32 0, i32 15
  %131 = load ptr, ptr %130, align 8, !tbaa !33
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.VlSvm_, ptr %132, i32 0, i32 26
  %134 = load ptr, ptr %133, align 8, !tbaa !34
  %135 = load i64, ptr %4, align 8, !tbaa !16
  %136 = getelementptr inbounds double, ptr %134, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !19
  %138 = fneg double %137
  %139 = load double, ptr %6, align 8, !tbaa !19
  %140 = fdiv double %138, %139
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.VlSvm_, ptr %141, i32 0, i32 8
  %143 = load ptr, ptr %142, align 8, !tbaa !30
  %144 = load i64, ptr %4, align 8, !tbaa !16
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !19
  %147 = call double %131(double noundef %140, double noundef %146)
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.VlSvm_, ptr %148, i32 0, i32 23
  %150 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %149, i32 0, i32 7
  %151 = load double, ptr %150, align 8, !tbaa !35
  %152 = fneg double %128
  %153 = call double @llvm.fmuladd.f64(double %152, double %147, double %151)
  store double %153, ptr %150, align 8, !tbaa !35
  br label %154

154:                                              ; preds = %127, %80
  br label %155

155:                                              ; preds = %154, %79
  %156 = load i64, ptr %4, align 8, !tbaa !16
  %157 = add i64 %156, 1
  store i64 %157, ptr %4, align 8, !tbaa !16
  br label %56, !llvm.loop !36

158:                                              ; preds = %56
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.VlSvm_, ptr %159, i32 0, i32 7
  %161 = load i64, ptr %160, align 8, !tbaa !23
  %162 = uitofp i64 %161 to double
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.VlSvm_, ptr %163, i32 0, i32 23
  %165 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %164, i32 0, i32 5
  %166 = load double, ptr %165, align 8, !tbaa !31
  %167 = fdiv double %166, %162
  store double %167, ptr %165, align 8, !tbaa !31
  %168 = load ptr, ptr %2, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.VlSvm_, ptr %168, i32 0, i32 23
  %170 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %169, i32 0, i32 4
  %171 = load double, ptr %170, align 8, !tbaa !15
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.VlSvm_, ptr %172, i32 0, i32 23
  %174 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %173, i32 0, i32 5
  %175 = load double, ptr %174, align 8, !tbaa !31
  %176 = fadd double %171, %175
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.VlSvm_, ptr %177, i32 0, i32 23
  %179 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %178, i32 0, i32 3
  store double %176, ptr %179, align 8, !tbaa !37
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.VlSvm_, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 8, !tbaa !32
  %183 = icmp eq i32 %182, 2
  br i1 %183, label %184, label %219

184:                                              ; preds = %158
  %185 = load ptr, ptr %2, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.VlSvm_, ptr %185, i32 0, i32 7
  %187 = load i64, ptr %186, align 8, !tbaa !23
  %188 = uitofp i64 %187 to double
  %189 = load ptr, ptr %2, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.VlSvm_, ptr %189, i32 0, i32 23
  %191 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %190, i32 0, i32 7
  %192 = load double, ptr %191, align 8, !tbaa !35
  %193 = fdiv double %192, %188
  store double %193, ptr %191, align 8, !tbaa !35
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.VlSvm_, ptr %194, i32 0, i32 23
  %196 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %195, i32 0, i32 4
  %197 = load double, ptr %196, align 8, !tbaa !15
  %198 = fneg double %197
  %199 = load ptr, ptr %2, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.VlSvm_, ptr %199, i32 0, i32 23
  %201 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %200, i32 0, i32 7
  %202 = load double, ptr %201, align 8, !tbaa !35
  %203 = fadd double %198, %202
  %204 = load ptr, ptr %2, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.VlSvm_, ptr %204, i32 0, i32 23
  %206 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %205, i32 0, i32 6
  store double %203, ptr %206, align 8, !tbaa !38
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.VlSvm_, ptr %207, i32 0, i32 23
  %209 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %208, i32 0, i32 3
  %210 = load double, ptr %209, align 8, !tbaa !37
  %211 = load ptr, ptr %2, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.VlSvm_, ptr %211, i32 0, i32 23
  %213 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %212, i32 0, i32 6
  %214 = load double, ptr %213, align 8, !tbaa !38
  %215 = fsub double %210, %214
  %216 = load ptr, ptr %2, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.VlSvm_, ptr %216, i32 0, i32 23
  %218 = getelementptr inbounds %struct.VlSvmStatistics_, ptr %217, i32 0, i32 8
  store double %215, ptr %218, align 8, !tbaa !39
  br label %219

219:                                              ; preds = %184, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

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

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


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

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

; Function Attrs: nounwind uwtable
define dso_local void @_vl_svm_update_statistics(ptr nocapture noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 184
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(88) %2, i8 0, i64 88, i1 false)
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load double, ptr %3, align 8, !tbaa !5
  %5 = fmul double %4, %4
  %6 = getelementptr inbounds i8, ptr %0, i64 216
  store double %5, ptr %6, align 8, !tbaa !14
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !15
  %.not69 = icmp eq i64 %8, 0
  br i1 %.not69, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !16
  %xtraiter = and i64 %8, 3
  %11 = icmp ult i64 %8, 4
  br i1 %11, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %8, -4
  br label %12

12:                                               ; preds = %12, %.lr.ph.new
  %13 = phi double [ %5, %.lr.ph.new ], [ %28, %12 ]
  %.063 = phi i64 [ 0, %.lr.ph.new ], [ %29, %12 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %12 ]
  %14 = getelementptr inbounds double, ptr %10, i64 %.063
  %15 = load double, ptr %14, align 8, !tbaa !17
  %16 = tail call double @llvm.fmuladd.f64(double %15, double %15, double %13)
  store double %16, ptr %6, align 8, !tbaa !14
  %17 = or disjoint i64 %.063, 1
  %18 = getelementptr inbounds double, ptr %10, i64 %17
  %19 = load double, ptr %18, align 8, !tbaa !17
  %20 = tail call double @llvm.fmuladd.f64(double %19, double %19, double %16)
  store double %20, ptr %6, align 8, !tbaa !14
  %21 = or disjoint i64 %.063, 2
  %22 = getelementptr inbounds double, ptr %10, i64 %21
  %23 = load double, ptr %22, align 8, !tbaa !17
  %24 = tail call double @llvm.fmuladd.f64(double %23, double %23, double %20)
  store double %24, ptr %6, align 8, !tbaa !14
  %25 = or disjoint i64 %.063, 3
  %26 = getelementptr inbounds double, ptr %10, i64 %25
  %27 = load double, ptr %26, align 8, !tbaa !17
  %28 = tail call double @llvm.fmuladd.f64(double %27, double %27, double %24)
  store double %28, ptr %6, align 8, !tbaa !14
  %29 = add nuw i64 %.063, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %12, !llvm.loop !18

._crit_edge.loopexit.unr-lcssa:                   ; preds = %12, %.lr.ph
  %.lcssa78.ph = phi double [ poison, %.lr.ph ], [ %28, %12 ]
  %.unr = phi double [ %5, %.lr.ph ], [ %28, %12 ]
  %.063.unr = phi i64 [ 0, %.lr.ph ], [ %29, %12 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %30 = phi double [ %33, %.epil.preheader ], [ %.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.063.epil = phi i64 [ %34, %.epil.preheader ], [ %.063.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %31 = getelementptr inbounds double, ptr %10, i64 %.063.epil
  %32 = load double, ptr %31, align 8, !tbaa !17
  %33 = tail call double @llvm.fmuladd.f64(double %32, double %32, double %30)
  store double %33, ptr %6, align 8, !tbaa !14
  %34 = add nuw i64 %.063.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %1
  %35 = phi double [ %5, %1 ], [ %.lcssa78.ph, %._crit_edge.loopexit.unr-lcssa ], [ %33, %.epil.preheader ]
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = load double, ptr %36, align 8, !tbaa !22
  %38 = fmul double %37, 5.000000e-01
  %39 = fmul double %35, %38
  store double %39, ptr %6, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %0, i64 56
  %41 = load i64, ptr %40, align 8, !tbaa !23
  %.not70 = icmp eq i64 %41, 0
  br i1 %.not70, label %._crit_edge68, label %.lr.ph67

.lr.ph67:                                         ; preds = %._crit_edge
  %42 = getelementptr inbounds i8, ptr %0, i64 72
  %43 = getelementptr inbounds i8, ptr %0, i64 144
  %44 = getelementptr inbounds i8, ptr %0, i64 48
  %45 = getelementptr inbounds i8, ptr %0, i64 16
  %46 = getelementptr inbounds i8, ptr %0, i64 32
  %47 = getelementptr inbounds i8, ptr %0, i64 272
  %48 = getelementptr inbounds i8, ptr %0, i64 112
  %49 = getelementptr inbounds i8, ptr %0, i64 64
  %50 = getelementptr inbounds i8, ptr %0, i64 224
  %51 = getelementptr inbounds i8, ptr %0, i64 120
  %52 = getelementptr inbounds i8, ptr %0, i64 288
  %53 = getelementptr inbounds i8, ptr %0, i64 240
  br label %54

54:                                               ; preds = %.lr.ph67, %93
  %.05964 = phi i64 [ 0, %.lr.ph67 ], [ %94, %93 ]
  %55 = load ptr, ptr %42, align 8, !tbaa !24
  %.not = icmp eq ptr %55, null
  br i1 %.not, label %.thread, label %56

56:                                               ; preds = %54
  %57 = getelementptr inbounds double, ptr %55, i64 %.05964
  %58 = load double, ptr %57, align 8, !tbaa !17
  %59 = fcmp ugt double %58, 0.000000e+00
  br i1 %59, label %.thread, label %93

.thread:                                          ; preds = %54, %56
  %60 = phi double [ %58, %56 ], [ 1.000000e+00, %54 ]
  %61 = load ptr, ptr %43, align 8, !tbaa !25
  %62 = load ptr, ptr %44, align 8, !tbaa !26
  %63 = load ptr, ptr %45, align 8, !tbaa !16
  %64 = tail call double %61(ptr noundef %62, i64 noundef %.05964, ptr noundef %63) #3
  %65 = load double, ptr %3, align 8, !tbaa !5
  %66 = load double, ptr %46, align 8, !tbaa !27
  %67 = tail call double @llvm.fmuladd.f64(double %65, double %66, double %64)
  %68 = load ptr, ptr %47, align 8, !tbaa !28
  %69 = getelementptr inbounds double, ptr %68, i64 %.05964
  store double %67, ptr %69, align 8, !tbaa !17
  %70 = load ptr, ptr %48, align 8, !tbaa !29
  %71 = load ptr, ptr %49, align 8, !tbaa !30
  %72 = getelementptr inbounds double, ptr %71, i64 %.05964
  %73 = load double, ptr %72, align 8, !tbaa !17
  %74 = tail call double %70(double noundef %67, double noundef %73) #3
  %75 = load double, ptr %50, align 8, !tbaa !31
  %76 = tail call double @llvm.fmuladd.f64(double %60, double %74, double %75)
  store double %76, ptr %50, align 8, !tbaa !31
  %77 = load i32, ptr %0, align 8, !tbaa !32
  %78 = icmp eq i32 %77, 2
  br i1 %78, label %79, label %93

79:                                               ; preds = %.thread
  %80 = load ptr, ptr %51, align 8, !tbaa !33
  %81 = load ptr, ptr %52, align 8, !tbaa !34
  %82 = getelementptr inbounds double, ptr %81, i64 %.05964
  %83 = load double, ptr %82, align 8, !tbaa !17
  %84 = fneg double %83
  %85 = fdiv double %84, %60
  %86 = load ptr, ptr %49, align 8, !tbaa !30
  %87 = getelementptr inbounds double, ptr %86, i64 %.05964
  %88 = load double, ptr %87, align 8, !tbaa !17
  %89 = tail call double %80(double noundef %85, double noundef %88) #3
  %90 = load double, ptr %53, align 8, !tbaa !35
  %91 = fneg double %60
  %92 = tail call double @llvm.fmuladd.f64(double %91, double %89, double %90)
  store double %92, ptr %53, align 8, !tbaa !35
  br label %93

93:                                               ; preds = %.thread, %79, %56
  %94 = add nuw i64 %.05964, 1
  %95 = load i64, ptr %40, align 8, !tbaa !23
  %96 = icmp ult i64 %94, %95
  br i1 %96, label %54, label %._crit_edge68.loopexit, !llvm.loop !36

._crit_edge68.loopexit:                           ; preds = %93
  %.pre = load double, ptr %50, align 8, !tbaa !31
  %.pre72 = load double, ptr %6, align 8, !tbaa !14
  %97 = uitofp i64 %95 to double
  br label %._crit_edge68

._crit_edge68:                                    ; preds = %._crit_edge68.loopexit, %._crit_edge
  %98 = phi double [ %39, %._crit_edge ], [ %.pre72, %._crit_edge68.loopexit ]
  %99 = phi double [ 0.000000e+00, %._crit_edge ], [ %.pre, %._crit_edge68.loopexit ]
  %.lcssa = phi double [ 0.000000e+00, %._crit_edge ], [ %97, %._crit_edge68.loopexit ]
  %100 = getelementptr inbounds i8, ptr %0, i64 224
  %101 = fdiv double %99, %.lcssa
  store double %101, ptr %100, align 8, !tbaa !31
  %102 = fadd double %101, %98
  %103 = getelementptr inbounds i8, ptr %0, i64 208
  store double %102, ptr %103, align 8, !tbaa !37
  %104 = load i32, ptr %0, align 8, !tbaa !32
  %105 = icmp eq i32 %104, 2
  br i1 %105, label %106, label %114

106:                                              ; preds = %._crit_edge68
  %107 = getelementptr inbounds i8, ptr %0, i64 240
  %108 = load double, ptr %107, align 8, !tbaa !35
  %109 = fdiv double %108, %.lcssa
  store double %109, ptr %107, align 8, !tbaa !35
  %110 = fsub double %109, %98
  %111 = getelementptr inbounds i8, ptr %0, i64 232
  store double %110, ptr %111, align 8, !tbaa !38
  %112 = fsub double %102, %110
  %113 = getelementptr inbounds i8, ptr %0, i64 248
  store double %112, ptr %113, align 8, !tbaa !39
  br label %114

114:                                              ; preds = %106, %._crit_edge68
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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, !12, i64 24}
!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, !12, i64 216}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !11, i64 16}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = !{!6, !12, i64 40}
!23 = !{!6, !10, i64 56}
!24 = !{!6, !11, i64 72}
!25 = !{!6, !11, i64 144}
!26 = !{!6, !11, i64 48}
!27 = !{!6, !12, i64 32}
!28 = !{!6, !11, i64 272}
!29 = !{!6, !11, i64 112}
!30 = !{!6, !11, i64 64}
!31 = !{!6, !12, i64 224}
!32 = !{!6, !7, i64 0}
!33 = !{!6, !11, i64 120}
!34 = !{!6, !11, i64 288}
!35 = !{!6, !12, i64 240}
!36 = distinct !{!36, !19}
!37 = !{!6, !12, i64 208}
!38 = !{!6, !12, i64 232}
!39 = !{!6, !12, i64 248}


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