; LLVM IR from NaokiHori/VerySimpleNSSolver :: src/integrate/predict/compute_duy (advx)

; 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.domain_t = type { double, double, i64, i64, double, double }

@uy_jmin = external constant i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @uy_advx(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store double %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.domain_t, ptr %21, i32 0, i32 2
  %23 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %23, ptr %11, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.domain_t, ptr %24, i32 0, i32 3
  %26 = load i64, ptr %25, align 8, !tbaa !15
  store i64 %26, ptr %12, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.domain_t, ptr %27, i32 0, i32 4
  %29 = load double, ptr %28, align 8, !tbaa !16
  store double %29, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %30 = load i64, ptr @uy_jmin, align 8, !tbaa !14
  store i64 %30, ptr %14, align 8, !tbaa !14
  br label %31

31:                                               ; preds = %139, %5
  %32 = load i64, ptr %14, align 8, !tbaa !14
  %33 = load i64, ptr %12, align 8, !tbaa !14
  %34 = icmp ule i64 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %142

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store i64 1, ptr %16, align 8, !tbaa !14
  br label %37

37:                                               ; preds = %135, %36
  %38 = load i64, ptr %16, align 8, !tbaa !14
  %39 = load i64, ptr %11, align 8, !tbaa !14
  %40 = icmp ule i64 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %138

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load i64, ptr %14, align 8, !tbaa !14
  %45 = sub i64 %44, 1
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = load i64, ptr %16, align 8, !tbaa !14
  %49 = getelementptr inbounds double, ptr %47, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = load i64, ptr %14, align 8, !tbaa !14
  %53 = getelementptr inbounds ptr, ptr %51, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = load i64, ptr %16, align 8, !tbaa !14
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = fmul double 5.000000e-01, %57
  %59 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %50, double %58)
  store double %59, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = load i64, ptr %14, align 8, !tbaa !14
  %62 = sub i64 %61, 1
  %63 = getelementptr inbounds ptr, ptr %60, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = load i64, ptr %16, align 8, !tbaa !14
  %66 = add i64 %65, 1
  %67 = getelementptr inbounds double, ptr %64, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i64, ptr %14, align 8, !tbaa !14
  %71 = getelementptr inbounds ptr, ptr %69, i64 %70
  %72 = load ptr, ptr %71, align 8, !tbaa !5
  %73 = load i64, ptr %16, align 8, !tbaa !14
  %74 = add i64 %73, 1
  %75 = getelementptr inbounds double, ptr %72, i64 %74
  %76 = load double, ptr %75, align 8, !tbaa !9
  %77 = fmul double 5.000000e-01, %76
  %78 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %68, double %77)
  store double %78, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = load i64, ptr %14, align 8, !tbaa !14
  %81 = getelementptr inbounds ptr, ptr %79, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = load i64, ptr %16, align 8, !tbaa !14
  %84 = sub i64 %83, 1
  %85 = getelementptr inbounds double, ptr %82, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !9
  %87 = fneg double %86
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i64, ptr %14, align 8, !tbaa !14
  %90 = getelementptr inbounds ptr, ptr %88, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = load i64, ptr %16, align 8, !tbaa !14
  %93 = getelementptr inbounds double, ptr %91, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = fadd double %87, %94
  store double %95, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i64, ptr %14, align 8, !tbaa !14
  %98 = getelementptr inbounds ptr, ptr %96, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = load i64, ptr %16, align 8, !tbaa !14
  %101 = getelementptr inbounds double, ptr %99, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !9
  %103 = fneg double %102
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load i64, ptr %14, align 8, !tbaa !14
  %106 = getelementptr inbounds ptr, ptr %104, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = load i64, ptr %16, align 8, !tbaa !14
  %109 = add i64 %108, 1
  %110 = getelementptr inbounds double, ptr %107, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = fadd double %103, %111
  store double %112, ptr %20, align 8, !tbaa !9
  %113 = load double, ptr %9, align 8, !tbaa !9
  %114 = load double, ptr %13, align 8, !tbaa !9
  %115 = fdiv double 5.000000e-01, %114
  %116 = load double, ptr %17, align 8, !tbaa !9
  %117 = fmul double %115, %116
  %118 = load double, ptr %19, align 8, !tbaa !9
  %119 = load double, ptr %13, align 8, !tbaa !9
  %120 = fdiv double 5.000000e-01, %119
  %121 = load double, ptr %18, align 8, !tbaa !9
  %122 = fmul double %120, %121
  %123 = load double, ptr %20, align 8, !tbaa !9
  %124 = fmul double %122, %123
  %125 = call double @llvm.fmuladd.f64(double %117, double %118, double %124)
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = load i64, ptr %14, align 8, !tbaa !14
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = load i64, ptr %16, align 8, !tbaa !14
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !9
  %133 = fneg double %113
  %134 = call double @llvm.fmuladd.f64(double %133, double %125, double %132)
  store double %134, ptr %131, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %135

135:                                              ; preds = %42
  %136 = load i64, ptr %16, align 8, !tbaa !14
  %137 = add i64 %136, 1
  store i64 %137, ptr %16, align 8, !tbaa !14
  br label %37, !llvm.loop !17

138:                                              ; preds = %41
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %14, align 8, !tbaa !14
  %141 = add i64 %140, 1
  store i64 %141, ptr %14, align 8, !tbaa !14
  br label %31, !llvm.loop !19

142:                                              ; preds = %35
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret i32 0
}

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"", !10, i64 0, !10, i64 8, !13, i64 16, !13, i64 24, !10, i64 32, !10, i64 40}
!13 = !{!"long", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 24}
!16 = !{!12, !10, i64 32}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !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"

@uy_jmin = external local_unnamed_addr constant i64, align 8

; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local noundef i32 @uy_advx(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, double noundef %3, ptr nocapture noundef readonly %4) local_unnamed_addr #0 {
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i64, ptr %8, align 8, !tbaa !11
  %10 = load i64, ptr @uy_jmin, align 8, !tbaa !12
  %.not46 = icmp ugt i64 %10, %9
  br i1 %.not46, label %._crit_edge48, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %5
  %11 = getelementptr inbounds i8, ptr %0, i64 32
  %12 = load double, ptr %11, align 8, !tbaa !13
  %.not4344 = icmp eq i64 %7, 0
  %13 = fdiv double 5.000000e-01, %12
  %14 = fneg double %3
  br i1 %.not4344, label %._crit_edge48, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %15 = add i64 %7, 1
  %umax = tail call i64 @llvm.umax.i64(i64 %15, i64 2)
  %16 = shl i64 %umax, 3
  %17 = add i64 %16, 8
  %18 = add i64 %umax, -1
  %min.iters.check = icmp ult i64 %15, 3
  %n.vec = and i64 %18, -2
  %ind.end = or i64 %18, 1
  %broadcast.splatinsert = insertelement <2 x double> poison, double %13, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert70 = insertelement <2 x double> poison, double %14, i64 0
  %broadcast.splat71 = shufflevector <2 x double> %broadcast.splatinsert70, <2 x double> poison, <2 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %18, %n.vec
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %.047 = phi i64 [ %48, %._crit_edge ], [ %10, %.preheader.preheader ]
  %19 = getelementptr ptr, ptr %1, i64 %.047
  %20 = getelementptr i8, ptr %19, i64 -8
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = load ptr, ptr %19, align 8, !tbaa !14
  %23 = getelementptr inbounds ptr, ptr %2, i64 %.047
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds ptr, ptr %4, i64 %.047
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader
  %.04245.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.preheader ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.memcheck:                                  ; preds = %.preheader
  %scevgep = getelementptr i8, ptr %26, i64 8
  %scevgep50 = getelementptr i8, ptr %26, i64 %16
  %scevgep51 = getelementptr i8, ptr %21, i64 8
  %scevgep52 = getelementptr i8, ptr %21, i64 %17
  %scevgep53 = getelementptr i8, ptr %22, i64 8
  %scevgep54 = getelementptr i8, ptr %22, i64 %17
  %scevgep55 = getelementptr i8, ptr %24, i64 %17
  %bound0 = icmp ult ptr %scevgep, %scevgep52
  %bound1 = icmp ult ptr %scevgep51, %scevgep50
  %found.conflict = and i1 %bound0, %bound1
  %bound056 = icmp ult ptr %scevgep, %scevgep54
  %bound157 = icmp ult ptr %scevgep53, %scevgep50
  %found.conflict58 = and i1 %bound056, %bound157
  %conflict.rdx = or i1 %found.conflict, %found.conflict58
  %bound059 = icmp ult ptr %scevgep, %scevgep55
  %bound160 = icmp ult ptr %24, %scevgep50
  %found.conflict61 = and i1 %bound059, %bound160
  %conflict.rdx62 = or i1 %conflict.rdx, %found.conflict61
  br i1 %conflict.rdx62, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %offset.idx = or disjoint i64 %index, 1
  %27 = getelementptr inbounds double, ptr %21, i64 %offset.idx
  %wide.load = load <2 x double>, ptr %27, align 8, !tbaa !16, !alias.scope !17
  %28 = getelementptr inbounds double, ptr %22, i64 %offset.idx
  %wide.load63 = load <2 x double>, ptr %28, align 8, !tbaa !16, !alias.scope !20
  %29 = fmul <2 x double> %wide.load63, <double 5.000000e-01, double 5.000000e-01>
  %30 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load, <2 x double> <double 5.000000e-01, double 5.000000e-01>, <2 x double> %29)
  %31 = add nuw i64 %index, 2
  %32 = getelementptr inbounds double, ptr %21, i64 %31
  %wide.load64 = load <2 x double>, ptr %32, align 8, !tbaa !16, !alias.scope !17
  %33 = getelementptr inbounds double, ptr %22, i64 %31
  %wide.load65 = load <2 x double>, ptr %33, align 8, !tbaa !16, !alias.scope !20
  %34 = fmul <2 x double> %wide.load65, <double 5.000000e-01, double 5.000000e-01>
  %35 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load64, <2 x double> <double 5.000000e-01, double 5.000000e-01>, <2 x double> %34)
  %36 = getelementptr double, ptr %24, i64 %offset.idx
  %37 = getelementptr i8, ptr %36, i64 -8
  %wide.load66 = load <2 x double>, ptr %37, align 8, !tbaa !16, !alias.scope !22
  %wide.load67 = load <2 x double>, ptr %36, align 8, !tbaa !16, !alias.scope !22
  %38 = fsub <2 x double> %wide.load67, %wide.load66
  %39 = getelementptr inbounds double, ptr %24, i64 %31
  %wide.load68 = load <2 x double>, ptr %39, align 8, !tbaa !16, !alias.scope !22
  %40 = fsub <2 x double> %wide.load68, %wide.load67
  %41 = fmul <2 x double> %broadcast.splat, %30
  %42 = fmul <2 x double> %broadcast.splat, %35
  %43 = fmul <2 x double> %42, %40
  %44 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %41, <2 x double> %38, <2 x double> %43)
  %45 = getelementptr inbounds double, ptr %26, i64 %offset.idx
  %wide.load69 = load <2 x double>, ptr %45, align 8, !tbaa !16, !alias.scope !24, !noalias !26
  %46 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat71, <2 x double> %44, <2 x double> %wide.load69)
  store <2 x double> %46, ptr %45, align 8, !tbaa !16, !alias.scope !24, !noalias !26
  %index.next = add nuw i64 %index, 2
  %47 = icmp eq i64 %index.next, %n.vec
  br i1 %47, label %middle.block, label %vector.body, !llvm.loop !27

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge48:                                    ; preds = %._crit_edge, %.preheader.lr.ph, %5
  ret i32 0

._crit_edge:                                      ; preds = %scalar.ph, %middle.block
  %48 = add i64 %.047, 1
  %.not = icmp ugt i64 %48, %9
  br i1 %.not, label %._crit_edge48, label %.preheader, !llvm.loop !31

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.04245 = phi i64 [ %55, %scalar.ph ], [ %.04245.ph, %scalar.ph.preheader ]
  %49 = getelementptr inbounds double, ptr %21, i64 %.04245
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = getelementptr inbounds double, ptr %22, i64 %.04245
  %52 = load double, ptr %51, align 8, !tbaa !16
  %53 = fmul double %52, 5.000000e-01
  %54 = tail call double @llvm.fmuladd.f64(double %50, double 5.000000e-01, double %53)
  %55 = add nuw i64 %.04245, 1
  %56 = getelementptr inbounds double, ptr %21, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !16
  %58 = getelementptr inbounds double, ptr %22, i64 %55
  %59 = load double, ptr %58, align 8, !tbaa !16
  %60 = fmul double %59, 5.000000e-01
  %61 = tail call double @llvm.fmuladd.f64(double %57, double 5.000000e-01, double %60)
  %62 = getelementptr double, ptr %24, i64 %.04245
  %63 = getelementptr i8, ptr %62, i64 -8
  %64 = load double, ptr %63, align 8, !tbaa !16
  %65 = load double, ptr %62, align 8, !tbaa !16
  %66 = fsub double %65, %64
  %67 = getelementptr inbounds double, ptr %24, i64 %55
  %68 = load double, ptr %67, align 8, !tbaa !16
  %69 = fsub double %68, %65
  %70 = fmul double %13, %54
  %71 = fmul double %13, %61
  %72 = fmul double %71, %69
  %73 = tail call double @llvm.fmuladd.f64(double %70, double %66, double %72)
  %74 = getelementptr inbounds double, ptr %26, i64 %.04245
  %75 = load double, ptr %74, align 8, !tbaa !16
  %76 = tail call double @llvm.fmuladd.f64(double %14, double %73, double %75)
  store double %76, ptr %74, align 8, !tbaa !16
  %exitcond = icmp eq i64 %55, %umax
  br i1 %exitcond, label %._crit_edge, label %scalar.ph, !llvm.loop !32
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #2

; 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 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 24}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !7, i64 32}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18}
!18 = distinct !{!18, !19}
!19 = distinct !{!19, !"LVerDomain"}
!20 = !{!21}
!21 = distinct !{!21, !19}
!22 = !{!23}
!23 = distinct !{!23, !19}
!24 = !{!25}
!25 = distinct !{!25, !19}
!26 = !{!18, !21, !23}
!27 = distinct !{!27, !28, !29, !30}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!"llvm.loop.isvectorized", i32 1}
!30 = !{!"llvm.loop.unroll.runtime.disable"}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28, !29}


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