; LLVM IR from ERGO-Code/HiGHS :: src/ipm/basiclu (lu_file)

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

@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.lu_file_compress = external hidden unnamed_addr constant [104 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

29:                                               ; preds = %112, %8
  %30 = load i32, ptr %17, align 4, !tbaa !5
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %33, label %118

33:                                               ; preds = %29
  %34 = load ptr, ptr %10, align 8, !tbaa !9
  %35 = load i32, ptr %17, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i32, ptr %34, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  store i32 %38, ptr %19, align 4, !tbaa !5
  %39 = load ptr, ptr %11, align 8, !tbaa !9
  %40 = load i32, ptr %17, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr %39, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  store i32 %43, ptr %20, align 4, !tbaa !5
  %44 = load i32, ptr %19, align 4, !tbaa !5
  %45 = load i32, ptr %21, align 4, !tbaa !5
  %46 = icmp sge i32 %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %33
  br label %49

48:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 124, ptr noundef @__PRETTY_FUNCTION__.lu_file_compress) #5
  unreachable

49:                                               ; preds = %47
  %50 = load i32, ptr %22, align 4, !tbaa !5
  %51 = load i32, ptr %21, align 4, !tbaa !5
  %52 = add nsw i32 %51, %50
  store i32 %52, ptr %21, align 4, !tbaa !5
  %53 = load i32, ptr %21, align 4, !tbaa !5
  %54 = load i32, ptr %19, align 4, !tbaa !5
  %55 = icmp sgt i32 %53, %54
  br i1 %55, label %56, label %58

56:                                               ; preds = %49
  %57 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %57, ptr %21, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %56, %49
  %59 = load i32, ptr %21, align 4, !tbaa !5
  %60 = load ptr, ptr %10, align 8, !tbaa !9
  %61 = load i32, ptr %17, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %60, i64 %62
  store i32 %59, ptr %63, align 4, !tbaa !5
  %64 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %64, ptr %18, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %89, %58
  %66 = load i32, ptr %18, align 4, !tbaa !5
  %67 = load i32, ptr %20, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %69, label %92

69:                                               ; preds = %65
  %70 = load ptr, ptr %13, align 8, !tbaa !9
  %71 = load i32, ptr %18, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i32, ptr %70, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = load ptr, ptr %13, align 8, !tbaa !9
  %76 = load i32, ptr %21, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %75, i64 %77
  store i32 %74, ptr %78, align 4, !tbaa !5
  %79 = load ptr, ptr %14, align 8, !tbaa !9
  %80 = load i32, ptr %18, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %79, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !11
  %84 = load ptr, ptr %14, align 8, !tbaa !9
  %85 = load i32, ptr %21, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %21, align 4, !tbaa !5
  %87 = sext i32 %85 to i64
  %88 = getelementptr inbounds double, ptr %84, i64 %87
  store double %83, ptr %88, align 8, !tbaa !11
  br label %89

89:                                               ; preds = %69
  %90 = load i32, ptr %18, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %18, align 4, !tbaa !5
  br label %65, !llvm.loop !13

92:                                               ; preds = %65
  %93 = load i32, ptr %21, align 4, !tbaa !5
  %94 = load ptr, ptr %11, align 8, !tbaa !9
  %95 = load i32, ptr %17, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i32, ptr %94, i64 %96
  store i32 %93, ptr %97, align 4, !tbaa !5
  %98 = load double, ptr %15, align 8, !tbaa !11
  %99 = load i32, ptr %20, align 4, !tbaa !5
  %100 = load i32, ptr %19, align 4, !tbaa !5
  %101 = sub nsw i32 %99, %100
  %102 = sitofp i32 %101 to double
  %103 = load i32, ptr %16, align 4, !tbaa !5
  %104 = sitofp i32 %103 to double
  %105 = call double @llvm.fmuladd.f64(double %98, double %102, double %104)
  %106 = fptosi double %105 to i32
  store i32 %106, ptr %22, align 4, !tbaa !5
  %107 = load i32, ptr %20, align 4, !tbaa !5
  %108 = load i32, ptr %19, align 4, !tbaa !5
  %109 = sub nsw i32 %107, %108
  %110 = load i32, ptr %23, align 4, !tbaa !5
  %111 = add nsw i32 %110, %109
  store i32 %111, ptr %23, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %92
  %113 = load ptr, ptr %12, align 8, !tbaa !9
  %114 = load i32, ptr %17, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i32, ptr %113, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !5
  store i32 %117, ptr %17, align 4, !tbaa !5
  br label %29, !llvm.loop !15

118:                                              ; preds = %29
  %119 = load i32, ptr %21, align 4, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !9
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %120, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = icmp sle i32 %119, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %118
  br label %128

127:                                              ; preds = %118
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 138, ptr noundef @__PRETTY_FUNCTION__.lu_file_compress) #5
  unreachable

128:                                              ; preds = %126
  %129 = load i32, ptr %22, align 4, !tbaa !5
  %130 = load i32, ptr %21, align 4, !tbaa !5
  %131 = add nsw i32 %130, %129
  store i32 %131, ptr %21, align 4, !tbaa !5
  %132 = load i32, ptr %21, align 4, !tbaa !5
  %133 = load ptr, ptr %10, align 8, !tbaa !9
  %134 = load i32, ptr %9, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = icmp sgt i32 %132, %137
  br i1 %138, label %139, label %145

139:                                              ; preds = %128
  %140 = load ptr, ptr %10, align 8, !tbaa !9
  %141 = load i32, ptr %9, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %140, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  store i32 %144, ptr %21, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %139, %128
  %146 = load i32, ptr %21, align 4, !tbaa !5
  %147 = load ptr, ptr %10, align 8, !tbaa !9
  %148 = load i32, ptr %9, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds i32, ptr %147, i64 %149
  store i32 %146, ptr %150, align 4, !tbaa !5
  %151 = load i32, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  ret i32 %151
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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"

@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__.lu_file_compress = external hidden unnamed_addr constant [104 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @lu_file_compress(i32 noundef %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef %4, ptr nocapture noundef %5, double noundef %6, i32 noundef %7) local_unnamed_addr #1 {
  %9 = sext i32 %0 to i64
  %.057.in71 = getelementptr inbounds i32, ptr %3, i64 %9
  %.05772 = load i32, ptr %.057.in71, align 4, !tbaa !5
  %10 = icmp slt i32 %.05772, %0
  br i1 %10, label %.lr.ph78, label %._crit_edge79

.lr.ph78:                                         ; preds = %8
  %11 = sitofp i32 %7 to double
  br label %12

12:                                               ; preds = %.lr.ph78, %._crit_edge
  %.05776 = phi i32 [ %.05772, %.lr.ph78 ], [ %.057, %._crit_edge ]
  %.075 = phi i32 [ 0, %.lr.ph78 ], [ %64, %._crit_edge ]
  %.05574 = phi i32 [ 0, %.lr.ph78 ], [ %63, %._crit_edge ]
  %.05673 = phi i32 [ 0, %.lr.ph78 ], [ %.2.lcssa, %._crit_edge ]
  %13 = sext i32 %.05776 to i64
  %14 = getelementptr inbounds i32, ptr %1, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = getelementptr inbounds i32, ptr %2, i64 %13
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %.not64 = icmp slt i32 %15, %.05673
  br i1 %.not64, label %18, label %19

18:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 124, ptr noundef nonnull @__PRETTY_FUNCTION__.lu_file_compress) #4
  unreachable

19:                                               ; preds = %12
  %20 = add i32 %.05574, %.05673
  %spec.select = tail call i32 @llvm.smin.i32(i32 %20, i32 %15)
  store i32 %spec.select, ptr %14, align 4, !tbaa !5
  %21 = icmp slt i32 %15, %17
  br i1 %21, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %19
  %22 = sext i32 %15 to i64
  %23 = tail call i32 @llvm.smin.i32(i32 %15, i32 %20)
  %smin = sext i32 %23 to i64
  %wide.trip.count = sext i32 %17 to i64
  %24 = sub nsw i64 %wide.trip.count, %22
  %min.iters.check = icmp ult i64 %24, 6
  br i1 %min.iters.check, label %.lr.ph.preheader97, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %25 = sub nsw i64 %smin, %22
  %26 = and i64 %25, 4611686018427387900
  %diff.check = icmp eq i64 %26, 0
  %27 = sub nsw i64 %smin, %22
  %28 = and i64 %27, 2305843009213693948
  %diff.check90 = icmp eq i64 %28, 0
  %conflict.rdx = or i1 %diff.check, %diff.check90
  br i1 %conflict.rdx, label %.lr.ph.preheader97, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %24, -4
  %ind.end = add nsw i64 %n.vec, %22
  %ind.end91 = add nsw i64 %n.vec, %smin
  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 %index, %22
  %offset.idx93 = add i64 %index, %smin
  %29 = getelementptr inbounds i32, ptr %4, i64 %offset.idx
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %wide.load = load <2 x i32>, ptr %29, align 4, !tbaa !5
  %wide.load94 = load <2 x i32>, ptr %30, align 4, !tbaa !5
  %31 = getelementptr inbounds i32, ptr %4, i64 %offset.idx93
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  store <2 x i32> %wide.load, ptr %31, align 4, !tbaa !5
  store <2 x i32> %wide.load94, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds double, ptr %5, i64 %offset.idx
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load95 = load <2 x double>, ptr %33, align 8, !tbaa !9
  %wide.load96 = load <2 x double>, ptr %34, align 8, !tbaa !9
  %35 = getelementptr inbounds double, ptr %5, i64 %offset.idx93
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  store <2 x double> %wide.load95, ptr %35, align 8, !tbaa !9
  store <2 x double> %wide.load96, ptr %36, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %24, %n.vec
  br i1 %cmp.n, label %._crit_edge.loopexit, label %.lr.ph.preheader97

.lr.ph.preheader97:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv85.ph = phi i64 [ %22, %vector.memcheck ], [ %22, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %indvars.iv.ph = phi i64 [ %smin, %vector.memcheck ], [ %smin, %.lr.ph.preheader ], [ %ind.end91, %middle.block ]
  %38 = sub nsw i64 %wide.trip.count, %indvars.iv85.ph
  %xtraiter = and i64 %38, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader97
  %39 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv85.ph
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv.ph
  store i32 %40, ptr %41, align 4, !tbaa !5
  %42 = getelementptr inbounds double, ptr %5, i64 %indvars.iv85.ph
  %43 = load double, ptr %42, align 8, !tbaa !9
  %indvars.iv.next.prol = add nsw i64 %indvars.iv.ph, 1
  %44 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.ph
  store double %43, ptr %44, align 8, !tbaa !9
  %indvars.iv.next86.prol = add nsw i64 %indvars.iv85.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader97
  %indvars.iv.next.lcssa98.unr = phi i64 [ poison, %.lr.ph.preheader97 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %indvars.iv85.unr = phi i64 [ %indvars.iv85.ph, %.lr.ph.preheader97 ], [ %indvars.iv.next86.prol, %.lr.ph.prol ]
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader97 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %45 = add nsw i64 %wide.trip.count, -1
  %46 = icmp eq i64 %indvars.iv85.ph, %45
  br i1 %46, label %._crit_edge.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv85 = phi i64 [ %indvars.iv.next86.1, %.lr.ph ], [ %indvars.iv85.unr, %.lr.ph.prol.loopexit ]
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %47 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv85
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv
  store i32 %48, ptr %49, align 4, !tbaa !5
  %50 = getelementptr inbounds double, ptr %5, i64 %indvars.iv85
  %51 = load double, ptr %50, align 8, !tbaa !9
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %52 = getelementptr inbounds double, ptr %5, i64 %indvars.iv
  store double %51, ptr %52, align 8, !tbaa !9
  %indvars.iv.next86 = add nsw i64 %indvars.iv85, 1
  %53 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv.next86
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv.next
  store i32 %54, ptr %55, align 4, !tbaa !5
  %56 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next86
  %57 = load double, ptr %56, align 8, !tbaa !9
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, 2
  %58 = getelementptr inbounds double, ptr %5, i64 %indvars.iv.next
  store double %57, ptr %58, align 8, !tbaa !9
  %indvars.iv.next86.1 = add nsw i64 %indvars.iv85, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next86.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !15

._crit_edge.loopexit:                             ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block
  %indvars.iv.next.lcssa = phi i64 [ %ind.end91, %middle.block ], [ %indvars.iv.next.lcssa98.unr, %.lr.ph.prol.loopexit ], [ %indvars.iv.next.1, %.lr.ph ]
  %59 = trunc nsw i64 %indvars.iv.next.lcssa to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %19
  %.2.lcssa = phi i32 [ %spec.select, %19 ], [ %59, %._crit_edge.loopexit ]
  store i32 %.2.lcssa, ptr %16, align 4, !tbaa !5
  %60 = sub nsw i32 %17, %15
  %61 = sitofp i32 %60 to double
  %62 = tail call double @llvm.fmuladd.f64(double %6, double %61, double %11)
  %63 = fptosi double %62 to i32
  %64 = add nsw i32 %60, %.075
  %.057.in = getelementptr inbounds i32, ptr %3, i64 %13
  %.057 = load i32, ptr %.057.in, align 4, !tbaa !5
  %65 = icmp slt i32 %.057, %0
  br i1 %65, label %12, label %._crit_edge79, !llvm.loop !16

._crit_edge79:                                    ; preds = %._crit_edge, %8
  %.056.lcssa = phi i32 [ 0, %8 ], [ %.2.lcssa, %._crit_edge ]
  %.055.lcssa = phi i32 [ 0, %8 ], [ %63, %._crit_edge ]
  %.0.lcssa = phi i32 [ 0, %8 ], [ %64, %._crit_edge ]
  %66 = getelementptr inbounds i32, ptr %1, i64 %9
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %.not = icmp sgt i32 %.056.lcssa, %67
  br i1 %.not, label %68, label %69

68:                                               ; preds = %._crit_edge79
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 138, ptr noundef nonnull @__PRETTY_FUNCTION__.lu_file_compress) #4
  unreachable

69:                                               ; preds = %._crit_edge79
  %70 = add nsw i32 %.055.lcssa, %.056.lcssa
  %spec.select65 = tail call i32 @llvm.smin.i32(i32 %70, i32 %67)
  store i32 %spec.select65, ptr %66, align 4, !tbaa !5
  ret i32 %.0.lcssa
}

; Function Attrs: mustprogress 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 i32 @llvm.smin.i32(i32, i32) #3

attributes #0 = { noreturn 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 #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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn 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 = distinct !{!11, !12, !13, !14}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !12, !13}
!16 = distinct !{!16, !12}


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