; LLVM IR from Izaron/ACM-ICPC :: Timus Online Judge/Volume 4/1348. Goat in the Garden 2 (main)

; 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
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; 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 double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i8, align 1
  %21 = alloca double, align 8
  %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 double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store double 0.000000e+00, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store double 0.000000e+00, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store double -1.000000e+00, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store double 0.000000e+00, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  %33 = 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)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %40 = load double, ptr %4, align 8, !tbaa !5
  %41 = load double, ptr %2, align 8, !tbaa !5
  %42 = fsub double %40, %41
  %43 = fcmp une double %42, 0.000000e+00
  br i1 %43, label %44, label %58

44:                                               ; preds = %0
  %45 = load double, ptr %5, align 8, !tbaa !5
  %46 = load double, ptr %3, align 8, !tbaa !5
  %47 = fsub double %45, %46
  %48 = load double, ptr %4, align 8, !tbaa !5
  %49 = load double, ptr %2, align 8, !tbaa !5
  %50 = fsub double %48, %49
  %51 = fdiv double %47, %50
  store double %51, ptr %12, align 8, !tbaa !5
  %52 = load double, ptr %12, align 8, !tbaa !5
  store double %52, ptr %9, align 8, !tbaa !5
  %53 = load double, ptr %5, align 8, !tbaa !5
  %54 = load double, ptr %12, align 8, !tbaa !5
  %55 = load double, ptr %4, align 8, !tbaa !5
  %56 = fneg double %54
  %57 = call double @llvm.fmuladd.f64(double %56, double %55, double %53)
  store double %57, ptr %11, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %44, %0
  %59 = load double, ptr %4, align 8, !tbaa !5
  %60 = load double, ptr %2, align 8, !tbaa !5
  %61 = fsub double %59, %60
  %62 = fcmp oeq double %61, 0.000000e+00
  br i1 %62, label %63, label %66

63:                                               ; preds = %58
  store double 1.000000e+00, ptr %9, align 8, !tbaa !5
  store double 0.000000e+00, ptr %10, align 8, !tbaa !5
  %64 = load double, ptr %2, align 8, !tbaa !5
  %65 = fneg double %64
  store double %65, ptr %11, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %63, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %67 = load double, ptr %9, align 8, !tbaa !5
  %68 = load double, ptr %6, align 8, !tbaa !5
  %69 = load double, ptr %10, align 8, !tbaa !5
  %70 = load double, ptr %7, align 8, !tbaa !5
  %71 = fmul double %69, %70
  %72 = call double @llvm.fmuladd.f64(double %67, double %68, double %71)
  %73 = load double, ptr %11, align 8, !tbaa !5
  %74 = fadd double %72, %73
  %75 = call double @llvm.fabs.f64(double %74)
  %76 = load double, ptr %9, align 8, !tbaa !5
  %77 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %76, i32 noundef 2)
  %78 = load double, ptr %10, align 8, !tbaa !5
  %79 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %78, i32 noundef 2)
  %80 = fadd double %77, %79
  %81 = call double @sqrt(double noundef %80) #8
  %82 = fdiv double %75, %81
  store double %82, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %83 = load double, ptr %6, align 8, !tbaa !5
  %84 = load double, ptr %2, align 8, !tbaa !5
  %85 = fsub double %83, %84
  %86 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %85, i32 noundef 2)
  %87 = load double, ptr %7, align 8, !tbaa !5
  %88 = load double, ptr %3, align 8, !tbaa !5
  %89 = fsub double %87, %88
  %90 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %89, i32 noundef 2)
  %91 = fadd double %86, %90
  %92 = call double @sqrt(double noundef %91) #8
  %93 = call double @llvm.fabs.f64(double %92)
  store double %93, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %94 = load double, ptr %6, align 8, !tbaa !5
  %95 = load double, ptr %4, align 8, !tbaa !5
  %96 = fsub double %94, %95
  %97 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %96, i32 noundef 2)
  %98 = load double, ptr %7, align 8, !tbaa !5
  %99 = load double, ptr %5, align 8, !tbaa !5
  %100 = fsub double %98, %99
  %101 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %100, i32 noundef 2)
  %102 = fadd double %97, %101
  %103 = call double @sqrt(double noundef %102) #8
  %104 = call double @llvm.fabs.f64(double %103)
  store double %104, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store double 0.000000e+00, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store double 0.000000e+00, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store double 0.000000e+00, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store double 0.000000e+00, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  store i8 1, ptr %20, align 1, !tbaa !9
  %105 = load double, ptr %4, align 8, !tbaa !5
  %106 = load double, ptr %2, align 8, !tbaa !5
  %107 = fsub double %105, %106
  %108 = fcmp oeq double %107, 0.000000e+00
  br i1 %108, label %109, label %112

109:                                              ; preds = %66
  store double 0.000000e+00, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %17, align 8, !tbaa !5
  store double 0.000000e+00, ptr %19, align 8, !tbaa !5
  %110 = load double, ptr %7, align 8, !tbaa !5
  %111 = fneg double %110
  store double %111, ptr %18, align 8, !tbaa !5
  store i8 0, ptr %20, align 1, !tbaa !9
  br label %112

112:                                              ; preds = %109, %66
  %113 = load double, ptr %5, align 8, !tbaa !5
  %114 = load double, ptr %3, align 8, !tbaa !5
  %115 = fsub double %113, %114
  %116 = fcmp oeq double %115, 0.000000e+00
  br i1 %116, label %117, label %120

117:                                              ; preds = %112
  store double 0.000000e+00, ptr %17, align 8, !tbaa !5
  store double 1.000000e+00, ptr %19, align 8, !tbaa !5
  %118 = load double, ptr %6, align 8, !tbaa !5
  %119 = fneg double %118
  store double %119, ptr %18, align 8, !tbaa !5
  store i8 0, ptr %20, align 1, !tbaa !9
  br label %120

120:                                              ; preds = %117, %112
  %121 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %122 = trunc i8 %121 to i1
  br i1 %122, label %123, label %132

123:                                              ; preds = %120
  %124 = load double, ptr %12, align 8, !tbaa !5
  %125 = fdiv double -1.000000e+00, %124
  store double %125, ptr %16, align 8, !tbaa !5
  %126 = load double, ptr %7, align 8, !tbaa !5
  %127 = load double, ptr %16, align 8, !tbaa !5
  %128 = load double, ptr %6, align 8, !tbaa !5
  %129 = fneg double %127
  %130 = call double @llvm.fmuladd.f64(double %129, double %128, double %126)
  store double %130, ptr %18, align 8, !tbaa !5
  %131 = load double, ptr %16, align 8, !tbaa !5
  store double %131, ptr %19, align 8, !tbaa !5
  store double -1.000000e+00, ptr %17, align 8, !tbaa !5
  br label %132

132:                                              ; preds = %123, %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %133 = load double, ptr %11, align 8, !tbaa !5
  %134 = fneg double %133
  %135 = load double, ptr %17, align 8, !tbaa !5
  %136 = load double, ptr %10, align 8, !tbaa !5
  %137 = load double, ptr %18, align 8, !tbaa !5
  %138 = fneg double %137
  %139 = fmul double %136, %138
  %140 = fneg double %139
  %141 = call double @llvm.fmuladd.f64(double %134, double %135, double %140)
  %142 = load double, ptr %9, align 8, !tbaa !5
  %143 = load double, ptr %17, align 8, !tbaa !5
  %144 = load double, ptr %10, align 8, !tbaa !5
  %145 = load double, ptr %19, align 8, !tbaa !5
  %146 = fmul double %144, %145
  %147 = fneg double %146
  %148 = call double @llvm.fmuladd.f64(double %142, double %143, double %147)
  %149 = fdiv double %141, %148
  store double %149, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %150 = load double, ptr %9, align 8, !tbaa !5
  %151 = load double, ptr %18, align 8, !tbaa !5
  %152 = fneg double %151
  %153 = load double, ptr %11, align 8, !tbaa !5
  %154 = fneg double %153
  %155 = load double, ptr %19, align 8, !tbaa !5
  %156 = fmul double %154, %155
  %157 = fneg double %156
  %158 = call double @llvm.fmuladd.f64(double %150, double %152, double %157)
  %159 = load double, ptr %9, align 8, !tbaa !5
  %160 = load double, ptr %17, align 8, !tbaa !5
  %161 = load double, ptr %10, align 8, !tbaa !5
  %162 = load double, ptr %19, align 8, !tbaa !5
  %163 = fmul double %161, %162
  %164 = fneg double %163
  %165 = call double @llvm.fmuladd.f64(double %159, double %160, double %164)
  %166 = fdiv double %158, %165
  store double %166, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %168 = load double, ptr %167, align 8, !tbaa !5
  store double %168, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %170 = load double, ptr %169, align 8, !tbaa !5
  store double %170, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %172 = load double, ptr %171, align 8, !tbaa !5
  store double %172, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %174 = load double, ptr %173, align 8, !tbaa !5
  store double %174, ptr %26, align 8, !tbaa !5
  %175 = load double, ptr %21, align 8, !tbaa !5
  %176 = load double, ptr %23, align 8, !tbaa !5
  %177 = fcmp oge double %175, %176
  br i1 %177, label %178, label %218

178:                                              ; preds = %132
  %179 = load double, ptr %21, align 8, !tbaa !5
  %180 = load double, ptr %25, align 8, !tbaa !5
  %181 = fcmp ole double %179, %180
  br i1 %181, label %182, label %218

182:                                              ; preds = %178
  %183 = load double, ptr %22, align 8, !tbaa !5
  %184 = load double, ptr %24, align 8, !tbaa !5
  %185 = fcmp oge double %183, %184
  br i1 %185, label %186, label %218

186:                                              ; preds = %182
  %187 = load double, ptr %22, align 8, !tbaa !5
  %188 = load double, ptr %26, align 8, !tbaa !5
  %189 = fcmp ole double %187, %188
  br i1 %189, label %190, label %218

190:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %191 = load double, ptr %13, align 8, !tbaa !5
  %192 = load double, ptr %8, align 8, !tbaa !5
  %193 = fsub double %191, %192
  store double %193, ptr %27, align 8, !tbaa !5
  %194 = load double, ptr %27, align 8, !tbaa !5
  %195 = fcmp ole double %194, 0.000000e+00
  br i1 %195, label %196, label %199

196:                                              ; preds = %190
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %202

199:                                              ; preds = %190
  %200 = load double, ptr %27, align 8, !tbaa !5
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %200)
  br label %202

202:                                              ; preds = %199, %196
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %204 = load double, ptr %203, align 8, !tbaa !5
  store double %204, ptr %28, align 8, !tbaa !5
  %205 = load double, ptr %28, align 8, !tbaa !5
  %206 = load double, ptr %8, align 8, !tbaa !5
  %207 = fsub double %205, %206
  %208 = fcmp ole double %207, 0.000000e+00
  br i1 %208, label %209, label %212

209:                                              ; preds = %202
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %211 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %210, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %217

212:                                              ; preds = %202
  %213 = load double, ptr %28, align 8, !tbaa !5
  %214 = load double, ptr %8, align 8, !tbaa !5
  %215 = fsub double %213, %214
  %216 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %215)
  br label %217

217:                                              ; preds = %212, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %247

218:                                              ; preds = %186, %182, %178, %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %220 = load double, ptr %219, align 8, !tbaa !5
  store double %220, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %222 = load double, ptr %221, align 8, !tbaa !5
  store double %222, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %223 = load double, ptr %29, align 8, !tbaa !5
  %224 = load double, ptr %8, align 8, !tbaa !5
  %225 = fsub double %223, %224
  store double %225, ptr %31, align 8, !tbaa !5
  %226 = load double, ptr %31, align 8, !tbaa !5
  %227 = fcmp ole double %226, 0.000000e+00
  br i1 %227, label %228, label %231

228:                                              ; preds = %218
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %234

231:                                              ; preds = %218
  %232 = load double, ptr %31, align 8, !tbaa !5
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %232)
  br label %234

234:                                              ; preds = %231, %228
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %235 = load double, ptr %30, align 8, !tbaa !5
  %236 = load double, ptr %8, align 8, !tbaa !5
  %237 = fsub double %235, %236
  store double %237, ptr %32, align 8, !tbaa !5
  %238 = load double, ptr %32, align 8, !tbaa !5
  %239 = fcmp ole double %238, 0.000000e+00
  br i1 %239, label %240, label %243

240:                                              ; preds = %234
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %241, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %246

243:                                              ; preds = %234
  %244 = load double, ptr %32, align 8, !tbaa !5
  %245 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %244)
  br label %246

246:                                              ; preds = %243, %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %247

247:                                              ; preds = %246, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  ret i32 0
}

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #5

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

; 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)) #6

declare i32 @printf(ptr noundef, ...) #7

; 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #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 = { 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 #7 = { "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 #8 = { 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


; 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
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; 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) #9
  store double 0.000000e+00, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store double 0.000000e+00, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  %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)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %12, 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)
  %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) %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 %3, align 8, !tbaa !5
  %18 = load double, ptr %1, align 8, !tbaa !5
  %19 = fsub double %17, %18
  %20 = fcmp une double %19, 0.000000e+00
  br i1 %20, label %21, label %28

21:                                               ; preds = %0
  %22 = load double, ptr %4, align 8, !tbaa !5
  %23 = load double, ptr %2, align 8, !tbaa !5
  %24 = fsub double %22, %23
  %25 = fdiv double %24, %19
  %26 = fneg double %25
  %27 = call double @llvm.fmuladd.f64(double %26, double %17, double %22)
  br label %28

28:                                               ; preds = %21, %0
  %.046 = phi double [ %27, %21 ], [ 0.000000e+00, %0 ]
  %.0 = phi double [ %25, %21 ], [ 0.000000e+00, %0 ]
  %29 = fcmp oeq double %19, 0.000000e+00
  %30 = fneg double %18
  %.147 = select i1 %29, double %30, double %.046
  %.045 = select i1 %29, double 0.000000e+00, double -1.000000e+00
  %.1 = select i1 %29, double 1.000000e+00, double %.0
  %31 = load double, ptr %5, align 8, !tbaa !5
  %32 = load double, ptr %6, align 8, !tbaa !5
  %33 = fmul double %.045, %32
  %34 = call double @llvm.fmuladd.f64(double %.1, double %31, double %33)
  %35 = fadd double %.147, %34
  %36 = call double @llvm.fabs.f64(double %35)
  %37 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %.1, i32 noundef 2)
  %38 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %.045, i32 noundef 2)
  %39 = fadd double %37, %38
  %40 = call double @sqrt(double noundef %39) #9
  %41 = fdiv double %36, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %42 = load double, ptr %5, align 8, !tbaa !5
  %43 = load double, ptr %1, align 8, !tbaa !5
  %44 = fsub double %42, %43
  %45 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %44, i32 noundef 2)
  %46 = load double, ptr %6, align 8, !tbaa !5
  %47 = load double, ptr %2, align 8, !tbaa !5
  %48 = fsub double %46, %47
  %49 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %48, i32 noundef 2)
  %50 = fadd double %45, %49
  %51 = call double @sqrt(double noundef %50) #9
  %52 = call double @llvm.fabs.f64(double %51)
  store double %52, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %53 = load double, ptr %5, align 8, !tbaa !5
  %54 = load double, ptr %3, align 8, !tbaa !5
  %55 = fsub double %53, %54
  %56 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %55, i32 noundef 2)
  %57 = load double, ptr %6, align 8, !tbaa !5
  %58 = load double, ptr %4, align 8, !tbaa !5
  %59 = fsub double %57, %58
  %60 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %59, i32 noundef 2)
  %61 = fadd double %56, %60
  %62 = call double @sqrt(double noundef %61) #9
  %63 = call double @llvm.fabs.f64(double %62)
  store double %63, ptr %9, align 8, !tbaa !5
  %64 = load double, ptr %6, align 8
  %65 = load double, ptr %4, align 8, !tbaa !5
  %66 = load double, ptr %2, align 8, !tbaa !5
  %67 = fsub double %65, %66
  %68 = fcmp oeq double %67, 0.000000e+00
  br i1 %68, label %.thread, label %71

.thread:                                          ; preds = %28
  %69 = load double, ptr %5, align 8, !tbaa !5
  %70 = fneg double %69
  br label %82

71:                                               ; preds = %28
  %72 = load double, ptr %3, align 8, !tbaa !5
  %73 = load double, ptr %1, align 8, !tbaa !5
  %74 = fsub double %72, %73
  %75 = fcmp une double %74, 0.000000e+00
  %76 = fneg double %64
  br i1 %75, label %77, label %82

77:                                               ; preds = %71
  %78 = fdiv double -1.000000e+00, %.0
  %79 = load double, ptr %5, align 8, !tbaa !5
  %80 = fneg double %78
  %81 = call double @llvm.fmuladd.f64(double %80, double %79, double %64)
  br label %82

82:                                               ; preds = %.thread, %77, %71
  %.256 = phi double [ %78, %77 ], [ 0.000000e+00, %71 ], [ 1.000000e+00, %.thread ]
  %.253 = phi double [ %81, %77 ], [ %76, %71 ], [ %70, %.thread ]
  %.2 = phi double [ -1.000000e+00, %77 ], [ 1.000000e+00, %71 ], [ 0.000000e+00, %.thread ]
  %83 = fneg double %.147
  %84 = fneg double %.253
  %85 = fmul double %.045, %.253
  %86 = call double @llvm.fmuladd.f64(double %83, double %.2, double %85)
  %87 = fneg double %.045
  %88 = insertelement <2 x double> poison, double %.147, i64 0
  %89 = insertelement <2 x double> %88, double %87, i64 1
  %90 = insertelement <2 x double> poison, double %.256, i64 0
  %91 = shufflevector <2 x double> %90, <2 x double> poison, <2 x i32> zeroinitializer
  %92 = fmul <2 x double> %89, %91
  %93 = insertelement <2 x double> poison, double %.1, i64 0
  %94 = shufflevector <2 x double> %93, <2 x double> poison, <2 x i32> zeroinitializer
  %95 = insertelement <2 x double> poison, double %84, i64 0
  %96 = insertelement <2 x double> %95, double %.2, i64 1
  %97 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %94, <2 x double> %96, <2 x double> %92)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %103 = load double, ptr %102, align 8, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %105 = load double, ptr %104, align 8, !tbaa !5
  %106 = insertelement <2 x double> %97, double %86, i64 1
  %107 = shufflevector <2 x double> %97, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %108 = fdiv <2 x double> %106, %107
  %109 = extractelement <2 x double> %108, i64 1
  %110 = fcmp ult double %109, %99
  %111 = insertelement <2 x double> poison, double %105, i64 0
  %112 = insertelement <2 x double> %111, double %103, i64 1
  %113 = fcmp ugt <2 x double> %108, %112
  %114 = extractelement <2 x i1> %113, i64 1
  %or.cond = select i1 %110, i1 true, i1 %114
  %115 = extractelement <2 x double> %108, i64 0
  %116 = fcmp ult double %115, %101
  %or.cond66 = select i1 %or.cond, i1 true, i1 %116
  %117 = extractelement <2 x i1> %113, i64 0
  %or.cond67 = select i1 %or.cond66, i1 true, i1 %117
  br i1 %or.cond67, label %138, label %118

118:                                              ; preds = %82
  %119 = load double, ptr %7, align 8, !tbaa !5
  %120 = fsub double %41, %119
  %121 = fcmp ugt double %120, 0.000000e+00
  br i1 %121, label %125, label %122

122:                                              ; preds = %118
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %127

125:                                              ; preds = %118
  %126 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %120)
  br label %127

127:                                              ; preds = %125, %122
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = load double, ptr %7, align 8, !tbaa !5
  %131 = fsub double %129, %130
  %132 = fcmp ugt double %131, 0.000000e+00
  br i1 %132, label %136, label %133

133:                                              ; preds = %127
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %160

136:                                              ; preds = %127
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %131)
  br label %160

138:                                              ; preds = %82
  %139 = 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)
  %140 = load double, ptr %139, align 8, !tbaa !5
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %142 = load double, ptr %141, align 8, !tbaa !5
  %143 = load double, ptr %7, align 8, !tbaa !5
  %144 = fsub double %140, %143
  %145 = fcmp ugt double %144, 0.000000e+00
  br i1 %145, label %149, label %146

146:                                              ; preds = %138
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %151

149:                                              ; preds = %138
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %144)
  br label %151

151:                                              ; preds = %149, %146
  %152 = load double, ptr %7, align 8, !tbaa !5
  %153 = fsub double %142, %152
  %154 = fcmp ugt double %153, 0.000000e+00
  br i1 %154, label %158, label %155

155:                                              ; preds = %151
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %160

158:                                              ; preds = %151
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %153)
  br label %160

160:                                              ; preds = %155, %158, %133, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) local_unnamed_addr #5

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

; 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)) #6

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #7

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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>) #8

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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 = { 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 #7 = { nofree 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { 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: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass