; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/386 Division 2/Problem C (C)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %20 = load double, ptr %3, align 8, !tbaa !5
  %21 = load double, ptr %4, align 8, !tbaa !5
  %22 = fcmp ogt double %20, %21
  br i1 %22, label %23, label %35

23:                                               ; preds = %0
  %24 = load double, ptr %2, align 8, !tbaa !5
  %25 = load double, ptr %3, align 8, !tbaa !5
  %26 = fsub double %24, %25
  store double %26, ptr %3, align 8, !tbaa !5
  %27 = load double, ptr %2, align 8, !tbaa !5
  %28 = load double, ptr %4, align 8, !tbaa !5
  %29 = fsub double %27, %28
  store double %29, ptr %4, align 8, !tbaa !5
  %30 = load double, ptr %2, align 8, !tbaa !5
  %31 = load double, ptr %7, align 8, !tbaa !5
  %32 = fsub double %30, %31
  store double %32, ptr %7, align 8, !tbaa !5
  %33 = load double, ptr %8, align 8, !tbaa !5
  %34 = fneg double %33
  store double %34, ptr %8, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %23, %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %36 = load double, ptr %4, align 8, !tbaa !5
  %37 = load double, ptr %3, align 8, !tbaa !5
  %38 = fsub double %36, %37
  %39 = load double, ptr %6, align 8, !tbaa !5
  %40 = fmul double %38, %39
  store double %40, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store double 0.000000e+00, ptr %10, align 8, !tbaa !5
  %41 = load double, ptr %5, align 8, !tbaa !5
  %42 = load double, ptr %6, align 8, !tbaa !5
  %43 = fcmp oge double %41, %42
  br i1 %43, label %44, label %48

44:                                               ; preds = %35
  %45 = load double, ptr %9, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %45)
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %137

48:                                               ; preds = %35
  %49 = load double, ptr %8, align 8, !tbaa !5
  %50 = fcmp olt double %49, 0.000000e+00
  br i1 %50, label %51, label %68

51:                                               ; preds = %48
  %52 = load double, ptr %7, align 8, !tbaa !5
  %53 = load double, ptr %5, align 8, !tbaa !5
  %54 = fmul double %52, %53
  store double %54, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %7, align 8, !tbaa !5
  store double 1.000000e+00, ptr %8, align 8, !tbaa !5
  %55 = load double, ptr %10, align 8, !tbaa !5
  %56 = load double, ptr %6, align 8, !tbaa !5
  %57 = fdiv double %55, %56
  %58 = load double, ptr %3, align 8, !tbaa !5
  %59 = fadd double %58, %57
  store double %59, ptr %3, align 8, !tbaa !5
  %60 = load double, ptr %3, align 8, !tbaa !5
  %61 = load double, ptr %4, align 8, !tbaa !5
  %62 = fcmp oge double %60, %61
  br i1 %62, label %63, label %67

63:                                               ; preds = %51
  %64 = load double, ptr %9, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %64)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %137

67:                                               ; preds = %51
  br label %94

68:                                               ; preds = %48
  %69 = load double, ptr %7, align 8, !tbaa !5
  %70 = load double, ptr %3, align 8, !tbaa !5
  %71 = fcmp ogt double %69, %70
  br i1 %71, label %72, label %93

72:                                               ; preds = %68
  %73 = load double, ptr %2, align 8, !tbaa !5
  %74 = load double, ptr %7, align 8, !tbaa !5
  %75 = fsub double %73, %74
  %76 = load double, ptr %2, align 8, !tbaa !5
  %77 = fadd double %75, %76
  %78 = load double, ptr %5, align 8, !tbaa !5
  %79 = fmul double %77, %78
  store double %79, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %7, align 8, !tbaa !5
  store double 1.000000e+00, ptr %8, align 8, !tbaa !5
  %80 = load double, ptr %10, align 8, !tbaa !5
  %81 = load double, ptr %6, align 8, !tbaa !5
  %82 = fdiv double %80, %81
  %83 = load double, ptr %3, align 8, !tbaa !5
  %84 = fadd double %83, %82
  store double %84, ptr %3, align 8, !tbaa !5
  %85 = load double, ptr %3, align 8, !tbaa !5
  %86 = load double, ptr %4, align 8, !tbaa !5
  %87 = fcmp oge double %85, %86
  br i1 %87, label %88, label %92

88:                                               ; preds = %72
  %89 = load double, ptr %9, align 8, !tbaa !5
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %89)
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %137

92:                                               ; preds = %72
  br label %93

93:                                               ; preds = %92, %68
  br label %94

94:                                               ; preds = %93, %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %95 = load double, ptr %3, align 8, !tbaa !5
  %96 = load double, ptr %7, align 8, !tbaa !5
  %97 = fsub double %95, %96
  %98 = load double, ptr %6, align 8, !tbaa !5
  %99 = fmul double %97, %98
  %100 = load double, ptr %5, align 8, !tbaa !5
  %101 = fmul double %99, %100
  %102 = load double, ptr %6, align 8, !tbaa !5
  %103 = load double, ptr %5, align 8, !tbaa !5
  %104 = fsub double %102, %103
  %105 = fdiv double %101, %104
  store double %105, ptr %12, align 8, !tbaa !5
  %106 = load double, ptr %3, align 8, !tbaa !5
  %107 = load double, ptr %12, align 8, !tbaa !5
  %108 = load double, ptr %6, align 8, !tbaa !5
  %109 = fdiv double %107, %108
  %110 = fadd double %106, %109
  %111 = load double, ptr %4, align 8, !tbaa !5
  %112 = fcmp oge double %110, %111
  br i1 %112, label %113, label %117

113:                                              ; preds = %94
  %114 = load double, ptr %9, align 8, !tbaa !5
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %114)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %136

117:                                              ; preds = %94
  %118 = load double, ptr %12, align 8, !tbaa !5
  %119 = load double, ptr %10, align 8, !tbaa !5
  %120 = fadd double %119, %118
  store double %120, ptr %10, align 8, !tbaa !5
  %121 = load double, ptr %12, align 8, !tbaa !5
  %122 = load double, ptr %6, align 8, !tbaa !5
  %123 = fdiv double %121, %122
  %124 = load double, ptr %3, align 8, !tbaa !5
  %125 = fadd double %124, %123
  store double %125, ptr %3, align 8, !tbaa !5
  %126 = load double, ptr %4, align 8, !tbaa !5
  %127 = load double, ptr %3, align 8, !tbaa !5
  %128 = fsub double %126, %127
  %129 = load double, ptr %5, align 8, !tbaa !5
  %130 = load double, ptr %10, align 8, !tbaa !5
  %131 = call double @llvm.fmuladd.f64(double %128, double %129, double %130)
  store double %131, ptr %10, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %133)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %136

136:                                              ; preds = %117, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %137

137:                                              ; preds = %136, %88, %63, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %138 = load i32, ptr %1, align 4
  ret i32 %138
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { mustprogress norecurse 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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++ TBAA"}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %17 = load double, ptr %2, align 8, !tbaa !5
  %18 = load double, ptr %3, align 8, !tbaa !5
  %19 = fcmp ogt double %17, %18
  br i1 %19, label %20, label %28

20:                                               ; preds = %0
  %21 = load double, ptr %1, align 8, !tbaa !5
  %22 = fsub double %21, %17
  store double %22, ptr %2, align 8, !tbaa !5
  %23 = fsub double %21, %18
  store double %23, ptr %3, align 8, !tbaa !5
  %24 = load double, ptr %6, align 8, !tbaa !5
  %25 = fsub double %21, %24
  store double %25, ptr %6, align 8, !tbaa !5
  %26 = load double, ptr %7, align 8, !tbaa !5
  %27 = fneg double %26
  store double %27, ptr %7, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %20, %0
  %29 = phi double [ %22, %20 ], [ %17, %0 ]
  %30 = phi double [ %23, %20 ], [ %18, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %31 = fsub double %30, %29
  %32 = load double, ptr %5, align 8, !tbaa !5
  %33 = fmul double %31, %32
  store double %33, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %34 = load double, ptr %4, align 8, !tbaa !5
  %35 = fcmp ult double %34, %32
  br i1 %35, label %36, label %73

36:                                               ; preds = %28
  %37 = load double, ptr %7, align 8, !tbaa !5
  %38 = fcmp olt double %37, 0.000000e+00
  %39 = load double, ptr %6, align 8, !tbaa !5
  br i1 %38, label %40, label %45

40:                                               ; preds = %36
  %41 = fmul double %34, %39
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store double 1.000000e+00, ptr %7, align 8, !tbaa !5
  %42 = fdiv double %41, %32
  %43 = fadd double %29, %42
  store double %43, ptr %2, align 8, !tbaa !5
  %44 = fcmp ult double %43, %30
  br i1 %44, label %55, label %73

45:                                               ; preds = %36
  %46 = fcmp ogt double %39, %29
  br i1 %46, label %47, label %55

47:                                               ; preds = %45
  %48 = load double, ptr %1, align 8, !tbaa !5
  %49 = fsub double %48, %39
  %50 = fadd double %48, %49
  %51 = fmul double %34, %50
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store double 1.000000e+00, ptr %7, align 8, !tbaa !5
  %52 = fdiv double %51, %32
  %53 = fadd double %29, %52
  store double %53, ptr %2, align 8, !tbaa !5
  %54 = fcmp ult double %53, %30
  br i1 %54, label %55, label %73

55:                                               ; preds = %45, %47, %40
  %56 = phi double [ 0.000000e+00, %45 ], [ %51, %47 ], [ %41, %40 ]
  %57 = phi double [ %39, %45 ], [ 0.000000e+00, %47 ], [ 0.000000e+00, %40 ]
  %58 = phi double [ %29, %45 ], [ %53, %47 ], [ %43, %40 ]
  %59 = fsub double %58, %57
  %60 = fmul double %32, %59
  %61 = fmul double %34, %60
  %62 = fsub double %32, %34
  %63 = fdiv double %61, %62
  %64 = fdiv double %63, %32
  %65 = fadd double %58, %64
  %66 = fcmp ult double %65, %30
  br i1 %66, label %67, label %73

67:                                               ; preds = %55
  %68 = fadd double %63, %56
  store double %65, ptr %2, align 8, !tbaa !5
  %69 = fsub double %30, %65
  %70 = call double @llvm.fmuladd.f64(double %69, double %34, double %68)
  store double %70, ptr %9, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %72 = load double, ptr %71, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %55, %47, %40, %28, %67
  %.sink5 = phi double [ %72, %67 ], [ %33, %28 ], [ %33, %40 ], [ %33, %47 ], [ %33, %55 ]
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %.sink5)
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { mustprogress norecurse 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 willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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++ TBAA"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass