; LLVM IR from carmeloevoli/NumericalMethodsGSSI :: src/examples/galaxy.ll (ZN2NM21AdvectionAntiParallelESt6vectorIdSaIdEES2_d)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

declare noundef double @_ZN2NM10Gaussian1DEdd(double noundef, double noundef) #5

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

declare noundef i32 @_ZN3GSL24gsl_linalg_solve_tridiagERKSt6vectorIdSaIdEES4_S4_S4_RS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2NM21AdvectionAntiParallelESt6vectorIdSaIdEES2_d(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1, ptr noundef %2, double noundef %3) #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca i64, align 8
  %10 = alloca i1, align 1
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca %"class.std::allocator", align 1
  %26 = alloca %"class.std::vector", align 8
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca double, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca double, align 8
  %32 = alloca i64, align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store double %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %33 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  store i64 %33, ptr %9, align 8, !tbaa !11
  store i1 false, ptr %10, align 1
  %34 = load i64, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %35 unwind label %75

35:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  %36 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %37 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %36, ptr %37, align 8
  %38 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %39 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %38, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  %40 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8
  invoke void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %41, ptr %43, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %44 unwind label %79

44:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #6
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = fsub double %46, %48
  store double %49, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %50 = load i64, ptr %9, align 8, !tbaa !11
  %51 = sub i64 %50, 2
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %51, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %52 unwind label %83

52:                                               ; preds = %44
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  %53 = load i64, ptr %9, align 8, !tbaa !11
  %54 = sub i64 %53, 2
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %54, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %55 unwind label %87

55:                                               ; preds = %52
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  %56 = load i64, ptr %9, align 8, !tbaa !11
  %57 = sub i64 %56, 2
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %57, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %58 unwind label %91

58:                                               ; preds = %55
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  %59 = load i64, ptr %9, align 8, !tbaa !11
  %60 = sub i64 %59, 3
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %60, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %61 unwind label %95

61:                                               ; preds = %58
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  %62 = load i64, ptr %9, align 8, !tbaa !11
  %63 = sub i64 %62, 3
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %63, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %64 unwind label %99

64:                                               ; preds = %61
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %65 = load double, ptr %8, align 8, !tbaa !9
  %66 = fmul double 0x3FAA2A0230A51D3C, %65
  %67 = load double, ptr %17, align 8, !tbaa !9
  %68 = fdiv double %66, %67
  store double %68, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  store i64 1, ptr %29, align 8, !tbaa !11
  br label %69

69:                                               ; preds = %198, %64
  %70 = load i64, ptr %29, align 8, !tbaa !11
  %71 = load i64, ptr %9, align 8, !tbaa !11
  %72 = sub i64 %71, 1
  %73 = icmp ult i64 %70, %72
  br i1 %73, label %103, label %74

74:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %201

75:                                               ; preds = %4
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %12, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %334

79:                                               ; preds = %35
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %333

83:                                               ; preds = %44
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %12, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %330

87:                                               ; preds = %52
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %12, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %329

91:                                               ; preds = %55
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %12, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %328

95:                                               ; preds = %58
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %12, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %327

99:                                               ; preds = %61
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %326

103:                                              ; preds = %69
  %104 = load i64, ptr %29, align 8, !tbaa !11
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %104)
          to label %106 unwind label %125

106:                                              ; preds = %103
  %107 = load double, ptr %105, align 8, !tbaa !9
  %108 = fcmp ogt double %107, 1.000000e-10
  br i1 %108, label %109, label %140

109:                                              ; preds = %106
  %110 = load double, ptr %28, align 8, !tbaa !9
  %111 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %110, double 1.000000e+00)
  %112 = load i64, ptr %29, align 8, !tbaa !11
  %113 = sub i64 %112, 1
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %113)
          to label %115 unwind label %125

115:                                              ; preds = %109
  store double %111, ptr %114, align 8, !tbaa !9
  %116 = load i64, ptr %29, align 8, !tbaa !11
  %117 = icmp ne i64 %116, 1
  br i1 %117, label %118, label %129

118:                                              ; preds = %115
  %119 = load double, ptr %28, align 8, !tbaa !9
  %120 = fmul double -5.000000e-01, %119
  %121 = load i64, ptr %29, align 8, !tbaa !11
  %122 = sub i64 %121, 2
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %122)
          to label %124 unwind label %125

124:                                              ; preds = %118
  store double %120, ptr %123, align 8, !tbaa !9
  br label %129

125:                                              ; preds = %190, %180, %173, %165, %155, %146, %140, %134, %118, %109, %103
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %12, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %325

129:                                              ; preds = %124, %115
  %130 = load i64, ptr %29, align 8, !tbaa !11
  %131 = load i64, ptr %9, align 8, !tbaa !11
  %132 = sub i64 %131, 2
  %133 = icmp ne i64 %130, %132
  br i1 %133, label %134, label %139

134:                                              ; preds = %129
  %135 = load i64, ptr %29, align 8, !tbaa !11
  %136 = sub i64 %135, 1
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %136)
          to label %138 unwind label %125

138:                                              ; preds = %134
  store double 0.000000e+00, ptr %137, align 8, !tbaa !9
  br label %139

139:                                              ; preds = %138, %129
  br label %197

140:                                              ; preds = %106
  %141 = load i64, ptr %29, align 8, !tbaa !11
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %141)
          to label %143 unwind label %125

143:                                              ; preds = %140
  %144 = load double, ptr %142, align 8, !tbaa !9
  %145 = fcmp olt double %144, -1.000000e-10
  br i1 %145, label %146, label %173

146:                                              ; preds = %143
  %147 = load double, ptr %28, align 8, !tbaa !9
  %148 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %147, double 1.000000e+00)
  %149 = load i64, ptr %29, align 8, !tbaa !11
  %150 = sub i64 %149, 1
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %150)
          to label %152 unwind label %125

152:                                              ; preds = %146
  store double %148, ptr %151, align 8, !tbaa !9
  %153 = load i64, ptr %29, align 8, !tbaa !11
  %154 = icmp ne i64 %153, 1
  br i1 %154, label %155, label %160

155:                                              ; preds = %152
  %156 = load i64, ptr %29, align 8, !tbaa !11
  %157 = sub i64 %156, 2
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %157)
          to label %159 unwind label %125

159:                                              ; preds = %155
  store double 0.000000e+00, ptr %158, align 8, !tbaa !9
  br label %160

160:                                              ; preds = %159, %152
  %161 = load i64, ptr %29, align 8, !tbaa !11
  %162 = load i64, ptr %9, align 8, !tbaa !11
  %163 = sub i64 %162, 2
  %164 = icmp ne i64 %161, %163
  br i1 %164, label %165, label %172

165:                                              ; preds = %160
  %166 = load double, ptr %28, align 8, !tbaa !9
  %167 = fmul double -5.000000e-01, %166
  %168 = load i64, ptr %29, align 8, !tbaa !11
  %169 = sub i64 %168, 1
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %169)
          to label %171 unwind label %125

171:                                              ; preds = %165
  store double %167, ptr %170, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %171, %160
  br label %196

173:                                              ; preds = %143
  %174 = load i64, ptr %29, align 8, !tbaa !11
  %175 = sub i64 %174, 1
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %175)
          to label %177 unwind label %125

177:                                              ; preds = %173
  store double 1.000000e+00, ptr %176, align 8, !tbaa !9
  %178 = load i64, ptr %29, align 8, !tbaa !11
  %179 = icmp ne i64 %178, 1
  br i1 %179, label %180, label %185

180:                                              ; preds = %177
  %181 = load i64, ptr %29, align 8, !tbaa !11
  %182 = sub i64 %181, 2
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %182)
          to label %184 unwind label %125

184:                                              ; preds = %180
  store double 0.000000e+00, ptr %183, align 8, !tbaa !9
  br label %185

185:                                              ; preds = %184, %177
  %186 = load i64, ptr %29, align 8, !tbaa !11
  %187 = load i64, ptr %9, align 8, !tbaa !11
  %188 = sub i64 %187, 2
  %189 = icmp ne i64 %186, %188
  br i1 %189, label %190, label %195

190:                                              ; preds = %185
  %191 = load i64, ptr %29, align 8, !tbaa !11
  %192 = sub i64 %191, 1
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %192)
          to label %194 unwind label %125

194:                                              ; preds = %190
  store double 0.000000e+00, ptr %193, align 8, !tbaa !9
  br label %195

195:                                              ; preds = %194, %185
  br label %196

196:                                              ; preds = %195, %172
  br label %197

197:                                              ; preds = %196, %139
  br label %198

198:                                              ; preds = %197
  %199 = load i64, ptr %29, align 8, !tbaa !11
  %200 = add i64 %199, 1
  store i64 %200, ptr %29, align 8, !tbaa !11
  br label %69, !llvm.loop !13

201:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %202

202:                                              ; preds = %297, %201
  %203 = load i64, ptr %30, align 8, !tbaa !11
  %204 = load i64, ptr %9, align 8, !tbaa !11
  %205 = sub i64 %204, 1
  %206 = icmp ult i64 %203, %205
  br i1 %206, label %208, label %207

207:                                              ; preds = %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %300

208:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %209 = load i64, ptr %30, align 8, !tbaa !11
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %209)
          to label %211 unwind label %252

211:                                              ; preds = %208
  %212 = load double, ptr %210, align 8, !tbaa !9
  %213 = call double @llvm.fabs.f64(double %212)
  %214 = invoke noundef double @_ZN2NM10Gaussian1DEdd(double noundef %213, double noundef 1.000000e-01)
          to label %215 unwind label %252

215:                                              ; preds = %211
  %216 = fmul double 2.000000e-01, %214
  store double %216, ptr %31, align 8, !tbaa !9
  %217 = load double, ptr %8, align 8, !tbaa !9
  %218 = load double, ptr %31, align 8, !tbaa !9
  %219 = fmul double %217, %218
  %220 = fdiv double %219, 2.000000e+00
  %221 = load i64, ptr %30, align 8, !tbaa !11
  %222 = sub i64 %221, 1
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %222)
          to label %224 unwind label %252

224:                                              ; preds = %215
  store double %220, ptr %223, align 8, !tbaa !9
  %225 = load i64, ptr %30, align 8, !tbaa !11
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %225)
          to label %227 unwind label %252

227:                                              ; preds = %224
  %228 = load double, ptr %226, align 8, !tbaa !9
  %229 = fcmp ogt double %228, 1.000000e-10
  br i1 %229, label %230, label %256

230:                                              ; preds = %227
  %231 = load double, ptr %28, align 8, !tbaa !9
  %232 = fmul double 5.000000e-01, %231
  %233 = load i64, ptr %30, align 8, !tbaa !11
  %234 = sub i64 %233, 1
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %234)
          to label %236 unwind label %252

236:                                              ; preds = %230
  %237 = load double, ptr %235, align 8, !tbaa !9
  %238 = load double, ptr %28, align 8, !tbaa !9
  %239 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %238, double 1.000000e+00)
  %240 = load i64, ptr %30, align 8, !tbaa !11
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %240)
          to label %242 unwind label %252

242:                                              ; preds = %236
  %243 = load double, ptr %241, align 8, !tbaa !9
  %244 = fmul double %239, %243
  %245 = call double @llvm.fmuladd.f64(double %232, double %237, double %244)
  %246 = load i64, ptr %30, align 8, !tbaa !11
  %247 = sub i64 %246, 1
  %248 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %247)
          to label %249 unwind label %252

249:                                              ; preds = %242
  %250 = load double, ptr %248, align 8, !tbaa !9
  %251 = fadd double %250, %245
  store double %251, ptr %248, align 8, !tbaa !9
  br label %296

252:                                              ; preds = %287, %284, %274, %267, %262, %256, %242, %236, %230, %224, %215, %211, %208
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %12, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %325

256:                                              ; preds = %227
  %257 = load i64, ptr %30, align 8, !tbaa !11
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %257)
          to label %259 unwind label %252

259:                                              ; preds = %256
  %260 = load double, ptr %258, align 8, !tbaa !9
  %261 = fcmp olt double %260, -1.000000e-10
  br i1 %261, label %262, label %284

262:                                              ; preds = %259
  %263 = load double, ptr %28, align 8, !tbaa !9
  %264 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %263, double 1.000000e+00)
  %265 = load i64, ptr %30, align 8, !tbaa !11
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %265)
          to label %267 unwind label %252

267:                                              ; preds = %262
  %268 = load double, ptr %266, align 8, !tbaa !9
  %269 = load double, ptr %28, align 8, !tbaa !9
  %270 = fmul double 5.000000e-01, %269
  %271 = load i64, ptr %30, align 8, !tbaa !11
  %272 = add i64 %271, 1
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %272)
          to label %274 unwind label %252

274:                                              ; preds = %267
  %275 = load double, ptr %273, align 8, !tbaa !9
  %276 = fmul double %270, %275
  %277 = call double @llvm.fmuladd.f64(double %264, double %268, double %276)
  %278 = load i64, ptr %30, align 8, !tbaa !11
  %279 = sub i64 %278, 1
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %279)
          to label %281 unwind label %252

281:                                              ; preds = %274
  %282 = load double, ptr %280, align 8, !tbaa !9
  %283 = fadd double %282, %277
  store double %283, ptr %280, align 8, !tbaa !9
  br label %295

284:                                              ; preds = %259
  %285 = load i64, ptr %30, align 8, !tbaa !11
  %286 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %285)
          to label %287 unwind label %252

287:                                              ; preds = %284
  %288 = load double, ptr %286, align 8, !tbaa !9
  %289 = load i64, ptr %30, align 8, !tbaa !11
  %290 = sub i64 %289, 1
  %291 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %290)
          to label %292 unwind label %252

292:                                              ; preds = %287
  %293 = load double, ptr %291, align 8, !tbaa !9
  %294 = fadd double %293, %288
  store double %294, ptr %291, align 8, !tbaa !9
  br label %295

295:                                              ; preds = %292, %281
  br label %296

296:                                              ; preds = %295, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %297

297:                                              ; preds = %296
  %298 = load i64, ptr %30, align 8, !tbaa !11
  %299 = add i64 %298, 1
  store i64 %299, ptr %30, align 8, !tbaa !11
  br label %202, !llvm.loop !15

300:                                              ; preds = %207
  %301 = invoke noundef i32 @_ZN3GSL24gsl_linalg_solve_tridiagERKSt6vectorIdSaIdEES4_S4_S4_RS2_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %302 unwind label %309

302:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  store i64 1, ptr %32, align 8, !tbaa !11
  br label %303

303:                                              ; preds = %320, %302
  %304 = load i64, ptr %32, align 8, !tbaa !11
  %305 = load i64, ptr %9, align 8, !tbaa !11
  %306 = sub i64 %305, 1
  %307 = icmp ult i64 %304, %306
  br i1 %307, label %313, label %308

308:                                              ; preds = %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %323

309:                                              ; preds = %300
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %12, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %13, align 4
  br label %325

313:                                              ; preds = %303
  %314 = load i64, ptr %32, align 8, !tbaa !11
  %315 = sub i64 %314, 1
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %315) #6
  %317 = load double, ptr %316, align 8, !tbaa !9
  %318 = load i64, ptr %32, align 8, !tbaa !11
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %318) #6
  store double %317, ptr %319, align 8, !tbaa !9
  br label %320

320:                                              ; preds = %313
  %321 = load i64, ptr %32, align 8, !tbaa !11
  %322 = add i64 %321, 1
  store i64 %322, ptr %32, align 8, !tbaa !11
  br label %303, !llvm.loop !16

323:                                              ; preds = %308
  store i1 true, ptr %10, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %324 = load i1, ptr %10, align 1
  br i1 %324, label %332, label %331

325:                                              ; preds = %309, %252, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  br label %326

326:                                              ; preds = %325, %99
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  br label %327

327:                                              ; preds = %326, %95
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  br label %328

328:                                              ; preds = %327, %91
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  br label %329

329:                                              ; preds = %328, %87
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %330

330:                                              ; preds = %329, %83
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %333

331:                                              ; preds = %323
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %332

332:                                              ; preds = %331, %323
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void

333:                                              ; preds = %330, %79
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %334

334:                                              ; preds = %333, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %335

335:                                              ; preds = %334
  %336 = load ptr, ptr %12, align 8
  %337 = load i32, ptr %13, align 4
  %338 = insertvalue { ptr, i32 } poison, ptr %336, 0
  %339 = insertvalue { ptr, i32 } %338, i32 %337, 1
  resume { ptr, i32 } %339
}

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

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

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

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


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

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

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

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

declare noundef double @_ZN2NM10Gaussian1DEdd(double noundef, 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) #1

declare noundef i32 @_ZN3GSL24gsl_linalg_solve_tridiagERKSt6vectorIdSaIdEES4_S4_S4_RS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2NM21AdvectionAntiParallelESt6vectorIdSaIdEES2_d(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef %1, ptr noundef nonnull %2, double noundef %3) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca double, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %17, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %18 unwind label %70

18:                                               ; preds = %4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  %19 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %20 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  invoke void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %19, ptr %20, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %21 unwind label %72

21:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #6
  %23 = load double, ptr %22, align 8, !tbaa !5
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #6
  %25 = load double, ptr %24, align 8, !tbaa !5
  %26 = fsub double %23, %25
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %27 = add i64 %17, -2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %28 unwind label %74

28:                                               ; preds = %21
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %29 unwind label %76

29:                                               ; preds = %28
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %30 unwind label %78

30:                                               ; preds = %29
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  %31 = add i64 %17, -3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %32 unwind label %80

32:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %33 unwind label %82

33:                                               ; preds = %32
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  %34 = fmul double %3, 0x3FAA2A0230A51D3C
  %35 = fdiv double %34, %26
  %36 = add i64 %17, -1
  %37 = icmp ugt i64 %36, 1
  br i1 %37, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %33
  %38 = call double @llvm.fmuladd.f64(double %35, double 5.000000e-01, double 1.000000e+00)
  %39 = fmul double %35, -5.000000e-01
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1)
          to label %41 unwind label %.loopexit.split-lp

41:                                               ; preds = %.lr.ph
  %42 = load double, ptr %40, align 8, !tbaa !5
  %43 = fcmp ogt double %42, 1.000000e-10
  br i1 %43, label %61, label %44

44:                                               ; preds = %41
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1)
          to label %46 unwind label %.loopexit.split-lp

46:                                               ; preds = %44
  %47 = load double, ptr %45, align 8, !tbaa !5
  %48 = fcmp olt double %47, -1.000000e-10
  br i1 %48, label %55, label %49

49:                                               ; preds = %46
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
          to label %51 unwind label %.loopexit.split-lp

51:                                               ; preds = %49
  store double 1.000000e+00, ptr %50, align 8, !tbaa !5
  %.not76.peel = icmp eq i64 %27, 1
  br i1 %.not76.peel, label %.lr.ph94, label %52

52:                                               ; preds = %51
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0)
          to label %54 unwind label %.loopexit.split-lp

54:                                               ; preds = %52
  store double 0.000000e+00, ptr %53, align 8, !tbaa !5
  br label %67

55:                                               ; preds = %46
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
          to label %57 unwind label %.loopexit.split-lp

57:                                               ; preds = %55
  store double %38, ptr %56, align 8, !tbaa !5
  %.not78.peel = icmp eq i64 %27, 1
  br i1 %.not78.peel, label %.lr.ph94, label %58

58:                                               ; preds = %57
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0)
          to label %60 unwind label %.loopexit.split-lp

60:                                               ; preds = %58
  store double %39, ptr %59, align 8, !tbaa !5
  br label %67

61:                                               ; preds = %41
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
          to label %63 unwind label %.loopexit.split-lp

63:                                               ; preds = %61
  store double %38, ptr %62, align 8, !tbaa !5
  %.not80.peel = icmp eq i64 %27, 1
  br i1 %.not80.peel, label %.lr.ph94, label %64

64:                                               ; preds = %63
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0)
          to label %66 unwind label %.loopexit.split-lp

66:                                               ; preds = %64
  store double 0.000000e+00, ptr %65, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %66, %60, %54
  %exitcond.peel.not = icmp eq i64 %36, 2
  br i1 %exitcond.peel.not, label %.lr.ph94, label %.peel.next

.preheader89:                                     ; preds = %122
  br i1 %37, label %.lr.ph94, label %._crit_edge

.lr.ph94:                                         ; preds = %51, %57, %63, %67, %.preheader89
  %68 = call double @llvm.fmuladd.f64(double %35, double -5.000000e-01, double 1.000000e+00)
  %69 = fmul double %35, 5.000000e-01
  br label %125

70:                                               ; preds = %4
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %195

72:                                               ; preds = %18
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %194

74:                                               ; preds = %21
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %193

76:                                               ; preds = %28
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  br label %192

78:                                               ; preds = %29
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %191

80:                                               ; preds = %30
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #6
  br label %190

82:                                               ; preds = %32
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #6
  br label %189

.peel.next:                                       ; preds = %67, %122
  %.06591 = phi i64 [ %123, %122 ], [ 2, %67 ]
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06591)
          to label %85 unwind label %.loopexit

85:                                               ; preds = %.peel.next
  %86 = load double, ptr %84, align 8, !tbaa !5
  %87 = fcmp ogt double %86, 1.000000e-10
  br i1 %87, label %88, label %98

88:                                               ; preds = %85
  %89 = add i64 %.06591, -1
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %89)
          to label %91 unwind label %.loopexit

91:                                               ; preds = %88
  store double %38, ptr %90, align 8, !tbaa !5
  %92 = add i64 %.06591, -2
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %92)
          to label %94 unwind label %.loopexit

.loopexit:                                        ; preds = %.peel.next, %88, %91, %95, %98, %104, %106, %110, %113, %115, %119
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %188

.loopexit.split-lp:                               ; preds = %.lr.ph, %44, %49, %52, %55, %58, %61, %64
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %188

94:                                               ; preds = %91
  store double %39, ptr %93, align 8, !tbaa !5
  %.not80 = icmp eq i64 %.06591, %27
  br i1 %.not80, label %122, label %95

95:                                               ; preds = %94
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %89)
          to label %97 unwind label %.loopexit

97:                                               ; preds = %95
  store double 0.000000e+00, ptr %96, align 8, !tbaa !5
  br label %122

98:                                               ; preds = %85
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06591)
          to label %100 unwind label %.loopexit

100:                                              ; preds = %98
  %101 = load double, ptr %99, align 8, !tbaa !5
  %102 = fcmp olt double %101, -1.000000e-10
  %103 = add i64 %.06591, -1
  br i1 %102, label %104, label %113

104:                                              ; preds = %100
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %103)
          to label %106 unwind label %.loopexit

106:                                              ; preds = %104
  store double %38, ptr %105, align 8, !tbaa !5
  %107 = add i64 %.06591, -2
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %107)
          to label %109 unwind label %.loopexit

109:                                              ; preds = %106
  store double 0.000000e+00, ptr %108, align 8, !tbaa !5
  %.not78 = icmp eq i64 %.06591, %27
  br i1 %.not78, label %122, label %110

110:                                              ; preds = %109
  %111 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %103)
          to label %112 unwind label %.loopexit

112:                                              ; preds = %110
  store double %39, ptr %111, align 8, !tbaa !5
  br label %122

113:                                              ; preds = %100
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %103)
          to label %115 unwind label %.loopexit

115:                                              ; preds = %113
  store double 1.000000e+00, ptr %114, align 8, !tbaa !5
  %116 = add i64 %.06591, -2
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %116)
          to label %118 unwind label %.loopexit

118:                                              ; preds = %115
  store double 0.000000e+00, ptr %117, align 8, !tbaa !5
  %.not76 = icmp eq i64 %.06591, %27
  br i1 %.not76, label %122, label %119

119:                                              ; preds = %118
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %103)
          to label %121 unwind label %.loopexit

121:                                              ; preds = %119
  store double 0.000000e+00, ptr %120, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %97, %94, %118, %121, %109, %112
  %123 = add nuw i64 %.06591, 1
  %exitcond.not = icmp eq i64 %123, %36
  br i1 %exitcond.not, label %.preheader89, label %.peel.next, !llvm.loop !9

._crit_edge:                                      ; preds = %177, %33, %.preheader89
  %124 = invoke noundef i32 @_ZN3GSL24gsl_linalg_solve_tridiagERKSt6vectorIdSaIdEES4_S4_S4_RS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %.preheader unwind label %181

.preheader:                                       ; preds = %._crit_edge
  br i1 %37, label %.lr.ph96, label %._crit_edge97

125:                                              ; preds = %.lr.ph94, %177
  %.06493 = phi i64 [ 1, %.lr.ph94 ], [ %180, %177 ]
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06493)
          to label %127 unwind label %153

127:                                              ; preds = %125
  %128 = load double, ptr %126, align 8, !tbaa !5
  %129 = call double @llvm.fabs.f64(double %128)
  %130 = invoke noundef double @_ZN2NM10Gaussian1DEdd(double noundef %129, double noundef 1.000000e-01)
          to label %131 unwind label %153

131:                                              ; preds = %127
  %132 = add i64 %.06493, -1
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %132)
          to label %134 unwind label %153

134:                                              ; preds = %131
  %135 = fmul double %130, 2.000000e-01
  %136 = fmul double %135, %3
  %137 = fmul double %136, 5.000000e-01
  store double %137, ptr %133, align 8, !tbaa !5
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06493)
          to label %139 unwind label %153

139:                                              ; preds = %134
  %140 = load double, ptr %138, align 8, !tbaa !5
  %141 = fcmp ogt double %140, 1.000000e-10
  br i1 %141, label %142, label %155

142:                                              ; preds = %139
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %132)
          to label %144 unwind label %153

144:                                              ; preds = %142
  %145 = load double, ptr %143, align 8, !tbaa !5
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06493)
          to label %147 unwind label %153

147:                                              ; preds = %144
  %148 = load double, ptr %146, align 8, !tbaa !5
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %132)
          to label %150 unwind label %153

150:                                              ; preds = %147
  %151 = fmul double %68, %148
  %152 = call double @llvm.fmuladd.f64(double %69, double %145, double %151)
  br label %177

153:                                              ; preds = %174, %172, %166, %162, %160, %155, %147, %144, %142, %134, %131, %127, %125
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %188

155:                                              ; preds = %139
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.06493)
          to label %157 unwind label %153

157:                                              ; preds = %155
  %158 = load double, ptr %156, align 8, !tbaa !5
  %159 = fcmp olt double %158, -1.000000e-10
  br i1 %159, label %160, label %172

160:                                              ; preds = %157
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06493)
          to label %162 unwind label %153

162:                                              ; preds = %160
  %163 = load double, ptr %161, align 8, !tbaa !5
  %164 = add nuw i64 %.06493, 1
  %165 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %164)
          to label %166 unwind label %153

166:                                              ; preds = %162
  %167 = load double, ptr %165, align 8, !tbaa !5
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %132)
          to label %169 unwind label %153

169:                                              ; preds = %166
  %170 = fmul double %69, %167
  %171 = call double @llvm.fmuladd.f64(double %68, double %163, double %170)
  br label %177

172:                                              ; preds = %157
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.06493)
          to label %174 unwind label %153

174:                                              ; preds = %172
  %175 = load double, ptr %173, align 8, !tbaa !5
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %132)
          to label %177 unwind label %153

177:                                              ; preds = %174, %169, %150
  %.sink = phi ptr [ %168, %169 ], [ %149, %150 ], [ %176, %174 ]
  %.sink107 = phi double [ %171, %169 ], [ %152, %150 ], [ %175, %174 ]
  %178 = load double, ptr %.sink, align 8, !tbaa !5
  %179 = fadd double %.sink107, %178
  store double %179, ptr %.sink, align 8, !tbaa !5
  %180 = add nuw i64 %.06493, 1
  %exitcond99.not = icmp eq i64 %180, %36
  br i1 %exitcond99.not, label %._crit_edge, label %125, !llvm.loop !12

._crit_edge97:                                    ; preds = %.lr.ph96, %.preheader
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  ret void

181:                                              ; preds = %._crit_edge
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %188

.lr.ph96:                                         ; preds = %.preheader, %.lr.ph96
  %.095 = phi i64 [ %187, %.lr.ph96 ], [ 1, %.preheader ]
  %183 = add i64 %.095, -1
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %183) #6
  %185 = load double, ptr %184, align 8, !tbaa !5
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.095) #6
  store double %185, ptr %186, align 8, !tbaa !5
  %187 = add nuw i64 %.095, 1
  %exitcond100.not = icmp eq i64 %187, %36
  br i1 %exitcond100.not, label %._crit_edge97, label %.lr.ph96, !llvm.loop !13

188:                                              ; preds = %.loopexit, %.loopexit.split-lp, %181, %153
  %.pn = phi { ptr, i32 } [ %154, %153 ], [ %182, %181 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %189

189:                                              ; preds = %188, %82
  %.pn.pn = phi { ptr, i32 } [ %.pn, %188 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %190

190:                                              ; preds = %189, %80
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %189 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %191

191:                                              ; preds = %190, %78
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %190 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %192

192:                                              ; preds = %191, %76
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %191 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %193

193:                                              ; preds = %192, %74
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %192 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %194

194:                                              ; preds = %193, %72
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %193 ], [ %73, %72 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %195

195:                                              ; preds = %194, %70
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %194 ], [ %71, %70 ]
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass