; LLVM IR from buresjan/optim_lbm :: nomad/examples/basic/batch/example1 (bb)

; 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_ostream" = type { ptr, %"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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZTISt9exception = external constant ptr
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZTISt11logic_error = external constant ptr
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %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 [10 x double], align 16
  %17 = alloca i8, align 1
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::basic_ifstream", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::allocator", align 1
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #11
  store i8 0, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #11
  store double 1.000000e+20, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #11
  store double 1.000000e+20, ptr %8, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #11
  store double 1.000000e+20, ptr %9, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #11
  store double 1.000000e+20, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #11
  store double 0.000000e+00, ptr %11, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #11
  store double 0.000000e+00, ptr %12, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #11
  store double 0.000000e+00, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #11
  store double 1.000000e+00, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  store double 1.000000e+00, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #11
  store i8 0, ptr %17, align 1, !tbaa !11
  %29 = load i32, ptr %4, align 4, !tbaa !5
  %30 = icmp sge i32 %29, 2
  br i1 %30, label %31, label %91

31:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #11
  %32 = load ptr, ptr %5, align 8, !tbaa !9
  %33 = getelementptr inbounds ptr, ptr %32, i64 1
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %35 unwind label %44

35:                                               ; preds = %31
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #11
  call void @llvm.lifetime.start.p0(i64 520, ptr %22) #11
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 1
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %22, ptr noundef %38, i32 noundef 8)
          to label %39 unwind label %48

39:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #11
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %78, %39
  %41 = load i32, ptr %23, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 10
  br i1 %42, label %52, label %43

43:                                               ; preds = %40
  store i32 2, ptr %24, align 4
  br label %81

44:                                               ; preds = %31
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %20, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %21, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #11
  br label %90

48:                                               ; preds = %35
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %20, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %21, align 4
  br label %89

52:                                               ; preds = %40
  %53 = load ptr, ptr %22, align 8, !tbaa !15
  %54 = getelementptr i8, ptr %53, i64 -24
  %55 = load i64, ptr %54, align 8
  %56 = getelementptr inbounds i8, ptr %22, i64 %55
  %57 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %56)
          to label %58 unwind label %68

58:                                               ; preds = %52
  br i1 %57, label %59, label %72

59:                                               ; preds = %58
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str)
          to label %61 unwind label %68

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %63 unwind label %68

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @.str.1)
          to label %65 unwind label %68

65:                                               ; preds = %63
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %67 unwind label %68

67:                                               ; preds = %65
  store i8 0, ptr %17, align 1, !tbaa !11
  store i32 2, ptr %24, align 4
  br label %81

68:                                               ; preds = %72, %65, %63, %61, %59, %52
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %20, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  br label %88

72:                                               ; preds = %58
  %73 = load i32, ptr %23, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [10 x double], ptr %16, i64 0, i64 %74
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %75)
          to label %77 unwind label %68

77:                                               ; preds = %72
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %23, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %23, align 4, !tbaa !5
  br label %40, !llvm.loop !17

81:                                               ; preds = %67, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  br label %82

82:                                               ; preds = %81
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %22)
          to label %83 unwind label %84

83:                                               ; preds = %82
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %22) #11
  call void @llvm.lifetime.end.p0(i64 520, ptr %22) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #11
  br label %91

84:                                               ; preds = %82
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %20, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %21, align 4
  br label %88

88:                                               ; preds = %84, %68
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %22) #11
  br label %89

89:                                               ; preds = %88, %48
  call void @llvm.lifetime.end.p0(i64 520, ptr %22) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #11
  br label %90

90:                                               ; preds = %89, %44
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #11
  br label %251

91:                                               ; preds = %83, %2
  %92 = load i8, ptr %17, align 1, !tbaa !11, !range !19, !noundef !20
  %93 = trunc i8 %92 to i1
  br i1 %93, label %94, label %233

94:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #11
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %154, %94
  %96 = load i32, ptr %25, align 4, !tbaa !5
  %97 = icmp slt i32 %96, 10
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  store i32 5, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  br label %157

99:                                               ; preds = %95
  %100 = load i32, ptr %25, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [10 x double], ptr %16, i64 0, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !13
  %104 = call double @cos(double noundef %103) #11
  %105 = call double @pow(double noundef %104, double noundef 4.000000e+00) #11
  %106 = load double, ptr %11, align 8, !tbaa !13
  %107 = fadd double %106, %105
  store double %107, ptr %11, align 8, !tbaa !13
  %108 = load i32, ptr %25, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [10 x double], ptr %16, i64 0, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !13
  %112 = load double, ptr %12, align 8, !tbaa !13
  %113 = fadd double %112, %111
  store double %113, ptr %12, align 8, !tbaa !13
  %114 = load i32, ptr %25, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  %116 = sitofp i32 %115 to double
  %117 = load i32, ptr %25, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [10 x double], ptr %16, i64 0, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !13
  %121 = fmul double %116, %120
  %122 = load i32, ptr %25, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [10 x double], ptr %16, i64 0, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !13
  %126 = load double, ptr %13, align 8, !tbaa !13
  %127 = call double @llvm.fmuladd.f64(double %121, double %125, double %126)
  store double %127, ptr %13, align 8, !tbaa !13
  %128 = load i32, ptr %25, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [10 x double], ptr %16, i64 0, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !13
  %132 = call double @cos(double noundef %131) #11
  %133 = call double @pow(double noundef %132, double noundef 2.000000e+00) #11
  %134 = load double, ptr %14, align 8, !tbaa !13
  %135 = fmul double %134, %133
  store double %135, ptr %14, align 8, !tbaa !13
  %136 = load double, ptr %15, align 8, !tbaa !13
  %137 = fcmp une double %136, 0.000000e+00
  br i1 %137, label %138, label %153

138:                                              ; preds = %99
  %139 = load i32, ptr %25, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [10 x double], ptr %16, i64 0, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !13
  %143 = fcmp oeq double %142, 0.000000e+00
  br i1 %143, label %144, label %145

144:                                              ; preds = %138
  store double 0.000000e+00, ptr %15, align 8, !tbaa !13
  br label %152

145:                                              ; preds = %138
  %146 = load i32, ptr %25, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [10 x double], ptr %16, i64 0, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !13
  %150 = load double, ptr %15, align 8, !tbaa !13
  %151 = fmul double %150, %149
  store double %151, ptr %15, align 8, !tbaa !13
  br label %152

152:                                              ; preds = %145, %144
  br label %153

153:                                              ; preds = %152, %99
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %25, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %25, align 4, !tbaa !5
  br label %95, !llvm.loop !21

157:                                              ; preds = %98
  %158 = load double, ptr %15, align 8, !tbaa !13
  %159 = fneg double %158
  %160 = fadd double %159, 7.500000e-01
  store double %160, ptr %8, align 8, !tbaa !13
  %161 = load double, ptr %12, align 8, !tbaa !13
  %162 = fsub double %161, 7.500000e+01
  store double %162, ptr %9, align 8, !tbaa !13
  %163 = load double, ptr %8, align 8, !tbaa !13
  %164 = load double, ptr %9, align 8, !tbaa !13
  %165 = fmul double 1.000000e+01, %164
  %166 = call double @llvm.fmuladd.f64(double 1.000000e+01, double %163, double %165)
  store double %166, ptr %7, align 8, !tbaa !13
  %167 = load double, ptr %13, align 8, !tbaa !13
  %168 = fcmp une double 0.000000e+00, %167
  br i1 %168, label %169, label %201

169:                                              ; preds = %157
  %170 = load double, ptr %11, align 8, !tbaa !13
  %171 = load double, ptr %14, align 8, !tbaa !13
  %172 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %171, double %170)
  %173 = load double, ptr %13, align 8, !tbaa !13
  %174 = call double @sqrt(double noundef %173) #11
  %175 = invoke noundef double @_ZSt3absd(double noundef %174)
          to label %176 unwind label %180

176:                                              ; preds = %169
  %177 = fdiv double %172, %175
  %178 = load double, ptr %7, align 8, !tbaa !13
  %179 = fsub double %178, %177
  store double %179, ptr %7, align 8, !tbaa !13
  br label %201

180:                                              ; preds = %208, %201, %169
  %181 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9exception
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %20, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %21, align 4
  br label %184

184:                                              ; preds = %180
  %185 = load i32, ptr %21, align 4
  %186 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #11
  %187 = icmp eq i32 %185, %186
  br i1 %187, label %188, label %251

188:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #11
  %189 = load ptr, ptr %20, align 8
  %190 = call ptr @__cxa_begin_catch(ptr %189) #11
  store ptr %190, ptr %26, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %28)
          to label %191 unwind label %217

191:                                              ; preds = %188
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #11
  %192 = load ptr, ptr %26, align 8, !tbaa !9
  %193 = load ptr, ptr %192, align 8, !tbaa !15
  %194 = getelementptr inbounds ptr, ptr %193, i64 2
  %195 = load ptr, ptr %194, align 8
  %196 = call noundef ptr %195(ptr noundef nonnull align 8 dereferenceable(8) %192) #11
  %197 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef %196)
          to label %198 unwind label %221

198:                                              ; preds = %191
  %199 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %199, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %200 unwind label %225

200:                                              ; preds = %198
  invoke void @__cxa_throw(ptr %199, ptr @_ZTISt11logic_error, ptr @_ZNSt11logic_errorD1Ev) #12
          to label %260 unwind label %221

201:                                              ; preds = %176, %157
  %202 = load double, ptr %7, align 8, !tbaa !13
  %203 = invoke noundef zeroext i1 @_ZSt5isnand(double noundef %202)
          to label %204 unwind label %180

204:                                              ; preds = %201
  br i1 %203, label %208, label %205

205:                                              ; preds = %204
  %206 = load double, ptr %7, align 8, !tbaa !13
  %207 = fmul double %206, 1.000000e-05
  store double %207, ptr %7, align 8, !tbaa !13
  br label %208

208:                                              ; preds = %205, %204
  %209 = load double, ptr %7, align 8, !tbaa !13
  %210 = invoke noundef zeroext i1 @_ZSt5isnand(double noundef %209)
          to label %211 unwind label %180

211:                                              ; preds = %208
  %212 = xor i1 %210, true
  %213 = zext i1 %212 to i8
  store i8 %213, ptr %6, align 1, !tbaa !11
  %214 = load double, ptr %7, align 8, !tbaa !13
  %215 = fadd double %214, 2.000000e+03
  %216 = fneg double %215
  store double %216, ptr %10, align 8, !tbaa !13
  br label %232

217:                                              ; preds = %188
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %20, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %21, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %28) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #11
  br label %230

221:                                              ; preds = %200, %191
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %20, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %21, align 4
  br label %229

225:                                              ; preds = %198
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %20, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %21, align 4
  call void @__cxa_free_exception(ptr %199) #11
  br label %229

229:                                              ; preds = %225, %221
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  br label %230

230:                                              ; preds = %229, %217
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #11
  invoke void @__cxa_end_catch()
          to label %231 unwind label %257

231:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  br label %251

232:                                              ; preds = %211
  br label %233

233:                                              ; preds = %232, %91
  %234 = load double, ptr %7, align 8, !tbaa !13
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %234)
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef @.str.3)
  %237 = load double, ptr %8, align 8, !tbaa !13
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %236, double noundef %237)
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %238, ptr noundef @.str.3)
  %240 = load double, ptr %9, align 8, !tbaa !13
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %239, double noundef %240)
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %241, ptr noundef @.str.3)
  %243 = load double, ptr %10, align 8, !tbaa !13
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %242, double noundef %243)
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %244, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %246 = load i8, ptr %6, align 1, !tbaa !11, !range !19, !noundef !20
  %247 = trunc i8 %246 to i1
  %248 = xor i1 %247, true
  %249 = zext i1 %248 to i32
  store i32 %249, ptr %3, align 4
  store i32 1, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #11
  %250 = load i32, ptr %3, align 4
  ret i32 %250

251:                                              ; preds = %231, %184, %90
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #11
  br label %252

252:                                              ; preds = %251
  %253 = load ptr, ptr %20, align 8
  %254 = load i32, ptr %21, align 4
  %255 = insertvalue { ptr, i32 } poison, ptr %253, 0
  %256 = insertvalue { ptr, i32 } %255, i32 %254, 1
  resume { ptr, i32 } %256

257:                                              ; preds = %230
  %258 = landingpad { ptr, i32 }
          catch ptr null
  %259 = extractvalue { ptr, i32 } %258, 0
  call void @__clang_call_terminate(ptr %259) #13
  unreachable

260:                                              ; preds = %200
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264)) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 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)) #4

; 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)) #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #5

; Function Attrs: nounwind
declare double @cos(double noundef) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) #2

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr)

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #9

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt11logic_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #10

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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 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 = { 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 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { nounwind memory(none) }
attributes #9 = { "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 #10 = { noinline noreturn nounwind uwtable "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 #11 = { nounwind }
attributes #12 = { noreturn }
attributes #13 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !18}


; 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_ostream" = type { ptr, %"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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator" = type { i8 }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }

@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca [10 x double], align 16
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::basic_ifstream", align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #8
  %7 = icmp sgt i32 %0, 1
  br i1 %7, label %8, label %.critedge

8:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %10, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %11 unwind label %18

11:                                               ; preds = %8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %6) #8
  %12 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef %12, i32 noundef 8)
          to label %.preheader68.preheader unwind label %20

.preheader68.preheader:                           ; preds = %11
  %13 = load ptr, ptr %6, align 8, !tbaa !9
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr %6, i64 %15
  %17 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %16)
          to label %22 unwind label %.loopexit69

18:                                               ; preds = %8
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %120

20:                                               ; preds = %11
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %119

22:                                               ; preds = %.preheader68.preheader
  br i1 %17, label %23, label %31

23:                                               ; preds = %110, %101, %92, %83, %74, %65, %56, %47, %38, %22
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str)
          to label %25 unwind label %.loopexit.split-lp

25:                                               ; preds = %23
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %27 unwind label %.loopexit.split-lp

27:                                               ; preds = %25
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @.str.1)
          to label %29 unwind label %.loopexit.split-lp

29:                                               ; preds = %27
  %30 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.loopexit unwind label %.loopexit.split-lp

.loopexit69:                                      ; preds = %111, %.preheader68.9, %102, %.preheader68.8, %93, %.preheader68.7, %84, %.preheader68.6, %75, %.preheader68.5, %66, %.preheader68.4, %57, %.preheader68.3, %48, %.preheader68.2, %39, %.preheader68.1, %.preheader68.preheader, %31
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %118

.loopexit.split-lp:                               ; preds = %23, %25, %27, %29
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %118

31:                                               ; preds = %22
  %32 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %.preheader68.1 unwind label %.loopexit69

.preheader68.1:                                   ; preds = %31
  %33 = load ptr, ptr %6, align 8, !tbaa !9
  %34 = getelementptr i8, ptr %33, i64 -24
  %35 = load i64, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %6, i64 %35
  %37 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %36)
          to label %38 unwind label %.loopexit69

38:                                               ; preds = %.preheader68.1
  br i1 %37, label %23, label %39

39:                                               ; preds = %38
  %40 = getelementptr inbounds i8, ptr %3, i64 8
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %.preheader68.2 unwind label %.loopexit69

.preheader68.2:                                   ; preds = %39
  %42 = load ptr, ptr %6, align 8, !tbaa !9
  %43 = getelementptr i8, ptr %42, i64 -24
  %44 = load i64, ptr %43, align 8
  %45 = getelementptr inbounds i8, ptr %6, i64 %44
  %46 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %45)
          to label %47 unwind label %.loopexit69

47:                                               ; preds = %.preheader68.2
  br i1 %46, label %23, label %48

48:                                               ; preds = %47
  %49 = getelementptr inbounds i8, ptr %3, i64 16
  %50 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %.preheader68.3 unwind label %.loopexit69

.preheader68.3:                                   ; preds = %48
  %51 = load ptr, ptr %6, align 8, !tbaa !9
  %52 = getelementptr i8, ptr %51, i64 -24
  %53 = load i64, ptr %52, align 8
  %54 = getelementptr inbounds i8, ptr %6, i64 %53
  %55 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %54)
          to label %56 unwind label %.loopexit69

56:                                               ; preds = %.preheader68.3
  br i1 %55, label %23, label %57

57:                                               ; preds = %56
  %58 = getelementptr inbounds i8, ptr %3, i64 24
  %59 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %58)
          to label %.preheader68.4 unwind label %.loopexit69

.preheader68.4:                                   ; preds = %57
  %60 = load ptr, ptr %6, align 8, !tbaa !9
  %61 = getelementptr i8, ptr %60, i64 -24
  %62 = load i64, ptr %61, align 8
  %63 = getelementptr inbounds i8, ptr %6, i64 %62
  %64 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %63)
          to label %65 unwind label %.loopexit69

65:                                               ; preds = %.preheader68.4
  br i1 %64, label %23, label %66

66:                                               ; preds = %65
  %67 = getelementptr inbounds i8, ptr %3, i64 32
  %68 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %67)
          to label %.preheader68.5 unwind label %.loopexit69

.preheader68.5:                                   ; preds = %66
  %69 = load ptr, ptr %6, align 8, !tbaa !9
  %70 = getelementptr i8, ptr %69, i64 -24
  %71 = load i64, ptr %70, align 8
  %72 = getelementptr inbounds i8, ptr %6, i64 %71
  %73 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %72)
          to label %74 unwind label %.loopexit69

74:                                               ; preds = %.preheader68.5
  br i1 %73, label %23, label %75

75:                                               ; preds = %74
  %76 = getelementptr inbounds i8, ptr %3, i64 40
  %77 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %76)
          to label %.preheader68.6 unwind label %.loopexit69

.preheader68.6:                                   ; preds = %75
  %78 = load ptr, ptr %6, align 8, !tbaa !9
  %79 = getelementptr i8, ptr %78, i64 -24
  %80 = load i64, ptr %79, align 8
  %81 = getelementptr inbounds i8, ptr %6, i64 %80
  %82 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %81)
          to label %83 unwind label %.loopexit69

83:                                               ; preds = %.preheader68.6
  br i1 %82, label %23, label %84

84:                                               ; preds = %83
  %85 = getelementptr inbounds i8, ptr %3, i64 48
  %86 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %85)
          to label %.preheader68.7 unwind label %.loopexit69

.preheader68.7:                                   ; preds = %84
  %87 = load ptr, ptr %6, align 8, !tbaa !9
  %88 = getelementptr i8, ptr %87, i64 -24
  %89 = load i64, ptr %88, align 8
  %90 = getelementptr inbounds i8, ptr %6, i64 %89
  %91 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %90)
          to label %92 unwind label %.loopexit69

92:                                               ; preds = %.preheader68.7
  br i1 %91, label %23, label %93

93:                                               ; preds = %92
  %94 = getelementptr inbounds i8, ptr %3, i64 56
  %95 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %94)
          to label %.preheader68.8 unwind label %.loopexit69

.preheader68.8:                                   ; preds = %93
  %96 = load ptr, ptr %6, align 8, !tbaa !9
  %97 = getelementptr i8, ptr %96, i64 -24
  %98 = load i64, ptr %97, align 8
  %99 = getelementptr inbounds i8, ptr %6, i64 %98
  %100 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %99)
          to label %101 unwind label %.loopexit69

101:                                              ; preds = %.preheader68.8
  br i1 %100, label %23, label %102

102:                                              ; preds = %101
  %103 = getelementptr inbounds i8, ptr %3, i64 64
  %104 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %.preheader68.9 unwind label %.loopexit69

.preheader68.9:                                   ; preds = %102
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  %106 = getelementptr i8, ptr %105, i64 -24
  %107 = load i64, ptr %106, align 8
  %108 = getelementptr inbounds i8, ptr %6, i64 %107
  %109 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %108)
          to label %110 unwind label %.loopexit69

110:                                              ; preds = %.preheader68.9
  br i1 %109, label %23, label %111

111:                                              ; preds = %110
  %112 = getelementptr inbounds i8, ptr %3, i64 72
  %113 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %112)
          to label %.loopexit unwind label %.loopexit69

.loopexit:                                        ; preds = %111, %29
  %114 = phi i1 [ true, %29 ], [ false, %111 ]
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %6)
          to label %115 unwind label %116

115:                                              ; preds = %.loopexit
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br i1 %114, label %.critedge, label %.preheader.1

116:                                              ; preds = %.loopexit
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %118

118:                                              ; preds = %.loopexit69, %.loopexit.split-lp, %116
  %.pn = phi { ptr, i32 } [ %117, %116 ], [ %lpad.loopexit, %.loopexit69 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #8
  br label %119

119:                                              ; preds = %118, %20
  %.pn.pn = phi { ptr, i32 } [ %.pn, %118 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  br label %120

120:                                              ; preds = %119, %18
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %119 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  resume { ptr, i32 } %.pn.pn.pn

.preheader.1:                                     ; preds = %115
  %121 = load double, ptr %3, align 16, !tbaa !11
  %122 = call double @cos(double noundef %121) #8
  %123 = call double @pow(double noundef %122, double noundef 4.000000e+00) #8
  %124 = fadd double %123, 0.000000e+00
  %125 = load double, ptr %3, align 16, !tbaa !11
  %126 = fadd double %125, 0.000000e+00
  %127 = call double @llvm.fmuladd.f64(double %125, double %125, double 0.000000e+00)
  %128 = call double @cos(double noundef %125) #8
  %square = fmul double %128, %128
  %129 = load double, ptr %3, align 16, !tbaa !11
  %130 = fcmp oeq double %129, 0.000000e+00
  %.152 = select i1 %130, double 0.000000e+00, double %129
  %131 = getelementptr inbounds i8, ptr %3, i64 8
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = call double @cos(double noundef %132) #8
  %134 = call double @pow(double noundef %133, double noundef 4.000000e+00) #8
  %135 = fadd double %124, %134
  %136 = load double, ptr %131, align 8, !tbaa !11
  %137 = fadd double %126, %136
  %138 = fmul double %136, 2.000000e+00
  %139 = call double @llvm.fmuladd.f64(double %138, double %136, double %127)
  %140 = call double @cos(double noundef %136) #8
  %square.1 = fmul double %140, %140
  %141 = fmul double %square, %square.1
  %142 = fcmp une double %.152, 0.000000e+00
  br i1 %142, label %143, label %.preheader.2

143:                                              ; preds = %.preheader.1
  %144 = load double, ptr %131, align 8, !tbaa !11
  %145 = fcmp oeq double %144, 0.000000e+00
  br i1 %145, label %.preheader.2, label %146

146:                                              ; preds = %143
  %147 = fmul double %.152, %144
  br label %.preheader.2

.preheader.2:                                     ; preds = %146, %143, %.preheader.1
  %.152.1 = phi double [ %147, %146 ], [ %.152, %.preheader.1 ], [ 0.000000e+00, %143 ]
  %148 = getelementptr inbounds i8, ptr %3, i64 16
  %149 = load double, ptr %148, align 16, !tbaa !11
  %150 = call double @cos(double noundef %149) #8
  %151 = call double @pow(double noundef %150, double noundef 4.000000e+00) #8
  %152 = fadd double %135, %151
  %153 = load double, ptr %148, align 16, !tbaa !11
  %154 = fadd double %137, %153
  %155 = fmul double %153, 3.000000e+00
  %156 = call double @llvm.fmuladd.f64(double %155, double %153, double %139)
  %157 = call double @cos(double noundef %153) #8
  %square.2 = fmul double %157, %157
  %158 = fmul double %141, %square.2
  %159 = fcmp une double %.152.1, 0.000000e+00
  br i1 %159, label %160, label %.preheader.3

160:                                              ; preds = %.preheader.2
  %161 = load double, ptr %148, align 16, !tbaa !11
  %162 = fcmp oeq double %161, 0.000000e+00
  br i1 %162, label %.preheader.3, label %163

163:                                              ; preds = %160
  %164 = fmul double %.152.1, %161
  br label %.preheader.3

.preheader.3:                                     ; preds = %163, %160, %.preheader.2
  %.152.2 = phi double [ %164, %163 ], [ %.152.1, %.preheader.2 ], [ 0.000000e+00, %160 ]
  %165 = getelementptr inbounds i8, ptr %3, i64 24
  %166 = load double, ptr %165, align 8, !tbaa !11
  %167 = call double @cos(double noundef %166) #8
  %168 = call double @pow(double noundef %167, double noundef 4.000000e+00) #8
  %169 = fadd double %152, %168
  %170 = load double, ptr %165, align 8, !tbaa !11
  %171 = fadd double %154, %170
  %172 = fmul double %170, 4.000000e+00
  %173 = call double @llvm.fmuladd.f64(double %172, double %170, double %156)
  %174 = call double @cos(double noundef %170) #8
  %square.3 = fmul double %174, %174
  %175 = fmul double %158, %square.3
  %176 = fcmp une double %.152.2, 0.000000e+00
  br i1 %176, label %177, label %.preheader.4

177:                                              ; preds = %.preheader.3
  %178 = load double, ptr %165, align 8, !tbaa !11
  %179 = fcmp oeq double %178, 0.000000e+00
  br i1 %179, label %.preheader.4, label %180

180:                                              ; preds = %177
  %181 = fmul double %.152.2, %178
  br label %.preheader.4

.preheader.4:                                     ; preds = %180, %177, %.preheader.3
  %.152.3 = phi double [ %181, %180 ], [ %.152.2, %.preheader.3 ], [ 0.000000e+00, %177 ]
  %182 = getelementptr inbounds i8, ptr %3, i64 32
  %183 = load double, ptr %182, align 16, !tbaa !11
  %184 = call double @cos(double noundef %183) #8
  %185 = call double @pow(double noundef %184, double noundef 4.000000e+00) #8
  %186 = fadd double %169, %185
  %187 = load double, ptr %182, align 16, !tbaa !11
  %188 = fadd double %171, %187
  %189 = fmul double %187, 5.000000e+00
  %190 = call double @llvm.fmuladd.f64(double %189, double %187, double %173)
  %191 = call double @cos(double noundef %187) #8
  %square.4 = fmul double %191, %191
  %192 = fmul double %175, %square.4
  %193 = fcmp une double %.152.3, 0.000000e+00
  br i1 %193, label %194, label %.preheader.5

194:                                              ; preds = %.preheader.4
  %195 = load double, ptr %182, align 16, !tbaa !11
  %196 = fcmp oeq double %195, 0.000000e+00
  br i1 %196, label %.preheader.5, label %197

197:                                              ; preds = %194
  %198 = fmul double %.152.3, %195
  br label %.preheader.5

.preheader.5:                                     ; preds = %197, %194, %.preheader.4
  %.152.4 = phi double [ %198, %197 ], [ %.152.3, %.preheader.4 ], [ 0.000000e+00, %194 ]
  %199 = getelementptr inbounds i8, ptr %3, i64 40
  %200 = load double, ptr %199, align 8, !tbaa !11
  %201 = call double @cos(double noundef %200) #8
  %202 = call double @pow(double noundef %201, double noundef 4.000000e+00) #8
  %203 = fadd double %186, %202
  %204 = load double, ptr %199, align 8, !tbaa !11
  %205 = fadd double %188, %204
  %206 = fmul double %204, 6.000000e+00
  %207 = call double @llvm.fmuladd.f64(double %206, double %204, double %190)
  %208 = call double @cos(double noundef %204) #8
  %square.5 = fmul double %208, %208
  %209 = fmul double %192, %square.5
  %210 = fcmp une double %.152.4, 0.000000e+00
  br i1 %210, label %211, label %.preheader.6

211:                                              ; preds = %.preheader.5
  %212 = load double, ptr %199, align 8, !tbaa !11
  %213 = fcmp oeq double %212, 0.000000e+00
  br i1 %213, label %.preheader.6, label %214

214:                                              ; preds = %211
  %215 = fmul double %.152.4, %212
  br label %.preheader.6

.preheader.6:                                     ; preds = %214, %211, %.preheader.5
  %.152.5 = phi double [ %215, %214 ], [ %.152.4, %.preheader.5 ], [ 0.000000e+00, %211 ]
  %216 = getelementptr inbounds i8, ptr %3, i64 48
  %217 = load double, ptr %216, align 16, !tbaa !11
  %218 = call double @cos(double noundef %217) #8
  %219 = call double @pow(double noundef %218, double noundef 4.000000e+00) #8
  %220 = fadd double %203, %219
  %221 = load double, ptr %216, align 16, !tbaa !11
  %222 = fadd double %205, %221
  %223 = fmul double %221, 7.000000e+00
  %224 = call double @llvm.fmuladd.f64(double %223, double %221, double %207)
  %225 = call double @cos(double noundef %221) #8
  %square.6 = fmul double %225, %225
  %226 = fmul double %209, %square.6
  %227 = fcmp une double %.152.5, 0.000000e+00
  br i1 %227, label %228, label %.preheader.7

228:                                              ; preds = %.preheader.6
  %229 = load double, ptr %216, align 16, !tbaa !11
  %230 = fcmp oeq double %229, 0.000000e+00
  br i1 %230, label %.preheader.7, label %231

231:                                              ; preds = %228
  %232 = fmul double %.152.5, %229
  br label %.preheader.7

.preheader.7:                                     ; preds = %231, %228, %.preheader.6
  %.152.6 = phi double [ %232, %231 ], [ %.152.5, %.preheader.6 ], [ 0.000000e+00, %228 ]
  %233 = getelementptr inbounds i8, ptr %3, i64 56
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = call double @cos(double noundef %234) #8
  %236 = call double @pow(double noundef %235, double noundef 4.000000e+00) #8
  %237 = fadd double %220, %236
  %238 = load double, ptr %233, align 8, !tbaa !11
  %239 = fadd double %222, %238
  %240 = fmul double %238, 8.000000e+00
  %241 = call double @llvm.fmuladd.f64(double %240, double %238, double %224)
  %242 = call double @cos(double noundef %238) #8
  %square.7 = fmul double %242, %242
  %243 = fmul double %226, %square.7
  %244 = fcmp une double %.152.6, 0.000000e+00
  br i1 %244, label %245, label %.preheader.8

245:                                              ; preds = %.preheader.7
  %246 = load double, ptr %233, align 8, !tbaa !11
  %247 = fcmp oeq double %246, 0.000000e+00
  br i1 %247, label %.preheader.8, label %248

248:                                              ; preds = %245
  %249 = fmul double %.152.6, %246
  br label %.preheader.8

.preheader.8:                                     ; preds = %248, %245, %.preheader.7
  %.152.7 = phi double [ %249, %248 ], [ %.152.6, %.preheader.7 ], [ 0.000000e+00, %245 ]
  %250 = getelementptr inbounds i8, ptr %3, i64 64
  %251 = load double, ptr %250, align 16, !tbaa !11
  %252 = call double @cos(double noundef %251) #8
  %253 = call double @pow(double noundef %252, double noundef 4.000000e+00) #8
  %254 = fadd double %237, %253
  %255 = load double, ptr %250, align 16, !tbaa !11
  %256 = fadd double %239, %255
  %257 = fmul double %255, 9.000000e+00
  %258 = call double @llvm.fmuladd.f64(double %257, double %255, double %241)
  %259 = call double @cos(double noundef %255) #8
  %square.8 = fmul double %259, %259
  %260 = fmul double %243, %square.8
  %261 = fcmp une double %.152.7, 0.000000e+00
  br i1 %261, label %262, label %.preheader.9

262:                                              ; preds = %.preheader.8
  %263 = load double, ptr %250, align 16, !tbaa !11
  %264 = fcmp oeq double %263, 0.000000e+00
  br i1 %264, label %.preheader.9, label %265

265:                                              ; preds = %262
  %266 = fmul double %.152.7, %263
  br label %.preheader.9

.preheader.9:                                     ; preds = %265, %262, %.preheader.8
  %.152.8 = phi double [ %266, %265 ], [ %.152.7, %.preheader.8 ], [ 0.000000e+00, %262 ]
  %267 = getelementptr inbounds i8, ptr %3, i64 72
  %268 = load double, ptr %267, align 8, !tbaa !11
  %269 = call double @cos(double noundef %268) #8
  %270 = call double @pow(double noundef %269, double noundef 4.000000e+00) #8
  %271 = fadd double %254, %270
  %272 = load double, ptr %267, align 8, !tbaa !11
  %273 = fadd double %256, %272
  %274 = fmul double %272, 1.000000e+01
  %275 = call double @llvm.fmuladd.f64(double %274, double %272, double %258)
  %276 = call double @cos(double noundef %272) #8
  %square.9 = fmul double %276, %276
  %277 = fmul double %260, %square.9
  %278 = fcmp une double %.152.8, 0.000000e+00
  br i1 %278, label %279, label %284

279:                                              ; preds = %.preheader.9
  %280 = load double, ptr %267, align 8, !tbaa !11
  %281 = fcmp oeq double %280, 0.000000e+00
  br i1 %281, label %284, label %282

282:                                              ; preds = %279
  %283 = fmul double %.152.8, %280
  br label %284

284:                                              ; preds = %282, %279, %.preheader.9
  %.152.9 = phi double [ %283, %282 ], [ %.152.8, %.preheader.9 ], [ 0.000000e+00, %279 ]
  %285 = fsub double 7.500000e-01, %.152.9
  %286 = fadd double %273, -7.500000e+01
  %287 = fmul double %286, 1.000000e+01
  %288 = call double @llvm.fmuladd.f64(double %285, double 1.000000e+01, double %287)
  %289 = fcmp une double %275, 0.000000e+00
  br i1 %289, label %290, label %296

290:                                              ; preds = %284
  %291 = call double @llvm.fmuladd.f64(double %277, double -2.000000e+00, double %271)
  %292 = call double @sqrt(double noundef %275) #8
  %293 = call noundef double @_ZSt3absd(double noundef %292)
  %294 = fdiv double %291, %293
  %295 = fsub double %288, %294
  br label %296

296:                                              ; preds = %290, %284
  %.060 = phi double [ %295, %290 ], [ %288, %284 ]
  %297 = call noundef zeroext i1 @_ZSt5isnand(double noundef %.060)
  %298 = fmul double %.060, 1.000000e-05
  %.161 = select i1 %297, double %.060, double %298
  %299 = call noundef zeroext i1 @_ZSt5isnand(double noundef %.161)
  %300 = fadd double %.161, 2.000000e+03
  %301 = fneg double %300
  %302 = zext i1 %299 to i32
  br label %.critedge

.critedge:                                        ; preds = %2, %296, %115
  %303 = phi i32 [ %302, %296 ], [ 1, %115 ], [ 1, %2 ]
  %.262 = phi double [ %.161, %296 ], [ 1.000000e+20, %115 ], [ 1.000000e+20, %2 ]
  %.059 = phi double [ %285, %296 ], [ 1.000000e+20, %115 ], [ 1.000000e+20, %2 ]
  %.058 = phi double [ %286, %296 ], [ 1.000000e+20, %115 ], [ 1.000000e+20, %2 ]
  %.057 = phi double [ %301, %296 ], [ 1.000000e+20, %115 ], [ 1.000000e+20, %2 ]
  %304 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %.262)
  %305 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %304, ptr noundef nonnull @.str.3)
  %306 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %305, double noundef %.059)
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %306, ptr noundef nonnull @.str.3)
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %307, double noundef %.058)
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %308, ptr noundef nonnull @.str.3)
  %310 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %309, double noundef %.057)
  %311 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %310, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  ret i32 %303
}

; 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 nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1EPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #3 align 2

; 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 #4

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

; 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 #3 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)) #4

; 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnand(double noundef) local_unnamed_addr #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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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 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 = { 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 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass