; LLVM IR from mkmarek/forex.analytics :: lib/ta-lib/src/ta_func (ta_APO)

; 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: nounwind uwtable
define dso_local i32 @TA_INT_PO(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, i32 noundef %10) #1 {
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store i32 %0, ptr %12, align 4, !tbaa !5
  store i32 %1, ptr %13, align 4, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !9
  store i32 %3, ptr %15, align 4, !tbaa !5
  store i32 %4, ptr %16, align 4, !tbaa !5
  store i32 %5, ptr %17, align 4, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !9
  store ptr %7, ptr %19, align 8, !tbaa !9
  store ptr %8, ptr %20, align 8, !tbaa !9
  store ptr %9, ptr %21, align 8, !tbaa !9
  store i32 %10, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %32 = load i32, ptr %16, align 4, !tbaa !5
  %33 = load i32, ptr %15, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %35, label %39

35:                                               ; preds = %11
  %36 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %36, ptr %25, align 4, !tbaa !5
  %37 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %37, ptr %16, align 4, !tbaa !5
  %38 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %38, ptr %15, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %35, %11
  %40 = load i32, ptr %12, align 4, !tbaa !5
  %41 = load i32, ptr %13, align 4, !tbaa !5
  %42 = load ptr, ptr %14, align 8, !tbaa !9
  %43 = load i32, ptr %15, align 4, !tbaa !5
  %44 = load i32, ptr %17, align 4, !tbaa !5
  %45 = load ptr, ptr %21, align 8, !tbaa !9
  %46 = call i32 @TA_MA(i32 noundef %40, i32 noundef %41, ptr noundef %42, i32 noundef %43, i32 noundef %44, ptr noundef %28, ptr noundef %29, ptr noundef %45)
  store i32 %46, ptr %23, align 4, !tbaa !5
  %47 = load i32, ptr %23, align 4, !tbaa !5
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %143

49:                                               ; preds = %39
  %50 = load i32, ptr %12, align 4, !tbaa !5
  %51 = load i32, ptr %13, align 4, !tbaa !5
  %52 = load ptr, ptr %14, align 8, !tbaa !9
  %53 = load i32, ptr %16, align 4, !tbaa !5
  %54 = load i32, ptr %17, align 4, !tbaa !5
  %55 = load ptr, ptr %20, align 8, !tbaa !9
  %56 = call i32 @TA_MA(i32 noundef %50, i32 noundef %51, ptr noundef %52, i32 noundef %53, i32 noundef %54, ptr noundef %26, ptr noundef %27, ptr noundef %55)
  store i32 %56, ptr %23, align 4, !tbaa !5
  %57 = load i32, ptr %23, align 4, !tbaa !5
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %142

59:                                               ; preds = %49
  %60 = load i32, ptr %26, align 4, !tbaa !5
  %61 = load i32, ptr %28, align 4, !tbaa !5
  %62 = sub nsw i32 %60, %61
  store i32 %62, ptr %25, align 4, !tbaa !5
  %63 = load i32, ptr %22, align 4, !tbaa !5
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %109

65:                                               ; preds = %59
  store i32 0, ptr %30, align 4, !tbaa !5
  %66 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %66, ptr %31, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %103, %65
  %68 = load i32, ptr %30, align 4, !tbaa !5
  %69 = load i32, ptr %27, align 4, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %71, label %108

71:                                               ; preds = %67
  %72 = load ptr, ptr %20, align 8, !tbaa !9
  %73 = load i32, ptr %30, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !11
  store double %76, ptr %24, align 8, !tbaa !11
  %77 = load double, ptr %24, align 8, !tbaa !11
  %78 = fcmp olt double 0xBD06849B86A12B9B, %77
  br i1 %78, label %79, label %82

79:                                               ; preds = %71
  %80 = load double, ptr %24, align 8, !tbaa !11
  %81 = fcmp olt double %80, 0x3D06849B86A12B9B
  br i1 %81, label %97, label %82

82:                                               ; preds = %79, %71
  %83 = load ptr, ptr %21, align 8, !tbaa !9
  %84 = load i32, ptr %31, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = load double, ptr %24, align 8, !tbaa !11
  %89 = fsub double %87, %88
  %90 = load double, ptr %24, align 8, !tbaa !11
  %91 = fdiv double %89, %90
  %92 = fmul double %91, 1.000000e+02
  %93 = load ptr, ptr %20, align 8, !tbaa !9
  %94 = load i32, ptr %30, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %93, i64 %95
  store double %92, ptr %96, align 8, !tbaa !11
  br label %102

97:                                               ; preds = %79
  %98 = load ptr, ptr %20, align 8, !tbaa !9
  %99 = load i32, ptr %30, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %98, i64 %100
  store double 0.000000e+00, ptr %101, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %97, %82
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %30, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %30, align 4, !tbaa !5
  %106 = load i32, ptr %31, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %31, align 4, !tbaa !5
  br label %67, !llvm.loop !13

108:                                              ; preds = %67
  br label %137

109:                                              ; preds = %59
  store i32 0, ptr %30, align 4, !tbaa !5
  %110 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %110, ptr %31, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %131, %109
  %112 = load i32, ptr %30, align 4, !tbaa !5
  %113 = load i32, ptr %27, align 4, !tbaa !5
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %115, label %136

115:                                              ; preds = %111
  %116 = load ptr, ptr %21, align 8, !tbaa !9
  %117 = load i32, ptr %31, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !11
  %121 = load ptr, ptr %20, align 8, !tbaa !9
  %122 = load i32, ptr %30, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %121, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !11
  %126 = fsub double %120, %125
  %127 = load ptr, ptr %20, align 8, !tbaa !9
  %128 = load i32, ptr %30, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds double, ptr %127, i64 %129
  store double %126, ptr %130, align 8, !tbaa !11
  br label %131

131:                                              ; preds = %115
  %132 = load i32, ptr %30, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %30, align 4, !tbaa !5
  %134 = load i32, ptr %31, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %31, align 4, !tbaa !5
  br label %111, !llvm.loop !15

136:                                              ; preds = %111
  br label %137

137:                                              ; preds = %136, %108
  %138 = load i32, ptr %26, align 4, !tbaa !5
  %139 = load ptr, ptr %18, align 8, !tbaa !9
  store i32 %138, ptr %139, align 4, !tbaa !5
  %140 = load i32, ptr %27, align 4, !tbaa !5
  %141 = load ptr, ptr %19, align 8, !tbaa !9
  store i32 %140, ptr %141, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %137, %49
  br label %143

143:                                              ; preds = %142, %39
  %144 = load i32, ptr %23, align 4, !tbaa !5
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %149

146:                                              ; preds = %143
  %147 = load ptr, ptr %18, align 8, !tbaa !9
  store i32 0, ptr %147, align 4, !tbaa !5
  %148 = load ptr, ptr %19, align 8, !tbaa !9
  store i32 0, ptr %148, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %146, %143
  %150 = load i32, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  ret i32 %150
}

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

declare i32 @TA_MA(i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, 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 = { 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 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @TA_INT_PO(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef writeonly %7, ptr noundef %8, ptr noundef %9, i32 noundef %10) local_unnamed_addr #1 {
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  %spec.select65 = tail call i32 @llvm.smin.i32(i32 %4, i32 %3)
  %16 = call i32 @TA_MA(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %spec.select65, i32 noundef %5, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %9) #4
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %.loopexit

18:                                               ; preds = %11
  %spec.select = call i32 @llvm.smax.i32(i32 %4, i32 %3)
  %19 = call i32 @TA_MA(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %spec.select, i32 noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %8) #4
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %.loopexit

21:                                               ; preds = %18
  %22 = load i32, ptr %12, align 4, !tbaa !5
  %23 = load i32, ptr %14, align 4, !tbaa !5
  %24 = sub i32 %22, %23
  %.not = icmp eq i32 %10, 0
  %25 = load i32, ptr %13, align 4, !tbaa !5
  %26 = icmp sgt i32 %25, 0
  br i1 %.not, label %.preheader, label %.preheader71

.preheader71:                                     ; preds = %21
  br i1 %26, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader71
  %27 = sext i32 %24 to i64
  %wide.trip.count = zext nneg i32 %25 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %21
  br i1 %26, label %.lr.ph77.preheader, label %.loopexit

.lr.ph77.preheader:                               ; preds = %.preheader
  %28 = sext i32 %24 to i64
  %wide.trip.count91 = zext nneg i32 %25 to i64
  %min.iters.check = icmp ult i32 %25, 8
  br i1 %min.iters.check, label %.lr.ph77.preheader102, label %vector.memcheck

.lr.ph77.preheader102:                            ; preds = %middle.block, %vector.memcheck, %.lr.ph77.preheader
  %indvars.iv86.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph77.preheader ], [ %n.vec, %middle.block ]
  %indvars.iv84.ph = phi i64 [ %28, %vector.memcheck ], [ %28, %.lr.ph77.preheader ], [ %ind.end, %middle.block ]
  %xtraiter = and i64 %wide.trip.count91, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph77.prol.loopexit, label %.lr.ph77.prol

.lr.ph77.prol:                                    ; preds = %.lr.ph77.preheader102
  %29 = getelementptr inbounds double, ptr %9, i64 %indvars.iv84.ph
  %30 = load double, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds double, ptr %8, i64 %indvars.iv86.ph
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = fsub double %30, %32
  store double %33, ptr %31, align 8, !tbaa !9
  %indvars.iv.next87.prol = or disjoint i64 %indvars.iv86.ph, 1
  %indvars.iv.next85.prol = add nsw i64 %indvars.iv84.ph, 1
  br label %.lr.ph77.prol.loopexit

.lr.ph77.prol.loopexit:                           ; preds = %.lr.ph77.prol, %.lr.ph77.preheader102
  %indvars.iv86.unr = phi i64 [ %indvars.iv86.ph, %.lr.ph77.preheader102 ], [ %indvars.iv.next87.prol, %.lr.ph77.prol ]
  %indvars.iv84.unr = phi i64 [ %indvars.iv84.ph, %.lr.ph77.preheader102 ], [ %indvars.iv.next85.prol, %.lr.ph77.prol ]
  %34 = add nsw i64 %wide.trip.count91, -1
  %35 = icmp eq i64 %indvars.iv86.ph, %34
  br i1 %35, label %.loopexit, label %.lr.ph77.preheader102.new

.lr.ph77.preheader102.new:                        ; preds = %.lr.ph77.prol.loopexit
  %invariant.gep104 = getelementptr i8, ptr %9, i64 8
  %invariant.gep106 = getelementptr i8, ptr %8, i64 8
  br label %.lr.ph77

vector.memcheck:                                  ; preds = %.lr.ph77.preheader
  %36 = shl nuw nsw i64 %wide.trip.count91, 3
  %scevgep = getelementptr i8, ptr %8, i64 %36
  %37 = shl nsw i64 %28, 3
  %scevgep96 = getelementptr i8, ptr %9, i64 %37
  %38 = getelementptr i8, ptr %9, i64 %37
  %scevgep97 = getelementptr i8, ptr %38, i64 %36
  %bound0 = icmp ugt ptr %scevgep97, %8
  %bound1 = icmp ult ptr %scevgep96, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph77.preheader102, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count91, 2147483644
  %ind.end = add nsw i64 %n.vec, %28
  %invariant.gep = getelementptr double, ptr %9, i64 %28
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %index
  %39 = getelementptr inbounds i8, ptr %gep, i64 16
  %wide.load = load <2 x double>, ptr %gep, align 8, !tbaa !9, !alias.scope !11
  %wide.load99 = load <2 x double>, ptr %39, align 8, !tbaa !9, !alias.scope !11
  %40 = getelementptr inbounds double, ptr %8, i64 %index
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %wide.load100 = load <2 x double>, ptr %40, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %wide.load101 = load <2 x double>, ptr %41, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %42 = fsub <2 x double> %wide.load, %wide.load100
  %43 = fsub <2 x double> %wide.load99, %wide.load101
  store <2 x double> %42, ptr %40, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  store <2 x double> %43, ptr %41, align 8, !tbaa !9, !alias.scope !14, !noalias !11
  %index.next = add nuw i64 %index, 4
  %44 = icmp eq i64 %index.next, %n.vec
  br i1 %44, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count91
  br i1 %cmp.n, label %.loopexit, label %.lr.ph77.preheader102

.lr.ph:                                           ; preds = %.lr.ph.preheader, %54
  %indvars.iv79 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next80, %54 ]
  %indvars.iv = phi i64 [ %27, %.lr.ph.preheader ], [ %indvars.iv.next, %54 ]
  %45 = getelementptr inbounds double, ptr %8, i64 %indvars.iv79
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = call double @llvm.fabs.f64(double %46)
  %or.cond = fcmp olt double %47, 0x3D06849B86A12B9B
  br i1 %or.cond, label %54, label %48

48:                                               ; preds = %.lr.ph
  %49 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = fsub double %50, %46
  %52 = fdiv double %51, %46
  %53 = fmul double %52, 1.000000e+02
  br label %54

54:                                               ; preds = %.lr.ph, %48
  %storemerge = phi double [ %53, %48 ], [ 0.000000e+00, %.lr.ph ]
  store double %storemerge, ptr %45, align 8, !tbaa !9
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !20

.lr.ph77:                                         ; preds = %.lr.ph77, %.lr.ph77.preheader102.new
  %indvars.iv86 = phi i64 [ %indvars.iv86.unr, %.lr.ph77.preheader102.new ], [ %indvars.iv.next87.1, %.lr.ph77 ]
  %indvars.iv84 = phi i64 [ %indvars.iv84.unr, %.lr.ph77.preheader102.new ], [ %indvars.iv.next85.1, %.lr.ph77 ]
  %55 = getelementptr inbounds double, ptr %9, i64 %indvars.iv84
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds double, ptr %8, i64 %indvars.iv86
  %58 = load double, ptr %57, align 8, !tbaa !9
  %59 = fsub double %56, %58
  store double %59, ptr %57, align 8, !tbaa !9
  %gep105 = getelementptr double, ptr %invariant.gep104, i64 %indvars.iv84
  %60 = load double, ptr %gep105, align 8, !tbaa !9
  %gep107 = getelementptr double, ptr %invariant.gep106, i64 %indvars.iv86
  %61 = load double, ptr %gep107, align 8, !tbaa !9
  %62 = fsub double %60, %61
  store double %62, ptr %gep107, align 8, !tbaa !9
  %indvars.iv.next87.1 = add nuw nsw i64 %indvars.iv86, 2
  %indvars.iv.next85.1 = add nsw i64 %indvars.iv84, 2
  %exitcond92.not.1 = icmp eq i64 %indvars.iv.next87.1, %wide.trip.count91
  br i1 %exitcond92.not.1, label %.loopexit, label %.lr.ph77, !llvm.loop !21

.loopexit:                                        ; preds = %54, %.lr.ph77.prol.loopexit, %.lr.ph77, %middle.block, %11, %18, %.preheader, %.preheader71
  %storemerge93 = phi i32 [ %22, %.preheader71 ], [ %22, %.preheader ], [ 0, %18 ], [ 0, %11 ], [ %22, %middle.block ], [ %22, %.lr.ph77 ], [ %22, %.lr.ph77.prol.loopexit ], [ %22, %54 ]
  %storemerge70 = phi i32 [ %25, %.preheader71 ], [ %25, %.preheader ], [ 0, %18 ], [ 0, %11 ], [ %25, %middle.block ], [ %25, %.lr.ph77 ], [ %25, %.lr.ph77.prol.loopexit ], [ %25, %54 ]
  %.05569 = phi i32 [ 0, %.preheader71 ], [ 0, %.preheader ], [ %19, %18 ], [ %16, %11 ], [ 0, %middle.block ], [ 0, %.lr.ph77 ], [ 0, %.lr.ph77.prol.loopexit ], [ 0, %54 ]
  store i32 %storemerge93, ptr %6, align 4, !tbaa !5
  store i32 %storemerge70, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  ret i32 %.05569
}

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

declare i32 @TA_MA(i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #3

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12}
!12 = distinct !{!12, !13}
!13 = distinct !{!13, !"LVerDomain"}
!14 = !{!15}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17, !18}


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