; LLVM IR from zhenrong-wang/co2 :: co2_property_calc (Gaussian_elimination)

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

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

19:                                               ; preds = %160, %3
  %20 = load i32, ptr %8, align 4, !tbaa !9
  %21 = icmp slt i32 %20, 2
  br i1 %21, label %22, label %163

22:                                               ; preds = %19
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [3 x double], ptr %23, i64 %25
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [3 x double], ptr %26, i64 0, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !11
  %31 = call double @llvm.fabs.f64(double %30)
  store double %31, ptr %13, align 8, !tbaa !11
  %32 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %32, ptr %12, align 4, !tbaa !9
  %33 = load i32, ptr %8, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %9, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %62, %22
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = icmp slt i32 %36, 3
  br i1 %37, label %38, label %65

38:                                               ; preds = %35
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [3 x double], ptr %39, i64 %41
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [3 x double], ptr %42, i64 0, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !11
  %47 = call double @llvm.fabs.f64(double %46)
  %48 = load double, ptr %13, align 8, !tbaa !11
  %49 = fcmp ogt double %47, %48
  br i1 %49, label %50, label %61

50:                                               ; preds = %38
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [3 x double], ptr %51, i64 %53
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [3 x double], ptr %54, i64 0, i64 %56
  %58 = load double, ptr %57, align 8, !tbaa !11
  %59 = call double @llvm.fabs.f64(double %58)
  store double %59, ptr %13, align 8, !tbaa !11
  %60 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %60, ptr %12, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %50, %38
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %9, align 4, !tbaa !9
  br label %35, !llvm.loop !13

65:                                               ; preds = %35
  %66 = load double, ptr %13, align 8, !tbaa !11
  %67 = fsub double %66, 0.000000e+00
  %68 = call double @llvm.fabs.f64(double %67)
  %69 = fcmp olt double %68, 0x3EB0C6F7A0B5ED8D
  br i1 %69, label %70, label %71

70:                                               ; preds = %65
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %229

71:                                               ; preds = %65
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = icmp ne i32 %72, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %71
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  call void @swap_line(ptr noundef %76, ptr noundef %77, i32 noundef %78, i32 noundef %79)
  br label %80

80:                                               ; preds = %75, %71
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %9, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %156, %80
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = icmp slt i32 %84, 3
  br i1 %85, label %86, label %159

86:                                               ; preds = %83
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [3 x double], ptr %87, i64 %89
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [3 x double], ptr %90, i64 0, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [3 x double], ptr %95, i64 %97
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [3 x double], ptr %98, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !11
  %103 = fdiv double %94, %102
  store double %103, ptr %14, align 8, !tbaa !11
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = load double, ptr %14, align 8, !tbaa !11
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds double, ptr %110, i64 %112
  %114 = load double, ptr %113, align 8, !tbaa !11
  %115 = fneg double %109
  %116 = call double @llvm.fmuladd.f64(double %115, double %114, double %108)
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = load i32, ptr %9, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %117, i64 %119
  store double %116, ptr %120, align 8, !tbaa !11
  %121 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %121, ptr %10, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %152, %86
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = icmp slt i32 %123, 3
  br i1 %124, label %125, label %155

125:                                              ; preds = %122
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [3 x double], ptr %126, i64 %128
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [3 x double], ptr %129, i64 0, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !11
  %134 = load double, ptr %14, align 8, !tbaa !11
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i32, ptr %8, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [3 x double], ptr %135, i64 %137
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [3 x double], ptr %138, i64 0, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !11
  %143 = fneg double %134
  %144 = call double @llvm.fmuladd.f64(double %143, double %142, double %133)
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load i32, ptr %9, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [3 x double], ptr %145, i64 %147
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [3 x double], ptr %148, i64 0, i64 %150
  store double %144, ptr %151, align 8, !tbaa !11
  br label %152

152:                                              ; preds = %125
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %10, align 4, !tbaa !9
  br label %122, !llvm.loop !15

155:                                              ; preds = %122
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %9, align 4, !tbaa !9
  br label %83, !llvm.loop !16

159:                                              ; preds = %83
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %8, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %8, align 4, !tbaa !9
  br label %19, !llvm.loop !17

163:                                              ; preds = %19
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds [3 x double], ptr %164, i64 2
  %166 = getelementptr inbounds [3 x double], ptr %165, i64 0, i64 2
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = call double @llvm.fabs.f64(double %167)
  %169 = fcmp olt double %168, 0x3EB0C6F7A0B5ED8D
  br i1 %169, label %170, label %171

170:                                              ; preds = %163
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %229

171:                                              ; preds = %163
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds double, ptr %172, i64 2
  %174 = load double, ptr %173, align 8, !tbaa !11
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds [3 x double], ptr %175, i64 2
  %177 = getelementptr inbounds [3 x double], ptr %176, i64 0, i64 2
  %178 = load double, ptr %177, align 8, !tbaa !11
  %179 = fdiv double %174, %178
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 2
  store double %179, ptr %181, align 8, !tbaa !11
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds double, ptr %182, i64 1
  %184 = load double, ptr %183, align 8, !tbaa !11
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds [3 x double], ptr %185, i64 1
  %187 = getelementptr inbounds [3 x double], ptr %186, i64 0, i64 2
  %188 = load double, ptr %187, align 8, !tbaa !11
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds double, ptr %189, i64 2
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = fneg double %188
  %193 = call double @llvm.fmuladd.f64(double %192, double %191, double %184)
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds [3 x double], ptr %194, i64 1
  %196 = getelementptr inbounds [3 x double], ptr %195, i64 0, i64 1
  %197 = load double, ptr %196, align 8, !tbaa !11
  %198 = fdiv double %193, %197
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %199, i64 1
  store double %198, ptr %200, align 8, !tbaa !11
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = getelementptr inbounds double, ptr %201, i64 0
  %203 = load double, ptr %202, align 8, !tbaa !11
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = getelementptr inbounds [3 x double], ptr %204, i64 0
  %206 = getelementptr inbounds [3 x double], ptr %205, i64 0, i64 2
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds double, ptr %208, i64 2
  %210 = load double, ptr %209, align 8, !tbaa !11
  %211 = fneg double %207
  %212 = call double @llvm.fmuladd.f64(double %211, double %210, double %203)
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = getelementptr inbounds [3 x double], ptr %213, i64 0
  %215 = getelementptr inbounds [3 x double], ptr %214, i64 0, i64 1
  %216 = load double, ptr %215, align 8, !tbaa !11
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 1
  %219 = load double, ptr %218, align 8, !tbaa !11
  %220 = fneg double %216
  %221 = call double @llvm.fmuladd.f64(double %220, double %219, double %212)
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = getelementptr inbounds [3 x double], ptr %222, i64 0
  %224 = getelementptr inbounds [3 x double], ptr %223, i64 0, i64 0
  %225 = load double, ptr %224, align 8, !tbaa !11
  %226 = fdiv double %221, %225
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = getelementptr inbounds double, ptr %227, i64 0
  store double %226, ptr %228, align 8, !tbaa !11
  store i32 0, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %229

229:                                              ; preds = %171, %170, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %230 = load i32, ptr %4, align 4
  ret i32 %230
}

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

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

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 = !{!"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}


; 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: nounwind uwtable
declare dso_local void @swap_line(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @Gaussian_elimination(ptr nocapture noundef writeonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
._crit_edge:
  %3 = load double, ptr %1, align 8, !tbaa !5
  %4 = tail call double @llvm.fabs.f64(double %3)
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  %6 = load double, ptr %5, align 8, !tbaa !5
  %7 = tail call double @llvm.fabs.f64(double %6)
  %8 = fcmp ogt double %7, %4
  %.175 = zext i1 %8 to i32
  %.173 = select i1 %8, double %7, double %4
  %9 = getelementptr inbounds i8, ptr %1, i64 48
  %10 = load double, ptr %9, align 8, !tbaa !5
  %11 = tail call double @llvm.fabs.f64(double %10)
  %12 = fcmp ogt double %11, %.173
  %.175.1106 = select i1 %12, i32 2, i32 %.175
  %.173.1107 = select i1 %12, double %11, double %.173
  %13 = fcmp olt double %.173.1107, 0x3EB0C6F7A0B5ED8D
  br i1 %13, label %.loopexit77, label %79

._crit_edge.1:                                    ; preds = %79, %80
  %14 = getelementptr inbounds i8, ptr %1, i64 24
  %15 = load double, ptr %14, align 8, !tbaa !5
  %16 = load double, ptr %1, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %2, i64 8
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = load double, ptr %2, align 8, !tbaa !5
  %20 = fneg double %15
  %21 = fdiv double %20, %16
  %22 = tail call double @llvm.fmuladd.f64(double %21, double %19, double %18)
  store double %22, ptr %17, align 8, !tbaa !5
  %23 = load <2 x double>, ptr %14, align 8, !tbaa !5
  %24 = load <2 x double>, ptr %1, align 8, !tbaa !5
  %25 = insertelement <2 x double> poison, double %21, i64 0
  %26 = shufflevector <2 x double> %25, <2 x double> poison, <2 x i32> zeroinitializer
  %27 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %26, <2 x double> %24, <2 x double> %23)
  store <2 x double> %27, ptr %14, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %1, i64 40
  %29 = load double, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %1, i64 16
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = tail call double @llvm.fmuladd.f64(double %21, double %31, double %29)
  store double %32, ptr %28, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %1, i64 48
  %34 = load double, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %2, i64 16
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = load double, ptr %2, align 8, !tbaa !5
  %38 = fneg double %34
  %39 = extractelement <2 x double> %24, i64 0
  %40 = fdiv double %38, %39
  %41 = tail call double @llvm.fmuladd.f64(double %40, double %37, double %36)
  store double %41, ptr %35, align 8, !tbaa !5
  %42 = load <2 x double>, ptr %33, align 8, !tbaa !5
  %43 = load <2 x double>, ptr %1, align 8, !tbaa !5
  %44 = insertelement <2 x double> poison, double %40, i64 0
  %45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> zeroinitializer
  %46 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %43, <2 x double> %42)
  store <2 x double> %46, ptr %33, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %1, i64 64
  %48 = load double, ptr %47, align 8, !tbaa !5
  %49 = load double, ptr %30, align 8, !tbaa !5
  %50 = tail call double @llvm.fmuladd.f64(double %40, double %49, double %48)
  store double %50, ptr %47, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %1, i64 32
  %52 = load double, ptr %51, align 8, !tbaa !5
  %53 = tail call double @llvm.fabs.f64(double %52)
  %54 = getelementptr inbounds i8, ptr %1, i64 56
  %55 = load double, ptr %54, align 8, !tbaa !5
  %56 = tail call double @llvm.fabs.f64(double %55)
  %57 = fcmp ule double %56, %53
  %.173.1 = select i1 %57, double %53, double %56
  %58 = fcmp olt double %.173.1, 0x3EB0C6F7A0B5ED8D
  br i1 %58, label %.loopexit77, label %59

59:                                               ; preds = %._crit_edge.1
  br i1 %57, label %.loopexit.1, label %60

60:                                               ; preds = %59
  tail call void @swap_line(ptr noundef nonnull %1, ptr noundef nonnull %2, i32 noundef 1, i32 noundef 2)
  br label %.loopexit.1

.loopexit.1:                                      ; preds = %60, %59
  %61 = getelementptr inbounds i8, ptr %2, i64 8
  %62 = getelementptr inbounds i8, ptr %1, i64 56
  %63 = load double, ptr %62, align 8, !tbaa !5
  %64 = load double, ptr %51, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %2, i64 16
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = load double, ptr %61, align 8, !tbaa !5
  %68 = fneg double %63
  %69 = fdiv double %68, %64
  %70 = tail call double @llvm.fmuladd.f64(double %69, double %67, double %66)
  store double %70, ptr %65, align 8, !tbaa !5
  %71 = load <2 x double>, ptr %62, align 8, !tbaa !5
  %72 = load <2 x double>, ptr %51, align 8, !tbaa !5
  %73 = insertelement <2 x double> poison, double %69, i64 0
  %74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
  %75 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %74, <2 x double> %72, <2 x double> %71)
  store <2 x double> %75, ptr %62, align 8, !tbaa !5
  %76 = extractelement <2 x double> %75, i64 1
  %77 = tail call double @llvm.fabs.f64(double %76)
  %78 = fcmp olt double %77, 0x3EB0C6F7A0B5ED8D
  br i1 %78, label %.loopexit77, label %81

79:                                               ; preds = %._crit_edge
  %.not = icmp eq i32 %.175.1106, 0
  br i1 %.not, label %._crit_edge.1, label %80

80:                                               ; preds = %79
  tail call void @swap_line(ptr noundef nonnull %1, ptr noundef %2, i32 noundef 0, i32 noundef %.175.1106)
  br label %._crit_edge.1

81:                                               ; preds = %.loopexit.1
  %82 = getelementptr inbounds i8, ptr %2, i64 16
  %83 = load double, ptr %82, align 8, !tbaa !5
  %84 = fdiv double %83, %76
  %85 = getelementptr inbounds i8, ptr %0, i64 16
  store double %84, ptr %85, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %2, i64 8
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %1, i64 40
  %89 = load double, ptr %88, align 8, !tbaa !5
  %90 = fneg double %89
  %91 = tail call double @llvm.fmuladd.f64(double %90, double %84, double %87)
  %92 = load double, ptr %51, align 8, !tbaa !5
  %93 = fdiv double %91, %92
  %94 = getelementptr inbounds i8, ptr %0, i64 8
  store double %93, ptr %94, align 8, !tbaa !5
  %95 = load double, ptr %2, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %1, i64 16
  %97 = load double, ptr %96, align 8, !tbaa !5
  %98 = fneg double %97
  %99 = tail call double @llvm.fmuladd.f64(double %98, double %84, double %95)
  %100 = getelementptr inbounds i8, ptr %1, i64 8
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = fneg double %101
  %103 = tail call double @llvm.fmuladd.f64(double %102, double %93, double %99)
  %104 = load double, ptr %1, align 8, !tbaa !5
  %105 = fdiv double %103, %104
  store double %105, ptr %0, align 8, !tbaa !5
  br label %.loopexit77

.loopexit77:                                      ; preds = %._crit_edge, %._crit_edge.1, %.loopexit.1, %81
  %.0 = phi i32 [ 0, %81 ], [ -1, %.loopexit.1 ], [ -1, %._crit_edge.1 ], [ -1, %._crit_edge ]
  ret i32 %.0
}

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

; 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 <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #2

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 = { 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, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


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