; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/vl (mathop)

; 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 [80 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.vl_gaussian_elimination = external hidden unnamed_addr constant [56 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_abs_d(double noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @vl_gaussian_elimination(ptr noundef %0, i64 noundef %1, i64 noundef %2) #4 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i64, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %3
  br label %25

24:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 909, ptr noundef @__PRETTY_FUNCTION__.vl_gaussian_elimination) #6
  unreachable

25:                                               ; preds = %23
  %26 = load i64, ptr %6, align 8, !tbaa !9
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = icmp ule i64 %26, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  br label %31

30:                                               ; preds = %25
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 910, ptr noundef @__PRETTY_FUNCTION__.vl_gaussian_elimination) #6
  unreachable

31:                                               ; preds = %29
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %182, %31
  %33 = load i64, ptr %9, align 8, !tbaa !9
  %34 = load i64, ptr %6, align 8, !tbaa !9
  %35 = trunc i64 %34 to i32
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %33, %36
  br i1 %37, label %38, label %185

38:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 -1, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %39 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %39, ptr %8, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %65, %38
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = load i64, ptr %6, align 8, !tbaa !9
  %43 = trunc i64 %42 to i32
  %44 = sext i32 %43 to i64
  %45 = icmp slt i64 %41, %44
  br i1 %45, label %46, label %68

46:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = load i64, ptr %9, align 8, !tbaa !9
  %50 = load i64, ptr %6, align 8, !tbaa !9
  %51 = mul i64 %49, %50
  %52 = add i64 %48, %51
  %53 = getelementptr inbounds double, ptr %47, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !11
  store double %54, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %55 = load double, ptr %16, align 8, !tbaa !11
  %56 = call double @vl_abs_d(double noundef %55)
  store double %56, ptr %17, align 8, !tbaa !11
  %57 = load double, ptr %17, align 8, !tbaa !11
  %58 = load double, ptr %13, align 8, !tbaa !11
  %59 = fcmp ogt double %57, %58
  br i1 %59, label %60, label %64

60:                                               ; preds = %46
  %61 = load double, ptr %16, align 8, !tbaa !11
  store double %61, ptr %12, align 8, !tbaa !11
  %62 = load double, ptr %17, align 8, !tbaa !11
  store double %62, ptr %13, align 8, !tbaa !11
  %63 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %63, ptr %14, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %60, %46
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %65

65:                                               ; preds = %64
  %66 = load i64, ptr %8, align 8, !tbaa !9
  %67 = add nsw i64 %66, 1
  store i64 %67, ptr %8, align 8, !tbaa !9
  br label %40, !llvm.loop !13

68:                                               ; preds = %40
  %69 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %69, ptr %8, align 8, !tbaa !9
  %70 = load double, ptr %13, align 8, !tbaa !11
  %71 = fcmp olt double %70, 1.000000e-10
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  store i32 1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %179

73:                                               ; preds = %68
  %74 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %74, ptr %11, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %123, %73
  %76 = load i64, ptr %11, align 8, !tbaa !9
  %77 = load i64, ptr %7, align 8, !tbaa !9
  %78 = trunc i64 %77 to i32
  %79 = sext i32 %78 to i64
  %80 = icmp slt i64 %76, %79
  br i1 %80, label %81, label %126

81:                                               ; preds = %75
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = load i64, ptr %8, align 8, !tbaa !9
  %84 = load i64, ptr %11, align 8, !tbaa !9
  %85 = load i64, ptr %6, align 8, !tbaa !9
  %86 = mul i64 %84, %85
  %87 = add i64 %83, %86
  %88 = getelementptr inbounds double, ptr %82, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  store double %89, ptr %15, align 8, !tbaa !11
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = load i64, ptr %11, align 8, !tbaa !9
  %93 = load i64, ptr %6, align 8, !tbaa !9
  %94 = mul i64 %92, %93
  %95 = add i64 %91, %94
  %96 = getelementptr inbounds double, ptr %90, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load i64, ptr %8, align 8, !tbaa !9
  %100 = load i64, ptr %11, align 8, !tbaa !9
  %101 = load i64, ptr %6, align 8, !tbaa !9
  %102 = mul i64 %100, %101
  %103 = add i64 %99, %102
  %104 = getelementptr inbounds double, ptr %98, i64 %103
  store double %97, ptr %104, align 8, !tbaa !11
  %105 = load double, ptr %15, align 8, !tbaa !11
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load i64, ptr %9, align 8, !tbaa !9
  %108 = load i64, ptr %11, align 8, !tbaa !9
  %109 = load i64, ptr %6, align 8, !tbaa !9
  %110 = mul i64 %108, %109
  %111 = add i64 %107, %110
  %112 = getelementptr inbounds double, ptr %106, i64 %111
  store double %105, ptr %112, align 8, !tbaa !11
  %113 = load double, ptr %12, align 8, !tbaa !11
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = load i64, ptr %9, align 8, !tbaa !9
  %116 = load i64, ptr %11, align 8, !tbaa !9
  %117 = load i64, ptr %6, align 8, !tbaa !9
  %118 = mul i64 %116, %117
  %119 = add i64 %115, %118
  %120 = getelementptr inbounds double, ptr %114, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = fdiv double %121, %113
  store double %122, ptr %120, align 8, !tbaa !11
  br label %123

123:                                              ; preds = %81
  %124 = load i64, ptr %11, align 8, !tbaa !9
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %11, align 8, !tbaa !9
  br label %75, !llvm.loop !15

126:                                              ; preds = %75
  %127 = load i64, ptr %9, align 8, !tbaa !9
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %10, align 8, !tbaa !9
  br label %129

129:                                              ; preds = %175, %126
  %130 = load i64, ptr %10, align 8, !tbaa !9
  %131 = load i64, ptr %6, align 8, !tbaa !9
  %132 = trunc i64 %131 to i32
  %133 = sext i32 %132 to i64
  %134 = icmp slt i64 %130, %133
  br i1 %134, label %135, label %178

135:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load i64, ptr %10, align 8, !tbaa !9
  %138 = load i64, ptr %9, align 8, !tbaa !9
  %139 = load i64, ptr %6, align 8, !tbaa !9
  %140 = mul i64 %138, %139
  %141 = add i64 %137, %140
  %142 = getelementptr inbounds double, ptr %136, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !11
  store double %143, ptr %19, align 8, !tbaa !11
  %144 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %144, ptr %11, align 8, !tbaa !9
  br label %145

145:                                              ; preds = %171, %135
  %146 = load i64, ptr %11, align 8, !tbaa !9
  %147 = load i64, ptr %7, align 8, !tbaa !9
  %148 = trunc i64 %147 to i32
  %149 = sext i32 %148 to i64
  %150 = icmp slt i64 %146, %149
  br i1 %150, label %151, label %174

151:                                              ; preds = %145
  %152 = load double, ptr %19, align 8, !tbaa !11
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = load i64, ptr %9, align 8, !tbaa !9
  %155 = load i64, ptr %11, align 8, !tbaa !9
  %156 = load i64, ptr %6, align 8, !tbaa !9
  %157 = mul i64 %155, %156
  %158 = add i64 %154, %157
  %159 = getelementptr inbounds double, ptr %153, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !11
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = load i64, ptr %10, align 8, !tbaa !9
  %163 = load i64, ptr %11, align 8, !tbaa !9
  %164 = load i64, ptr %6, align 8, !tbaa !9
  %165 = mul i64 %163, %164
  %166 = add i64 %162, %165
  %167 = getelementptr inbounds double, ptr %161, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !11
  %169 = fneg double %152
  %170 = call double @llvm.fmuladd.f64(double %169, double %160, double %168)
  store double %170, ptr %167, align 8, !tbaa !11
  br label %171

171:                                              ; preds = %151
  %172 = load i64, ptr %11, align 8, !tbaa !9
  %173 = add nsw i64 %172, 1
  store i64 %173, ptr %11, align 8, !tbaa !9
  br label %145, !llvm.loop !16

174:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %175

175:                                              ; preds = %174
  %176 = load i64, ptr %10, align 8, !tbaa !9
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr %10, align 8, !tbaa !9
  br label %129, !llvm.loop !17

178:                                              ; preds = %129
  store i32 0, ptr %18, align 4
  br label %179

179:                                              ; preds = %178, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %180 = load i32, ptr %18, align 4
  switch i32 %180, label %245 [
    i32 0, label %181
  ]

181:                                              ; preds = %179
  br label %182

182:                                              ; preds = %181
  %183 = load i64, ptr %9, align 8, !tbaa !9
  %184 = add nsw i64 %183, 1
  store i64 %184, ptr %9, align 8, !tbaa !9
  br label %32, !llvm.loop !18

185:                                              ; preds = %32
  %186 = load i64, ptr %6, align 8, !tbaa !9
  %187 = sub i64 %186, 1
  store i64 %187, ptr %8, align 8, !tbaa !9
  br label %188

188:                                              ; preds = %241, %185
  %189 = load i64, ptr %8, align 8, !tbaa !9
  %190 = icmp sgt i64 %189, 0
  br i1 %190, label %191, label %244

191:                                              ; preds = %188
  %192 = load i64, ptr %8, align 8, !tbaa !9
  %193 = sub nsw i64 %192, 1
  store i64 %193, ptr %10, align 8, !tbaa !9
  br label %194

194:                                              ; preds = %237, %191
  %195 = load i64, ptr %10, align 8, !tbaa !9
  %196 = icmp sge i64 %195, 0
  br i1 %196, label %197, label %240

197:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = load i64, ptr %10, align 8, !tbaa !9
  %200 = load i64, ptr %8, align 8, !tbaa !9
  %201 = load i64, ptr %6, align 8, !tbaa !9
  %202 = mul i64 %200, %201
  %203 = add i64 %199, %202
  %204 = getelementptr inbounds double, ptr %198, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !11
  store double %205, ptr %20, align 8, !tbaa !11
  %206 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %206, ptr %9, align 8, !tbaa !9
  br label %207

207:                                              ; preds = %233, %197
  %208 = load i64, ptr %9, align 8, !tbaa !9
  %209 = load i64, ptr %7, align 8, !tbaa !9
  %210 = trunc i64 %209 to i32
  %211 = sext i32 %210 to i64
  %212 = icmp slt i64 %208, %211
  br i1 %212, label %213, label %236

213:                                              ; preds = %207
  %214 = load double, ptr %20, align 8, !tbaa !11
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = load i64, ptr %8, align 8, !tbaa !9
  %217 = load i64, ptr %9, align 8, !tbaa !9
  %218 = load i64, ptr %6, align 8, !tbaa !9
  %219 = mul i64 %217, %218
  %220 = add i64 %216, %219
  %221 = getelementptr inbounds double, ptr %215, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !11
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = load i64, ptr %10, align 8, !tbaa !9
  %225 = load i64, ptr %9, align 8, !tbaa !9
  %226 = load i64, ptr %6, align 8, !tbaa !9
  %227 = mul i64 %225, %226
  %228 = add i64 %224, %227
  %229 = getelementptr inbounds double, ptr %223, i64 %228
  %230 = load double, ptr %229, align 8, !tbaa !11
  %231 = fneg double %214
  %232 = call double @llvm.fmuladd.f64(double %231, double %222, double %230)
  store double %232, ptr %229, align 8, !tbaa !11
  br label %233

233:                                              ; preds = %213
  %234 = load i64, ptr %9, align 8, !tbaa !9
  %235 = add nsw i64 %234, 1
  store i64 %235, ptr %9, align 8, !tbaa !9
  br label %207, !llvm.loop !19

236:                                              ; preds = %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %237

237:                                              ; preds = %236
  %238 = load i64, ptr %10, align 8, !tbaa !9
  %239 = add nsw i64 %238, -1
  store i64 %239, ptr %10, align 8, !tbaa !9
  br label %194, !llvm.loop !20

240:                                              ; preds = %194
  br label %241

241:                                              ; preds = %240
  %242 = load i64, ptr %8, align 8, !tbaa !9
  %243 = add nsw i64 %242, -1
  store i64 %243, ptr %8, align 8, !tbaa !9
  br label %188, !llvm.loop !21

244:                                              ; preds = %188
  store i32 0, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %245

245:                                              ; preds = %244, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %246 = load i32, ptr %4, align 4
  ret i32 %246
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { inlinehint 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !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}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !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 [80 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.vl_gaussian_elimination = external hidden unnamed_addr constant [56 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @vl_abs_d(double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @vl_gaussian_elimination(ptr noundef %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #3 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %4, label %5

4:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 909, ptr noundef nonnull @__PRETTY_FUNCTION__.vl_gaussian_elimination) #5
  unreachable

5:                                                ; preds = %3
  %.not114 = icmp ugt i64 %1, %2
  br i1 %.not114, label %12, label %.preheader121

.preheader121:                                    ; preds = %5
  %sext = shl i64 %1, 32
  %6 = ashr exact i64 %sext, 32
  %7 = icmp sgt i64 %6, 0
  br i1 %7, label %.preheader120.lr.ph, label %.preheader

.preheader120.lr.ph:                              ; preds = %.preheader121
  %sext116 = shl i64 %2, 32
  %8 = ashr exact i64 %sext116, 32
  %scevgep = getelementptr i8, ptr %0, i64 8
  %9 = add nsw i64 %6, %8
  %10 = shl nsw i64 %9, 3
  %11 = getelementptr i8, ptr %0, i64 %10
  %scevgep159 = getelementptr i8, ptr %11, i64 -8
  %ident.check166.not = icmp eq i64 %1, 1
  %ident.check.not = icmp eq i64 %1, 1
  br label %.preheader120

12:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 910, ptr noundef nonnull @__PRETTY_FUNCTION__.vl_gaussian_elimination) #5
  unreachable

.loopexit117.preheader:                           ; preds = %..loopexit117_crit_edge.us, %.preheader118.thread, %.lr.ph132, %.preheader118
  %.098130153 = phi i64 [ %.098130, %.preheader118 ], [ %.098130, %.lr.ph132 ], [ %.098130151, %.preheader118.thread ], [ %.098130, %..loopexit117_crit_edge.us ]
  %exitcond.not = icmp eq i64 %.098130153, %6
  br i1 %exitcond.not, label %.preheader, label %.preheader120, !llvm.loop !5

.preheader120:                                    ; preds = %.preheader120.lr.ph, %.loopexit117.preheader
  %.096133 = phi i64 [ 0, %.preheader120.lr.ph ], [ %.098130153, %.loopexit117.preheader ]
  %13 = mul i64 %.096133, %1
  %invariant.gep = getelementptr double, ptr %0, i64 %13
  br label %50

.preheader:                                       ; preds = %.loopexit117.preheader, %.preheader121
  %.194142 = add i64 %1, -1
  %14 = icmp sgt i64 %.194142, 0
  br i1 %14, label %.lr.ph145, label %.critedge

.lr.ph145:                                        ; preds = %.preheader
  %sext115 = shl i64 %2, 32
  %15 = ashr exact i64 %sext115, 32
  %16 = icmp sgt i64 %15, %1
  br i1 %16, label %.lr.ph141.us.preheader, label %.critedge

.lr.ph141.us.preheader:                           ; preds = %.lr.ph145
  %17 = sub i64 %2, %1
  %.neg = add i64 %1, 1
  %xtraiter = and i64 %17, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %18 = mul i64 %1, %1
  %19 = add nsw i64 %1, 1
  %20 = icmp eq i64 %15, %.neg
  br label %.lr.ph141.us

.loopexit.us:                                     ; preds = %._crit_edge138.us.us
  %.194.us = add nsw i64 %.194144.us, -1
  %21 = icmp sgt i64 %.194144.us, 1
  br i1 %21, label %.lr.ph141.us, label %.critedge, !llvm.loop !7

.lr.ph141.us:                                     ; preds = %.lr.ph141.us.preheader, %.loopexit.us
  %.194144.us = phi i64 [ %.194.us, %.loopexit.us ], [ %.194142, %.lr.ph141.us.preheader ]
  %.194.in143.us = phi i64 [ %.194144.us, %.loopexit.us ], [ %1, %.lr.ph141.us.preheader ]
  %22 = add i64 %.194.in143.us, -2
  %23 = mul i64 %.194144.us, %1
  %24 = getelementptr double, ptr %0, i64 %.194144.us
  %25 = getelementptr double, ptr %24, i64 %18
  br label %.lr.ph137.us.us

.lr.ph137.us.us:                                  ; preds = %._crit_edge138.us.us, %.lr.ph141.us
  %.199139.us.us = phi i64 [ %22, %.lr.ph141.us ], [ %48, %._crit_edge138.us.us ]
  %26 = getelementptr double, ptr %0, i64 %.199139.us.us
  %27 = getelementptr double, ptr %26, i64 %23
  %28 = load double, ptr %27, align 8, !tbaa !8
  %29 = fneg double %28
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %.lr.ph137.us.us
  %30 = load double, ptr %25, align 8, !tbaa !8
  %31 = getelementptr double, ptr %26, i64 %18
  %32 = load double, ptr %31, align 8, !tbaa !8
  %33 = tail call double @llvm.fmuladd.f64(double %29, double %30, double %32)
  store double %33, ptr %31, align 8, !tbaa !8
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph137.us.us
  %.197135.us.us.unr = phi i64 [ %1, %.lr.ph137.us.us ], [ %19, %.prol.loopexit.unr-lcssa ]
  br i1 %20, label %._crit_edge138.us.us, label %.lr.ph137.us.us.new

.lr.ph137.us.us.new:                              ; preds = %.prol.loopexit, %.lr.ph137.us.us.new
  %.197135.us.us = phi i64 [ %47, %.lr.ph137.us.us.new ], [ %.197135.us.us.unr, %.prol.loopexit ]
  %34 = mul i64 %.197135.us.us, %1
  %35 = getelementptr double, ptr %24, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !8
  %37 = getelementptr double, ptr %26, i64 %34
  %38 = load double, ptr %37, align 8, !tbaa !8
  %39 = tail call double @llvm.fmuladd.f64(double %29, double %36, double %38)
  store double %39, ptr %37, align 8, !tbaa !8
  %40 = add nsw i64 %.197135.us.us, 1
  %41 = mul i64 %40, %1
  %42 = getelementptr double, ptr %24, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !8
  %44 = getelementptr double, ptr %26, i64 %41
  %45 = load double, ptr %44, align 8, !tbaa !8
  %46 = tail call double @llvm.fmuladd.f64(double %29, double %43, double %45)
  store double %46, ptr %44, align 8, !tbaa !8
  %47 = add nsw i64 %.197135.us.us, 2
  %exitcond150.not.1 = icmp eq i64 %47, %15
  br i1 %exitcond150.not.1, label %._crit_edge138.us.us, label %.lr.ph137.us.us.new, !llvm.loop !12

._crit_edge138.us.us:                             ; preds = %.lr.ph137.us.us.new, %.prol.loopexit
  %48 = add nsw i64 %.199139.us.us, -1
  %49 = icmp sgt i64 %.199139.us.us, 0
  br i1 %49, label %.lr.ph137.us.us, label %.loopexit.us, !llvm.loop !14

50:                                               ; preds = %.preheader120, %50
  %.093126 = phi i64 [ %.096133, %.preheader120 ], [ %54, %50 ]
  %.0102125 = phi i64 [ -1, %.preheader120 ], [ %.1103, %50 ]
  %.0104124 = phi double [ 0.000000e+00, %.preheader120 ], [ %.1105, %50 ]
  %.0106123 = phi double [ 0.000000e+00, %.preheader120 ], [ %.1107, %50 ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %.093126
  %51 = load double, ptr %gep, align 8, !tbaa !8
  %52 = tail call double @vl_abs_d(double noundef %51)
  %53 = fcmp ogt double %52, %.0104124
  %.1107 = select i1 %53, double %51, double %.0106123
  %.1105 = select i1 %53, double %52, double %.0104124
  %.1103 = select i1 %53, i64 %.093126, i64 %.0102125
  %54 = add nuw nsw i64 %.093126, 1
  %55 = icmp slt i64 %54, %6
  br i1 %55, label %50, label %56, !llvm.loop !15

56:                                               ; preds = %50
  %57 = fcmp uge double %.1105, 1.000000e-10
  br i1 %57, label %.preheader119, label %.critedge

.preheader119:                                    ; preds = %56
  %58 = icmp slt i64 %.096133, %8
  br i1 %58, label %.lr.ph, label %.preheader118.thread

.lr.ph:                                           ; preds = %.preheader119
  %59 = getelementptr double, ptr %0, i64 %.1103
  %60 = getelementptr double, ptr %0, i64 %.096133
  %61 = sub i64 %8, %.096133
  %min.iters.check178 = icmp ugt i64 %61, 1
  %or.cond223 = and i1 %min.iters.check178, %ident.check166.not
  br i1 %or.cond223, label %vector.memcheck167, label %scalar.ph177.preheader

scalar.ph177.preheader:                           ; preds = %middle.block176, %vector.memcheck167, %.lr.ph
  %.0100127.ph = phi i64 [ %.096133, %vector.memcheck167 ], [ %.096133, %.lr.ph ], [ %ind.end182, %middle.block176 ]
  br label %scalar.ph177

vector.memcheck167:                               ; preds = %.lr.ph
  %62 = shl i64 %.096133, 3
  %scevgep168 = getelementptr i8, ptr %0, i64 %62
  %63 = shl i64 %.1103, 3
  %scevgep169 = getelementptr i8, ptr %scevgep168, i64 %63
  %64 = add i64 %8, %.1103
  %65 = shl i64 %64, 3
  %scevgep170 = getelementptr i8, ptr %0, i64 %65
  %66 = shl i64 %.096133, 4
  %scevgep171 = getelementptr i8, ptr %0, i64 %66
  %67 = add i64 %8, %.096133
  %68 = shl i64 %67, 3
  %scevgep172 = getelementptr i8, ptr %0, i64 %68
  %bound0173 = icmp ult ptr %scevgep169, %scevgep172
  %bound1174 = icmp ult ptr %scevgep171, %scevgep170
  %found.conflict175 = and i1 %bound0173, %bound1174
  br i1 %found.conflict175, label %scalar.ph177.preheader, label %vector.ph179

vector.ph179:                                     ; preds = %vector.memcheck167
  %n.vec181 = and i64 %61, -2
  %ind.end182 = add i64 %.096133, %n.vec181
  %broadcast.splatinsert189 = insertelement <2 x double> poison, double %.1107, i64 0
  %broadcast.splat190 = shufflevector <2 x double> %broadcast.splatinsert189, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body184

vector.body184:                                   ; preds = %vector.body184, %vector.ph179
  %index185 = phi i64 [ 0, %vector.ph179 ], [ %index.next191, %vector.body184 ]
  %offset.idx186 = add i64 %.096133, %index185
  %69 = getelementptr double, ptr %59, i64 %offset.idx186
  %wide.load187 = load <2 x double>, ptr %69, align 8, !tbaa !8, !alias.scope !16, !noalias !19
  %70 = getelementptr double, ptr %60, i64 %offset.idx186
  %wide.load188 = load <2 x double>, ptr %70, align 8, !tbaa !8, !alias.scope !19
  store <2 x double> %wide.load188, ptr %69, align 8, !tbaa !8, !alias.scope !16, !noalias !19
  %71 = fdiv <2 x double> %wide.load187, %broadcast.splat190
  store <2 x double> %71, ptr %70, align 8, !tbaa !8, !alias.scope !19
  %index.next191 = add nuw i64 %index185, 2
  %72 = icmp eq i64 %index.next191, %n.vec181
  br i1 %72, label %middle.block176, label %vector.body184, !llvm.loop !21

middle.block176:                                  ; preds = %vector.body184
  %cmp.n192 = icmp eq i64 %61, %n.vec181
  br i1 %cmp.n192, label %.preheader118, label %scalar.ph177.preheader

.preheader118:                                    ; preds = %scalar.ph177, %middle.block176
  %.098130 = add nuw nsw i64 %.096133, 1
  %73 = icmp slt i64 %.098130, %6
  br i1 %73, label %.lr.ph132, label %.loopexit117.preheader

.preheader118.thread:                             ; preds = %.preheader119
  %.098130151 = add nuw nsw i64 %.096133, 1
  br label %.loopexit117.preheader

.lr.ph132:                                        ; preds = %.preheader118
  %74 = getelementptr double, ptr %0, i64 %.096133
  br i1 %58, label %.lr.ph129.us.preheader, label %.loopexit117.preheader

.lr.ph129.us.preheader:                           ; preds = %.lr.ph132
  %75 = shl i64 %.096133, 4
  %scevgep158 = getelementptr i8, ptr %scevgep, i64 %75
  %scevgep160 = getelementptr i8, ptr %0, i64 %75
  %76 = add i64 %8, %.096133
  %77 = shl i64 %76, 3
  %scevgep161 = getelementptr i8, ptr %0, i64 %77
  %78 = sub i64 %8, %.096133
  %min.iters.check = icmp ugt i64 %78, 3
  %or.cond224 = and i1 %min.iters.check, %ident.check.not
  %bound0 = icmp ult ptr %scevgep158, %scevgep161
  %bound1 = icmp ult ptr %scevgep160, %scevgep159
  %found.conflict = and i1 %bound0, %bound1
  %n.vec = and i64 %78, -4
  %ind.end = add i64 %.096133, %n.vec
  %cmp.n = icmp eq i64 %78, %n.vec
  br label %.lr.ph129.us

.lr.ph129.us:                                     ; preds = %.lr.ph129.us.preheader, %..loopexit117_crit_edge.us
  %.098131.us = phi i64 [ %.098.us, %..loopexit117_crit_edge.us ], [ %.098130, %.lr.ph129.us.preheader ]
  %79 = getelementptr double, ptr %0, i64 %.098131.us
  %80 = getelementptr double, ptr %79, i64 %13
  %81 = load double, ptr %80, align 8, !tbaa !8
  %82 = fneg double %81
  %or.cond224.not = xor i1 %or.cond224, true
  %brmerge = select i1 %or.cond224.not, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph129.us
  %broadcast.splatinsert = insertelement <2 x double> poison, double %82, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  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 %.096133, %index
  %83 = getelementptr double, ptr %74, i64 %offset.idx
  %84 = getelementptr i8, ptr %83, i64 16
  %wide.load = load <2 x double>, ptr %83, align 8, !tbaa !8, !alias.scope !23
  %wide.load162 = load <2 x double>, ptr %84, align 8, !tbaa !8, !alias.scope !23
  %85 = getelementptr double, ptr %79, i64 %offset.idx
  %86 = getelementptr i8, ptr %85, i64 16
  %wide.load163 = load <2 x double>, ptr %85, align 8, !tbaa !8, !alias.scope !26, !noalias !23
  %wide.load164 = load <2 x double>, ptr %86, align 8, !tbaa !8, !alias.scope !26, !noalias !23
  %87 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load163)
  %88 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load162, <2 x double> %wide.load164)
  store <2 x double> %87, ptr %85, align 8, !tbaa !8, !alias.scope !26, !noalias !23
  store <2 x double> %88, ptr %86, align 8, !tbaa !8, !alias.scope !26, !noalias !23
  %index.next = add nuw i64 %index, 4
  %89 = icmp eq i64 %index.next, %n.vec
  br i1 %89, label %middle.block, label %vector.body, !llvm.loop !28

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

scalar.ph.preheader:                              ; preds = %.lr.ph129.us, %middle.block
  %.1101128.us.ph = phi i64 [ %.096133, %.lr.ph129.us ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.1101128.us = phi i64 [ %96, %scalar.ph ], [ %.1101128.us.ph, %scalar.ph.preheader ]
  %90 = mul i64 %.1101128.us, %1
  %91 = getelementptr double, ptr %74, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !8
  %93 = getelementptr double, ptr %79, i64 %90
  %94 = load double, ptr %93, align 8, !tbaa !8
  %95 = tail call double @llvm.fmuladd.f64(double %82, double %92, double %94)
  store double %95, ptr %93, align 8, !tbaa !8
  %96 = add nuw nsw i64 %.1101128.us, 1
  %97 = icmp slt i64 %96, %8
  br i1 %97, label %scalar.ph, label %..loopexit117_crit_edge.us, !llvm.loop !29

..loopexit117_crit_edge.us:                       ; preds = %scalar.ph, %middle.block
  %.098.us = add nuw nsw i64 %.098131.us, 1
  %98 = icmp slt i64 %.098.us, %6
  br i1 %98, label %.lr.ph129.us, label %.loopexit117.preheader, !llvm.loop !30

scalar.ph177:                                     ; preds = %scalar.ph177.preheader, %scalar.ph177
  %.0100127 = phi i64 [ %105, %scalar.ph177 ], [ %.0100127.ph, %scalar.ph177.preheader ]
  %99 = mul i64 %.0100127, %1
  %100 = getelementptr double, ptr %59, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !8
  %102 = getelementptr double, ptr %60, i64 %99
  %103 = load double, ptr %102, align 8, !tbaa !8
  store double %103, ptr %100, align 8, !tbaa !8
  %104 = fdiv double %101, %.1107
  store double %104, ptr %102, align 8, !tbaa !8
  %105 = add nuw nsw i64 %.0100127, 1
  %106 = icmp slt i64 %105, %8
  br i1 %106, label %scalar.ph177, label %.preheader118, !llvm.loop !31

.critedge:                                        ; preds = %56, %.loopexit.us, %.lr.ph145, %.preheader
  %.2 = phi i32 [ 0, %.preheader ], [ 0, %.lr.ph145 ], [ 0, %.loopexit.us ], [ 1, %56 ]
  ret i32 %.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>) #4

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


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