; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src/ap.ll (ZN6alglib17ae_vector_wrapperC2EPKcl)

; 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<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"class.alglib::complex" = type { double, double }
%"class.alglib::ae_vector_wrapper" = type <{ ptr, ptr, %"struct.alglib_impl::ae_vector", i8, [7 x i8] }>
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::ae_complex" = type { double, double }

@_ZTIN6alglib8ap_errorE = external dso_local constant { ptr, ptr }, align 8
@_ZTVN6alglib17ae_vector_wrapperE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@.str.60 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [3 x i8], align 1

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14ae_state_clearEPNS_8ae_stateE(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl7ae_freeEPv(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl13ae_state_initEPNS_8ae_stateE(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl23ae_state_set_break_jumpEPNS_8ae_stateEPA1_13__jmp_buf_tag(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #5

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

declare ptr @__cxa_begin_catch(ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6alglib17ae_vector_wrapperC2EPKcl(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca [1 x %struct.__jmp_buf_tag], align 16
  %13 = alloca %"struct.alglib_impl::ae_state", align 8
  %14 = alloca %"class.alglib::complex", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %15 = load ptr, ptr %4, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN6alglib17ae_vector_wrapperE, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIPKcSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = invoke noundef ptr @_ZN6alglib13filter_spacesEPKc(ptr noundef %17)
          to label %19 unwind label %25

19:                                               ; preds = %3
  store ptr %18, ptr %9, align 8, !tbaa !5
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %33

22:                                               ; preds = %19
  %23 = call ptr @__cxa_allocate_exception(i64 32) #7
  invoke void @_ZN6alglib8ap_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef @.str.60)
          to label %24 unwind label %29

24:                                               ; preds = %22
  invoke void @__cxa_throw(ptr %23, ptr @_ZTIN6alglib8ap_errorE, ptr @_ZN6alglib8ap_errorD2Ev) #8
          to label %175 unwind label %25

25:                                               ; preds = %24, %3
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %10, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %11, align 4
  br label %166

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %10, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %11, align 4
  call void @__cxa_free_exception(ptr %23) #7
  br label %166

33:                                               ; preds = %19
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN6alglib17str_vector_createEPKcbPSt6vectorIS1_SaIS1_EE(ptr noundef %34, i1 noundef zeroext true, ptr noundef %7)
          to label %35 unwind label %45

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 200, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %13) #7
  invoke void @_ZN11alglib_impl13ae_state_initEPNS_8ae_stateE(ptr noundef %13)
          to label %36 unwind label %49

36:                                               ; preds = %35
  %37 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], ptr %12, i64 0, i64 0
  %38 = call i32 @_setjmp(ptr noundef %37) #9
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %57

40:                                               ; preds = %36
  %41 = call ptr @__cxa_allocate_exception(i64 32) #7
  %42 = getelementptr inbounds %"struct.alglib_impl::ae_state", ptr %13, i32 0, i32 8
  %43 = load volatile ptr, ptr %42, align 8, !tbaa !13
  invoke void @_ZN6alglib8ap_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr noundef %43)
          to label %44 unwind label %53

44:                                               ; preds = %40
  invoke void @__cxa_throw(ptr %41, ptr @_ZTIN6alglib8ap_errorE, ptr @_ZN6alglib8ap_errorD2Ev) #8
          to label %175 unwind label %49

45:                                               ; preds = %108, %93, %76, %33
  %46 = landingpad { ptr, i32 }
          catch ptr null
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %10, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %11, align 4
  br label %150

49:                                               ; preds = %67, %57, %44, %35
  %50 = landingpad { ptr, i32 }
          catch ptr null
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %10, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %11, align 4
  br label %89

53:                                               ; preds = %40
  %54 = landingpad { ptr, i32 }
          catch ptr null
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  call void @__cxa_free_exception(ptr %41) #7
  br label %89

57:                                               ; preds = %36
  call void @_ZN11alglib_impl23ae_state_set_break_jumpEPNS_8ae_stateEPA1_13__jmp_buf_tag(ptr noundef %13, ptr noundef %12)
  %58 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 2
  %59 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 1
  store ptr %58, ptr %59, align 8, !tbaa !19
  %60 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 3
  store i8 0, ptr %60, align 8, !tbaa !23
  %61 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  call void @llvm.memset.p0.i64(ptr align 8 %62, i8 0, i64 64, i1 false)
  %63 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !19
  %65 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %66 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %64, i64 noundef %65, i64 noundef %66, ptr noundef %13, i1 noundef zeroext false)
          to label %67 unwind label %49

67:                                               ; preds = %57
  invoke void @_ZN11alglib_impl14ae_state_clearEPNS_8ae_stateE(ptr noundef %13)
          to label %68 unwind label %49

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %12) #7
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %69

69:                                               ; preds = %155, %68
  %70 = load i64, ptr %8, align 8, !tbaa !9
  %71 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %73, label %158

73:                                               ; preds = %69
  %74 = load i64, ptr %6, align 8, !tbaa !9
  %75 = icmp eq i64 %74, 1
  br i1 %75, label %76, label %90

76:                                               ; preds = %73
  %77 = load i64, ptr %8, align 8, !tbaa !9
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %77) #7
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = invoke noundef zeroext i1 @_ZN6alglib16parse_bool_delimEPKcS1_(ptr noundef %79, ptr noundef @.str.61)
          to label %81 unwind label %45

81:                                               ; preds = %76
  %82 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !19
  %84 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %83, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !24
  %86 = load i64, ptr %8, align 8, !tbaa !9
  %87 = getelementptr inbounds i8, ptr %85, i64 %86
  %88 = zext i1 %80 to i8
  store i8 %88, ptr %87, align 1, !tbaa !25
  br label %90

89:                                               ; preds = %53, %49
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %12) #7
  br label %150

90:                                               ; preds = %81, %73
  %91 = load i64, ptr %6, align 8, !tbaa !9
  %92 = icmp eq i64 %91, 2
  br i1 %92, label %93, label %105

93:                                               ; preds = %90
  %94 = load i64, ptr %8, align 8, !tbaa !9
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %94) #7
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = invoke noundef i64 @_ZN6alglib15parse_int_delimEPKcS1_(ptr noundef %96, ptr noundef @.str.61)
          to label %98 unwind label %45

98:                                               ; preds = %93
  %99 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %100, i32 0, i32 4
  %102 = load ptr, ptr %101, align 8, !tbaa !24
  %103 = load i64, ptr %8, align 8, !tbaa !9
  %104 = getelementptr inbounds i64, ptr %102, i64 %103
  store i64 %97, ptr %104, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %98, %90
  %106 = load i64, ptr %6, align 8, !tbaa !9
  %107 = icmp eq i64 %106, 3
  br i1 %107, label %108, label %120

108:                                              ; preds = %105
  %109 = load i64, ptr %8, align 8, !tbaa !9
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %109) #7
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = invoke noundef double @_ZN6alglib16parse_real_delimEPKcS1_(ptr noundef %111, ptr noundef @.str.61)
          to label %113 unwind label %45

113:                                              ; preds = %108
  %114 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !19
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %115, i32 0, i32 4
  %117 = load ptr, ptr %116, align 8, !tbaa !24
  %118 = load i64, ptr %8, align 8, !tbaa !9
  %119 = getelementptr inbounds double, ptr %117, i64 %118
  store double %112, ptr %119, align 8, !tbaa !26
  br label %120

120:                                              ; preds = %113, %105
  %121 = load i64, ptr %6, align 8, !tbaa !9
  %122 = icmp eq i64 %121, 4
  br i1 %122, label %123, label %154

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %124 = load i64, ptr %8, align 8, !tbaa !9
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %124) #7
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  invoke void @_ZN6alglib19parse_complex_delimEPKcS1_(ptr dead_on_unwind writable sret(%"class.alglib::complex") align 8 %14, ptr noundef %126, ptr noundef @.str.61)
          to label %127 unwind label %146

127:                                              ; preds = %123
  %128 = getelementptr inbounds %"class.alglib::complex", ptr %14, i32 0, i32 0
  %129 = load double, ptr %128, align 8, !tbaa !27
  %130 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !19
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !24
  %134 = load i64, ptr %8, align 8, !tbaa !9
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %133, i64 %134
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %135, i32 0, i32 0
  store double %129, ptr %136, align 8, !tbaa !29
  %137 = getelementptr inbounds %"class.alglib::complex", ptr %14, i32 0, i32 1
  %138 = load double, ptr %137, align 8, !tbaa !31
  %139 = getelementptr inbounds %"class.alglib::ae_vector_wrapper", ptr %15, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8, !tbaa !19
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %140, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = load i64, ptr %8, align 8, !tbaa !9
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %142, i64 %143
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %144, i32 0, i32 1
  store double %138, ptr %145, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %154

146:                                              ; preds = %123
  %147 = landingpad { ptr, i32 }
          catch ptr null
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %10, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %150

150:                                              ; preds = %146, %89, %45
  %151 = load ptr, ptr %10, align 8
  %152 = call ptr @__cxa_begin_catch(ptr %151) #7
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl7ae_freeEPv(ptr noundef %153)
  invoke void @__cxa_rethrow() #8
          to label %175 unwind label %160

154:                                              ; preds = %127, %120
  br label %155

155:                                              ; preds = %154
  %156 = load i64, ptr %8, align 8, !tbaa !9
  %157 = add i64 %156, 1
  store i64 %157, ptr %8, align 8, !tbaa !9
  br label %69, !llvm.loop !33

158:                                              ; preds = %69
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl7ae_freeEPv(ptr noundef %159)
  br label %165

160:                                              ; preds = %150
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %10, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %11, align 4
  invoke void @__cxa_end_catch()
          to label %164 unwind label %172

164:                                              ; preds = %160
  br label %166

165:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  ret void

166:                                              ; preds = %164, %29, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %10, align 8
  %169 = load i32, ptr %11, align 4
  %170 = insertvalue { ptr, i32 } poison, ptr %168, 0
  %171 = insertvalue { ptr, i32 } %170, i32 %169, 1
  resume { ptr, i32 } %171

172:                                              ; preds = %160
  %173 = landingpad { ptr, i32 }
          catch ptr null
  %174 = extractvalue { ptr, i32 } %173, 0
  call void @__clang_call_terminate(ptr %174) #10
  unreachable

175:                                              ; preds = %150, %44, %24
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6alglib13filter_spacesEPKc(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6alglib17str_vector_createEPKcbPSt6vectorIS1_SaIS1_EE(ptr noundef, i1 noundef zeroext, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6alglib16parse_bool_delimEPKcS1_(ptr noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6alglib15parse_int_delimEPKcS1_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN6alglib16parse_real_delimEPKcS1_(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6alglib19parse_complex_delimEPKcS1_(ptr dead_on_unwind noalias writable sret(%"class.alglib::complex") align 8, ptr noundef, ptr noundef) #1

declare void @__cxa_rethrow()

declare void @__cxa_end_catch()

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

declare void @_ZN6alglib8ap_errorC1EPKc(ptr, ptr)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 88}
!14 = !{!"_ZTSN11alglib_impl8ae_stateE", !10, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !6, i64 32, !16, i64 40, !6, i64 72, !17, i64 80, !6, i64 88, !18, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !7, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = !{!20, !6, i64 8}
!20 = !{!"_ZTSN6alglib17ae_vector_wrapperE", !6, i64 8, !21, i64 16, !22, i64 80}
!21 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !22, i64 16, !16, i64 24, !7, i64 56}
!22 = !{!"bool", !7, i64 0}
!23 = !{!20, !22, i64 80}
!24 = !{!7, !7, i64 0}
!25 = !{!22, !22, i64 0}
!26 = !{!15, !15, i64 0}
!27 = !{!28, !15, i64 0}
!28 = !{!"_ZTSN6alglib7complexE", !15, i64 0, !15, i64 8}
!29 = !{!30, !15, i64 0}
!30 = !{!"_ZTSN11alglib_impl10ae_complexE", !15, i64 0, !15, i64 8}
!31 = !{!28, !15, i64 8}
!32 = !{!30, !15, i64 8}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


; 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<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%"struct.alglib_impl::ae_state" = type { i64, double, double, double, ptr, %"struct.alglib_impl::ae_dyn_block", ptr, i32, ptr, i64, ptr, ptr, ptr }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"class.alglib::complex" = type { double, double }
%"struct.alglib_impl::ae_complex" = type { double, double }

@_ZTIN6alglib8ap_errorE = external dso_local constant { ptr, ptr }, align 8
@_ZTVN6alglib17ae_vector_wrapperE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8
@.str.60 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [3 x i8], align 1

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14ae_state_clearEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl7ae_freeEPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl13ae_state_initEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11alglib_impl23ae_state_set_break_jumpEPNS_8ae_stateEPA1_13__jmp_buf_tag(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @__gxx_personality_v0(...)

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #5

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6alglib17ae_vector_wrapperC2EPKcl(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca [1 x %struct.__jmp_buf_tag], align 16
  %6 = alloca %"struct.alglib_impl::ae_state", align 8
  %7 = alloca %"class.alglib::complex", align 8
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN6alglib17ae_vector_wrapperE, i64 16), ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorIPKcSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %8 = invoke noundef ptr @_ZN6alglib13filter_spacesEPKc(ptr noundef %1)
          to label %9 unwind label %14

9:                                                ; preds = %3
  %10 = icmp eq ptr %8, null
  br i1 %10, label %11, label %18

11:                                               ; preds = %9
  %12 = call ptr @__cxa_allocate_exception(i64 32) #7
  invoke void @_ZN6alglib8ap_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull @.str.60)
          to label %13 unwind label %16

13:                                               ; preds = %11
  invoke void @__cxa_throw(ptr %12, ptr nonnull @_ZTIN6alglib8ap_errorE, ptr nonnull @_ZN6alglib8ap_errorD2Ev) #8
          to label %99 unwind label %14

14:                                               ; preds = %13, %3
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %95

16:                                               ; preds = %11
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %12) #7
  br label %95

18:                                               ; preds = %9
  invoke void @_ZN6alglib17str_vector_createEPKcbPSt6vectorIS1_SaIS1_EE(ptr noundef nonnull %8, i1 noundef zeroext true, ptr noundef nonnull %4)
          to label %19 unwind label %.loopexit.split-lp

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #7
  invoke void @_ZN11alglib_impl13ae_state_initEPNS_8ae_stateE(ptr noundef nonnull %6)
          to label %20 unwind label %27

20:                                               ; preds = %19
  %21 = call i32 @_setjmp(ptr noundef nonnull %5) #9
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %31, label %22

22:                                               ; preds = %20
  %23 = call ptr @__cxa_allocate_exception(i64 32) #7
  %24 = getelementptr inbounds i8, ptr %6, i64 88
  %25 = load volatile ptr, ptr %24, align 8, !tbaa !8
  invoke void @_ZN6alglib8ap_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr noundef %25)
          to label %26 unwind label %29

26:                                               ; preds = %22
  invoke void @__cxa_throw(ptr %23, ptr nonnull @_ZTIN6alglib8ap_errorE, ptr nonnull @_ZN6alglib8ap_errorD2Ev) #8
          to label %99 unwind label %27

.loopexit.split-lp:                               ; preds = %18
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit

27:                                               ; preds = %35, %31, %26, %19
  %28 = landingpad { ptr, i32 }
          catch ptr null
  br label %91

29:                                               ; preds = %22
  %30 = landingpad { ptr, i32 }
          catch ptr null
  call void @__cxa_free_exception(ptr %23) #7
  br label %91

31:                                               ; preds = %20
  call void @_ZN11alglib_impl23ae_state_set_break_jumpEPNS_8ae_stateEPA1_13__jmp_buf_tag(ptr noundef nonnull %6, ptr noundef nonnull %5)
  %32 = getelementptr inbounds i8, ptr %0, i64 16
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %32, ptr %33, align 8, !tbaa !17
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(65) %32, i8 0, i64 65, i1 false)
  %34 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  invoke void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %32, i64 noundef %34, i64 noundef %2, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %35 unwind label %27

35:                                               ; preds = %31
  invoke void @_ZN11alglib_impl14ae_state_clearEPNS_8ae_stateE(ptr noundef nonnull %6)
          to label %36 unwind label %27

36:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #7
  %37 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not43 = icmp eq i64 %37, 0
  br i1 %.not43, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %36
  %38 = getelementptr inbounds i8, ptr %7, i64 8
  switch i64 %2, label %.lr.ph.split [
    i64 1, label %.lr.ph.split.us
    i64 2, label %.lr.ph.split.us30
    i64 3, label %.lr.ph.split.us34
    i64 4, label %.lr.ph.split.us38
  ]

.lr.ph.split.us:                                  ; preds = %.lr.ph, %42
  %.02529.us = phi i64 [ %48, %42 ], [ 0, %.lr.ph ]
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.02529.us) #7
  %40 = load ptr, ptr %39, align 8, !tbaa !21
  %41 = invoke noundef zeroext i1 @_ZN6alglib16parse_bool_delimEPKcS1_(ptr noundef %40, ptr noundef nonnull @.str.61)
          to label %42 unwind label %.loopexit.split.us

42:                                               ; preds = %.lr.ph.split.us
  %43 = load ptr, ptr %33, align 8, !tbaa !17
  %44 = getelementptr inbounds i8, ptr %43, i64 56
  %45 = load ptr, ptr %44, align 8, !tbaa !22
  %46 = getelementptr inbounds i8, ptr %45, i64 %.02529.us
  %47 = zext i1 %41 to i8
  store i8 %47, ptr %46, align 1, !tbaa !23
  %48 = add nuw i64 %.02529.us, 1
  %49 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %50 = icmp ult i64 %48, %49
  br i1 %50, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !24

.loopexit.split.us:                               ; preds = %.lr.ph.split.us
  %lpad.loopexit.us = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit

.lr.ph.split.us30:                                ; preds = %.lr.ph, %54
  %.02529.us31 = phi i64 [ %59, %54 ], [ 0, %.lr.ph ]
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.02529.us31) #7
  %52 = load ptr, ptr %51, align 8, !tbaa !21
  %53 = invoke noundef i64 @_ZN6alglib15parse_int_delimEPKcS1_(ptr noundef %52, ptr noundef nonnull @.str.61)
          to label %54 unwind label %.loopexit.split.split.us

54:                                               ; preds = %.lr.ph.split.us30
  %55 = load ptr, ptr %33, align 8, !tbaa !17
  %56 = getelementptr inbounds i8, ptr %55, i64 56
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = getelementptr inbounds i64, ptr %57, i64 %.02529.us31
  store i64 %53, ptr %58, align 8, !tbaa !26
  %59 = add nuw i64 %.02529.us31, 1
  %60 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %61 = icmp ult i64 %59, %60
  br i1 %61, label %.lr.ph.split.us30, label %._crit_edge, !llvm.loop !24

.loopexit.split.split.us:                         ; preds = %.lr.ph.split.us30
  %lpad.loopexit.us32 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit

.lr.ph.split.us34:                                ; preds = %.lr.ph, %65
  %.02529.us35 = phi i64 [ %70, %65 ], [ 0, %.lr.ph ]
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.02529.us35) #7
  %63 = load ptr, ptr %62, align 8, !tbaa !21
  %64 = invoke noundef double @_ZN6alglib16parse_real_delimEPKcS1_(ptr noundef %63, ptr noundef nonnull @.str.61)
          to label %65 unwind label %.loopexit.split.split.split.us

65:                                               ; preds = %.lr.ph.split.us34
  %66 = load ptr, ptr %33, align 8, !tbaa !17
  %67 = getelementptr inbounds i8, ptr %66, i64 56
  %68 = load ptr, ptr %67, align 8, !tbaa !22
  %69 = getelementptr inbounds double, ptr %68, i64 %.02529.us35
  store double %64, ptr %69, align 8, !tbaa !27
  %70 = add nuw i64 %.02529.us35, 1
  %71 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %.lr.ph.split.us34, label %._crit_edge, !llvm.loop !24

.loopexit.split.split.split.us:                   ; preds = %.lr.ph.split.us34
  %lpad.loopexit.us36 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit

.lr.ph.split.us38:                                ; preds = %.lr.ph, %75
  %.02529.us39 = phi i64 [ %84, %75 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.02529.us39) #7
  %74 = load ptr, ptr %73, align 8, !tbaa !21
  invoke void @_ZN6alglib19parse_complex_delimEPKcS1_(ptr dead_on_unwind nonnull writable sret(%"class.alglib::complex") align 8 %7, ptr noundef %74, ptr noundef nonnull @.str.61)
          to label %75 unwind label %.split.us

75:                                               ; preds = %.lr.ph.split.us38
  %76 = load double, ptr %7, align 8, !tbaa !28
  %77 = load ptr, ptr %33, align 8, !tbaa !17
  %78 = getelementptr inbounds i8, ptr %77, i64 56
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %79, i64 %.02529.us39
  store double %76, ptr %80, align 8, !tbaa !30
  %81 = load double, ptr %38, align 8, !tbaa !32
  %82 = load ptr, ptr %78, align 8, !tbaa !22
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %82, i64 %.02529.us39, i32 1
  store double %81, ptr %83, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %84 = add nuw i64 %.02529.us39, 1
  %85 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %86 = icmp ult i64 %84, %85
  br i1 %86, label %.lr.ph.split.us38, label %._crit_edge, !llvm.loop !24

.split.us:                                        ; preds = %.lr.ph.split.us38
  %87 = landingpad { ptr, i32 }
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %.loopexit

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %.02529 = phi i64 [ %88, %.lr.ph.split ], [ 0, %.lr.ph ]
  %88 = add nuw i64 %.02529, 1
  %89 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %90 = icmp ult i64 %88, %89
  br i1 %90, label %.lr.ph.split, label %._crit_edge, !llvm.loop !24

91:                                               ; preds = %29, %27
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #7
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.split-lp, %.loopexit.split.split.split.us, %.loopexit.split.split.us, %.loopexit.split.us, %.split.us, %91
  %.pn.pn = phi { ptr, i32 } [ %.pn, %91 ], [ %87, %.split.us ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit.us, %.loopexit.split.us ], [ %lpad.loopexit.us36, %.loopexit.split.split.split.us ], [ %lpad.loopexit.us32, %.loopexit.split.split.us ]
  %.1 = extractvalue { ptr, i32 } %.pn.pn, 0
  %92 = call ptr @__cxa_begin_catch(ptr %.1) #7
  call void @_ZN11alglib_impl7ae_freeEPv(ptr noundef nonnull %8)
  invoke void @__cxa_rethrow() #8
          to label %99 unwind label %93

._crit_edge:                                      ; preds = %75, %65, %54, %42, %.lr.ph.split, %36
  call void @_ZN11alglib_impl7ae_freeEPv(ptr noundef nonnull %8)
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  ret void

93:                                               ; preds = %.loopexit
  %94 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %95 unwind label %96

95:                                               ; preds = %93, %16, %14
  %.pn27 = phi { ptr, i32 } [ %15, %14 ], [ %17, %16 ], [ %94, %93 ]
  call void @_ZNSt6vectorIPKcSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn27

96:                                               ; preds = %93
  %97 = landingpad { ptr, i32 }
          catch ptr null
  %98 = extractvalue { ptr, i32 } %97, 0
  call void @__clang_call_terminate(ptr %98) #10
  unreachable

99:                                               ; preds = %.loopexit, %26, %13
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN6alglib13filter_spacesEPKc(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6alglib17str_vector_createEPKcbPSt6vectorIS1_SaIS1_EE(ptr noundef, i1 noundef zeroext, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6alglib16parse_bool_delimEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN6alglib15parse_int_delimEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN6alglib16parse_real_delimEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6alglib19parse_complex_delimEPKcS1_(ptr dead_on_unwind noalias writable sret(%"class.alglib::complex") align 8, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @__cxa_rethrow() local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

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

declare void @_ZN6alglib8ap_errorC1EPKc(ptr, ptr) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !13, i64 88}
!9 = !{!"_ZTSN11alglib_impl8ae_stateE", !10, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32, !14, i64 40, !13, i64 72, !15, i64 80, !13, i64 88, !16, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!10 = !{!"long", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"double", !11, i64 0}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!15 = !{!"_ZTSN11alglib_impl13ae_error_typeE", !11, i64 0}
!16 = !{!"long long", !11, i64 0}
!17 = !{!18, !13, i64 8}
!18 = !{!"_ZTSN6alglib17ae_vector_wrapperE", !13, i64 8, !19, i64 16, !20, i64 80}
!19 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !20, i64 16, !14, i64 24, !11, i64 56}
!20 = !{!"bool", !11, i64 0}
!21 = !{!13, !13, i64 0}
!22 = !{!11, !11, i64 0}
!23 = !{!20, !20, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!10, !10, i64 0}
!27 = !{!12, !12, i64 0}
!28 = !{!29, !12, i64 0}
!29 = !{!"_ZTSN6alglib7complexE", !12, i64 0, !12, i64 8}
!30 = !{!31, !12, i64 0}
!31 = !{!"_ZTSN11alglib_impl10ae_complexE", !12, i64 0, !12, i64 8}
!32 = !{!29, !12, i64 8}
!33 = !{!31, !12, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass