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

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_setzero_pd() #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_add_pd(<2 x double> noundef, <2 x double> noundef) #1

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_loadu_pd(ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @_vl_vhsum_sse2_d(<2 x double> noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_sub_pd(<2 x double> noundef, <2 x double> noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_set1_pd(double noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_andnot_pd(<2 x double> noundef, <2 x double> noundef) #1

; Function Attrs: nounwind uwtable
define dso_local double @_vl_kernel_l1_sse2_d(i64 noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca <2 x double>, align 16
  %11 = alloca <2 x double>, align 16
  %12 = alloca i32, align 4
  %13 = alloca <2 x double>, align 16
  %14 = alloca <2 x double>, align 16
  %15 = alloca <2 x double>, align 16
  %16 = alloca <2 x double>, align 16
  %17 = alloca <2 x double>, align 16
  %18 = alloca <2 x double>, align 16
  %19 = alloca <2 x double>, align 16
  %20 = alloca <2 x double>, align 16
  %21 = alloca <2 x double>, align 16
  %22 = alloca <2 x double>, align 16
  %23 = alloca <2 x double>, align 16
  %24 = alloca <2 x double>, align 16
  %25 = alloca <2 x double>, align 16
  %26 = alloca <2 x double>, align 16
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  store i64 %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !9
  %32 = load i64, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds double, ptr %31, i64 %32
  store ptr %33, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %34 = load ptr, ptr %7, align 8, !tbaa !9
  %35 = getelementptr inbounds double, ptr %34, i64 -2
  %36 = getelementptr inbounds double, ptr %35, i64 1
  store ptr %36, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %37 = call <2 x double> @_mm_setzero_pd()
  store <2 x double> %37, ptr %10, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %38 = call <2 x double> @_mm_set1_pd(double noundef -0.000000e+00)
  store <2 x double> %38, ptr %11, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %39 = load ptr, ptr %5, align 8, !tbaa !9
  %40 = ptrtoint ptr %39 to i64
  %41 = and i64 %40, 15
  %42 = icmp ne i64 %41, 0
  %43 = xor i1 %42, true
  %44 = zext i1 %43 to i32
  %45 = load ptr, ptr %6, align 8, !tbaa !9
  %46 = ptrtoint ptr %45 to i64
  %47 = and i64 %46, 15
  %48 = icmp ne i64 %47, 0
  %49 = xor i1 %48, true
  %50 = zext i1 %49 to i32
  %51 = and i32 %44, %50
  store i32 %51, ptr %12, align 4, !tbaa !12
  %52 = load i32, ptr %12, align 4, !tbaa !12
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %89

54:                                               ; preds = %3
  br label %55

55:                                               ; preds = %59, %54
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = load ptr, ptr %8, align 8, !tbaa !9
  %58 = icmp ult ptr %56, %57
  br i1 %58, label %59, label %88

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  %60 = load ptr, ptr %5, align 8, !tbaa !9
  %61 = load <2 x double>, ptr %60, align 16, !tbaa !11
  store <2 x double> %61, ptr %13, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %62 = load ptr, ptr %6, align 8, !tbaa !9
  %63 = load <2 x double>, ptr %62, align 16, !tbaa !11
  store <2 x double> %63, ptr %14, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %64 = load <2 x double>, ptr %11, align 16, !tbaa !11
  %65 = load <2 x double>, ptr %13, align 16, !tbaa !11
  %66 = call <2 x double> @_mm_andnot_pd(<2 x double> noundef %64, <2 x double> noundef %65)
  store <2 x double> %66, ptr %15, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  %67 = load <2 x double>, ptr %11, align 16, !tbaa !11
  %68 = load <2 x double>, ptr %14, align 16, !tbaa !11
  %69 = call <2 x double> @_mm_andnot_pd(<2 x double> noundef %67, <2 x double> noundef %68)
  store <2 x double> %69, ptr %16, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  %70 = load <2 x double>, ptr %15, align 16, !tbaa !11
  %71 = load <2 x double>, ptr %16, align 16, !tbaa !11
  %72 = call <2 x double> @_mm_add_pd(<2 x double> noundef %70, <2 x double> noundef %71)
  store <2 x double> %72, ptr %17, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %73 = load <2 x double>, ptr %13, align 16, !tbaa !11
  %74 = load <2 x double>, ptr %14, align 16, !tbaa !11
  %75 = call <2 x double> @_mm_sub_pd(<2 x double> noundef %73, <2 x double> noundef %74)
  store <2 x double> %75, ptr %18, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %76 = load <2 x double>, ptr %11, align 16, !tbaa !11
  %77 = load <2 x double>, ptr %18, align 16, !tbaa !11
  %78 = call <2 x double> @_mm_andnot_pd(<2 x double> noundef %76, <2 x double> noundef %77)
  store <2 x double> %78, ptr %19, align 16, !tbaa !11
  %79 = load <2 x double>, ptr %10, align 16, !tbaa !11
  %80 = load <2 x double>, ptr %17, align 16, !tbaa !11
  %81 = load <2 x double>, ptr %19, align 16, !tbaa !11
  %82 = call <2 x double> @_mm_sub_pd(<2 x double> noundef %80, <2 x double> noundef %81)
  %83 = call <2 x double> @_mm_add_pd(<2 x double> noundef %79, <2 x double> noundef %82)
  store <2 x double> %83, ptr %10, align 16, !tbaa !11
  %84 = load ptr, ptr %5, align 8, !tbaa !9
  %85 = getelementptr inbounds double, ptr %84, i64 2
  store ptr %85, ptr %5, align 8, !tbaa !9
  %86 = load ptr, ptr %6, align 8, !tbaa !9
  %87 = getelementptr inbounds double, ptr %86, i64 2
  store ptr %87, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  br label %55, !llvm.loop !14

88:                                               ; preds = %55
  br label %124

89:                                               ; preds = %3
  br label %90

90:                                               ; preds = %94, %89
  %91 = load ptr, ptr %5, align 8, !tbaa !9
  %92 = load ptr, ptr %8, align 8, !tbaa !9
  %93 = icmp ult ptr %91, %92
  br i1 %93, label %94, label %123

94:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  %95 = load ptr, ptr %5, align 8, !tbaa !9
  %96 = call <2 x double> @_mm_loadu_pd(ptr noundef %95)
  store <2 x double> %96, ptr %20, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  %97 = load ptr, ptr %6, align 8, !tbaa !9
  %98 = call <2 x double> @_mm_loadu_pd(ptr noundef %97)
  store <2 x double> %98, ptr %21, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %99 = load <2 x double>, ptr %11, align 16, !tbaa !11
  %100 = load <2 x double>, ptr %20, align 16, !tbaa !11
  %101 = call <2 x double> @_mm_andnot_pd(<2 x double> noundef %99, <2 x double> noundef %100)
  store <2 x double> %101, ptr %22, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #5
  %102 = load <2 x double>, ptr %11, align 16, !tbaa !11
  %103 = load <2 x double>, ptr %21, align 16, !tbaa !11
  %104 = call <2 x double> @_mm_andnot_pd(<2 x double> noundef %102, <2 x double> noundef %103)
  store <2 x double> %104, ptr %23, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #5
  %105 = load <2 x double>, ptr %22, align 16, !tbaa !11
  %106 = load <2 x double>, ptr %23, align 16, !tbaa !11
  %107 = call <2 x double> @_mm_add_pd(<2 x double> noundef %105, <2 x double> noundef %106)
  store <2 x double> %107, ptr %24, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %108 = load <2 x double>, ptr %20, align 16, !tbaa !11
  %109 = load <2 x double>, ptr %21, align 16, !tbaa !11
  %110 = call <2 x double> @_mm_sub_pd(<2 x double> noundef %108, <2 x double> noundef %109)
  store <2 x double> %110, ptr %25, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %111 = load <2 x double>, ptr %11, align 16, !tbaa !11
  %112 = load <2 x double>, ptr %25, align 16, !tbaa !11
  %113 = call <2 x double> @_mm_andnot_pd(<2 x double> noundef %111, <2 x double> noundef %112)
  store <2 x double> %113, ptr %26, align 16, !tbaa !11
  %114 = load <2 x double>, ptr %10, align 16, !tbaa !11
  %115 = load <2 x double>, ptr %24, align 16, !tbaa !11
  %116 = load <2 x double>, ptr %26, align 16, !tbaa !11
  %117 = call <2 x double> @_mm_sub_pd(<2 x double> noundef %115, <2 x double> noundef %116)
  %118 = call <2 x double> @_mm_add_pd(<2 x double> noundef %114, <2 x double> noundef %117)
  store <2 x double> %118, ptr %10, align 16, !tbaa !11
  %119 = load ptr, ptr %5, align 8, !tbaa !9
  %120 = getelementptr inbounds double, ptr %119, i64 2
  store ptr %120, ptr %5, align 8, !tbaa !9
  %121 = load ptr, ptr %6, align 8, !tbaa !9
  %122 = getelementptr inbounds double, ptr %121, i64 2
  store ptr %122, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %90, !llvm.loop !16

123:                                              ; preds = %90
  br label %124

124:                                              ; preds = %123, %88
  %125 = load <2 x double>, ptr %10, align 16, !tbaa !11
  %126 = call double @_vl_vhsum_sse2_d(<2 x double> noundef %125)
  store double %126, ptr %9, align 8, !tbaa !17
  br label %127

127:                                              ; preds = %131, %124
  %128 = load ptr, ptr %5, align 8, !tbaa !9
  %129 = load ptr, ptr %7, align 8, !tbaa !9
  %130 = icmp ult ptr %128, %129
  br i1 %130, label %131, label %152

131:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %132 = load ptr, ptr %5, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %132, i32 1
  store ptr %133, ptr %5, align 8, !tbaa !9
  %134 = load double, ptr %132, align 8, !tbaa !17
  store double %134, ptr %27, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %135 = load ptr, ptr %6, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %135, i32 1
  store ptr %136, ptr %6, align 8, !tbaa !9
  %137 = load double, ptr %135, align 8, !tbaa !17
  store double %137, ptr %28, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %138 = load double, ptr %27, align 8, !tbaa !17
  %139 = call double @vl_abs_d(double noundef %138)
  store double %139, ptr %29, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %140 = load double, ptr %28, align 8, !tbaa !17
  %141 = call double @vl_abs_d(double noundef %140)
  store double %141, ptr %30, align 8, !tbaa !17
  %142 = load double, ptr %29, align 8, !tbaa !17
  %143 = load double, ptr %30, align 8, !tbaa !17
  %144 = fadd double %142, %143
  %145 = load double, ptr %27, align 8, !tbaa !17
  %146 = load double, ptr %28, align 8, !tbaa !17
  %147 = fsub double %145, %146
  %148 = call double @vl_abs_d(double noundef %147)
  %149 = fsub double %144, %148
  %150 = load double, ptr %9, align 8, !tbaa !17
  %151 = fadd double %150, %149
  store double %151, ptr %9, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %127, !llvm.loop !19

152:                                              ; preds = %127
  %153 = load double, ptr %9, align 8, !tbaa !17
  %154 = fdiv double %153, 2.000000e+00
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret double %154
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_abs_d(double noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 nounwind uwtable "min-legal-vector-width"="128" "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 uwtable "min-legal-vector-width"="128" "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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !15}


; 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: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_setzero_pd() local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_add_pd(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_loadu_pd(ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @_vl_vhsum_sse2_d(<2 x double> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_sub_pd(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_set1_pd(double noundef) local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x double> @_mm_andnot_pd(<2 x double> noundef, <2 x double> noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local double @_vl_kernel_l1_sse2_d(i64 noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds double, ptr %1, i64 %0
  %5 = getelementptr inbounds i8, ptr %4, i64 -8
  %6 = tail call <2 x double> @_mm_setzero_pd()
  %7 = tail call <2 x double> @_mm_set1_pd(double noundef -0.000000e+00)
  %8 = ptrtoint ptr %1 to i64
  %9 = ptrtoint ptr %2 to i64
  %10 = or i64 %9, %8
  %11 = and i64 %10, 15
  %12 = icmp eq i64 %11, 0
  %13 = icmp ugt ptr %5, %1
  br i1 %12, label %.preheader, label %.preheader65

.preheader65:                                     ; preds = %3
  br i1 %13, label %.lr.ph, label %.loopexit

.preheader:                                       ; preds = %3
  br i1 %13, label %.lr.ph75, label %.loopexit

.lr.ph75:                                         ; preds = %.preheader, %.lr.ph75
  %.074 = phi ptr [ %23, %.lr.ph75 ], [ %1, %.preheader ]
  %.05673 = phi ptr [ %24, %.lr.ph75 ], [ %2, %.preheader ]
  %.06172 = phi <2 x double> [ %22, %.lr.ph75 ], [ %6, %.preheader ]
  %14 = load <2 x double>, ptr %.074, align 16, !tbaa !5
  %15 = load <2 x double>, ptr %.05673, align 16, !tbaa !5
  %16 = tail call <2 x double> @_mm_andnot_pd(<2 x double> noundef %7, <2 x double> noundef %14)
  %17 = tail call <2 x double> @_mm_andnot_pd(<2 x double> noundef %7, <2 x double> noundef %15)
  %18 = tail call <2 x double> @_mm_add_pd(<2 x double> noundef %16, <2 x double> noundef %17)
  %19 = tail call <2 x double> @_mm_sub_pd(<2 x double> noundef %14, <2 x double> noundef %15)
  %20 = tail call <2 x double> @_mm_andnot_pd(<2 x double> noundef %7, <2 x double> noundef %19)
  %21 = tail call <2 x double> @_mm_sub_pd(<2 x double> noundef %18, <2 x double> noundef %20)
  %22 = tail call <2 x double> @_mm_add_pd(<2 x double> noundef %.06172, <2 x double> noundef %21)
  %23 = getelementptr inbounds i8, ptr %.074, i64 16
  %24 = getelementptr inbounds i8, ptr %.05673, i64 16
  %25 = icmp ult ptr %23, %5
  br i1 %25, label %.lr.ph75, label %.loopexit, !llvm.loop !8

.lr.ph:                                           ; preds = %.preheader65, %.lr.ph
  %.169 = phi ptr [ %35, %.lr.ph ], [ %1, %.preheader65 ]
  %.15768 = phi ptr [ %36, %.lr.ph ], [ %2, %.preheader65 ]
  %.16267 = phi <2 x double> [ %34, %.lr.ph ], [ %6, %.preheader65 ]
  %26 = tail call <2 x double> @_mm_loadu_pd(ptr noundef %.169)
  %27 = tail call <2 x double> @_mm_loadu_pd(ptr noundef %.15768)
  %28 = tail call <2 x double> @_mm_andnot_pd(<2 x double> noundef %7, <2 x double> noundef %26)
  %29 = tail call <2 x double> @_mm_andnot_pd(<2 x double> noundef %7, <2 x double> noundef %27)
  %30 = tail call <2 x double> @_mm_add_pd(<2 x double> noundef %28, <2 x double> noundef %29)
  %31 = tail call <2 x double> @_mm_sub_pd(<2 x double> noundef %26, <2 x double> noundef %27)
  %32 = tail call <2 x double> @_mm_andnot_pd(<2 x double> noundef %7, <2 x double> noundef %31)
  %33 = tail call <2 x double> @_mm_sub_pd(<2 x double> noundef %30, <2 x double> noundef %32)
  %34 = tail call <2 x double> @_mm_add_pd(<2 x double> noundef %.16267, <2 x double> noundef %33)
  %35 = getelementptr inbounds i8, ptr %.169, i64 16
  %36 = getelementptr inbounds i8, ptr %.15768, i64 16
  %37 = icmp ult ptr %35, %5
  br i1 %37, label %.lr.ph, label %.loopexit, !llvm.loop !10

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph75, %.preheader65, %.preheader
  %.263 = phi <2 x double> [ %6, %.preheader ], [ %6, %.preheader65 ], [ %22, %.lr.ph75 ], [ %34, %.lr.ph ]
  %.258 = phi ptr [ %2, %.preheader ], [ %2, %.preheader65 ], [ %24, %.lr.ph75 ], [ %36, %.lr.ph ]
  %.2 = phi ptr [ %1, %.preheader ], [ %1, %.preheader65 ], [ %23, %.lr.ph75 ], [ %35, %.lr.ph ]
  %38 = tail call double @_vl_vhsum_sse2_d(<2 x double> noundef %.263)
  %39 = icmp ult ptr %.2, %4
  br i1 %39, label %.lr.ph82, label %._crit_edge

.lr.ph82:                                         ; preds = %.loopexit, %.lr.ph82
  %.381 = phi ptr [ %40, %.lr.ph82 ], [ %.2, %.loopexit ]
  %.35980 = phi ptr [ %42, %.lr.ph82 ], [ %.258, %.loopexit ]
  %.06079 = phi double [ %50, %.lr.ph82 ], [ %38, %.loopexit ]
  %40 = getelementptr inbounds i8, ptr %.381, i64 8
  %41 = load double, ptr %.381, align 8, !tbaa !11
  %42 = getelementptr inbounds i8, ptr %.35980, i64 8
  %43 = load double, ptr %.35980, align 8, !tbaa !11
  %44 = tail call double @vl_abs_d(double noundef %41)
  %45 = tail call double @vl_abs_d(double noundef %43)
  %46 = fadd double %44, %45
  %47 = fsub double %41, %43
  %48 = tail call double @vl_abs_d(double noundef %47)
  %49 = fsub double %46, %48
  %50 = fadd double %.06079, %49
  %51 = icmp ult ptr %40, %4
  br i1 %51, label %.lr.ph82, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph82, %.loopexit
  %.060.lcssa = phi double [ %38, %.loopexit ], [ %50, %.lr.ph82 ]
  %52 = fmul double %.060.lcssa, 5.000000e-01
  ret double %52
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_abs_d(double noundef) local_unnamed_addr #3

attributes #0 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 = { inlinehint nounwind uwtable "min-legal-vector-width"="128" "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 uwtable "min-legal-vector-width"="128" "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" }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !6, i64 0}
!13 = distinct !{!13, !9}


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