; LLVM IR from OpenFAST/openfast :: modules/map/src (numeric)

; 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.OuterSolveAttributes_t = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, i8, i8, i8, i32, i32, i32 }

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

; Function Attrs: nounwind uwtable
define dso_local i32 @lu(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %175, %4
  %15 = load i32, ptr %10, align 4, !tbaa !9
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %18, label %178

18:                                               ; preds = %14
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %19, i32 0, i32 5
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds ptr, ptr %21, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds double, ptr %25, i64 %27
  store double 1.000000e+00, ptr %28, align 8, !tbaa !15
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %11, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %140, %18
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %35, label %143

35:                                               ; preds = %31
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %36, i32 0, i32 4
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds ptr, ptr %38, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %42, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !15
  %47 = call double @llvm.fabs.f64(double %46)
  %48 = fcmp olt double %47, 0x3C9CD2B297D889BC
  br i1 %48, label %49, label %50

49:                                               ; preds = %35
  store i32 3, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %179

50:                                               ; preds = %35
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %51, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !16
  %54 = load i32, ptr %11, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %53, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds double, ptr %57, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !15
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %62, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !16
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds ptr, ptr %64, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %68, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !15
  %73 = fdiv double %61, %72
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %74, i32 0, i32 5
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %80, i64 %82
  store double %73, ptr %83, align 8, !tbaa !15
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %12, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %136, %50
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %90, label %139

90:                                               ; preds = %86
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !16
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %93, i64 %95
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %97, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !15
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %102, i32 0, i32 5
  %104 = load ptr, ptr %103, align 8, !tbaa !11
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds ptr, ptr %104, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %108, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !15
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %113, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !16
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !15
  %124 = fneg double %112
  %125 = call double @llvm.fmuladd.f64(double %124, double %123, double %101)
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !16
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds ptr, ptr %128, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %132, i64 %134
  store double %125, ptr %135, align 8, !tbaa !15
  br label %136

136:                                              ; preds = %90
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %12, align 4, !tbaa !9
  br label %86, !llvm.loop !17

139:                                              ; preds = %86
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %11, align 4, !tbaa !9
  br label %31, !llvm.loop !19

143:                                              ; preds = %31
  %144 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %144, ptr %12, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %171, %143
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = load i32, ptr %7, align 4, !tbaa !9
  %148 = icmp slt i32 %146, %147
  br i1 %148, label %149, label %174

149:                                              ; preds = %145
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !16
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds ptr, ptr %152, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = load i32, ptr %12, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !15
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.OuterSolveAttributes_t, ptr %161, i32 0, i32 6
  %163 = load ptr, ptr %162, align 8, !tbaa !20
  %164 = load i32, ptr %10, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds ptr, ptr %163, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = load i32, ptr %12, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds double, ptr %167, i64 %169
  store double %160, ptr %170, align 8, !tbaa !15
  br label %171

171:                                              ; preds = %149
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %12, align 4, !tbaa !9
  br label %145, !llvm.loop !21

174:                                              ; preds = %145
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %10, align 4, !tbaa !9
  br label %14, !llvm.loop !22

178:                                              ; preds = %14
  store i32 0, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %179

179:                                              ; preds = %178, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %180 = load i32, ptr %5, align 4
  ret i32 %180
}

; 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) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 40}
!12 = !{!"OuterSolveAttributes_t", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !14, i64 152, !14, i64 153, !14, i64 154, !10, i64 156, !10, i64 160, !10, i64 164}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !6, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!12, !6, i64 48}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}


; 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: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local range(i32 0, 4) i32 @lu(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef readnone %2, ptr nocapture noundef readnone %3) local_unnamed_addr #0 {
.split:
  %4 = icmp sgt i32 %1, 0
  br i1 %4, label %.lr.ph60, label %.loopexit52

.lr.ph60:                                         ; preds = %.split
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = getelementptr inbounds i8, ptr %0, i64 48
  %9 = zext nneg i32 %1 to i64
  %wide.trip.count79 = zext nneg i32 %1 to i64
  %10 = shl nuw nsw i64 %wide.trip.count79, 3
  %11 = add nsw i64 %wide.trip.count79, -1
  br label %12

.loopexit:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond80.not = icmp eq i64 %indvars.iv.next72, %wide.trip.count79
  br i1 %exitcond80.not, label %.loopexit52, label %12, !llvm.loop !13

12:                                               ; preds = %.lr.ph60, %.loopexit
  %indvars.iv71 = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next72, %.loopexit ]
  %indvars.iv = phi i64 [ 1, %.lr.ph60 ], [ %indvars.iv.next, %.loopexit ]
  %13 = xor i64 %indvars.iv71, -1
  %14 = add nsw i64 %13, %wide.trip.count79
  %15 = shl nuw nsw i64 %indvars.iv71, 3
  %16 = add nuw i64 %15, 8
  %17 = sub nsw i64 %wide.trip.count79, %indvars.iv71
  %18 = getelementptr inbounds ptr, ptr %6, i64 %indvars.iv71
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = getelementptr inbounds double, ptr %19, i64 %indvars.iv71
  store double 1.000000e+00, ptr %20, align 8, !tbaa !16
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %21 = icmp ult i64 %indvars.iv.next72, %9
  br i1 %21, label %.lr.ph57, label %.lr.ph

.lr.ph57:                                         ; preds = %12
  %22 = load ptr, ptr %7, align 8, !tbaa !17
  %23 = getelementptr inbounds ptr, ptr %22, i64 %indvars.iv71
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = getelementptr inbounds double, ptr %24, i64 %indvars.iv71
  %scevgep87 = getelementptr i8, ptr %24, i64 %16
  %scevgep88 = getelementptr i8, ptr %24, i64 %10
  %min.iters.check94 = icmp ult i64 %14, 4
  %n.vec97 = and i64 %14, -4
  %ind.end98 = add i64 %indvars.iv, %n.vec97
  %cmp.n110 = icmp eq i64 %14, %n.vec97
  br label %26

26:                                               ; preds = %._crit_edge.us, %.lr.ph57
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %._crit_edge.us ], [ %indvars.iv, %.lr.ph57 ]
  %27 = load double, ptr %25, align 8, !tbaa !16
  %28 = tail call double @llvm.fabs.f64(double %27)
  %29 = fcmp olt double %28, 0x3C9CD2B297D889BC
  br i1 %29, label %.loopexit52, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %26
  %30 = getelementptr inbounds ptr, ptr %22, i64 %indvars.iv65
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = getelementptr inbounds double, ptr %31, i64 %indvars.iv71
  %33 = load double, ptr %32, align 8, !tbaa !16
  %34 = fdiv double %33, %27
  %35 = getelementptr inbounds ptr, ptr %6, i64 %indvars.iv65
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = getelementptr inbounds double, ptr %36, i64 %indvars.iv71
  store double %34, ptr %37, align 8, !tbaa !16
  br i1 %min.iters.check94, label %scalar.ph93.preheader, label %vector.memcheck84

vector.memcheck84:                                ; preds = %.lr.ph.us
  %scevgep = getelementptr i8, ptr %31, i64 %16
  %scevgep85 = getelementptr i8, ptr %31, i64 %10
  %bound0 = icmp ult ptr %31, %36
  %bound1 = icmp ult ptr %37, %scevgep85
  %found.conflict = and i1 %bound0, %bound1
  %bound089 = icmp ult ptr %scevgep, %scevgep88
  %bound190 = icmp ult ptr %scevgep87, %scevgep85
  %found.conflict91 = and i1 %bound089, %bound190
  %conflict.rdx = or i1 %found.conflict, %found.conflict91
  br i1 %conflict.rdx, label %scalar.ph93.preheader, label %vector.ph95

vector.ph95:                                      ; preds = %vector.memcheck84
  %38 = load double, ptr %37, align 8, !tbaa !16, !alias.scope !18
  %broadcast.splatinsert107 = insertelement <2 x double> poison, double %38, i64 0
  %broadcast.splat108 = shufflevector <2 x double> %broadcast.splatinsert107, <2 x double> poison, <2 x i32> zeroinitializer
  %39 = fneg <2 x double> %broadcast.splat108
  %40 = fneg <2 x double> %broadcast.splat108
  br label %vector.body100

vector.body100:                                   ; preds = %vector.body100, %vector.ph95
  %index101 = phi i64 [ 0, %vector.ph95 ], [ %index.next109, %vector.body100 ]
  %offset.idx102 = add i64 %indvars.iv, %index101
  %41 = getelementptr inbounds double, ptr %31, i64 %offset.idx102
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %wide.load103 = load <2 x double>, ptr %41, align 8, !tbaa !16, !alias.scope !21, !noalias !23
  %wide.load104 = load <2 x double>, ptr %42, align 8, !tbaa !16, !alias.scope !21, !noalias !23
  %43 = getelementptr inbounds double, ptr %24, i64 %offset.idx102
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load105 = load <2 x double>, ptr %43, align 8, !tbaa !16, !alias.scope !25
  %wide.load106 = load <2 x double>, ptr %44, align 8, !tbaa !16, !alias.scope !25
  %45 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %39, <2 x double> %wide.load105, <2 x double> %wide.load103)
  %46 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %40, <2 x double> %wide.load106, <2 x double> %wide.load104)
  store <2 x double> %45, ptr %41, align 8, !tbaa !16, !alias.scope !21, !noalias !23
  store <2 x double> %46, ptr %42, align 8, !tbaa !16, !alias.scope !21, !noalias !23
  %index.next109 = add nuw i64 %index101, 4
  %47 = icmp eq i64 %index.next109, %n.vec97
  br i1 %47, label %middle.block92, label %vector.body100, !llvm.loop !26

middle.block92:                                   ; preds = %vector.body100
  br i1 %cmp.n110, label %._crit_edge.us, label %scalar.ph93.preheader

scalar.ph93.preheader:                            ; preds = %middle.block92, %vector.memcheck84, %.lr.ph.us
  %indvars.iv62.ph = phi i64 [ %indvars.iv, %vector.memcheck84 ], [ %indvars.iv, %.lr.ph.us ], [ %ind.end98, %middle.block92 ]
  %48 = sub i64 %wide.trip.count79, %indvars.iv62.ph
  %xtraiter = and i64 %48, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph93.prol.loopexit, label %scalar.ph93.prol

scalar.ph93.prol:                                 ; preds = %scalar.ph93.preheader
  %49 = getelementptr inbounds double, ptr %31, i64 %indvars.iv62.ph
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = load double, ptr %37, align 8, !tbaa !16
  %52 = getelementptr inbounds double, ptr %24, i64 %indvars.iv62.ph
  %53 = load double, ptr %52, align 8, !tbaa !16
  %54 = fneg double %51
  %55 = tail call double @llvm.fmuladd.f64(double %54, double %53, double %50)
  store double %55, ptr %49, align 8, !tbaa !16
  %indvars.iv.next63.prol = add nuw nsw i64 %indvars.iv62.ph, 1
  br label %scalar.ph93.prol.loopexit

scalar.ph93.prol.loopexit:                        ; preds = %scalar.ph93.prol, %scalar.ph93.preheader
  %indvars.iv62.unr = phi i64 [ %indvars.iv62.ph, %scalar.ph93.preheader ], [ %indvars.iv.next63.prol, %scalar.ph93.prol ]
  %56 = icmp eq i64 %indvars.iv62.ph, %11
  br i1 %56, label %._crit_edge.us, label %scalar.ph93

scalar.ph93:                                      ; preds = %scalar.ph93.prol.loopexit, %scalar.ph93
  %indvars.iv62 = phi i64 [ %indvars.iv.next63.1, %scalar.ph93 ], [ %indvars.iv62.unr, %scalar.ph93.prol.loopexit ]
  %57 = getelementptr inbounds double, ptr %31, i64 %indvars.iv62
  %58 = load double, ptr %57, align 8, !tbaa !16
  %59 = load double, ptr %37, align 8, !tbaa !16
  %60 = getelementptr inbounds double, ptr %24, i64 %indvars.iv62
  %61 = load double, ptr %60, align 8, !tbaa !16
  %62 = fneg double %59
  %63 = tail call double @llvm.fmuladd.f64(double %62, double %61, double %58)
  store double %63, ptr %57, align 8, !tbaa !16
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %64 = getelementptr inbounds double, ptr %31, i64 %indvars.iv.next63
  %65 = load double, ptr %64, align 8, !tbaa !16
  %66 = load double, ptr %37, align 8, !tbaa !16
  %67 = getelementptr inbounds double, ptr %24, i64 %indvars.iv.next63
  %68 = load double, ptr %67, align 8, !tbaa !16
  %69 = fneg double %66
  %70 = tail call double @llvm.fmuladd.f64(double %69, double %68, double %65)
  store double %70, ptr %64, align 8, !tbaa !16
  %indvars.iv.next63.1 = add nuw nsw i64 %indvars.iv62, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next63.1, %wide.trip.count79
  br i1 %exitcond.not.1, label %._crit_edge.us, label %scalar.ph93, !llvm.loop !29

._crit_edge.us:                                   ; preds = %scalar.ph93.prol.loopexit, %scalar.ph93, %middle.block92
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %exitcond69.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count79
  br i1 %exitcond69.not, label %.lr.ph, label %26, !llvm.loop !30

.lr.ph:                                           ; preds = %._crit_edge.us, %12
  %71 = load ptr, ptr %7, align 8, !tbaa !17
  %72 = getelementptr inbounds ptr, ptr %71, i64 %indvars.iv71
  %73 = load ptr, ptr %72, align 8, !tbaa !15
  %74 = load ptr, ptr %8, align 8, !tbaa !31
  %75 = getelementptr inbounds ptr, ptr %74, i64 %indvars.iv71
  %76 = load ptr, ptr %75, align 8, !tbaa !15
  %min.iters.check = icmp ult i64 %17, 4
  %77 = ptrtoint ptr %76 to i64
  %78 = ptrtoint ptr %73 to i64
  %79 = sub i64 %77, %78
  %diff.check = icmp ult i64 %79, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %17, -4
  %ind.end = add i64 %indvars.iv71, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %indvars.iv71, %index
  %80 = getelementptr inbounds double, ptr %73, i64 %offset.idx
  %81 = getelementptr inbounds i8, ptr %80, i64 16
  %wide.load = load <2 x double>, ptr %80, align 8, !tbaa !16
  %wide.load83 = load <2 x double>, ptr %81, align 8, !tbaa !16
  %82 = getelementptr inbounds double, ptr %76, i64 %offset.idx
  %83 = getelementptr inbounds i8, ptr %82, i64 16
  store <2 x double> %wide.load, ptr %82, align 8, !tbaa !16
  store <2 x double> %wide.load83, ptr %83, align 8, !tbaa !16
  %index.next = add nuw i64 %index, 4
  %84 = icmp eq i64 %index.next, %n.vec
  br i1 %84, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %17, %n.vec
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv73.ph = phi i64 [ %indvars.iv71, %.lr.ph ], [ %ind.end, %middle.block ]
  %85 = sub i64 %wide.trip.count79, %indvars.iv73.ph
  %xtraiter114 = and i64 %85, 3
  %lcmp.mod115.not = icmp eq i64 %xtraiter114, 0
  br i1 %lcmp.mod115.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv73.prol = phi i64 [ %indvars.iv.next74.prol, %scalar.ph.prol ], [ %indvars.iv73.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %86 = getelementptr inbounds double, ptr %73, i64 %indvars.iv73.prol
  %87 = load double, ptr %86, align 8, !tbaa !16
  %88 = getelementptr inbounds double, ptr %76, i64 %indvars.iv73.prol
  store double %87, ptr %88, align 8, !tbaa !16
  %indvars.iv.next74.prol = add nuw nsw i64 %indvars.iv73.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter114
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !33

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv73.unr = phi i64 [ %indvars.iv73.ph, %scalar.ph.preheader ], [ %indvars.iv.next74.prol, %scalar.ph.prol ]
  %89 = sub i64 %indvars.iv73.ph, %wide.trip.count79
  %90 = icmp ugt i64 %89, -4
  br i1 %90, label %.loopexit, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv73 = phi i64 [ %indvars.iv.next74.3, %scalar.ph ], [ %indvars.iv73.unr, %scalar.ph.prol.loopexit ]
  %91 = getelementptr inbounds double, ptr %73, i64 %indvars.iv73
  %92 = load double, ptr %91, align 8, !tbaa !16
  %93 = getelementptr inbounds double, ptr %76, i64 %indvars.iv73
  store double %92, ptr %93, align 8, !tbaa !16
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %94 = getelementptr inbounds double, ptr %73, i64 %indvars.iv.next74
  %95 = load double, ptr %94, align 8, !tbaa !16
  %96 = getelementptr inbounds double, ptr %76, i64 %indvars.iv.next74
  store double %95, ptr %96, align 8, !tbaa !16
  %indvars.iv.next74.1 = add nuw nsw i64 %indvars.iv73, 2
  %97 = getelementptr inbounds double, ptr %73, i64 %indvars.iv.next74.1
  %98 = load double, ptr %97, align 8, !tbaa !16
  %99 = getelementptr inbounds double, ptr %76, i64 %indvars.iv.next74.1
  store double %98, ptr %99, align 8, !tbaa !16
  %indvars.iv.next74.2 = add nuw nsw i64 %indvars.iv73, 3
  %100 = getelementptr inbounds double, ptr %73, i64 %indvars.iv.next74.2
  %101 = load double, ptr %100, align 8, !tbaa !16
  %102 = getelementptr inbounds double, ptr %76, i64 %indvars.iv.next74.2
  store double %101, ptr %102, align 8, !tbaa !16
  %indvars.iv.next74.3 = add nuw nsw i64 %indvars.iv73, 4
  %exitcond77.not.3 = icmp eq i64 %indvars.iv.next74.3, %wide.trip.count79
  br i1 %exitcond77.not.3, label %.loopexit, label %scalar.ph, !llvm.loop !35

.loopexit52:                                      ; preds = %.loopexit, %26, %.split
  %.050 = phi i32 [ 0, %.split ], [ 3, %26 ], [ 0, %.loopexit ]
  ret i32 %.050
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #2

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !10, i64 40}
!6 = !{!"OuterSolveAttributes_t", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !12, i64 152, !12, i64 153, !12, i64 154, !7, i64 156, !7, i64 160, !7, i64 164}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_Bool", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!10, !10, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !10, i64 32}
!18 = !{!19}
!19 = distinct !{!19, !20}
!20 = distinct !{!20, !"LVerDomain"}
!21 = !{!22}
!22 = distinct !{!22, !20}
!23 = !{!19, !24}
!24 = distinct !{!24, !20}
!25 = !{!24}
!26 = distinct !{!26, !14, !27, !28}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !14, !27}
!30 = distinct !{!30, !14}
!31 = !{!6, !10, i64 48}
!32 = distinct !{!32, !14, !27, !28}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.unroll.disable"}
!35 = distinct !{!35, !14, !27}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass