; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libUSAC/utils (FundmatrixFunctions)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6FTools17computeHFromCorrsERKSt6vectorIjSaIjEEjjPdS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [81 x double], align 16
  %19 = alloca [9 x double], align 16
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = mul i32 %24, 2
  %26 = mul i32 %25, 9
  %27 = zext i32 %26 to i64
  %28 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %27, i64 8)
  %29 = extractvalue { i64, i1 } %28, 1
  %30 = extractvalue { i64, i1 } %28, 0
  %31 = select i1 %29, i64 -1, i64 %30
  %32 = call noalias noundef nonnull ptr @_Znam(i64 noundef %31) #8
  store ptr %32, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %33, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %80, %5
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = icmp ult i32 %35, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %34
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %83

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %76, %39
  %41 = load i32, ptr %16, align 4, !tbaa !9
  %42 = icmp ult i32 %41, 2
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %79

44:                                               ; preds = %40
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #7
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = mul i32 2, %50
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds double, ptr %45, i64 %52
  %54 = load i32, ptr %16, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %53, i64 %55
  store ptr %56, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %72, %44
  %58 = load i32, ptr %17, align 4, !tbaa !9
  %59 = icmp ult i32 %58, 9
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %75

61:                                               ; preds = %57
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  store double %63, ptr %64, align 8, !tbaa !11
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = getelementptr inbounds double, ptr %65, i32 1
  store ptr %66, ptr %13, align 8, !tbaa !5
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = mul i32 2, %67
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = zext i32 %68 to i64
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  store ptr %71, ptr %12, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %61
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = add i32 %73, 1
  store i32 %74, ptr %17, align 4, !tbaa !9
  br label %57, !llvm.loop !13

75:                                               ; preds = %60
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %16, align 4, !tbaa !9
  %78 = add i32 %77, 1
  store i32 %78, ptr %16, align 4, !tbaa !9
  br label %40, !llvm.loop !15

79:                                               ; preds = %43
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = add i32 %81, 1
  store i32 %82, ptr %14, align 4, !tbaa !9
  br label %34, !llvm.loop !16

83:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 648, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %84 = getelementptr inbounds [9 x double], ptr %19, i64 0, i64 0
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = mul i32 2, %86
  %88 = getelementptr inbounds [81 x double], ptr %18, i64 0, i64 0
  %89 = call noundef i32 @_ZN9MathTools6svdu1vEPdS0_iS0_i(ptr noundef %84, ptr noundef %85, i32 noundef %87, ptr noundef %88, i32 noundef 9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %107, %83
  %91 = load i32, ptr %22, align 4, !tbaa !9
  %92 = icmp ult i32 %91, 9
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  store i32 11, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %110

94:                                               ; preds = %90
  %95 = load i32, ptr %22, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds [9 x double], ptr %19, i64 0, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = load i32, ptr %21, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds [9 x double], ptr %19, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = fcmp olt double %98, %102
  br i1 %103, label %104, label %106

104:                                              ; preds = %94
  %105 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %105, ptr %21, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %104, %94
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %22, align 4, !tbaa !9
  %109 = add i32 %108, 1
  store i32 %109, ptr %22, align 4, !tbaa !9
  br label %90, !llvm.loop !17

110:                                              ; preds = %93
  %111 = getelementptr inbounds [81 x double], ptr %18, i64 0, i64 0
  %112 = load i32, ptr %21, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  store ptr %114, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %128, %110
  %116 = load i32, ptr %23, align 4, !tbaa !9
  %117 = icmp ult i32 %116, 9
  br i1 %117, label %119, label %118

118:                                              ; preds = %115
  store i32 14, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %131

119:                                              ; preds = %115
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = load i32, ptr %23, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds double, ptr %122, i64 %124
  store double %121, ptr %125, align 8, !tbaa !11
  %126 = load ptr, ptr %20, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i64 9
  store ptr %127, ptr %20, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %119
  %129 = load i32, ptr %23, align 4, !tbaa !9
  %130 = add i32 %129, 1
  store i32 %130, ptr %23, align 4, !tbaa !9
  br label %115, !llvm.loop !18

131:                                              ; preds = %118
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = icmp eq ptr %132, null
  br i1 %133, label %135, label %134

134:                                              ; preds = %131
  call void @_ZdlPvm(ptr noundef %132, i64 noundef 8) #9
  br label %135

135:                                              ; preds = %134, %131
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 648, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret i32 1
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

declare noundef i32 @_ZN9MathTools6svdu1vEPdS0_iS0_i(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 = { "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 #6 = { nobuiltin nounwind "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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6FTools17computeHFromCorrsERKSt6vectorIjSaIjEEjjPdS5_(ptr noundef nonnull align 8 dereferenceable(24) %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #2 {
  %6 = alloca [81 x double], align 16
  %7 = alloca [9 x double], align 16
  %8 = mul i32 %1, 18
  %9 = zext i32 %8 to i64
  %10 = shl nuw nsw i64 %9, 3
  %11 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %10) #6
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %._crit_edge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %5
  %12 = shl i32 %2, 1
  %13 = zext i32 %12 to i64
  %wide.trip.count = zext i32 %1 to i64
  %invariant.gep = getelementptr inbounds i8, ptr %3, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next, %.preheader ]
  %.03846 = phi ptr [ %11, %.preheader.lr.ph ], [ %74, %.preheader ]
  %14 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #7
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = shl i32 %15, 1
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds double, ptr %3, i64 %17
  %19 = load double, ptr %18, align 8, !tbaa !9
  store double %19, ptr %.03846, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %.03846, i64 8
  %21 = getelementptr inbounds double, ptr %18, i64 %13
  %22 = load double, ptr %21, align 8, !tbaa !9
  store double %22, ptr %20, align 8, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %.03846, i64 16
  %24 = getelementptr inbounds double, ptr %21, i64 %13
  %25 = load double, ptr %24, align 8, !tbaa !9
  store double %25, ptr %23, align 8, !tbaa !9
  %26 = getelementptr inbounds i8, ptr %.03846, i64 24
  %27 = getelementptr inbounds double, ptr %24, i64 %13
  %28 = load double, ptr %27, align 8, !tbaa !9
  store double %28, ptr %26, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %.03846, i64 32
  %30 = getelementptr inbounds double, ptr %27, i64 %13
  %31 = load double, ptr %30, align 8, !tbaa !9
  store double %31, ptr %29, align 8, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %.03846, i64 40
  %33 = getelementptr inbounds double, ptr %30, i64 %13
  %34 = load double, ptr %33, align 8, !tbaa !9
  store double %34, ptr %32, align 8, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %.03846, i64 48
  %36 = getelementptr inbounds double, ptr %33, i64 %13
  %37 = load double, ptr %36, align 8, !tbaa !9
  store double %37, ptr %35, align 8, !tbaa !9
  %38 = getelementptr inbounds i8, ptr %.03846, i64 56
  %39 = getelementptr inbounds double, ptr %36, i64 %13
  %40 = load double, ptr %39, align 8, !tbaa !9
  store double %40, ptr %38, align 8, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %.03846, i64 64
  %42 = getelementptr inbounds double, ptr %39, i64 %13
  %43 = load double, ptr %42, align 8, !tbaa !9
  store double %43, ptr %41, align 8, !tbaa !9
  %44 = getelementptr inbounds i8, ptr %.03846, i64 72
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %indvars.iv) #7
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = shl i32 %46, 1
  %48 = zext i32 %47 to i64
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %48
  %49 = load double, ptr %gep, align 8, !tbaa !9
  store double %49, ptr %44, align 8, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %.03846, i64 80
  %51 = getelementptr inbounds double, ptr %gep, i64 %13
  %52 = load double, ptr %51, align 8, !tbaa !9
  store double %52, ptr %50, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %.03846, i64 88
  %54 = getelementptr inbounds double, ptr %51, i64 %13
  %55 = load double, ptr %54, align 8, !tbaa !9
  store double %55, ptr %53, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %.03846, i64 96
  %57 = getelementptr inbounds double, ptr %54, i64 %13
  %58 = load double, ptr %57, align 8, !tbaa !9
  store double %58, ptr %56, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %.03846, i64 104
  %60 = getelementptr inbounds double, ptr %57, i64 %13
  %61 = load double, ptr %60, align 8, !tbaa !9
  store double %61, ptr %59, align 8, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %.03846, i64 112
  %63 = getelementptr inbounds double, ptr %60, i64 %13
  %64 = load double, ptr %63, align 8, !tbaa !9
  store double %64, ptr %62, align 8, !tbaa !9
  %65 = getelementptr inbounds i8, ptr %.03846, i64 120
  %66 = getelementptr inbounds double, ptr %63, i64 %13
  %67 = load double, ptr %66, align 8, !tbaa !9
  store double %67, ptr %65, align 8, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %.03846, i64 128
  %69 = getelementptr inbounds double, ptr %66, i64 %13
  %70 = load double, ptr %69, align 8, !tbaa !9
  store double %70, ptr %68, align 8, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %.03846, i64 136
  %72 = getelementptr inbounds double, ptr %69, i64 %13
  %73 = load double, ptr %72, align 8, !tbaa !9
  store double %73, ptr %71, align 8, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %.03846, i64 144
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %.preheader, %5
  %75 = shl i32 %1, 1
  call void @llvm.lifetime.start.p0(i64 648, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #7
  %76 = call noundef i32 @_ZN9MathTools6svdu1vEPdS0_iS0_i(ptr noundef nonnull %7, ptr noundef nonnull %11, i32 noundef %75, ptr noundef nonnull %6, i32 noundef 9)
  %77 = getelementptr inbounds i8, ptr %7, i64 8
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = load double, ptr %7, align 16, !tbaa !9
  %80 = fcmp olt double %78, %79
  %.1 = zext i1 %80 to i32
  %81 = getelementptr inbounds i8, ptr %7, i64 16
  %82 = load double, ptr %81, align 16, !tbaa !9
  %83 = zext i1 %80 to i64
  %84 = getelementptr inbounds [9 x double], ptr %7, i64 0, i64 %83
  %85 = load double, ptr %84, align 8, !tbaa !9
  %86 = fcmp olt double %82, %85
  %.1.1 = select i1 %86, i32 2, i32 %.1
  %87 = getelementptr inbounds i8, ptr %7, i64 24
  %88 = load double, ptr %87, align 8, !tbaa !9
  %89 = zext nneg i32 %.1.1 to i64
  %90 = getelementptr inbounds [9 x double], ptr %7, i64 0, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = fcmp olt double %88, %91
  %.1.2 = select i1 %92, i32 3, i32 %.1.1
  %93 = getelementptr inbounds i8, ptr %7, i64 32
  %94 = load double, ptr %93, align 16, !tbaa !9
  %95 = zext nneg i32 %.1.2 to i64
  %96 = getelementptr inbounds [9 x double], ptr %7, i64 0, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !9
  %98 = fcmp olt double %94, %97
  %.1.3 = select i1 %98, i32 4, i32 %.1.2
  %99 = getelementptr inbounds i8, ptr %7, i64 40
  %100 = load double, ptr %99, align 8, !tbaa !9
  %101 = zext nneg i32 %.1.3 to i64
  %102 = getelementptr inbounds [9 x double], ptr %7, i64 0, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = fcmp olt double %100, %103
  %.1.4 = select i1 %104, i32 5, i32 %.1.3
  %105 = getelementptr inbounds i8, ptr %7, i64 48
  %106 = load double, ptr %105, align 16, !tbaa !9
  %107 = zext nneg i32 %.1.4 to i64
  %108 = getelementptr inbounds [9 x double], ptr %7, i64 0, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !9
  %110 = fcmp olt double %106, %109
  %.1.5 = select i1 %110, i32 6, i32 %.1.4
  %111 = getelementptr inbounds i8, ptr %7, i64 56
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = zext nneg i32 %.1.5 to i64
  %114 = getelementptr inbounds [9 x double], ptr %7, i64 0, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !9
  %116 = fcmp olt double %112, %115
  %.1.6 = select i1 %116, i32 7, i32 %.1.5
  %117 = getelementptr inbounds i8, ptr %7, i64 64
  %118 = load double, ptr %117, align 16, !tbaa !9
  %119 = zext nneg i32 %.1.6 to i64
  %120 = getelementptr inbounds [9 x double], ptr %7, i64 0, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = fcmp olt double %118, %121
  %123 = zext nneg i32 %.1.6 to i64
  %124 = select i1 %122, i64 8, i64 %123
  %125 = getelementptr inbounds double, ptr %6, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !9
  store double %126, ptr %4, align 8, !tbaa !9
  %127 = getelementptr inbounds i8, ptr %125, i64 72
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %4, i64 8
  store double %128, ptr %129, align 8, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %125, i64 144
  %131 = load double, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds i8, ptr %4, i64 16
  store double %131, ptr %132, align 8, !tbaa !9
  %133 = getelementptr inbounds i8, ptr %125, i64 216
  %134 = load double, ptr %133, align 8, !tbaa !9
  %135 = getelementptr inbounds i8, ptr %4, i64 24
  store double %134, ptr %135, align 8, !tbaa !9
  %136 = getelementptr inbounds i8, ptr %125, i64 288
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = getelementptr inbounds i8, ptr %4, i64 32
  store double %137, ptr %138, align 8, !tbaa !9
  %139 = getelementptr inbounds i8, ptr %125, i64 360
  %140 = load double, ptr %139, align 8, !tbaa !9
  %141 = getelementptr inbounds i8, ptr %4, i64 40
  store double %140, ptr %141, align 8, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %125, i64 432
  %143 = load double, ptr %142, align 8, !tbaa !9
  %144 = getelementptr inbounds i8, ptr %4, i64 48
  store double %143, ptr %144, align 8, !tbaa !9
  %145 = getelementptr inbounds i8, ptr %125, i64 504
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds i8, ptr %4, i64 56
  store double %146, ptr %147, align 8, !tbaa !9
  %148 = getelementptr inbounds i8, ptr %125, i64 576
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds i8, ptr %4, i64 64
  store double %149, ptr %150, align 8, !tbaa !9
  call void @_ZdlPvm(ptr noundef nonnull %11, i64 noundef 8) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 648, ptr nonnull %6) #7
  ret i32 1
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN9MathTools6svdu1vEPdS0_iS0_i(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin allocsize(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 #4 = { "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 = { nobuiltin nounwind "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 #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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