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

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

@__const.calc_psat_t.ps_ini = external hidden unnamed_addr constant [10 x double], align 16
@__const.calc_psat_t.d1_ini = external hidden unnamed_addr constant [3 x double], align 16
@__const.calc_psat_t.d2_ini = external hidden unnamed_addr constant [9 x double], align 16

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f64(double, i32 immarg) #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
declare dso_local i32 @Gaussian_elimination(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local double @find_max(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
declare dso_local void @calcfgh_dfgh_tsat(ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @calc_psat_t(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3) #2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca [3 x double], align 16
  %11 = alloca [3 x [3 x double]], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [3 x double], align 16
  %19 = alloca [10 x double], align 16
  %20 = alloca [3 x double], align 16
  %21 = alloca [9 x double], align 16
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store double %3, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 72, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 -1, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #5
  call void @llvm.memset.p0.i64(ptr align 16 %18, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 @__const.calc_psat_t.ps_ini, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 @__const.calc_psat_t.d1_ini, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %21) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 @__const.calc_psat_t.d2_ini, i64 72, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 0, ptr %28, align 4, !tbaa !11
  br label %32

32:                                               ; preds = %163, %4
  %33 = load i32, ptr %28, align 4, !tbaa !11
  %34 = icmp slt i32 %33, 1
  br i1 %34, label %35, label %166

35:                                               ; preds = %32
  store i32 0, ptr %29, align 4, !tbaa !11
  br label %36

36:                                               ; preds = %159, %35
  %37 = load i32, ptr %29, align 4, !tbaa !11
  %38 = icmp slt i32 %37, 1
  br i1 %38, label %39, label %162

39:                                               ; preds = %36
  store i32 0, ptr %30, align 4, !tbaa !11
  br label %40

40:                                               ; preds = %155, %39
  %41 = load i32, ptr %30, align 4, !tbaa !11
  %42 = icmp slt i32 %41, 1
  br i1 %42, label %43, label %158

43:                                               ; preds = %40
  %44 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  %45 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
  %46 = load i32, ptr %28, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [10 x double], ptr %19, i64 0, i64 %47
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = load i32, ptr %29, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !9
  %54 = load i32, ptr %30, align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [9 x double], ptr %21, i64 0, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = load double, ptr %9, align 8, !tbaa !9
  call void @calcfgh_dfgh_tsat(ptr noundef %44, ptr noundef %45, double noundef %49, double noundef %53, double noundef %57, double noundef %58)
  %59 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %60 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  %61 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
  %62 = call i32 @Gaussian_elimination(ptr noundef %59, ptr noundef %60, ptr noundef %61)
  store i32 %62, ptr %12, align 4, !tbaa !11
  %63 = load i32, ptr %12, align 4, !tbaa !11
  %64 = icmp eq i32 %63, -1
  br i1 %64, label %65, label %66

65:                                               ; preds = %43
  br label %155

66:                                               ; preds = %43
  %67 = load i32, ptr %28, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [10 x double], ptr %19, i64 0, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !9
  %71 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %72 = load double, ptr %71, align 16, !tbaa !9
  %73 = fadd double %70, %72
  store double %73, ptr %22, align 8, !tbaa !9
  %74 = load i32, ptr %29, align 4, !tbaa !11
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [3 x double], ptr %20, i64 0, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !9
  %78 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
  %79 = load double, ptr %78, align 8, !tbaa !9
  %80 = fadd double %77, %79
  store double %80, ptr %25, align 8, !tbaa !9
  %81 = load i32, ptr %30, align 4, !tbaa !11
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [9 x double], ptr %21, i64 0, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
  %86 = load double, ptr %85, align 16, !tbaa !9
  %87 = fadd double %84, %86
  store double %87, ptr %27, align 8, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %88

88:                                               ; preds = %127, %66
  %89 = load double, ptr %22, align 8, !tbaa !9
  store double %89, ptr %23, align 8, !tbaa !9
  %90 = load double, ptr %25, align 8, !tbaa !9
  store double %90, ptr %24, align 8, !tbaa !9
  %91 = load double, ptr %27, align 8, !tbaa !9
  store double %91, ptr %26, align 8, !tbaa !9
  %92 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  %93 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
  %94 = load double, ptr %23, align 8, !tbaa !9
  %95 = load double, ptr %24, align 8, !tbaa !9
  %96 = load double, ptr %26, align 8, !tbaa !9
  %97 = load double, ptr %9, align 8, !tbaa !9
  call void @calcfgh_dfgh_tsat(ptr noundef %92, ptr noundef %93, double noundef %94, double noundef %95, double noundef %96, double noundef %97)
  %98 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %99 = getelementptr inbounds [3 x [3 x double]], ptr %11, i64 0, i64 0
  %100 = getelementptr inbounds [3 x double], ptr %18, i64 0, i64 0
  %101 = call i32 @Gaussian_elimination(ptr noundef %98, ptr noundef %99, ptr noundef %100)
  store i32 %101, ptr %12, align 4, !tbaa !11
  %102 = load i32, ptr %12, align 4, !tbaa !11
  %103 = icmp eq i32 %102, -1
  br i1 %103, label %104, label %105

104:                                              ; preds = %88
  br label %129

105:                                              ; preds = %88
  %106 = load double, ptr %23, align 8, !tbaa !9
  %107 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %108 = load double, ptr %107, align 16, !tbaa !9
  %109 = fadd double %106, %108
  store double %109, ptr %22, align 8, !tbaa !9
  %110 = load double, ptr %24, align 8, !tbaa !9
  %111 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 1
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = fadd double %110, %112
  store double %113, ptr %25, align 8, !tbaa !9
  %114 = load double, ptr %26, align 8, !tbaa !9
  %115 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 2
  %116 = load double, ptr %115, align 16, !tbaa !9
  %117 = fadd double %114, %116
  store double %117, ptr %27, align 8, !tbaa !9
  %118 = load i32, ptr %13, align 4, !tbaa !11
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %13, align 4, !tbaa !11
  br label %120

120:                                              ; preds = %105
  %121 = load i32, ptr %13, align 4, !tbaa !11
  %122 = icmp slt i32 %121, 100
  br i1 %122, label %123, label %127

123:                                              ; preds = %120
  %124 = getelementptr inbounds [3 x double], ptr %10, i64 0, i64 0
  %125 = call double @find_max(ptr noundef %124)
  %126 = fcmp ogt double %125, 0x3EB0C6F7A0B5ED8D
  br label %127

127:                                              ; preds = %123, %120
  %128 = phi i1 [ false, %120 ], [ %126, %123 ]
  br i1 %128, label %88, label %129, !llvm.loop !13

129:                                              ; preds = %127, %104
  %130 = load i32, ptr %13, align 4, !tbaa !11
  %131 = icmp eq i32 %130, 100
  br i1 %131, label %135, label %132

132:                                              ; preds = %129
  %133 = load i32, ptr %12, align 4, !tbaa !11
  %134 = icmp eq i32 %133, -1
  br i1 %134, label %135, label %136

135:                                              ; preds = %132, %129
  br label %155

136:                                              ; preds = %132
  %137 = load double, ptr %22, align 8, !tbaa !9
  %138 = call i1 @llvm.is.fpclass.f64(double %137, i32 3)
  br i1 %138, label %154, label %139

139:                                              ; preds = %136
  %140 = load double, ptr %25, align 8, !tbaa !9
  %141 = call i1 @llvm.is.fpclass.f64(double %140, i32 3)
  br i1 %141, label %154, label %142

142:                                              ; preds = %139
  %143 = load double, ptr %27, align 8, !tbaa !9
  %144 = call i1 @llvm.is.fpclass.f64(double %143, i32 3)
  br i1 %144, label %154, label %145

145:                                              ; preds = %142
  %146 = load double, ptr %22, align 8, !tbaa !9
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  store double %146, ptr %147, align 8, !tbaa !9
  %148 = load double, ptr %25, align 8, !tbaa !9
  %149 = fmul double %148, 4.676000e+02
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  store double %149, ptr %150, align 8, !tbaa !9
  %151 = load double, ptr %27, align 8, !tbaa !9
  %152 = fmul double %151, 4.676000e+02
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  store double %152, ptr %153, align 8, !tbaa !9
  store i32 0, ptr %5, align 4
  store i32 1, ptr %31, align 4
  br label %167

154:                                              ; preds = %142, %139, %136
  br label %155

155:                                              ; preds = %154, %135, %65
  %156 = load i32, ptr %30, align 4, !tbaa !11
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %30, align 4, !tbaa !11
  br label %40, !llvm.loop !15

158:                                              ; preds = %40
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %29, align 4, !tbaa !11
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %29, align 4, !tbaa !11
  br label %36, !llvm.loop !16

162:                                              ; preds = %36
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %28, align 4, !tbaa !11
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %28, align 4, !tbaa !11
  br label %32, !llvm.loop !17

166:                                              ; preds = %32
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %31, align 4
  br label %167

167:                                              ; preds = %166, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  %168 = load i32, ptr %5, align 4
  ret i32 %168
}

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !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"

@__const.calc_psat_t.ps_ini = external hidden unnamed_addr constant [10 x double], align 16
@__const.calc_psat_t.d1_ini = external hidden unnamed_addr constant [3 x double], align 16
@__const.calc_psat_t.d2_ini = external hidden unnamed_addr constant [9 x double], align 16

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

; Function Attrs: nounwind uwtable
declare dso_local double @find_max(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local void @calcfgh_dfgh_tsat(ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @calc_psat_t(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, double noundef %3) local_unnamed_addr #1 {
.critedge52:
  %4 = alloca [3 x double], align 16
  %5 = alloca [3 x [3 x double]], align 16
  %6 = alloca [3 x double], align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %4, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(72) %5, i8 0, i64 72, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %6, i8 0, i64 24, i1 false)
  %7 = load double, ptr @__const.calc_psat_t.ps_ini, align 16, !tbaa !5
  %8 = load double, ptr @__const.calc_psat_t.d1_ini, align 16, !tbaa !5
  %9 = load double, ptr @__const.calc_psat_t.d2_ini, align 16, !tbaa !5
  call void @calcfgh_dfgh_tsat(ptr noundef nonnull %5, ptr noundef nonnull %6, double noundef %7, double noundef %8, double noundef %9, double noundef %3)
  %10 = call i32 @Gaussian_elimination(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %11 = icmp eq i32 %10, -1
  br i1 %11, label %45, label %12

12:                                               ; preds = %.critedge52
  %13 = load <2 x double>, ptr %4, align 16, !tbaa !5
  %14 = insertelement <2 x double> poison, double %7, i64 0
  %15 = insertelement <2 x double> %14, double %8, i64 1
  %16 = fadd <2 x double> %15, %13
  %17 = getelementptr inbounds i8, ptr %4, i64 16
  %18 = load double, ptr %17, align 16, !tbaa !5
  %19 = fadd double %9, %18
  br label %20

20:                                               ; preds = %31, %12
  %.045 = phi i32 [ 0, %12 ], [ %32, %31 ]
  %.041 = phi double [ %19, %12 ], [ %30, %31 ]
  %21 = phi <2 x double> [ %16, %12 ], [ %28, %31 ]
  %22 = extractelement <2 x double> %21, i64 0
  %23 = extractelement <2 x double> %21, i64 1
  call void @calcfgh_dfgh_tsat(ptr noundef nonnull %5, ptr noundef nonnull %6, double noundef %22, double noundef %23, double noundef %.041, double noundef %3)
  %24 = call i32 @Gaussian_elimination(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %25 = icmp eq i32 %24, -1
  br i1 %25, label %.critedge, label %26

26:                                               ; preds = %20
  %27 = load <2 x double>, ptr %4, align 16, !tbaa !5
  %28 = fadd <2 x double> %21, %27
  %29 = load double, ptr %17, align 16, !tbaa !5
  %30 = fadd double %.041, %29
  %exitcond.not = icmp eq i32 %.045, 99
  br i1 %exitcond.not, label %.critedge, label %31

31:                                               ; preds = %26
  %32 = add nuw nsw i32 %.045, 1
  %33 = call double @find_max(ptr noundef nonnull %4)
  %34 = fcmp ogt double %33, 0x3EB0C6F7A0B5ED8D
  br i1 %34, label %20, label %.critedge, !llvm.loop !9

.critedge:                                        ; preds = %26, %20, %31
  %.146 = phi i32 [ 100, %26 ], [ %.045, %20 ], [ %32, %31 ]
  %.1 = phi double [ %30, %26 ], [ %.041, %20 ], [ %30, %31 ]
  %35 = phi <2 x double> [ %28, %26 ], [ %21, %20 ], [ %28, %31 ]
  %36 = icmp eq i32 %.146, 100
  %or.cond = or i1 %25, %36
  %37 = extractelement <2 x double> %35, i64 0
  %38 = fcmp uno double %37, 0.000000e+00
  %or.cond57 = select i1 %or.cond, i1 true, i1 %38
  %39 = extractelement <2 x double> %35, i64 1
  %40 = fcmp uno double %39, 0.000000e+00
  %or.cond58 = select i1 %or.cond57, i1 true, i1 %40
  %41 = fcmp uno double %.1, 0.000000e+00
  %or.cond59 = select i1 %or.cond58, i1 true, i1 %41
  br i1 %or.cond59, label %45, label %42

42:                                               ; preds = %.critedge
  store double %37, ptr %0, align 8, !tbaa !5
  %43 = fmul double %39, 4.676000e+02
  store double %43, ptr %1, align 8, !tbaa !5
  %44 = fmul double %.1, 4.676000e+02
  store double %44, ptr %2, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %.critedge, %.critedge52, %42
  %.042 = phi i32 [ 0, %42 ], [ -1, %.critedge52 ], [ -1, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  ret i32 %.042
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 nounwind willreturn memory(argmem: write) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass