; LLVM IR from buresjan/optim_lbm :: nomad/examples/advanced/batch/FixedVariable (uu)

; 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 [5 x double], align 16
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::basic_ifstream", align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = 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 0.000000e+00, 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 1.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 40, ptr %15) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #11
  store i8 0, ptr %16, align 1, !tbaa !11
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = icmp sge i32 %28, 2
  br i1 %29, label %30, label %90

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

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

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

39:                                               ; preds = %77, %38
  %40 = load i32, ptr %22, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 5
  br i1 %41, label %51, label %42

42:                                               ; preds = %39
  store i32 2, ptr %23, align 4
  br label %80

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

47:                                               ; preds = %34
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %19, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %20, align 4
  br label %88

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

57:                                               ; preds = %51
  br i1 %56, label %58, label %71

58:                                               ; preds = %57
  %59 = 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 %60 unwind label %67

60:                                               ; preds = %58
  %61 = 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) %59, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %62 unwind label %67

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

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

66:                                               ; preds = %64
  store i8 0, ptr %16, align 1, !tbaa !11
  store i32 2, ptr %23, align 4
  br label %80

67:                                               ; preds = %71, %64, %62, %60, %58, %51
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %19, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  br label %87

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

76:                                               ; preds = %71
  store i8 1, ptr %16, align 1, !tbaa !11
  br label %77

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

80:                                               ; preds = %66, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  br label %81

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

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

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

87:                                               ; preds = %83, %67
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %21) #11
  br label %88

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

89:                                               ; preds = %88, %43
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #11
  br label %244

90:                                               ; preds = %82, %2
  %91 = load i8, ptr %16, align 1, !tbaa !11, !range !19, !noundef !20
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %230

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

94:                                               ; preds = %153, %93
  %95 = load i32, ptr %24, align 4, !tbaa !5
  %96 = icmp slt i32 %95, 5
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  br label %156

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

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

143:                                              ; preds = %137
  store double 0.000000e+00, ptr %14, align 8, !tbaa !13
  br label %151

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

151:                                              ; preds = %144, %143
  br label %152

152:                                              ; preds = %151, %98
  br label %153

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

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

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

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

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

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

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

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

197:                                              ; preds = %190
  %198 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %198, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %199 unwind label %222

199:                                              ; preds = %197
  invoke void @__cxa_throw(ptr %198, ptr @_ZTISt11logic_error, ptr @_ZNSt11logic_errorD1Ev) #12
          to label %253 unwind label %218

200:                                              ; preds = %156
  store double 0x7FF8000000000000, ptr %7, align 8, !tbaa !13
  br label %201

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

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 %179

211:                                              ; preds = %208
  %212 = xor i1 %210, true
  %213 = zext i1 %212 to i8
  store i8 %213, ptr %6, align 1, !tbaa !11
  br label %229

214:                                              ; preds = %187
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %19, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %20, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #11
  br label %227

218:                                              ; preds = %199, %190
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %19, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %20, align 4
  br label %226

222:                                              ; preds = %197
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %19, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %20, align 4
  call void @__cxa_free_exception(ptr %198) #11
  br label %226

226:                                              ; preds = %222, %218
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #11
  br label %227

227:                                              ; preds = %226, %214
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  invoke void @__cxa_end_catch()
          to label %228 unwind label %250

228:                                              ; preds = %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  br label %244

229:                                              ; preds = %211
  br label %230

230:                                              ; preds = %229, %90
  %231 = load double, ptr %7, align 8, !tbaa !13
  %232 = fneg double %231
  %233 = fsub double %232, 2.000000e+03
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %233)
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef @.str.3)
  %236 = load double, ptr %7, align 8, !tbaa !13
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %235, double noundef %236)
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %237, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %239 = load i8, ptr %6, align 1, !tbaa !11, !range !19, !noundef !20
  %240 = trunc i8 %239 to i1
  %241 = xor i1 %240, true
  %242 = zext i1 %241 to i32
  store i32 %242, ptr %3, align 4
  store i32 1, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 40, 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
  %243 = load i32, ptr %3, align 4
  ret i32 %243

244:                                              ; preds = %228, %183, %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 40, 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 %245

245:                                              ; preds = %244
  %246 = load ptr, ptr %19, align 8
  %247 = load i32, ptr %20, align 4
  %248 = insertvalue { ptr, i32 } poison, ptr %246, 0
  %249 = insertvalue { ptr, i32 } %248, i32 %247, 1
  resume { ptr, i32 } %249

250:                                              ; preds = %227
  %251 = landingpad { ptr, i32 }
          catch ptr null
  %252 = extractvalue { ptr, i32 } %251, 0
  call void @__clang_call_terminate(ptr %252) #13
  unreachable

253:                                              ; preds = %199
  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 [5 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 40, 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 %.preheader62.preheader unwind label %20

.preheader62.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 %.loopexit63

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 %75

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

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

23:                                               ; preds = %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

.loopexit63:                                      ; preds = %66, %.preheader62.4, %57, %.preheader62.3, %48, %.preheader62.2, %39, %.preheader62.1, %.preheader62.preheader, %31
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %73

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

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 %.preheader62.1 unwind label %.loopexit63

.preheader62.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 %.loopexit63

38:                                               ; preds = %.preheader62.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 %.preheader62.2 unwind label %.loopexit63

.preheader62.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 %.loopexit63

47:                                               ; preds = %.preheader62.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 %.preheader62.3 unwind label %.loopexit63

.preheader62.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 %.loopexit63

56:                                               ; preds = %.preheader62.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 %.preheader62.4 unwind label %.loopexit63

.preheader62.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 %.loopexit63

65:                                               ; preds = %.preheader62.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 %.loopexit unwind label %.loopexit63

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

70:                                               ; 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 %69, label %.critedge, label %.preheader.1

71:                                               ; preds = %.loopexit
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %73

73:                                               ; preds = %.loopexit63, %.loopexit.split-lp, %71
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %lpad.loopexit, %.loopexit63 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #8
  br label %74

74:                                               ; preds = %73, %20
  %.pn.pn = phi { ptr, i32 } [ %.pn, %73 ], [ %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 %75

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

.preheader.1:                                     ; preds = %70
  %76 = load double, ptr %3, align 16, !tbaa !11
  %77 = call double @cos(double noundef %76) #8
  %78 = call double @pow(double noundef %77, double noundef 4.000000e+00) #8
  %79 = fadd double %78, 0.000000e+00
  %80 = load double, ptr %3, align 16, !tbaa !11
  %81 = fadd double %80, 0.000000e+00
  %82 = call double @llvm.fmuladd.f64(double %80, double %80, double 0.000000e+00)
  %83 = call double @cos(double noundef %80) #8
  %square = fmul double %83, %83
  %84 = load double, ptr %3, align 16, !tbaa !11
  %85 = fcmp oeq double %84, 0.000000e+00
  %.149 = select i1 %85, double 0.000000e+00, double %84
  %86 = getelementptr inbounds i8, ptr %3, i64 8
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = call double @cos(double noundef %87) #8
  %89 = call double @pow(double noundef %88, double noundef 4.000000e+00) #8
  %90 = fadd double %79, %89
  %91 = load double, ptr %86, align 8, !tbaa !11
  %92 = fadd double %81, %91
  %93 = fmul double %91, 2.000000e+00
  %94 = call double @llvm.fmuladd.f64(double %93, double %91, double %82)
  %95 = call double @cos(double noundef %91) #8
  %square.1 = fmul double %95, %95
  %96 = fmul double %square, %square.1
  %97 = fcmp une double %.149, 0.000000e+00
  br i1 %97, label %98, label %.preheader.2

98:                                               ; preds = %.preheader.1
  %99 = load double, ptr %86, align 8, !tbaa !11
  %100 = fcmp oeq double %99, 0.000000e+00
  br i1 %100, label %.preheader.2, label %101

101:                                              ; preds = %98
  %102 = fmul double %.149, %99
  br label %.preheader.2

.preheader.2:                                     ; preds = %101, %98, %.preheader.1
  %.149.1 = phi double [ %102, %101 ], [ %.149, %.preheader.1 ], [ 0.000000e+00, %98 ]
  %103 = getelementptr inbounds i8, ptr %3, i64 16
  %104 = load double, ptr %103, align 16, !tbaa !11
  %105 = call double @cos(double noundef %104) #8
  %106 = call double @pow(double noundef %105, double noundef 4.000000e+00) #8
  %107 = fadd double %90, %106
  %108 = load double, ptr %103, align 16, !tbaa !11
  %109 = fadd double %92, %108
  %110 = fmul double %108, 3.000000e+00
  %111 = call double @llvm.fmuladd.f64(double %110, double %108, double %94)
  %112 = call double @cos(double noundef %108) #8
  %square.2 = fmul double %112, %112
  %113 = fmul double %96, %square.2
  %114 = fcmp une double %.149.1, 0.000000e+00
  br i1 %114, label %115, label %.preheader.3

115:                                              ; preds = %.preheader.2
  %116 = load double, ptr %103, align 16, !tbaa !11
  %117 = fcmp oeq double %116, 0.000000e+00
  br i1 %117, label %.preheader.3, label %118

118:                                              ; preds = %115
  %119 = fmul double %.149.1, %116
  br label %.preheader.3

.preheader.3:                                     ; preds = %118, %115, %.preheader.2
  %.149.2 = phi double [ %119, %118 ], [ %.149.1, %.preheader.2 ], [ 0.000000e+00, %115 ]
  %120 = getelementptr inbounds i8, ptr %3, i64 24
  %121 = load double, ptr %120, align 8, !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 %107, %123
  %125 = load double, ptr %120, align 8, !tbaa !11
  %126 = fadd double %109, %125
  %127 = fmul double %125, 4.000000e+00
  %128 = call double @llvm.fmuladd.f64(double %127, double %125, double %111)
  %129 = call double @cos(double noundef %125) #8
  %square.3 = fmul double %129, %129
  %130 = fmul double %113, %square.3
  %131 = fcmp une double %.149.2, 0.000000e+00
  br i1 %131, label %132, label %.preheader.4

132:                                              ; preds = %.preheader.3
  %133 = load double, ptr %120, align 8, !tbaa !11
  %134 = fcmp oeq double %133, 0.000000e+00
  br i1 %134, label %.preheader.4, label %135

135:                                              ; preds = %132
  %136 = fmul double %.149.2, %133
  br label %.preheader.4

.preheader.4:                                     ; preds = %135, %132, %.preheader.3
  %.149.3 = phi double [ %136, %135 ], [ %.149.2, %.preheader.3 ], [ 0.000000e+00, %132 ]
  %137 = getelementptr inbounds i8, ptr %3, i64 32
  %138 = load double, ptr %137, align 16, !tbaa !11
  %139 = call double @cos(double noundef %138) #8
  %140 = call double @pow(double noundef %139, double noundef 4.000000e+00) #8
  %141 = fadd double %124, %140
  %142 = load double, ptr %137, align 16, !tbaa !11
  %143 = fadd double %126, %142
  %144 = fmul double %142, 5.000000e+00
  %145 = call double @llvm.fmuladd.f64(double %144, double %142, double %128)
  %146 = call double @cos(double noundef %142) #8
  %square.4 = fmul double %146, %146
  %147 = fmul double %130, %square.4
  %148 = fcmp une double %.149.3, 0.000000e+00
  br i1 %148, label %149, label %154

149:                                              ; preds = %.preheader.4
  %150 = load double, ptr %137, align 16, !tbaa !11
  %151 = fcmp oeq double %150, 0.000000e+00
  br i1 %151, label %154, label %152

152:                                              ; preds = %149
  %153 = fmul double %.149.3, %150
  br label %154

154:                                              ; preds = %152, %149, %.preheader.4
  %.149.4 = phi double [ %153, %152 ], [ %.149.3, %.preheader.4 ], [ 0.000000e+00, %149 ]
  %155 = fcmp une double %145, 0.000000e+00
  br i1 %155, label %156, label %166

156:                                              ; preds = %154
  %157 = fsub double 7.500000e-01, %.149.4
  %158 = fadd double %143, -3.750000e+01
  %159 = fmul double %158, 1.000000e+01
  %160 = call double @llvm.fmuladd.f64(double %157, double 1.000000e+01, double %159)
  %161 = call double @llvm.fmuladd.f64(double %147, double -2.000000e+00, double %141)
  %162 = call double @sqrt(double noundef %145) #8
  %163 = call noundef double @_ZSt3absd(double noundef %162)
  %164 = fdiv double %161, %163
  %165 = fsub double %160, %164
  br label %166

166:                                              ; preds = %154, %156
  %.054 = phi double [ %165, %156 ], [ 0x7FF8000000000000, %154 ]
  %167 = call noundef zeroext i1 @_ZSt5isnand(double noundef %.054)
  %168 = fmul double %.054, 1.000000e-05
  %.155 = select i1 %167, double %.054, double %168
  %169 = call noundef zeroext i1 @_ZSt5isnand(double noundef %.155)
  %170 = zext i1 %169 to i32
  br label %.critedge

.critedge:                                        ; preds = %2, %166, %70
  %171 = phi i32 [ %170, %166 ], [ 1, %70 ], [ 1, %2 ]
  %.256 = phi double [ %.155, %166 ], [ 1.000000e+20, %70 ], [ 1.000000e+20, %2 ]
  %172 = fsub double -2.000000e+03, %.256
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %172)
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef nonnull @.str.3)
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %174, double noundef %.256)
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #8
  ret i32 %171
}

; 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