; LLVM IR from carmeloevoli/NumericalMethodsGSSI :: src/examples/galaxy.ll (ZN2NM19fullSpatialEvolutorESt6vectorIdSaIdEES2_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: nounwind
declare double @pow(double noundef, double noundef) #5

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

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

; 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 @_ZN2NM19fullSpatialEvolutorESt6vectorIdSaIdEES2_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 double, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca double, align 8
  %33 = 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) #7
  %34 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store i64 %34, ptr %9, align 8, !tbaa !11
  store i1 false, ptr %10, align 1
  %35 = load i64, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %36 unwind label %83

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

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

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

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

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

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

65:                                               ; preds = %62
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %66 = load double, ptr %8, align 8, !tbaa !9
  %67 = fmul double 2.500000e-01, %66
  %68 = fmul double %67, 0x3FAA2A0230A51D3C
  %69 = load double, ptr %17, align 8, !tbaa !9
  %70 = fdiv double %68, %69
  store double %70, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %71 = load double, ptr %8, align 8, !tbaa !9
  %72 = fmul double 5.000000e-01, %71
  %73 = fmul double %72, 0x3FB96F599058D6E8
  %74 = load double, ptr %17, align 8, !tbaa !9
  %75 = call double @pow(double noundef %74, double noundef 2.000000e+00) #7
  %76 = fdiv double %73, %75
  store double %76, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store i64 1, ptr %30, align 8, !tbaa !11
  br label %77

77:                                               ; preds = %222, %65
  %78 = load i64, ptr %30, align 8, !tbaa !11
  %79 = load i64, ptr %9, align 8, !tbaa !11
  %80 = sub i64 %79, 1
  %81 = icmp ult i64 %78, %80
  br i1 %81, label %111, label %82

82:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %225

83:                                               ; preds = %4
  %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) %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %393

87:                                               ; preds = %36
  %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 @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %392

91:                                               ; preds = %45
  %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) %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %389

95:                                               ; preds = %53
  %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) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %388

99:                                               ; preds = %56
  %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) %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %387

103:                                              ; preds = %59
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %12, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  br label %386

107:                                              ; preds = %62
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #7
  br label %385

111:                                              ; preds = %77
  %112 = load i64, ptr %30, align 8, !tbaa !11
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %112)
          to label %114 unwind label %135

114:                                              ; preds = %111
  %115 = load double, ptr %113, align 8, !tbaa !9
  %116 = fcmp ogt double %115, 1.000000e-10
  br i1 %116, label %117, label %153

117:                                              ; preds = %114
  %118 = load double, ptr %29, align 8, !tbaa !9
  %119 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %118, double 1.000000e+00)
  %120 = load i64, ptr %30, align 8, !tbaa !11
  %121 = sub i64 %120, 1
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %121)
          to label %123 unwind label %135

123:                                              ; preds = %117
  store double %119, ptr %122, align 8, !tbaa !9
  %124 = load i64, ptr %30, align 8, !tbaa !11
  %125 = icmp ne i64 %124, 1
  br i1 %125, label %126, label %139

126:                                              ; preds = %123
  %127 = load double, ptr %28, align 8, !tbaa !9
  %128 = fneg double %127
  %129 = load double, ptr %29, align 8, !tbaa !9
  %130 = fsub double %128, %129
  %131 = load i64, ptr %30, align 8, !tbaa !11
  %132 = sub i64 %131, 2
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %132)
          to label %134 unwind label %135

134:                                              ; preds = %126
  store double %130, ptr %133, align 8, !tbaa !9
  br label %139

135:                                              ; preds = %212, %200, %191, %181, %168, %159, %153, %144, %126, %117, %111
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %12, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %384

139:                                              ; preds = %134, %123
  %140 = load i64, ptr %30, align 8, !tbaa !11
  %141 = load i64, ptr %9, align 8, !tbaa !11
  %142 = sub i64 %141, 2
  %143 = icmp ne i64 %140, %142
  br i1 %143, label %144, label %152

144:                                              ; preds = %139
  %145 = load double, ptr %28, align 8, !tbaa !9
  %146 = load double, ptr %29, align 8, !tbaa !9
  %147 = fsub double %145, %146
  %148 = load i64, ptr %30, align 8, !tbaa !11
  %149 = sub i64 %148, 1
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %149)
          to label %151 unwind label %135

151:                                              ; preds = %144
  store double %147, ptr %150, align 8, !tbaa !9
  br label %152

152:                                              ; preds = %151, %139
  br label %221

153:                                              ; preds = %114
  %154 = load i64, ptr %30, align 8, !tbaa !11
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %154)
          to label %156 unwind label %135

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

159:                                              ; preds = %156
  %160 = load double, ptr %29, align 8, !tbaa !9
  %161 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %160, double 1.000000e+00)
  %162 = load i64, ptr %30, align 8, !tbaa !11
  %163 = sub i64 %162, 1
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %163)
          to label %165 unwind label %135

165:                                              ; preds = %159
  store double %161, ptr %164, align 8, !tbaa !9
  %166 = load i64, ptr %30, align 8, !tbaa !11
  %167 = icmp ne i64 %166, 1
  br i1 %167, label %168, label %176

168:                                              ; preds = %165
  %169 = load double, ptr %28, align 8, !tbaa !9
  %170 = load double, ptr %29, align 8, !tbaa !9
  %171 = fsub double %169, %170
  %172 = load i64, ptr %30, align 8, !tbaa !11
  %173 = sub i64 %172, 2
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %173)
          to label %175 unwind label %135

175:                                              ; preds = %168
  store double %171, ptr %174, align 8, !tbaa !9
  br label %176

176:                                              ; preds = %175, %165
  %177 = load i64, ptr %30, align 8, !tbaa !11
  %178 = load i64, ptr %9, align 8, !tbaa !11
  %179 = sub i64 %178, 2
  %180 = icmp ne i64 %177, %179
  br i1 %180, label %181, label %190

181:                                              ; preds = %176
  %182 = load double, ptr %28, align 8, !tbaa !9
  %183 = fneg double %182
  %184 = load double, ptr %29, align 8, !tbaa !9
  %185 = fsub double %183, %184
  %186 = load i64, ptr %30, align 8, !tbaa !11
  %187 = sub i64 %186, 1
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %187)
          to label %189 unwind label %135

189:                                              ; preds = %181
  store double %185, ptr %188, align 8, !tbaa !9
  br label %190

190:                                              ; preds = %189, %176
  br label %220

191:                                              ; preds = %156
  %192 = load double, ptr %29, align 8, !tbaa !9
  %193 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %192, double 1.000000e+00)
  %194 = load i64, ptr %30, align 8, !tbaa !11
  %195 = sub i64 %194, 1
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %195)
          to label %197 unwind label %135

197:                                              ; preds = %191
  store double %193, ptr %196, align 8, !tbaa !9
  %198 = load i64, ptr %30, align 8, !tbaa !11
  %199 = icmp ne i64 %198, 1
  br i1 %199, label %200, label %207

200:                                              ; preds = %197
  %201 = load double, ptr %29, align 8, !tbaa !9
  %202 = fneg double %201
  %203 = load i64, ptr %30, align 8, !tbaa !11
  %204 = sub i64 %203, 2
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %204)
          to label %206 unwind label %135

206:                                              ; preds = %200
  store double %202, ptr %205, align 8, !tbaa !9
  br label %207

207:                                              ; preds = %206, %197
  %208 = load i64, ptr %30, align 8, !tbaa !11
  %209 = load i64, ptr %9, align 8, !tbaa !11
  %210 = sub i64 %209, 2
  %211 = icmp ne i64 %208, %210
  br i1 %211, label %212, label %219

212:                                              ; preds = %207
  %213 = load double, ptr %29, align 8, !tbaa !9
  %214 = fneg double %213
  %215 = load i64, ptr %30, align 8, !tbaa !11
  %216 = sub i64 %215, 1
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %216)
          to label %218 unwind label %135

218:                                              ; preds = %212
  store double %214, ptr %217, align 8, !tbaa !9
  br label %219

219:                                              ; preds = %218, %207
  br label %220

220:                                              ; preds = %219, %190
  br label %221

221:                                              ; preds = %220, %152
  br label %222

222:                                              ; preds = %221
  %223 = load i64, ptr %30, align 8, !tbaa !11
  %224 = add i64 %223, 1
  store i64 %224, ptr %30, align 8, !tbaa !11
  br label %77, !llvm.loop !13

225:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store i64 1, ptr %31, align 8, !tbaa !11
  br label %226

226:                                              ; preds = %356, %225
  %227 = load i64, ptr %31, align 8, !tbaa !11
  %228 = load i64, ptr %9, align 8, !tbaa !11
  %229 = sub i64 %228, 1
  %230 = icmp ult i64 %227, %229
  br i1 %230, label %232, label %231

231:                                              ; preds = %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %359

232:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %233 = load i64, ptr %31, align 8, !tbaa !11
  %234 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %233)
          to label %235 unwind label %279

235:                                              ; preds = %232
  %236 = load double, ptr %234, align 8, !tbaa !9
  %237 = call double @llvm.fabs.f64(double %236)
  %238 = invoke noundef double @_ZN2NM10Gaussian1DEdd(double noundef %237, double noundef 1.000000e-01)
          to label %239 unwind label %279

239:                                              ; preds = %235
  %240 = fmul double 2.000000e-01, %238
  store double %240, ptr %32, align 8, !tbaa !9
  %241 = load double, ptr %8, align 8, !tbaa !9
  %242 = load double, ptr %32, align 8, !tbaa !9
  %243 = fmul double %241, %242
  %244 = load i64, ptr %31, align 8, !tbaa !11
  %245 = sub i64 %244, 1
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %245)
          to label %247 unwind label %279

247:                                              ; preds = %239
  store double %243, ptr %246, align 8, !tbaa !9
  %248 = load i64, ptr %31, align 8, !tbaa !11
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %248)
          to label %250 unwind label %279

250:                                              ; preds = %247
  %251 = load double, ptr %249, align 8, !tbaa !9
  %252 = fcmp ogt double %251, 1.000000e-10
  br i1 %252, label %253, label %283

253:                                              ; preds = %250
  %254 = load double, ptr %28, align 8, !tbaa !9
  %255 = load i64, ptr %31, align 8, !tbaa !11
  %256 = sub i64 %255, 1
  %257 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %256)
          to label %258 unwind label %279

258:                                              ; preds = %253
  %259 = load double, ptr %257, align 8, !tbaa !9
  %260 = load i64, ptr %31, align 8, !tbaa !11
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %260)
          to label %262 unwind label %279

262:                                              ; preds = %258
  %263 = load double, ptr %261, align 8, !tbaa !9
  %264 = call double @llvm.fmuladd.f64(double %254, double %259, double %263)
  %265 = load double, ptr %28, align 8, !tbaa !9
  %266 = load i64, ptr %31, align 8, !tbaa !11
  %267 = add i64 %266, 1
  %268 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %267)
          to label %269 unwind label %279

269:                                              ; preds = %262
  %270 = load double, ptr %268, align 8, !tbaa !9
  %271 = fneg double %265
  %272 = call double @llvm.fmuladd.f64(double %271, double %270, double %264)
  %273 = load i64, ptr %31, align 8, !tbaa !11
  %274 = sub i64 %273, 1
  %275 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %274)
          to label %276 unwind label %279

276:                                              ; preds = %269
  %277 = load double, ptr %275, align 8, !tbaa !9
  %278 = fadd double %277, %272
  store double %278, ptr %275, align 8, !tbaa !9
  br label %327

279:                                              ; preds = %347, %338, %332, %327, %318, %315, %306, %299, %295, %289, %283, %269, %262, %258, %253, %247, %239, %235, %232
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %12, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %384

283:                                              ; preds = %250
  %284 = load i64, ptr %31, align 8, !tbaa !11
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %284)
          to label %286 unwind label %279

286:                                              ; preds = %283
  %287 = load double, ptr %285, align 8, !tbaa !9
  %288 = fcmp olt double %287, -1.000000e-10
  br i1 %288, label %289, label %315

289:                                              ; preds = %286
  %290 = load double, ptr %28, align 8, !tbaa !9
  %291 = fneg double %290
  %292 = load i64, ptr %31, align 8, !tbaa !11
  %293 = sub i64 %292, 1
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %293)
          to label %295 unwind label %279

295:                                              ; preds = %289
  %296 = load double, ptr %294, align 8, !tbaa !9
  %297 = load i64, ptr %31, align 8, !tbaa !11
  %298 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %297)
          to label %299 unwind label %279

299:                                              ; preds = %295
  %300 = load double, ptr %298, align 8, !tbaa !9
  %301 = call double @llvm.fmuladd.f64(double %291, double %296, double %300)
  %302 = load double, ptr %28, align 8, !tbaa !9
  %303 = load i64, ptr %31, align 8, !tbaa !11
  %304 = add i64 %303, 1
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %304)
          to label %306 unwind label %279

306:                                              ; preds = %299
  %307 = load double, ptr %305, align 8, !tbaa !9
  %308 = call double @llvm.fmuladd.f64(double %302, double %307, double %301)
  %309 = load i64, ptr %31, align 8, !tbaa !11
  %310 = sub i64 %309, 1
  %311 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %310)
          to label %312 unwind label %279

312:                                              ; preds = %306
  %313 = load double, ptr %311, align 8, !tbaa !9
  %314 = fadd double %313, %308
  store double %314, ptr %311, align 8, !tbaa !9
  br label %326

315:                                              ; preds = %286
  %316 = load i64, ptr %31, align 8, !tbaa !11
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %316)
          to label %318 unwind label %279

318:                                              ; preds = %315
  %319 = load double, ptr %317, align 8, !tbaa !9
  %320 = load i64, ptr %31, align 8, !tbaa !11
  %321 = sub i64 %320, 1
  %322 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %321)
          to label %323 unwind label %279

323:                                              ; preds = %318
  %324 = load double, ptr %322, align 8, !tbaa !9
  %325 = fadd double %324, %319
  store double %325, ptr %322, align 8, !tbaa !9
  br label %326

326:                                              ; preds = %323, %312
  br label %327

327:                                              ; preds = %326, %276
  %328 = load double, ptr %29, align 8, !tbaa !9
  %329 = load i64, ptr %31, align 8, !tbaa !11
  %330 = add i64 %329, 1
  %331 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %330)
          to label %332 unwind label %279

332:                                              ; preds = %327
  %333 = load double, ptr %331, align 8, !tbaa !9
  %334 = load double, ptr %29, align 8, !tbaa !9
  %335 = fmul double 2.000000e+00, %334
  %336 = load i64, ptr %31, align 8, !tbaa !11
  %337 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %336)
          to label %338 unwind label %279

338:                                              ; preds = %332
  %339 = load double, ptr %337, align 8, !tbaa !9
  %340 = fmul double %335, %339
  %341 = fneg double %340
  %342 = call double @llvm.fmuladd.f64(double %328, double %333, double %341)
  %343 = load double, ptr %29, align 8, !tbaa !9
  %344 = load i64, ptr %31, align 8, !tbaa !11
  %345 = sub i64 %344, 1
  %346 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %345)
          to label %347 unwind label %279

347:                                              ; preds = %338
  %348 = load double, ptr %346, align 8, !tbaa !9
  %349 = call double @llvm.fmuladd.f64(double %343, double %348, double %342)
  %350 = load i64, ptr %31, align 8, !tbaa !11
  %351 = sub i64 %350, 1
  %352 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %351)
          to label %353 unwind label %279

353:                                              ; preds = %347
  %354 = load double, ptr %352, align 8, !tbaa !9
  %355 = fadd double %354, %349
  store double %355, ptr %352, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %356

356:                                              ; preds = %353
  %357 = load i64, ptr %31, align 8, !tbaa !11
  %358 = add i64 %357, 1
  store i64 %358, ptr %31, align 8, !tbaa !11
  br label %226, !llvm.loop !15

359:                                              ; preds = %231
  %360 = 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 %361 unwind label %368

361:                                              ; preds = %359
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 1, ptr %33, align 8, !tbaa !11
  br label %362

362:                                              ; preds = %379, %361
  %363 = load i64, ptr %33, align 8, !tbaa !11
  %364 = load i64, ptr %9, align 8, !tbaa !11
  %365 = sub i64 %364, 1
  %366 = icmp ult i64 %363, %365
  br i1 %366, label %372, label %367

367:                                              ; preds = %362
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %382

368:                                              ; preds = %359
  %369 = landingpad { ptr, i32 }
          cleanup
  %370 = extractvalue { ptr, i32 } %369, 0
  store ptr %370, ptr %12, align 8
  %371 = extractvalue { ptr, i32 } %369, 1
  store i32 %371, ptr %13, align 4
  br label %384

372:                                              ; preds = %362
  %373 = load i64, ptr %33, align 8, !tbaa !11
  %374 = sub i64 %373, 1
  %375 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %374) #7
  %376 = load double, ptr %375, align 8, !tbaa !9
  %377 = load i64, ptr %33, align 8, !tbaa !11
  %378 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %377) #7
  store double %376, ptr %378, align 8, !tbaa !9
  br label %379

379:                                              ; preds = %372
  %380 = load i64, ptr %33, align 8, !tbaa !11
  %381 = add i64 %380, 1
  store i64 %381, ptr %33, align 8, !tbaa !11
  br label %362, !llvm.loop !16

382:                                              ; preds = %367
  store i1 true, ptr %10, align 1
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %383 = load i1, ptr %10, align 1
  br i1 %383, label %391, label %390

384:                                              ; preds = %368, %279, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  br label %385

385:                                              ; preds = %384, %107
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  br label %386

386:                                              ; preds = %385, %103
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #7
  br label %387

387:                                              ; preds = %386, %99
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %388

388:                                              ; preds = %387, %95
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  br label %389

389:                                              ; preds = %388, %91
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %392

390:                                              ; preds = %382
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %391

391:                                              ; preds = %390, %382
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void

392:                                              ; preds = %389, %87
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %393

393:                                              ; preds = %392, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %394

394:                                              ; preds = %393
  %395 = load ptr, ptr %12, align 8
  %396 = load i32, ptr %13, align 4
  %397 = insertvalue { ptr, i32 } poison, ptr %395, 0
  %398 = insertvalue { ptr, i32 } %397, i32 %396, 1
  resume { ptr, i32 } %398
}

; 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 = { 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 = { "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 }

!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 @_ZN2NM19fullSpatialEvolutorESt6vectorIdSaIdEES2_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 %77

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

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

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

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

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

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

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, 2.500000e-01
  %35 = fmul double %34, 0x3FAA2A0230A51D3C
  %36 = fdiv double %35, %26
  %37 = fmul double %3, 5.000000e-01
  %38 = fmul double %37, 0x3FB96F599058D6E8
  %square = fmul double %26, %26
  %39 = fdiv double %38, %square
  %40 = add i64 %17, -1
  %41 = icmp ugt i64 %40, 1
  br i1 %41, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %33
  %42 = call double @llvm.fmuladd.f64(double %39, double 2.000000e+00, double 1.000000e+00)
  %43 = fneg double %39
  %44 = fsub double %36, %39
  %45 = fneg double %36
  %46 = fsub double %45, %39
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1)
          to label %48 unwind label %.loopexit.split-lp

48:                                               ; preds = %.lr.ph
  %49 = load double, ptr %47, align 8, !tbaa !5
  %50 = fcmp ogt double %49, 1.000000e-10
  br i1 %50, label %68, label %51

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

53:                                               ; preds = %51
  %54 = load double, ptr %52, align 8, !tbaa !5
  %55 = fcmp olt double %54, -1.000000e-10
  br i1 %55, label %62, label %56

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

58:                                               ; preds = %56
  store double %42, ptr %57, align 8, !tbaa !5
  %.not96.peel = icmp eq i64 %27, 1
  br i1 %.not96.peel, label %.lr.ph114, label %59

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

61:                                               ; preds = %59
  store double %43, ptr %60, align 8, !tbaa !5
  br label %74

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

64:                                               ; preds = %62
  store double %42, ptr %63, align 8, !tbaa !5
  %.not98.peel = icmp eq i64 %27, 1
  br i1 %.not98.peel, label %.lr.ph114, label %65

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

67:                                               ; preds = %65
  store double %46, ptr %66, align 8, !tbaa !5
  br label %74

68:                                               ; preds = %48
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0)
          to label %70 unwind label %.loopexit.split-lp

70:                                               ; preds = %68
  store double %42, ptr %69, align 8, !tbaa !5
  %.not100.peel = icmp eq i64 %27, 1
  br i1 %.not100.peel, label %.lr.ph114, label %71

71:                                               ; preds = %70
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef 0)
          to label %73 unwind label %.loopexit.split-lp

73:                                               ; preds = %71
  store double %44, ptr %72, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %73, %67, %61
  %exitcond.peel.not = icmp eq i64 %40, 2
  br i1 %exitcond.peel.not, label %.lr.ph114, label %.peel.next

.preheader109:                                    ; preds = %129
  br i1 %41, label %.lr.ph114, label %._crit_edge

.lr.ph114:                                        ; preds = %58, %64, %70, %74, %.preheader109
  %75 = fneg double %36
  %76 = fmul double %39, -2.000000e+00
  br label %132

77:                                               ; preds = %4
  %78 = 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 %228

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

81:                                               ; preds = %21
  %82 = 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 %226

83:                                               ; preds = %28
  %84 = 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 %225

85:                                               ; preds = %29
  %86 = 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 %224

87:                                               ; preds = %30
  %88 = 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 %223

89:                                               ; preds = %32
  %90 = 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 %222

.peel.next:                                       ; preds = %74, %129
  %.085111 = phi i64 [ %130, %129 ], [ 2, %74 ]
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.085111)
          to label %92 unwind label %.loopexit

92:                                               ; preds = %.peel.next
  %93 = load double, ptr %91, align 8, !tbaa !5
  %94 = fcmp ogt double %93, 1.000000e-10
  br i1 %94, label %95, label %105

95:                                               ; preds = %92
  %96 = add i64 %.085111, -1
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %96)
          to label %98 unwind label %.loopexit

98:                                               ; preds = %95
  store double %42, ptr %97, align 8, !tbaa !5
  %99 = add i64 %.085111, -2
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %99)
          to label %101 unwind label %.loopexit

.loopexit:                                        ; preds = %.peel.next, %95, %98, %102, %105, %111, %113, %117, %120, %122, %126
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %221

.loopexit.split-lp:                               ; preds = %.lr.ph, %51, %56, %59, %62, %65, %68, %71
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %221

101:                                              ; preds = %98
  store double %46, ptr %100, align 8, !tbaa !5
  %.not100 = icmp eq i64 %.085111, %27
  br i1 %.not100, label %129, label %102

102:                                              ; preds = %101
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %96)
          to label %104 unwind label %.loopexit

104:                                              ; preds = %102
  store double %44, ptr %103, align 8, !tbaa !5
  br label %129

105:                                              ; preds = %92
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.085111)
          to label %107 unwind label %.loopexit

107:                                              ; preds = %105
  %108 = load double, ptr %106, align 8, !tbaa !5
  %109 = fcmp olt double %108, -1.000000e-10
  %110 = add i64 %.085111, -1
  br i1 %109, label %111, label %120

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

113:                                              ; preds = %111
  store double %42, ptr %112, align 8, !tbaa !5
  %114 = add i64 %.085111, -2
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %114)
          to label %116 unwind label %.loopexit

116:                                              ; preds = %113
  store double %44, ptr %115, align 8, !tbaa !5
  %.not98 = icmp eq i64 %.085111, %27
  br i1 %.not98, label %129, label %117

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

119:                                              ; preds = %117
  store double %46, ptr %118, align 8, !tbaa !5
  br label %129

120:                                              ; preds = %107
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %110)
          to label %122 unwind label %.loopexit

122:                                              ; preds = %120
  store double %42, ptr %121, align 8, !tbaa !5
  %123 = add i64 %.085111, -2
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %123)
          to label %125 unwind label %.loopexit

125:                                              ; preds = %122
  store double %43, ptr %124, align 8, !tbaa !5
  %.not96 = icmp eq i64 %.085111, %27
  br i1 %.not96, label %129, label %126

126:                                              ; preds = %125
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %110)
          to label %128 unwind label %.loopexit

128:                                              ; preds = %126
  store double %43, ptr %127, align 8, !tbaa !5
  br label %129

129:                                              ; preds = %104, %101, %125, %128, %116, %119
  %130 = add nuw i64 %.085111, 1
  %exitcond.not = icmp eq i64 %130, %40
  br i1 %exitcond.not, label %.preheader109, label %.peel.next, !llvm.loop !9

._crit_edge:                                      ; preds = %208, %33, %.preheader109
  %131 = 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 %214

.preheader:                                       ; preds = %._crit_edge
  br i1 %41, label %.lr.ph116, label %._crit_edge117

132:                                              ; preds = %.lr.ph114, %208
  %.084113 = phi i64 [ 1, %.lr.ph114 ], [ %.pre-phi, %208 ]
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.084113)
          to label %134 unwind label %165

134:                                              ; preds = %132
  %135 = load double, ptr %133, align 8, !tbaa !5
  %136 = call double @llvm.fabs.f64(double %135)
  %137 = invoke noundef double @_ZN2NM10Gaussian1DEdd(double noundef %136, double noundef 1.000000e-01)
          to label %138 unwind label %165

138:                                              ; preds = %134
  %139 = add i64 %.084113, -1
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %139)
          to label %141 unwind label %165

141:                                              ; preds = %138
  %142 = fmul double %137, 2.000000e-01
  %143 = fmul double %142, %3
  store double %143, ptr %140, align 8, !tbaa !5
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.084113)
          to label %145 unwind label %165

145:                                              ; preds = %141
  %146 = load double, ptr %144, align 8, !tbaa !5
  %147 = fcmp ogt double %146, 1.000000e-10
  br i1 %147, label %148, label %167

148:                                              ; preds = %145
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %139)
          to label %150 unwind label %165

150:                                              ; preds = %148
  %151 = load double, ptr %149, align 8, !tbaa !5
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.084113)
          to label %153 unwind label %165

153:                                              ; preds = %150
  %154 = load double, ptr %152, align 8, !tbaa !5
  %155 = add nuw i64 %.084113, 1
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %155)
          to label %157 unwind label %165

157:                                              ; preds = %153
  %158 = load double, ptr %156, align 8, !tbaa !5
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %139)
          to label %160 unwind label %165

160:                                              ; preds = %157
  %161 = call double @llvm.fmuladd.f64(double %36, double %151, double %154)
  %162 = call double @llvm.fmuladd.f64(double %75, double %158, double %161)
  %163 = load double, ptr %159, align 8, !tbaa !5
  %164 = fadd double %162, %163
  store double %164, ptr %159, align 8, !tbaa !5
  br label %197

165:                                              ; preds = %205, %202, %199, %197, %191, %189, %181, %177, %174, %172, %167, %157, %153, %150, %148, %141, %138, %134, %132
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %221

167:                                              ; preds = %145
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.084113)
          to label %169 unwind label %165

169:                                              ; preds = %167
  %170 = load double, ptr %168, align 8, !tbaa !5
  %171 = fcmp olt double %170, -1.000000e-10
  br i1 %171, label %172, label %189

172:                                              ; preds = %169
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %139)
          to label %174 unwind label %165

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) %2, i64 noundef %.084113)
          to label %177 unwind label %165

177:                                              ; preds = %174
  %178 = load double, ptr %176, align 8, !tbaa !5
  %179 = add nuw i64 %.084113, 1
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %179)
          to label %181 unwind label %165

181:                                              ; preds = %177
  %182 = load double, ptr %180, align 8, !tbaa !5
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %139)
          to label %184 unwind label %165

184:                                              ; preds = %181
  %185 = call double @llvm.fmuladd.f64(double %75, double %175, double %178)
  %186 = call double @llvm.fmuladd.f64(double %36, double %182, double %185)
  %187 = load double, ptr %183, align 8, !tbaa !5
  %188 = fadd double %186, %187
  store double %188, ptr %183, align 8, !tbaa !5
  br label %197

189:                                              ; preds = %169
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.084113)
          to label %191 unwind label %165

191:                                              ; preds = %189
  %192 = load double, ptr %190, align 8, !tbaa !5
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %139)
          to label %194 unwind label %165

194:                                              ; preds = %191
  %195 = load double, ptr %193, align 8, !tbaa !5
  %196 = fadd double %192, %195
  store double %196, ptr %193, align 8, !tbaa !5
  %.pre = add nuw i64 %.084113, 1
  br label %197

197:                                              ; preds = %184, %194, %160
  %.pre-phi = phi i64 [ %179, %184 ], [ %.pre, %194 ], [ %155, %160 ]
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.pre-phi)
          to label %199 unwind label %165

199:                                              ; preds = %197
  %200 = load double, ptr %198, align 8, !tbaa !5
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.084113)
          to label %202 unwind label %165

202:                                              ; preds = %199
  %203 = load double, ptr %201, align 8, !tbaa !5
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %139)
          to label %205 unwind label %165

205:                                              ; preds = %202
  %206 = load double, ptr %204, align 8, !tbaa !5
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %139)
          to label %208 unwind label %165

208:                                              ; preds = %205
  %209 = fmul double %76, %203
  %210 = call double @llvm.fmuladd.f64(double %39, double %200, double %209)
  %211 = call double @llvm.fmuladd.f64(double %39, double %206, double %210)
  %212 = load double, ptr %207, align 8, !tbaa !5
  %213 = fadd double %211, %212
  store double %213, ptr %207, align 8, !tbaa !5
  %exitcond119.not = icmp eq i64 %.pre-phi, %40
  br i1 %exitcond119.not, label %._crit_edge, label %132, !llvm.loop !12

._crit_edge117:                                   ; preds = %.lr.ph116, %.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

214:                                              ; preds = %._crit_edge
  %215 = landingpad { ptr, i32 }
          cleanup
  br label %221

.lr.ph116:                                        ; preds = %.preheader, %.lr.ph116
  %.0115 = phi i64 [ %220, %.lr.ph116 ], [ 1, %.preheader ]
  %216 = add i64 %.0115, -1
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %216) #6
  %218 = load double, ptr %217, align 8, !tbaa !5
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %.0115) #6
  store double %218, ptr %219, align 8, !tbaa !5
  %220 = add nuw i64 %.0115, 1
  %exitcond120.not = icmp eq i64 %220, %40
  br i1 %exitcond120.not, label %._crit_edge117, label %.lr.ph116, !llvm.loop !13

221:                                              ; preds = %.loopexit, %.loopexit.split-lp, %214, %165
  %.pn = phi { ptr, i32 } [ %166, %165 ], [ %215, %214 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %222

222:                                              ; preds = %221, %89
  %.pn.pn = phi { ptr, i32 } [ %.pn, %221 ], [ %90, %89 ]
  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 %223

223:                                              ; preds = %222, %87
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %222 ], [ %88, %87 ]
  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 %224

224:                                              ; preds = %223, %85
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %223 ], [ %86, %85 ]
  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 %225

225:                                              ; preds = %224, %83
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %224 ], [ %84, %83 ]
  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 %226

226:                                              ; preds = %225, %81
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %225 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %227

227:                                              ; preds = %226, %79
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %226 ], [ %80, %79 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %228

228:                                              ; preds = %227, %77
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %227 ], [ %78, %77 ]
  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