; LLVM IR from romerojosh/zefr :: src/filter.ll (Z21calc_expfilter_coeffsjjddji)

; 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::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"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::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 }

@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._Z21calc_expfilter_coeffsjjddji = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [60 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

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

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) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z21calc_expfilter_coeffsjjddji(i32 noundef %0, i32 noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5) #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca i1, align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca i1, align 1
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store double 1.000000e+00, ptr %13, align 8, !tbaa !9
  %35 = load i32, ptr %11, align 4, !tbaa !5
  %36 = icmp eq i32 %35, 2
  br i1 %36, label %37, label %135

37:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %38 = load i32, ptr %8, align 4, !tbaa !5
  %39 = uitofp i32 %38 to double
  %40 = fdiv double 2.000000e+00, %39
  store double %40, ptr %15, align 8, !tbaa !9
  %41 = load i32, ptr %12, align 4, !tbaa !5
  %42 = load i32, ptr %8, align 4, !tbaa !5
  %43 = icmp uge i32 %41, %42
  br i1 %43, label %44, label %80

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 392, ptr %16) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %16)
  %45 = getelementptr inbounds i8, ptr %16, i64 16
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @.str.1)
          to label %47 unwind label %63

47:                                               ; preds = %44
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @.str.2)
          to label %49 unwind label %63

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %48, i32 noundef 264)
          to label %51 unwind label %63

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.2)
          to label %53 unwind label %63

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @__func__._Z21calc_expfilter_coeffsjjddji)
          to label %55 unwind label %63

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef @.str.3)
          to label %57 unwind label %63

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef @.str.4)
          to label %59 unwind label %63

59:                                               ; preds = %57
  store i1 true, ptr %20, align 1
  %60 = call ptr @__cxa_allocate_exception(i64 16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(128) %16)
          to label %61 unwind label %67

61:                                               ; preds = %59
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef nonnull align 8 dereferenceable(32) %19)
          to label %62 unwind label %71

62:                                               ; preds = %61
  store i1 false, ptr %20, align 1
  invoke void @__cxa_throw(ptr %60, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
          to label %265 unwind label %71

63:                                               ; preds = %57, %55, %53, %51, %49, %47, %44
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %17, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %18, align 4
  br label %79

67:                                               ; preds = %59
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %17, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %18, align 4
  br label %75

71:                                               ; preds = %62, %61
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %17, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #6
  br label %75

75:                                               ; preds = %71, %67
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #6
  %76 = load i1, ptr %20, align 1
  br i1 %76, label %77, label %78

77:                                               ; preds = %75
  call void @__cxa_free_exception(ptr %60) #6
  br label %78

78:                                               ; preds = %77, %75
  br label %79

79:                                               ; preds = %78, %63
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %16) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %259

80:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %131, %80
  %82 = load i32, ptr %22, align 4, !tbaa !5
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = mul i32 2, %83
  %85 = icmp ule i32 %82, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %81
  store i32 2, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %134

87:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %127, %87
  %89 = load i32, ptr %24, align 4, !tbaa !5
  %90 = load i32, ptr %22, align 4, !tbaa !5
  %91 = icmp sle i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %130

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %94 = load i32, ptr %22, align 4, !tbaa !5
  %95 = load i32, ptr %24, align 4, !tbaa !5
  %96 = sub nsw i32 %94, %95
  store i32 %96, ptr %25, align 4, !tbaa !5
  %97 = load i32, ptr %25, align 4, !tbaa !5
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = icmp ule i32 %97, %98
  br i1 %99, label %100, label %126

100:                                              ; preds = %93
  %101 = load i32, ptr %24, align 4, !tbaa !5
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = icmp ule i32 %101, %102
  br i1 %103, label %104, label %126

104:                                              ; preds = %100
  %105 = load i32, ptr %21, align 4, !tbaa !5
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = icmp eq i32 %105, %106
  br i1 %107, label %108, label %123

108:                                              ; preds = %104
  %109 = load i32, ptr %25, align 4, !tbaa !5
  %110 = load i32, ptr %24, align 4, !tbaa !5
  %111 = add nsw i32 %109, %110
  %112 = sitofp i32 %111 to double
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = uitofp i32 %113 to double
  %115 = fdiv double %112, %114
  store double %115, ptr %14, align 8, !tbaa !9
  %116 = load double, ptr %9, align 8, !tbaa !9
  %117 = fneg double %116
  %118 = load double, ptr %14, align 8, !tbaa !9
  %119 = load double, ptr %10, align 8, !tbaa !9
  %120 = call double @pow(double noundef %118, double noundef %119) #6
  %121 = fmul double %117, %120
  %122 = call double @exp(double noundef %121) #6
  store double %122, ptr %13, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %108, %104
  %124 = load i32, ptr %21, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %21, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %123, %100, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %24, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %24, align 4, !tbaa !5
  br label %88, !llvm.loop !11

130:                                              ; preds = %92
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %22, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %22, align 4, !tbaa !5
  br label %81, !llvm.loop !13

134:                                              ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %257

135:                                              ; preds = %6
  %136 = load i32, ptr %11, align 4, !tbaa !5
  %137 = icmp eq i32 %136, 3
  br i1 %137, label %138, label %256

138:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %139 = load i32, ptr %8, align 4, !tbaa !5
  %140 = uitofp i32 %139 to double
  %141 = fdiv double 3.000000e+00, %140
  store double %141, ptr %26, align 8, !tbaa !9
  %142 = load i32, ptr %12, align 4, !tbaa !5
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = icmp uge i32 %142, %143
  br i1 %144, label %145, label %181

145:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 392, ptr %27) #6
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %27)
  %146 = getelementptr inbounds i8, ptr %27, i64 16
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef @.str.1)
          to label %148 unwind label %164

148:                                              ; preds = %145
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef @.str.2)
          to label %150 unwind label %164

150:                                              ; preds = %148
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %149, i32 noundef 297)
          to label %152 unwind label %164

152:                                              ; preds = %150
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef @.str.2)
          to label %154 unwind label %164

154:                                              ; preds = %152
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef @__func__._Z21calc_expfilter_coeffsjjddji)
          to label %156 unwind label %164

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @.str.3)
          to label %158 unwind label %164

158:                                              ; preds = %156
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef @.str.4)
          to label %160 unwind label %164

160:                                              ; preds = %158
  store i1 true, ptr %29, align 1
  %161 = call ptr @__cxa_allocate_exception(i64 16) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #6
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(128) %27)
          to label %162 unwind label %168

162:                                              ; preds = %160
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %161, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %163 unwind label %172

163:                                              ; preds = %162
  store i1 false, ptr %29, align 1
  invoke void @__cxa_throw(ptr %161, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #7
          to label %265 unwind label %172

164:                                              ; preds = %158, %156, %154, %152, %150, %148, %145
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %17, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %18, align 4
  br label %180

168:                                              ; preds = %160
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %17, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %18, align 4
  br label %176

172:                                              ; preds = %163, %162
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %17, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #6
  br label %176

176:                                              ; preds = %172, %168
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #6
  %177 = load i1, ptr %29, align 1
  br i1 %177, label %178, label %179

178:                                              ; preds = %176
  call void @__cxa_free_exception(ptr %161) #6
  br label %179

179:                                              ; preds = %178, %176
  br label %180

180:                                              ; preds = %179, %164
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %27) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %259

181:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %182

182:                                              ; preds = %252, %181
  %183 = load i32, ptr %31, align 4, !tbaa !5
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = mul i32 3, %184
  %186 = icmp ule i32 %183, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %182
  store i32 8, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %255

188:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %248, %188
  %190 = load i32, ptr %32, align 4, !tbaa !5
  %191 = load i32, ptr %31, align 4, !tbaa !5
  %192 = icmp ule i32 %190, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %189
  store i32 11, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %251

194:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %244, %194
  %196 = load i32, ptr %33, align 4, !tbaa !5
  %197 = load i32, ptr %31, align 4, !tbaa !5
  %198 = load i32, ptr %32, align 4, !tbaa !5
  %199 = sub i32 %197, %198
  %200 = icmp ule i32 %196, %199
  br i1 %200, label %202, label %201

201:                                              ; preds = %195
  store i32 14, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %247

202:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %203 = load i32, ptr %31, align 4, !tbaa !5
  %204 = load i32, ptr %32, align 4, !tbaa !5
  %205 = sub i32 %203, %204
  %206 = load i32, ptr %33, align 4, !tbaa !5
  %207 = sub i32 %205, %206
  store i32 %207, ptr %34, align 4, !tbaa !5
  %208 = load i32, ptr %34, align 4, !tbaa !5
  %209 = load i32, ptr %7, align 4, !tbaa !5
  %210 = icmp ule i32 %208, %209
  br i1 %210, label %211, label %243

211:                                              ; preds = %202
  %212 = load i32, ptr %33, align 4, !tbaa !5
  %213 = load i32, ptr %7, align 4, !tbaa !5
  %214 = icmp ule i32 %212, %213
  br i1 %214, label %215, label %243

215:                                              ; preds = %211
  %216 = load i32, ptr %32, align 4, !tbaa !5
  %217 = load i32, ptr %7, align 4, !tbaa !5
  %218 = icmp ule i32 %216, %217
  br i1 %218, label %219, label %243

219:                                              ; preds = %215
  %220 = load i32, ptr %30, align 4, !tbaa !5
  %221 = load i32, ptr %12, align 4, !tbaa !5
  %222 = icmp eq i32 %220, %221
  br i1 %222, label %223, label %240

223:                                              ; preds = %219
  %224 = load i32, ptr %34, align 4, !tbaa !5
  %225 = load i32, ptr %33, align 4, !tbaa !5
  %226 = add i32 %224, %225
  %227 = load i32, ptr %32, align 4, !tbaa !5
  %228 = add i32 %226, %227
  %229 = uitofp i32 %228 to double
  %230 = load i32, ptr %8, align 4, !tbaa !5
  %231 = uitofp i32 %230 to double
  %232 = fdiv double %229, %231
  store double %232, ptr %14, align 8, !tbaa !9
  %233 = load double, ptr %9, align 8, !tbaa !9
  %234 = fneg double %233
  %235 = load double, ptr %14, align 8, !tbaa !9
  %236 = load double, ptr %10, align 8, !tbaa !9
  %237 = call double @pow(double noundef %235, double noundef %236) #6
  %238 = fmul double %234, %237
  %239 = call double @exp(double noundef %238) #6
  store double %239, ptr %13, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %223, %219
  %241 = load i32, ptr %30, align 4, !tbaa !5
  %242 = add i32 %241, 1
  store i32 %242, ptr %30, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %240, %215, %211, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %244

244:                                              ; preds = %243
  %245 = load i32, ptr %33, align 4, !tbaa !5
  %246 = add i32 %245, 1
  store i32 %246, ptr %33, align 4, !tbaa !5
  br label %195, !llvm.loop !14

247:                                              ; preds = %201
  br label %248

248:                                              ; preds = %247
  %249 = load i32, ptr %32, align 4, !tbaa !5
  %250 = add i32 %249, 1
  store i32 %250, ptr %32, align 4, !tbaa !5
  br label %189, !llvm.loop !15

251:                                              ; preds = %193
  br label %252

252:                                              ; preds = %251
  %253 = load i32, ptr %31, align 4, !tbaa !5
  %254 = add i32 %253, 1
  store i32 %254, ptr %31, align 4, !tbaa !5
  br label %182, !llvm.loop !16

255:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %256

256:                                              ; preds = %255, %135
  br label %257

257:                                              ; preds = %256, %134
  %258 = load double, ptr %13, align 8, !tbaa !9
  store i32 1, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret double %258

259:                                              ; preds = %180, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %260

260:                                              ; preds = %259
  %261 = load ptr, ptr %17, align 8
  %262 = load i32, ptr %18, align 4
  %263 = insertvalue { ptr, i32 } poison, ptr %261, 0
  %264 = insertvalue { ptr, i32 } %263, i32 %262, 1
  resume { ptr, i32 } %264

265:                                              ; preds = %163, %62
  unreachable
}

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) #3 align 2

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

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @__cxa_free_exception(ptr)

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

; Function Attrs: nounwind
declare double @exp(double noundef) #1

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

!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 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"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::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 }

@.str.1 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@__func__._Z21calc_expfilter_coeffsjjddji = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [60 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

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

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) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z21calc_expfilter_coeffsjjddji(i32 noundef %0, i32 noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  switch i32 %4, label %.loopexit [
    i32 2, label %11
    i32 3, label %58
  ]

11:                                               ; preds = %6
  %12 = uitofp i32 %1 to double
  %.not102 = icmp ult i32 %5, %1
  br i1 %.not102, label %.preheader124, label %15

.preheader124:                                    ; preds = %11
  %13 = shl i32 %0, 1
  %14 = fneg double %2
  br label %.preheader

15:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %7) #7
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7)
  %16 = getelementptr inbounds i8, ptr %7, i64 16
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.1)
          to label %18 unwind label %35

18:                                               ; preds = %15
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str.2)
          to label %20 unwind label %35

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 264)
          to label %22 unwind label %35

22:                                               ; preds = %20
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull @.str.2)
          to label %24 unwind label %35

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull @__func__._Z21calc_expfilter_coeffsjjddji)
          to label %26 unwind label %35

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str.3)
          to label %28 unwind label %35

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @.str.4)
          to label %30 unwind label %35

30:                                               ; preds = %28
  %31 = call ptr @__cxa_allocate_exception(i64 16) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(128) %7)
          to label %32 unwind label %.thread

32:                                               ; preds = %30
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %34 unwind label %.thread116

.thread116:                                       ; preds = %32
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %40

34:                                               ; preds = %32
  invoke void @__cxa_throw(ptr nonnull %31, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
          to label %107 unwind label %38

35:                                               ; preds = %28, %26, %24, %22, %20, %18, %15
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %41

.thread:                                          ; preds = %30
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %40

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %41

40:                                               ; preds = %.thread116, %.thread
  %.pn107115 = phi { ptr, i32 } [ %37, %.thread ], [ %33, %.thread116 ]
  call void @__cxa_free_exception(ptr %31) #7
  br label %41

41:                                               ; preds = %38, %40, %35
  %.pn107.pn = phi { ptr, i32 } [ %.pn107115, %40 ], [ %39, %38 ], [ %36, %35 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %7) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %7) #7
  br label %106

.preheader:                                       ; preds = %.preheader124, %44
  %indvars.iv = phi i32 [ 1, %.preheader124 ], [ %indvars.iv.next, %44 ]
  %.0144 = phi double [ 1.000000e+00, %.preheader124 ], [ %.3, %44 ]
  %.077143 = phi i32 [ 0, %.preheader124 ], [ %45, %44 ]
  %.078142 = phi i32 [ 0, %.preheader124 ], [ %.280, %44 ]
  %42 = uitofp nneg i32 %.077143 to double
  %43 = fdiv double %42, %12
  br label %46

44:                                               ; preds = %56
  %45 = add nuw i32 %.077143, 1
  %indvars.iv.next = add nuw i32 %indvars.iv, 1
  %exitcond148.not = icmp eq i32 %.077143, %13
  br i1 %exitcond148.not, label %.loopexit, label %.preheader, !llvm.loop !5

46:                                               ; preds = %.preheader, %56
  %.1141 = phi double [ %.0144, %.preheader ], [ %.3, %56 ]
  %.076140 = phi i32 [ 0, %.preheader ], [ %57, %56 ]
  %.179139 = phi i32 [ %.078142, %.preheader ], [ %.280, %56 ]
  %47 = sub nsw i32 %.077143, %.076140
  %.not105 = icmp ugt i32 %47, %0
  %.not106 = icmp ugt i32 %.076140, %0
  %or.cond = or i1 %.not106, %.not105
  br i1 %or.cond, label %56, label %48

48:                                               ; preds = %46
  %49 = icmp eq i32 %.179139, %5
  br i1 %49, label %50, label %54

50:                                               ; preds = %48
  %51 = tail call double @pow(double noundef %43, double noundef %3) #7
  %52 = fmul double %51, %14
  %53 = tail call double @exp(double noundef %52) #7
  br label %54

54:                                               ; preds = %50, %48
  %.2 = phi double [ %53, %50 ], [ %.1141, %48 ]
  %55 = add nsw i32 %.179139, 1
  br label %56

56:                                               ; preds = %54, %46
  %.280 = phi i32 [ %55, %54 ], [ %.179139, %46 ]
  %.3 = phi double [ %.2, %54 ], [ %.1141, %46 ]
  %57 = add nuw i32 %.076140, 1
  %exitcond147.not = icmp eq i32 %57, %indvars.iv
  br i1 %exitcond147.not, label %44, label %46, !llvm.loop !7

58:                                               ; preds = %6
  %59 = uitofp i32 %1 to double
  %.not = icmp ult i32 %5, %1
  br i1 %.not, label %.preheader127, label %62

.preheader127:                                    ; preds = %58
  %60 = mul i32 %0, 3
  %61 = fneg double %2
  br label %.preheader126

62:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %9) #7
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9)
  %63 = getelementptr inbounds i8, ptr %9, i64 16
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.1)
          to label %65 unwind label %82

65:                                               ; preds = %62
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @.str.2)
          to label %67 unwind label %82

67:                                               ; preds = %65
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %66, i32 noundef 297)
          to label %69 unwind label %82

69:                                               ; preds = %67
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @.str.2)
          to label %71 unwind label %82

71:                                               ; preds = %69
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @__func__._Z21calc_expfilter_coeffsjjddji)
          to label %73 unwind label %82

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.3)
          to label %75 unwind label %82

75:                                               ; preds = %73
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull @.str.4)
          to label %77 unwind label %82

77:                                               ; preds = %75
  %78 = call ptr @__cxa_allocate_exception(i64 16) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(128) %9)
          to label %79 unwind label %.thread118

79:                                               ; preds = %77
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %78, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %81 unwind label %.thread122

.thread122:                                       ; preds = %79
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %87

81:                                               ; preds = %79
  invoke void @__cxa_throw(ptr nonnull %78, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
          to label %107 unwind label %85

82:                                               ; preds = %75, %73, %71, %69, %67, %65, %62
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %88

.thread118:                                       ; preds = %77
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %87

85:                                               ; preds = %81
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br label %88

87:                                               ; preds = %.thread122, %.thread118
  %.pn121 = phi { ptr, i32 } [ %84, %.thread118 ], [ %80, %.thread122 ]
  call void @__cxa_free_exception(ptr %78) #7
  br label %88

88:                                               ; preds = %85, %87, %82
  %.pn.pn = phi { ptr, i32 } [ %.pn121, %87 ], [ %86, %85 ], [ %83, %82 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %9) #7
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %9) #7
  br label %106

.preheader126:                                    ; preds = %.preheader127, %92
  %.4138 = phi double [ 1.000000e+00, %.preheader127 ], [ %.us-phi132, %92 ]
  %.064137 = phi i32 [ 0, %.preheader127 ], [ %93, %92 ]
  %.065136 = phi i32 [ 0, %.preheader127 ], [ %.us-phi, %92 ]
  %89 = uitofp i32 %.064137 to double
  %90 = fdiv double %89, %59
  br label %.preheader125

.preheader125:                                    ; preds = %.preheader126, %.split.us
  %.5135 = phi double [ %.4138, %.preheader126 ], [ %.us-phi132, %.split.us ]
  %.063134 = phi i32 [ 0, %.preheader126 ], [ %94, %.split.us ]
  %.166133 = phi i32 [ %.065136, %.preheader126 ], [ %.us-phi, %.split.us ]
  %91 = sub i32 %.064137, %.063134
  %.not99 = icmp ugt i32 %.063134, %0
  br i1 %.not99, label %.split.us, label %.preheader125.split

92:                                               ; preds = %.split.us
  %93 = add nuw i32 %.064137, 1
  %exitcond.not = icmp eq i32 %.064137, %60
  br i1 %exitcond.not, label %.loopexit, label %.preheader126, !llvm.loop !8

.split.us:                                        ; preds = %104, %.preheader125
  %.us-phi = phi i32 [ %.166133, %.preheader125 ], [ %.368, %104 ]
  %.us-phi132 = phi double [ %.5135, %.preheader125 ], [ %.8, %104 ]
  %94 = add i32 %.063134, 1
  %.not95 = icmp ugt i32 %94, %.064137
  br i1 %.not95, label %92, label %.preheader125, !llvm.loop !9

.preheader125.split:                              ; preds = %.preheader125, %104
  %.6131 = phi double [ %.8, %104 ], [ %.5135, %.preheader125 ]
  %.062130 = phi i32 [ %105, %104 ], [ 0, %.preheader125 ]
  %.267129 = phi i32 [ %.368, %104 ], [ %.166133, %.preheader125 ]
  %95 = sub i32 %91, %.062130
  %.not97 = icmp ugt i32 %95, %0
  %.not98 = icmp ugt i32 %.062130, %0
  %or.cond111 = or i1 %.not98, %.not97
  br i1 %or.cond111, label %104, label %96

96:                                               ; preds = %.preheader125.split
  %97 = icmp eq i32 %.267129, %5
  br i1 %97, label %98, label %102

98:                                               ; preds = %96
  %99 = tail call double @pow(double noundef %90, double noundef %3) #7
  %100 = fmul double %99, %61
  %101 = tail call double @exp(double noundef %100) #7
  br label %102

102:                                              ; preds = %98, %96
  %.7 = phi double [ %101, %98 ], [ %.6131, %96 ]
  %103 = add i32 %.267129, 1
  br label %104

104:                                              ; preds = %102, %.preheader125.split
  %.368 = phi i32 [ %103, %102 ], [ %.267129, %.preheader125.split ]
  %.8 = phi double [ %.7, %102 ], [ %.6131, %.preheader125.split ]
  %105 = add i32 %.062130, 1
  %.not96 = icmp ugt i32 %105, %91
  br i1 %.not96, label %.split.us, label %.preheader125.split, !llvm.loop !10

.loopexit:                                        ; preds = %92, %44, %6
  %.9 = phi double [ 1.000000e+00, %6 ], [ %.3, %44 ], [ %.us-phi132, %92 ]
  ret double %.9

106:                                              ; preds = %88, %41
  %.pn107.pn.pn = phi { ptr, i32 } [ %.pn107.pn, %41 ], [ %.pn.pn, %88 ]
  resume { ptr, i32 } %.pn107.pn.pn

107:                                              ; preds = %81, %34
  unreachable
}

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3 align 2

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

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { "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 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}
!10 = distinct !{!10, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass