; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src/ap.ll (ZN6alglib17ae_matrix_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.alglib::complex" = type { double, double }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<std::vector<const char *>, std::allocator<std::vector<const char *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<const char *>, std::allocator<std::vector<const char *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<const char *>, std::allocator<std::vector<const char *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<const char *>, std::allocator<std::vector<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::ae_matrix_wrapper" = type <{ ptr, ptr, %"struct.alglib_impl::ae_matrix", i8, [7 x i8] }>
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_complex" = type { double, double }

@_ZTIN6alglib8ap_errorE = external dso_local constant { ptr, 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
@_ZTVN6alglib17ae_matrix_wrapperE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 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
declare dso_local noundef ptr @_ZN6alglib13filter_spacesEPKc(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 uwtable
define dso_local void @_ZN6alglib17ae_matrix_wrapperC2EPKcl(ptr noundef nonnull align 8 dereferenceable(97) %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.17", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca [1 x %struct.__jmp_buf_tag], align 16
  %14 = alloca %"struct.alglib_impl::ae_state", align 8
  %15 = 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
  %16 = load ptr, ptr %4, align 8
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN6alglib17ae_matrix_wrapperE, i32 0, i32 0, i32 2), ptr %16, align 8, !tbaa !11
  %17 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_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
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = invoke noundef ptr @_ZN6alglib13filter_spacesEPKc(ptr noundef %18)
          to label %20 unwind label %26

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

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

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

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

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

34:                                               ; preds = %20
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN6alglib17str_matrix_createEPKcPSt6vectorIS2_IS1_SaIS1_EESaIS4_EE(ptr noundef %35, ptr noundef %7)
          to label %36 unwind label %46

36:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 200, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %14) #7
  invoke void @_ZN11alglib_impl13ae_state_initEPNS_8ae_stateE(ptr noundef %14)
          to label %37 unwind label %50

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

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

45:                                               ; preds = %41
  invoke void @__cxa_throw(ptr %42, ptr @_ZTIN6alglib8ap_errorE, ptr @_ZN6alglib8ap_errorD2Ev) #8
          to label %220 unwind label %50

46:                                               ; preds = %136, %116, %94, %34
  %47 = landingpad { ptr, i32 }
          catch ptr null
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %11, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %12, align 4
  br label %191

50:                                               ; preds = %79, %74, %66, %45, %36
  %51 = landingpad { ptr, i32 }
          catch ptr null
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %11, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %12, align 4
  br label %112

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

58:                                               ; preds = %37
  call void @_ZN11alglib_impl23ae_state_set_break_jumpEPNS_8ae_stateEPA1_13__jmp_buf_tag(ptr noundef %14, ptr noundef %13)
  %59 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 2
  %60 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  store ptr %59, ptr %60, align 8, !tbaa !19
  %61 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 3
  store i8 0, ptr %61, align 8, !tbaa !23
  %62 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !19
  call void @llvm.memset.p0.i64(ptr align 8 %63, i8 0, i64 80, i1 false)
  %64 = call noundef i64 @_ZNKSt6vectorIS_IPKcSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %65 = icmp ne i64 %64, 0
  br i1 %65, label %66, label %74

66:                                               ; preds = %58
  %67 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !19
  %69 = call noundef i64 @_ZNKSt6vectorIS_IPKcSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #7
  %71 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #7
  %72 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %68, i64 noundef %69, i64 noundef %71, i64 noundef %72, ptr noundef %14, i1 noundef zeroext false)
          to label %73 unwind label %50

73:                                               ; preds = %66
  br label %79

74:                                               ; preds = %58
  %75 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = load i64, ptr %6, align 8, !tbaa !9
  invoke void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %76, i64 noundef 0, i64 noundef 0, i64 noundef %77, ptr noundef %14, i1 noundef zeroext false)
          to label %78 unwind label %50

78:                                               ; preds = %74
  br label %79

79:                                               ; preds = %78, %73
  invoke void @_ZN11alglib_impl14ae_state_clearEPNS_8ae_stateE(ptr noundef %14)
          to label %80 unwind label %50

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

81:                                               ; preds = %200, %80
  %82 = load i64, ptr %8, align 8, !tbaa !9
  %83 = call noundef i64 @_ZNKSt6vectorIS_IPKcSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %84 = icmp ult i64 %82, %83
  br i1 %84, label %85, label %203

85:                                               ; preds = %81
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %196, %85
  %87 = load i64, ptr %9, align 8, !tbaa !9
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #7
  %89 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #7
  %90 = icmp ult i64 %87, %89
  br i1 %90, label %91, label %199

91:                                               ; preds = %86
  %92 = load i64, ptr %6, align 8, !tbaa !9
  %93 = icmp eq i64 %92, 1
  br i1 %93, label %94, label %113

94:                                               ; preds = %91
  %95 = load i64, ptr %8, align 8, !tbaa !9
  %96 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %95) #7
  %97 = load i64, ptr %9, align 8, !tbaa !9
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %97) #7
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = invoke noundef zeroext i1 @_ZN6alglib16parse_bool_delimEPKcS1_(ptr noundef %99, ptr noundef @.str.61)
          to label %101 unwind label %46

101:                                              ; preds = %94
  %102 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %103, i32 0, i32 6
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = load i64, ptr %8, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %105, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = load i64, ptr %9, align 8, !tbaa !9
  %110 = getelementptr inbounds i8, ptr %108, i64 %109
  %111 = zext i1 %100 to i8
  store i8 %111, ptr %110, align 1, !tbaa !25
  br label %113

112:                                              ; preds = %54, %50
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %13) #7
  br label %191

113:                                              ; preds = %101, %91
  %114 = load i64, ptr %6, align 8, !tbaa !9
  %115 = icmp eq i64 %114, 2
  br i1 %115, label %116, label %133

116:                                              ; preds = %113
  %117 = load i64, ptr %8, align 8, !tbaa !9
  %118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %117) #7
  %119 = load i64, ptr %9, align 8, !tbaa !9
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %119) #7
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = invoke noundef i64 @_ZN6alglib15parse_int_delimEPKcS1_(ptr noundef %121, ptr noundef @.str.61)
          to label %123 unwind label %46

123:                                              ; preds = %116
  %124 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !19
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %125, i32 0, i32 6
  %127 = load ptr, ptr %126, align 8, !tbaa !24
  %128 = load i64, ptr %8, align 8, !tbaa !9
  %129 = getelementptr inbounds ptr, ptr %127, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load i64, ptr %9, align 8, !tbaa !9
  %132 = getelementptr inbounds i64, ptr %130, i64 %131
  store i64 %122, ptr %132, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %123, %113
  %134 = load i64, ptr %6, align 8, !tbaa !9
  %135 = icmp eq i64 %134, 3
  br i1 %135, label %136, label %153

136:                                              ; preds = %133
  %137 = load i64, ptr %8, align 8, !tbaa !9
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %137) #7
  %139 = load i64, ptr %9, align 8, !tbaa !9
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %139) #7
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = invoke noundef double @_ZN6alglib16parse_real_delimEPKcS1_(ptr noundef %141, ptr noundef @.str.61)
          to label %143 unwind label %46

143:                                              ; preds = %136
  %144 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  %145 = load ptr, ptr %144, align 8, !tbaa !19
  %146 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %145, i32 0, i32 6
  %147 = load ptr, ptr %146, align 8, !tbaa !24
  %148 = load i64, ptr %8, align 8, !tbaa !9
  %149 = getelementptr inbounds ptr, ptr %147, i64 %148
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = load i64, ptr %9, align 8, !tbaa !9
  %152 = getelementptr inbounds double, ptr %150, i64 %151
  store double %142, ptr %152, align 8, !tbaa !26
  br label %153

153:                                              ; preds = %143, %133
  %154 = load i64, ptr %6, align 8, !tbaa !9
  %155 = icmp eq i64 %154, 4
  br i1 %155, label %156, label %195

156:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  %157 = load i64, ptr %8, align 8, !tbaa !9
  %158 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %157) #7
  %159 = load i64, ptr %9, align 8, !tbaa !9
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %159) #7
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  invoke void @_ZN6alglib19parse_complex_delimEPKcS1_(ptr dead_on_unwind writable sret(%"class.alglib::complex") align 8 %15, ptr noundef %161, ptr noundef @.str.61)
          to label %162 unwind label %187

162:                                              ; preds = %156
  %163 = getelementptr inbounds %"class.alglib::complex", ptr %15, i32 0, i32 0
  %164 = load double, ptr %163, align 8, !tbaa !27
  %165 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  %166 = load ptr, ptr %165, align 8, !tbaa !19
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %166, i32 0, i32 6
  %168 = load ptr, ptr %167, align 8, !tbaa !24
  %169 = load i64, ptr %8, align 8, !tbaa !9
  %170 = getelementptr inbounds ptr, ptr %168, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i64, ptr %9, align 8, !tbaa !9
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %171, i64 %172
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %173, i32 0, i32 0
  store double %164, ptr %174, align 8, !tbaa !29
  %175 = getelementptr inbounds %"class.alglib::complex", ptr %15, i32 0, i32 1
  %176 = load double, ptr %175, align 8, !tbaa !31
  %177 = getelementptr inbounds %"class.alglib::ae_matrix_wrapper", ptr %16, i32 0, i32 1
  %178 = load ptr, ptr %177, align 8, !tbaa !19
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %178, i32 0, i32 6
  %180 = load ptr, ptr %179, align 8, !tbaa !24
  %181 = load i64, ptr %8, align 8, !tbaa !9
  %182 = getelementptr inbounds ptr, ptr %180, i64 %181
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = load i64, ptr %9, align 8, !tbaa !9
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %183, i64 %184
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %185, i32 0, i32 1
  store double %176, ptr %186, align 8, !tbaa !32
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %195

187:                                              ; preds = %156
  %188 = landingpad { ptr, i32 }
          catch ptr null
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %11, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %191

191:                                              ; preds = %187, %112, %46
  %192 = load ptr, ptr %11, align 8
  %193 = call ptr @__cxa_begin_catch(ptr %192) #7
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7ae_freeEPv(ptr noundef %194)
  invoke void @__cxa_rethrow() #8
          to label %220 unwind label %205

195:                                              ; preds = %162, %153
  br label %196

196:                                              ; preds = %195
  %197 = load i64, ptr %9, align 8, !tbaa !9
  %198 = add i64 %197, 1
  store i64 %198, ptr %9, align 8, !tbaa !9
  br label %86, !llvm.loop !33

199:                                              ; preds = %86
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %8, align 8, !tbaa !9
  %202 = add i64 %201, 1
  store i64 %202, ptr %8, align 8, !tbaa !9
  br label %81, !llvm.loop !35

203:                                              ; preds = %81
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7ae_freeEPv(ptr noundef %204)
  br label %210

205:                                              ; preds = %191
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %11, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %12, align 4
  invoke void @__cxa_end_catch()
          to label %209 unwind label %217

209:                                              ; preds = %205
  br label %211

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

211:                                              ; preds = %209, %30, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %212

212:                                              ; preds = %211
  %213 = load ptr, ptr %11, align 8
  %214 = load i32, ptr %12, align 4
  %215 = insertvalue { ptr, i32 } poison, ptr %213, 0
  %216 = insertvalue { ptr, i32 } %215, i32 %214, 1
  resume { ptr, i32 } %216

217:                                              ; preds = %205
  %218 = landingpad { ptr, i32 }
          catch ptr null
  %219 = extractvalue { ptr, i32 } %218, 0
  call void @__clang_call_terminate(ptr %219) #10
  unreachable

220:                                              ; preds = %191, %45, %25
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_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_matrix_wrapperE", !6, i64 8, !21, i64 16, !22, i64 96}
!21 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !22, i64 32, !16, i64 40, !7, i64 72}
!22 = !{!"bool", !7, i64 0}
!23 = !{!20, !22, i64 96}
!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"}
!35 = distinct !{!35, !34}


; 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.alglib::complex" = type { double, double }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<std::vector<const char *>, std::allocator<std::vector<const char *>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<const char *>, std::allocator<std::vector<const char *>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<const char *>, std::allocator<std::vector<const char *>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<const char *>, std::allocator<std::vector<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 }
%"struct.alglib_impl::ae_complex" = type { double, double }

@_ZTIN6alglib8ap_errorE = external dso_local constant { ptr, 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
@_ZTVN6alglib17ae_matrix_wrapperE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

; 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 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
declare dso_local noundef ptr @_ZN6alglib13filter_spacesEPKc(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 uwtable
define dso_local void @_ZN6alglib17ae_matrix_wrapperC2EPKcl(ptr noundef nonnull align 8 dereferenceable(97) %0, ptr noundef %1, i64 noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.17", 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_matrix_wrapperE, i64 16), ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_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 %130 unwind label %14

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

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

18:                                               ; preds = %9
  invoke void @_ZN6alglib17str_matrix_createEPKcPSt6vectorIS2_IS1_SaIS1_EESaIS4_EE(ptr noundef nonnull %8, 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 %130 unwind label %27

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

27:                                               ; preds = %.invoke, %42, %26, %19
  %28 = landingpad { ptr, i32 }
          catch ptr null
  br label %119

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

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(81) %32, i8 0, i64 81, i1 false)
  %34 = call noundef i64 @_ZNKSt6vectorIS_IPKcSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not40 = icmp eq i64 %34, 0
  %35 = load ptr, ptr %33, align 8, !tbaa !17
  br i1 %.not40, label %.invoke, label %36

36:                                               ; preds = %31
  %37 = call noundef i64 @_ZNKSt6vectorIS_IPKcSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %39 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  br label %.invoke

.invoke:                                          ; preds = %31, %36
  %40 = phi i64 [ %37, %36 ], [ 0, %31 ]
  %41 = phi i64 [ %39, %36 ], [ 0, %31 ]
  invoke void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %35, i64 noundef %40, i64 noundef %41, i64 noundef %2, ptr noundef nonnull %6, i1 noundef zeroext false)
          to label %42 unwind label %27

42:                                               ; preds = %.invoke
  invoke void @_ZN11alglib_impl14ae_state_clearEPNS_8ae_stateE(ptr noundef nonnull %6)
          to label %43 unwind label %27

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %5) #7
  %44 = call noundef i64 @_ZNKSt6vectorIS_IPKcSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not63 = icmp eq i64 %44, 0
  br i1 %.not63, label %._crit_edge62, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %43
  %45 = getelementptr inbounds i8, ptr %7, i64 8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %.03757 = phi i64 [ 0, %.preheader.lr.ph ], [ %121, %._crit_edge ]
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %47 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #7
  %.not64 = icmp eq i64 %47, 0
  br i1 %.not64, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  switch i64 %2, label %.lr.ph.split [
    i64 1, label %.lr.ph.split.us
    i64 2, label %.lr.ph.split.us44
    i64 3, label %.lr.ph.split.us48
    i64 4, label %.lr.ph.split.us52
  ]

.lr.ph.split.us:                                  ; preds = %.lr.ph, %52
  %.03843.us = phi i64 [ %60, %52 ], [ 0, %.lr.ph ]
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.03757) #7
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %.03843.us) #7
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = invoke noundef zeroext i1 @_ZN6alglib16parse_bool_delimEPKcS1_(ptr noundef %50, ptr noundef nonnull @.str.61)
          to label %52 unwind label %.loopexit.split.us

52:                                               ; preds = %.lr.ph.split.us
  %53 = load ptr, ptr %33, align 8, !tbaa !17
  %54 = getelementptr inbounds i8, ptr %53, i64 72
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.03757
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  %58 = getelementptr inbounds i8, ptr %57, i64 %.03843.us
  %59 = zext i1 %51 to i8
  store i8 %59, ptr %58, align 1, !tbaa !23
  %60 = add nuw i64 %.03843.us, 1
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %62 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %63 = icmp ult i64 %60, %62
  br i1 %63, 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.us44:                                ; preds = %.lr.ph, %68
  %.03843.us45 = phi i64 [ %75, %68 ], [ 0, %.lr.ph ]
  %64 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.03757) #7
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %.03843.us45) #7
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = invoke noundef i64 @_ZN6alglib15parse_int_delimEPKcS1_(ptr noundef %66, ptr noundef nonnull @.str.61)
          to label %68 unwind label %.loopexit.split.split.us

68:                                               ; preds = %.lr.ph.split.us44
  %69 = load ptr, ptr %33, align 8, !tbaa !17
  %70 = getelementptr inbounds i8, ptr %69, i64 72
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  %72 = getelementptr inbounds ptr, ptr %71, i64 %.03757
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = getelementptr inbounds i64, ptr %73, i64 %.03843.us45
  store i64 %67, ptr %74, align 8, !tbaa !26
  %75 = add nuw i64 %.03843.us45, 1
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %77 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #7
  %78 = icmp ult i64 %75, %77
  br i1 %78, label %.lr.ph.split.us44, label %._crit_edge, !llvm.loop !24

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

.lr.ph.split.us48:                                ; preds = %.lr.ph, %83
  %.03843.us49 = phi i64 [ %90, %83 ], [ 0, %.lr.ph ]
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.03757) #7
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %.03843.us49) #7
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  %82 = invoke noundef double @_ZN6alglib16parse_real_delimEPKcS1_(ptr noundef %81, ptr noundef nonnull @.str.61)
          to label %83 unwind label %.loopexit.split.split.split.us

83:                                               ; preds = %.lr.ph.split.us48
  %84 = load ptr, ptr %33, align 8, !tbaa !17
  %85 = getelementptr inbounds i8, ptr %84, i64 72
  %86 = load ptr, ptr %85, align 8, !tbaa !22
  %87 = getelementptr inbounds ptr, ptr %86, i64 %.03757
  %88 = load ptr, ptr %87, align 8, !tbaa !21
  %89 = getelementptr inbounds double, ptr %88, i64 %.03843.us49
  store double %82, ptr %89, align 8, !tbaa !27
  %90 = add nuw i64 %.03843.us49, 1
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %92 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #7
  %93 = icmp ult i64 %90, %92
  br i1 %93, label %.lr.ph.split.us48, label %._crit_edge, !llvm.loop !24

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

.lr.ph.split.us52:                                ; preds = %.lr.ph, %97
  %.03843.us53 = phi i64 [ %110, %97 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.03757) #7
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPKcSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %.03843.us53) #7
  %96 = load ptr, ptr %95, align 8, !tbaa !21
  invoke void @_ZN6alglib19parse_complex_delimEPKcS1_(ptr dead_on_unwind nonnull writable sret(%"class.alglib::complex") align 8 %7, ptr noundef %96, ptr noundef nonnull @.str.61)
          to label %97 unwind label %.split.us

97:                                               ; preds = %.lr.ph.split.us52
  %98 = load double, ptr %7, align 8, !tbaa !28
  %99 = load ptr, ptr %33, align 8, !tbaa !17
  %100 = getelementptr inbounds i8, ptr %99, i64 72
  %101 = load ptr, ptr %100, align 8, !tbaa !22
  %102 = getelementptr inbounds ptr, ptr %101, i64 %.03757
  %103 = load ptr, ptr %102, align 8, !tbaa !21
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %103, i64 %.03843.us53
  store double %98, ptr %104, align 8, !tbaa !30
  %105 = load double, ptr %45, align 8, !tbaa !32
  %106 = load ptr, ptr %100, align 8, !tbaa !22
  %107 = getelementptr inbounds ptr, ptr %106, i64 %.03757
  %108 = load ptr, ptr %107, align 8, !tbaa !21
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_complex", ptr %108, i64 %.03843.us53, i32 1
  store double %105, ptr %109, align 8, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %110 = add nuw i64 %.03843.us53, 1
  %111 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %112 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #7
  %113 = icmp ult i64 %110, %112
  br i1 %113, label %.lr.ph.split.us52, label %._crit_edge, !llvm.loop !24

.split.us:                                        ; preds = %.lr.ph.split.us52
  %114 = 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
  %.03843 = phi i64 [ %115, %.lr.ph.split ], [ 0, %.lr.ph ]
  %115 = add nuw i64 %.03843, 1
  %116 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %117 = call noundef i64 @_ZNKSt6vectorIPKcSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #7
  %118 = icmp ult i64 %115, %117
  br i1 %118, label %.lr.ph.split, label %._crit_edge, !llvm.loop !24

119:                                              ; 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, %119
  %.pn.pn = phi { ptr, i32 } [ %.pn, %119 ], [ %114, %.split.us ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit.us, %.loopexit.split.us ], [ %lpad.loopexit.us50, %.loopexit.split.split.split.us ], [ %lpad.loopexit.us46, %.loopexit.split.split.us ]
  %.1 = extractvalue { ptr, i32 } %.pn.pn, 0
  %120 = call ptr @__cxa_begin_catch(ptr %.1) #7
  call void @_ZN11alglib_impl7ae_freeEPv(ptr noundef nonnull %8)
  invoke void @__cxa_rethrow() #8
          to label %130 unwind label %124

._crit_edge:                                      ; preds = %97, %83, %68, %52, %.lr.ph.split, %.preheader
  %121 = add nuw i64 %.03757, 1
  %122 = call noundef i64 @_ZNKSt6vectorIS_IPKcSaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %123 = icmp ult i64 %121, %122
  br i1 %123, label %.preheader, label %._crit_edge62, !llvm.loop !34

._crit_edge62:                                    ; preds = %._crit_edge, %43
  call void @_ZN11alglib_impl7ae_freeEPv(ptr noundef nonnull %8)
  call void @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  ret void

124:                                              ; preds = %.loopexit
  %125 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %126 unwind label %127

126:                                              ; preds = %124, %16, %14
  %.pn41 = phi { ptr, i32 } [ %15, %14 ], [ %17, %16 ], [ %125, %124 ]
  call void @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_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 } %.pn41

127:                                              ; preds = %124
  %128 = landingpad { ptr, i32 }
          catch ptr null
  %129 = extractvalue { ptr, i32 } %128, 0
  call void @__clang_call_terminate(ptr %129) #10
  unreachable

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIS_IPKcSaIS1_EESaIS3_EE4sizeEv(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(24) ptr @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIS_IPKcSaIS1_EESaIS3_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_matrix_wrapperE", !13, i64 8, !19, i64 16, !20, i64 96}
!19 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !20, i64 32, !14, i64 40, !11, i64 72}
!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}
!34 = distinct !{!34, !25}


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