; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/tests/test_c.ll (Z17basiccopyfunctestbPN11alglib_impl8ae_stateE)

; 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"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.154 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [27 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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #1

declare i32 @printf(ptr noundef, ...) #1

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #1

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

declare void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #1

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17basiccopyfunctestbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) #3 {
  %3 = alloca i1, align 1
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %8 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %9 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = zext i1 %0 to i8
  store i8 %22, ptr %4, align 1, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 368, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %23, ptr noundef %6)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %8, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 80, i1 false)
  %24 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %7, ptr noundef %24, i1 noundef zeroext true)
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %8, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef %9, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %12, i64 noundef 0, i64 noundef 2, ptr noundef %27, i1 noundef zeroext true)
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %28, i1 noundef zeroext true)
  store i64 30, ptr %10, align 8, !tbaa !11
  store i64 30, ptr %11, align 8, !tbaa !11
  store i64 1, ptr %13, align 8, !tbaa !11
  br label %29

29:                                               ; preds = %332, %2
  %30 = load i64, ptr %13, align 8, !tbaa !11
  %31 = load i64, ptr %11, align 8, !tbaa !11
  %32 = sub nsw i64 %31, 1
  %33 = icmp sle i64 %30, %32
  br i1 %33, label %34, label %335

34:                                               ; preds = %29
  store i64 1, ptr %14, align 8, !tbaa !11
  br label %35

35:                                               ; preds = %328, %34
  %36 = load i64, ptr %14, align 8, !tbaa !11
  %37 = load i64, ptr %10, align 8, !tbaa !11
  %38 = sub nsw i64 %37, 1
  %39 = icmp sle i64 %36, %38
  br i1 %39, label %40, label %331

40:                                               ; preds = %35
  %41 = load i64, ptr %13, align 8, !tbaa !11
  %42 = load i64, ptr %14, align 8, !tbaa !11
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %41, i64 noundef %42, i64 noundef 1, ptr noundef %7, ptr noundef %43)
  %44 = load i64, ptr %13, align 8, !tbaa !11
  %45 = load i64, ptr %14, align 8, !tbaa !11
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %17, i64 noundef %44, i64 noundef %45, ptr noundef %46)
  %47 = load i64, ptr %13, align 8, !tbaa !11
  %48 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %47, ptr noundef %48)
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %86, %40
  %50 = load i64, ptr %15, align 8, !tbaa !11
  %51 = load i64, ptr %13, align 8, !tbaa !11
  %52 = sub nsw i64 %51, 1
  %53 = icmp sle i64 %50, %52
  br i1 %53, label %54, label %89

54:                                               ; preds = %49
  %55 = load i64, ptr %15, align 8, !tbaa !11
  %56 = load i64, ptr %14, align 8, !tbaa !11
  %57 = sub nsw i64 %56, 3
  %58 = icmp sle i64 %55, %57
  br i1 %58, label %59, label %64

59:                                               ; preds = %54
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = load i64, ptr %15, align 8, !tbaa !11
  %63 = getelementptr inbounds i64, ptr %61, i64 %62
  store i64 2, ptr %63, align 8, !tbaa !11
  br label %85

64:                                               ; preds = %54
  %65 = load i64, ptr %14, align 8, !tbaa !11
  %66 = sub nsw i64 %65, 3
  %67 = load i64, ptr %15, align 8, !tbaa !11
  %68 = icmp slt i64 %66, %67
  br i1 %68, label %69, label %79

69:                                               ; preds = %64
  %70 = load i64, ptr %15, align 8, !tbaa !11
  %71 = load i64, ptr %14, align 8, !tbaa !11
  %72 = sub nsw i64 %71, 2
  %73 = icmp sle i64 %70, %72
  br i1 %73, label %74, label %79

74:                                               ; preds = %69
  %75 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = load i64, ptr %15, align 8, !tbaa !11
  %78 = getelementptr inbounds i64, ptr %76, i64 %77
  store i64 1, ptr %78, align 8, !tbaa !11
  br label %84

79:                                               ; preds = %69, %64
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !13
  %82 = load i64, ptr %15, align 8, !tbaa !11
  %83 = getelementptr inbounds i64, ptr %81, i64 %82
  store i64 0, ptr %83, align 8, !tbaa !11
  br label %84

84:                                               ; preds = %79, %74
  br label %85

85:                                               ; preds = %84, %59
  br label %86

86:                                               ; preds = %85
  %87 = load i64, ptr %15, align 8, !tbaa !11
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %15, align 8, !tbaa !11
  br label %49, !llvm.loop !14

89:                                               ; preds = %49
  %90 = load i64, ptr %13, align 8, !tbaa !11
  %91 = load i64, ptr %14, align 8, !tbaa !11
  %92 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl15sparsecreatecrsEllPNS_9ae_vectorEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %90, i64 noundef %91, ptr noundef %12, ptr noundef %9, ptr noundef %92)
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %213, %89
  %94 = load i64, ptr %15, align 8, !tbaa !11
  %95 = load i64, ptr %13, align 8, !tbaa !11
  %96 = sub nsw i64 %95, 1
  %97 = icmp sle i64 %94, %96
  br i1 %97, label %98, label %216

98:                                               ; preds = %93
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %99

99:                                               ; preds = %209, %98
  %100 = load i64, ptr %16, align 8, !tbaa !11
  %101 = load i64, ptr %14, align 8, !tbaa !11
  %102 = sub nsw i64 %101, 1
  %103 = icmp sle i64 %100, %102
  br i1 %103, label %104, label %212

104:                                              ; preds = %99
  %105 = load i64, ptr %16, align 8, !tbaa !11
  %106 = load i64, ptr %15, align 8, !tbaa !11
  %107 = icmp sgt i64 %105, %106
  br i1 %107, label %108, label %151

108:                                              ; preds = %104
  %109 = load i64, ptr %16, align 8, !tbaa !11
  %110 = load i64, ptr %15, align 8, !tbaa !11
  %111 = add nsw i64 %110, 2
  %112 = icmp sle i64 %109, %111
  br i1 %112, label %113, label %151

113:                                              ; preds = %108
  %114 = load i64, ptr %15, align 8, !tbaa !11
  %115 = load i64, ptr %16, align 8, !tbaa !11
  %116 = add nsw i64 %114, %115
  %117 = add nsw i64 %116, 1
  %118 = sitofp i64 %117 to double
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %120 = load ptr, ptr %119, align 8, !tbaa !13
  %121 = load i64, ptr %15, align 8, !tbaa !11
  %122 = getelementptr inbounds ptr, ptr %120, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !9
  %124 = load i64, ptr %16, align 8, !tbaa !11
  %125 = getelementptr inbounds double, ptr %123, i64 %124
  store double %118, ptr %125, align 8, !tbaa !16
  %126 = load i64, ptr %15, align 8, !tbaa !11
  %127 = load i64, ptr %16, align 8, !tbaa !11
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %129 = load ptr, ptr %128, align 8, !tbaa !13
  %130 = load i64, ptr %15, align 8, !tbaa !11
  %131 = getelementptr inbounds ptr, ptr %129, i64 %130
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = load i64, ptr %16, align 8, !tbaa !11
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !16
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %7, i64 noundef %126, i64 noundef %127, double noundef %135, ptr noundef %136)
  %137 = load i64, ptr %15, align 8, !tbaa !11
  %138 = load i64, ptr %16, align 8, !tbaa !11
  %139 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %7, i64 noundef %137, i64 noundef %138, double noundef 0.000000e+00, ptr noundef %139)
  %140 = load i64, ptr %15, align 8, !tbaa !11
  %141 = load i64, ptr %16, align 8, !tbaa !11
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  %144 = load i64, ptr %15, align 8, !tbaa !11
  %145 = getelementptr inbounds ptr, ptr %143, i64 %144
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = load i64, ptr %16, align 8, !tbaa !11
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !16
  %150 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %9, i64 noundef %140, i64 noundef %141, double noundef %149, ptr noundef %150)
  br label %173

151:                                              ; preds = %108, %104
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %153 = load ptr, ptr %152, align 8, !tbaa !13
  %154 = load i64, ptr %15, align 8, !tbaa !11
  %155 = getelementptr inbounds ptr, ptr %153, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = load i64, ptr %16, align 8, !tbaa !11
  %158 = getelementptr inbounds double, ptr %156, i64 %157
  store double 0.000000e+00, ptr %158, align 8, !tbaa !16
  %159 = load i64, ptr %15, align 8, !tbaa !11
  %160 = load i64, ptr %16, align 8, !tbaa !11
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %17, i32 0, i32 6
  %162 = load ptr, ptr %161, align 8, !tbaa !13
  %163 = load i64, ptr %15, align 8, !tbaa !11
  %164 = getelementptr inbounds ptr, ptr %162, i64 %163
  %165 = load ptr, ptr %164, align 8, !tbaa !9
  %166 = load i64, ptr %16, align 8, !tbaa !11
  %167 = getelementptr inbounds double, ptr %165, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !16
  %169 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %7, i64 noundef %159, i64 noundef %160, double noundef %168, ptr noundef %169)
  %170 = load i64, ptr %15, align 8, !tbaa !11
  %171 = load i64, ptr %16, align 8, !tbaa !11
  %172 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef %7, i64 noundef %170, i64 noundef %171, double noundef 0.000000e+00, ptr noundef %172)
  br label %173

173:                                              ; preds = %151, %113
  %174 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl10sparsecopyEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %7, ptr noundef %8, ptr noundef %174)
  %175 = load i64, ptr %15, align 8, !tbaa !11
  %176 = load i64, ptr %16, align 8, !tbaa !11
  %177 = load ptr, ptr %5, align 8, !tbaa !9
  %178 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %175, i64 noundef %176, ptr noundef %177)
  store double %178, ptr %18, align 8, !tbaa !16
  %179 = load i64, ptr %15, align 8, !tbaa !11
  %180 = load i64, ptr %16, align 8, !tbaa !11
  %181 = load ptr, ptr %5, align 8, !tbaa !9
  %182 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %179, i64 noundef %180, ptr noundef %181)
  store double %182, ptr %19, align 8, !tbaa !16
  %183 = load double, ptr %18, align 8, !tbaa !16
  %184 = load double, ptr %19, align 8, !tbaa !16
  %185 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %183, double noundef %184)
  br i1 %185, label %186, label %208

186:                                              ; preds = %173
  %187 = load i8, ptr %4, align 1, !tbaa !5, !range !18, !noundef !19
  %188 = trunc i8 %187 to i1
  br i1 %188, label %204, label %189

189:                                              ; preds = %186
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.154)
  %191 = load i64, ptr %15, align 8, !tbaa !11
  %192 = trunc i64 %191 to i32
  %193 = load i64, ptr %16, align 8, !tbaa !11
  %194 = trunc i64 %193 to i32
  %195 = load double, ptr %18, align 8, !tbaa !16
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.155, i32 noundef %192, i32 noundef %194, double noundef %195)
  %197 = load i64, ptr %15, align 8, !tbaa !11
  %198 = trunc i64 %197 to i32
  %199 = load i64, ptr %16, align 8, !tbaa !11
  %200 = trunc i64 %199 to i32
  %201 = load double, ptr %19, align 8, !tbaa !16
  %202 = call i32 (ptr, ...) @printf(ptr noundef @.str.156, i32 noundef %198, i32 noundef %200, double noundef %201)
  %203 = call i32 (ptr, ...) @printf(ptr noundef @.str.157)
  br label %204

204:                                              ; preds = %189, %186
  store i8 1, ptr %20, align 1, !tbaa !5
  %205 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %205)
  %206 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %207 = trunc i8 %206 to i1
  store i1 %207, ptr %3, align 1
  store i32 1, ptr %21, align 4
  br label %344

208:                                              ; preds = %173
  br label %209

209:                                              ; preds = %208
  %210 = load i64, ptr %16, align 8, !tbaa !11
  %211 = add nsw i64 %210, 1
  store i64 %211, ptr %16, align 8, !tbaa !11
  br label %99, !llvm.loop !20

212:                                              ; preds = %99
  br label %213

213:                                              ; preds = %212
  %214 = load i64, ptr %15, align 8, !tbaa !11
  %215 = add nsw i64 %214, 1
  store i64 %215, ptr %15, align 8, !tbaa !11
  br label %93, !llvm.loop !21

216:                                              ; preds = %93
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %217

217:                                              ; preds = %268, %216
  %218 = load i64, ptr %15, align 8, !tbaa !11
  %219 = load i64, ptr %13, align 8, !tbaa !11
  %220 = sub nsw i64 %219, 1
  %221 = icmp sle i64 %218, %220
  br i1 %221, label %222, label %271

222:                                              ; preds = %217
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %223

223:                                              ; preds = %264, %222
  %224 = load i64, ptr %16, align 8, !tbaa !11
  %225 = load i64, ptr %14, align 8, !tbaa !11
  %226 = sub nsw i64 %225, 1
  %227 = icmp sle i64 %224, %226
  br i1 %227, label %228, label %267

228:                                              ; preds = %223
  %229 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl10sparsecopyEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %9, ptr noundef %8, ptr noundef %229)
  %230 = load i64, ptr %15, align 8, !tbaa !11
  %231 = load i64, ptr %16, align 8, !tbaa !11
  %232 = load ptr, ptr %5, align 8, !tbaa !9
  %233 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %9, i64 noundef %230, i64 noundef %231, ptr noundef %232)
  store double %233, ptr %18, align 8, !tbaa !16
  %234 = load i64, ptr %15, align 8, !tbaa !11
  %235 = load i64, ptr %16, align 8, !tbaa !11
  %236 = load ptr, ptr %5, align 8, !tbaa !9
  %237 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %234, i64 noundef %235, ptr noundef %236)
  store double %237, ptr %19, align 8, !tbaa !16
  %238 = load double, ptr %18, align 8, !tbaa !16
  %239 = load double, ptr %19, align 8, !tbaa !16
  %240 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %238, double noundef %239)
  br i1 %240, label %241, label %263

241:                                              ; preds = %228
  %242 = load i8, ptr %4, align 1, !tbaa !5, !range !18, !noundef !19
  %243 = trunc i8 %242 to i1
  br i1 %243, label %259, label %244

244:                                              ; preds = %241
  %245 = call i32 (ptr, ...) @printf(ptr noundef @.str.154)
  %246 = load i64, ptr %15, align 8, !tbaa !11
  %247 = trunc i64 %246 to i32
  %248 = load i64, ptr %16, align 8, !tbaa !11
  %249 = trunc i64 %248 to i32
  %250 = load double, ptr %18, align 8, !tbaa !16
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.155, i32 noundef %247, i32 noundef %249, double noundef %250)
  %252 = load i64, ptr %15, align 8, !tbaa !11
  %253 = trunc i64 %252 to i32
  %254 = load i64, ptr %16, align 8, !tbaa !11
  %255 = trunc i64 %254 to i32
  %256 = load double, ptr %19, align 8, !tbaa !16
  %257 = call i32 (ptr, ...) @printf(ptr noundef @.str.156, i32 noundef %253, i32 noundef %255, double noundef %256)
  %258 = call i32 (ptr, ...) @printf(ptr noundef @.str.157)
  br label %259

259:                                              ; preds = %244, %241
  store i8 1, ptr %20, align 1, !tbaa !5
  %260 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %260)
  %261 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %262 = trunc i8 %261 to i1
  store i1 %262, ptr %3, align 1
  store i32 1, ptr %21, align 4
  br label %344

263:                                              ; preds = %228
  br label %264

264:                                              ; preds = %263
  %265 = load i64, ptr %16, align 8, !tbaa !11
  %266 = add nsw i64 %265, 1
  store i64 %266, ptr %16, align 8, !tbaa !11
  br label %223, !llvm.loop !22

267:                                              ; preds = %223
  br label %268

268:                                              ; preds = %267
  %269 = load i64, ptr %15, align 8, !tbaa !11
  %270 = add nsw i64 %269, 1
  store i64 %270, ptr %15, align 8, !tbaa !11
  br label %217, !llvm.loop !23

271:                                              ; preds = %217
  %272 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef %7, ptr noundef %272)
  %273 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl10sparsecopyEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef %7, ptr noundef %8, ptr noundef %273)
  store i64 0, ptr %15, align 8, !tbaa !11
  br label %274

274:                                              ; preds = %324, %271
  %275 = load i64, ptr %15, align 8, !tbaa !11
  %276 = load i64, ptr %13, align 8, !tbaa !11
  %277 = sub nsw i64 %276, 1
  %278 = icmp sle i64 %275, %277
  br i1 %278, label %279, label %327

279:                                              ; preds = %274
  store i64 0, ptr %16, align 8, !tbaa !11
  br label %280

280:                                              ; preds = %320, %279
  %281 = load i64, ptr %16, align 8, !tbaa !11
  %282 = load i64, ptr %14, align 8, !tbaa !11
  %283 = sub nsw i64 %282, 1
  %284 = icmp sle i64 %281, %283
  br i1 %284, label %285, label %323

285:                                              ; preds = %280
  %286 = load i64, ptr %15, align 8, !tbaa !11
  %287 = load i64, ptr %16, align 8, !tbaa !11
  %288 = load ptr, ptr %5, align 8, !tbaa !9
  %289 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %7, i64 noundef %286, i64 noundef %287, ptr noundef %288)
  store double %289, ptr %18, align 8, !tbaa !16
  %290 = load i64, ptr %15, align 8, !tbaa !11
  %291 = load i64, ptr %16, align 8, !tbaa !11
  %292 = load ptr, ptr %5, align 8, !tbaa !9
  %293 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef %8, i64 noundef %290, i64 noundef %291, ptr noundef %292)
  store double %293, ptr %19, align 8, !tbaa !16
  %294 = load double, ptr %18, align 8, !tbaa !16
  %295 = load double, ptr %19, align 8, !tbaa !16
  %296 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %294, double noundef %295)
  br i1 %296, label %297, label %319

297:                                              ; preds = %285
  %298 = load i8, ptr %4, align 1, !tbaa !5, !range !18, !noundef !19
  %299 = trunc i8 %298 to i1
  br i1 %299, label %315, label %300

300:                                              ; preds = %297
  %301 = call i32 (ptr, ...) @printf(ptr noundef @.str.154)
  %302 = load i64, ptr %15, align 8, !tbaa !11
  %303 = trunc i64 %302 to i32
  %304 = load i64, ptr %16, align 8, !tbaa !11
  %305 = trunc i64 %304 to i32
  %306 = load double, ptr %18, align 8, !tbaa !16
  %307 = call i32 (ptr, ...) @printf(ptr noundef @.str.155, i32 noundef %303, i32 noundef %305, double noundef %306)
  %308 = load i64, ptr %15, align 8, !tbaa !11
  %309 = trunc i64 %308 to i32
  %310 = load i64, ptr %16, align 8, !tbaa !11
  %311 = trunc i64 %310 to i32
  %312 = load double, ptr %19, align 8, !tbaa !16
  %313 = call i32 (ptr, ...) @printf(ptr noundef @.str.156, i32 noundef %309, i32 noundef %311, double noundef %312)
  %314 = call i32 (ptr, ...) @printf(ptr noundef @.str.157)
  br label %315

315:                                              ; preds = %300, %297
  store i8 1, ptr %20, align 1, !tbaa !5
  %316 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %316)
  %317 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %318 = trunc i8 %317 to i1
  store i1 %318, ptr %3, align 1
  store i32 1, ptr %21, align 4
  br label %344

319:                                              ; preds = %285
  br label %320

320:                                              ; preds = %319
  %321 = load i64, ptr %16, align 8, !tbaa !11
  %322 = add nsw i64 %321, 1
  store i64 %322, ptr %16, align 8, !tbaa !11
  br label %280, !llvm.loop !24

323:                                              ; preds = %280
  br label %324

324:                                              ; preds = %323
  %325 = load i64, ptr %15, align 8, !tbaa !11
  %326 = add nsw i64 %325, 1
  store i64 %326, ptr %15, align 8, !tbaa !11
  br label %274, !llvm.loop !25

327:                                              ; preds = %274
  br label %328

328:                                              ; preds = %327
  %329 = load i64, ptr %14, align 8, !tbaa !11
  %330 = add nsw i64 %329, 1
  store i64 %330, ptr %14, align 8, !tbaa !11
  br label %35, !llvm.loop !26

331:                                              ; preds = %35
  br label %332

332:                                              ; preds = %331
  %333 = load i64, ptr %13, align 8, !tbaa !11
  %334 = add nsw i64 %333, 1
  store i64 %334, ptr %13, align 8, !tbaa !11
  br label %29, !llvm.loop !27

335:                                              ; preds = %29
  %336 = load i8, ptr %4, align 1, !tbaa !5, !range !18, !noundef !19
  %337 = trunc i8 %336 to i1
  br i1 %337, label %340, label %338

338:                                              ; preds = %335
  %339 = call i32 (ptr, ...) @printf(ptr noundef @.str.158)
  br label %340

340:                                              ; preds = %338, %335
  store i8 0, ptr %20, align 1, !tbaa !5
  %341 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %341)
  %342 = load i8, ptr %20, align 1, !tbaa !5, !range !18, !noundef !19
  %343 = trunc i8 %342 to i1
  store i1 %343, ptr %3, align 1
  store i32 1, ptr %21, align 4
  br label %344

344:                                              ; preds = %340, %315, %259, %204
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 368, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  %345 = load i1, ptr %3, align 1
  ret i1 %345
}

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #1

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl10sparsecopyEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

declare void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) #1

declare void @_ZN11alglib_impl15sparsecreatecrsEllPNS_9ae_vectorEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}


; 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"

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::sparsematrix" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, i64, i64, i64, i64, i64 }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon }
%union.anon = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.154 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [27 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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) 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) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #1

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

declare 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

declare void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z17basiccopyfunctestbPN11alglib_impl8ae_stateE(i1 noundef zeroext %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = alloca %"struct.alglib_impl::ae_frame", align 8
  %4 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %5 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %6 = alloca %"struct.alglib_impl::sparsematrix", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_matrix", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 368, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %1, ptr noundef nonnull %3)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %4, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %5, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(368) %6, i8 0, i64 368, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %8, i8 0, i64 80, i1 false)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %4, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %5, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef nonnull %6, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %7, i64 noundef 0, i64 noundef 2, ptr noundef %1, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %1, i1 noundef zeroext true)
  %9 = getelementptr inbounds i8, ptr %7, i64 56
  %10 = getelementptr inbounds i8, ptr %8, i64 72
  br label %.preheader160

.preheader160:                                    ; preds = %2, %87
  %11 = phi i1 [ true, %2 ], [ %89, %87 ]
  %.0146184 = phi i64 [ 1, %2 ], [ %88, %87 ]
  br label %12

12:                                               ; preds = %.preheader160, %85
  %.0145183 = phi i64 [ 1, %.preheader160 ], [ %86, %85 ]
  call void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0146184, i64 noundef %.0145183, i64 noundef 1, ptr noundef nonnull %4, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %.0146184, i64 noundef %.0145183, ptr noundef %1)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %.0146184, ptr noundef %1)
  %13 = add nsw i64 %.0145183, -3
  %14 = add nsw i64 %.0145183, -2
  br label %15

15:                                               ; preds = %12, %24
  %.0142176 = phi i64 [ 0, %12 ], [ %25, %24 ]
  %.not155 = icmp sgt i64 %.0142176, %13
  br i1 %.not155, label %19, label %16

16:                                               ; preds = %15
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  %18 = getelementptr inbounds i64, ptr %17, i64 %.0142176
  store i64 2, ptr %18, align 8, !tbaa !8
  br label %24

19:                                               ; preds = %15
  %.not156 = icmp sgt i64 %.0142176, %14
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds i64, ptr %20, i64 %.0142176
  br i1 %.not156, label %23, label %22

22:                                               ; preds = %19
  store i64 1, ptr %21, align 8, !tbaa !8
  br label %24

23:                                               ; preds = %19
  store i64 0, ptr %21, align 8, !tbaa !8
  br label %24

24:                                               ; preds = %16, %23, %22
  %25 = add nuw nsw i64 %.0142176, 1
  %exitcond.not = icmp eq i64 %25, %.0146184
  br i1 %exitcond.not, label %26, label %15, !llvm.loop !10

26:                                               ; preds = %24
  call void @_ZN11alglib_impl15sparsecreatecrsEllPNS_9ae_vectorEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef %.0146184, i64 noundef %.0145183, ptr noundef nonnull %7, ptr noundef nonnull %6, ptr noundef %1)
  br label %.preheader158

.preheader158:                                    ; preds = %26, %65
  %.1143178 = phi i64 [ 0, %26 ], [ %28, %65 ]
  %27 = add nuw nsw i64 %.1143178, 2
  %28 = add nuw nsw i64 %.1143178, 1
  br label %29

29:                                               ; preds = %.preheader158, %63
  %.0177 = phi i64 [ 0, %.preheader158 ], [ %64, %63 ]
  %30 = icmp ule i64 %.0177, %.1143178
  %.not = icmp ugt i64 %.0177, %27
  %or.cond = select i1 %30, i1 true, i1 %.not
  br i1 %or.cond, label %48, label %31

31:                                               ; preds = %29
  %32 = add nuw nsw i64 %28, %.0177
  %33 = uitofp nneg i64 %32 to double
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.1143178
  %36 = load ptr, ptr %35, align 8, !tbaa !12
  %37 = getelementptr inbounds double, ptr %36, i64 %.0177
  store double %33, ptr %37, align 8, !tbaa !14
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds ptr, ptr %38, i64 %.1143178
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  %41 = getelementptr inbounds double, ptr %40, i64 %.0177
  %42 = load double, ptr %41, align 8, !tbaa !14
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1143178, i64 noundef %.0177, double noundef %42, ptr noundef %1)
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1143178, i64 noundef %.0177, double noundef 0.000000e+00, ptr noundef %1)
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.1143178
  %45 = load ptr, ptr %44, align 8, !tbaa !12
  %46 = getelementptr inbounds double, ptr %45, i64 %.0177
  %47 = load double, ptr %46, align 8, !tbaa !14
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.1143178, i64 noundef %.0177, double noundef %47, ptr noundef %1)
  br label %58

48:                                               ; preds = %29
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.1143178
  %51 = load ptr, ptr %50, align 8, !tbaa !12
  %52 = getelementptr inbounds double, ptr %51, i64 %.0177
  store double 0.000000e+00, ptr %52, align 8, !tbaa !14
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds ptr, ptr %53, i64 %.1143178
  %55 = load ptr, ptr %54, align 8, !tbaa !12
  %56 = getelementptr inbounds double, ptr %55, i64 %.0177
  %57 = load double, ptr %56, align 8, !tbaa !14
  call void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1143178, i64 noundef %.0177, double noundef %57, ptr noundef %1)
  call void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1143178, i64 noundef %.0177, double noundef 0.000000e+00, ptr noundef %1)
  br label %58

58:                                               ; preds = %48, %31
  call void @_ZN11alglib_impl10sparsecopyEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  %59 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.1143178, i64 noundef %.0177, ptr noundef %1)
  %60 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.1143178, i64 noundef %.0177, ptr noundef %1)
  %61 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %59, double noundef %60)
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  br i1 %0, label %97, label %.sink.split.sink.split

63:                                               ; preds = %58
  %64 = add nuw nsw i64 %.0177, 1
  %exitcond207.not = icmp eq i64 %64, %.0145183
  br i1 %exitcond207.not, label %65, label %29, !llvm.loop !16

65:                                               ; preds = %63
  %exitcond208.not = icmp eq i64 %28, %.0146184
  br i1 %exitcond208.not, label %.preheader157, label %.preheader158, !llvm.loop !17

.preheader157:                                    ; preds = %65, %73
  %.2144180 = phi i64 [ %74, %73 ], [ 0, %65 ]
  br label %66

66:                                               ; preds = %.preheader157, %71
  %.1179 = phi i64 [ 0, %.preheader157 ], [ %72, %71 ]
  call void @_ZN11alglib_impl10sparsecopyEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef %1)
  %67 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %6, i64 noundef %.2144180, i64 noundef %.1179, ptr noundef %1)
  %68 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.2144180, i64 noundef %.1179, ptr noundef %1)
  %69 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %67, double noundef %68)
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  br i1 %0, label %97, label %.sink.split.sink.split

71:                                               ; preds = %66
  %72 = add nuw nsw i64 %.1179, 1
  %exitcond209.not = icmp eq i64 %72, %.0145183
  br i1 %exitcond209.not, label %73, label %66, !llvm.loop !18

73:                                               ; preds = %71
  %74 = add nuw nsw i64 %.2144180, 1
  %exitcond210.not = icmp eq i64 %74, %.0146184
  br i1 %exitcond210.not, label %75, label %.preheader157, !llvm.loop !19

75:                                               ; preds = %73
  call void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef %1)
  call void @_ZN11alglib_impl10sparsecopyEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %1)
  br label %.preheader

.preheader:                                       ; preds = %75, %83
  %.3182 = phi i64 [ 0, %75 ], [ %84, %83 ]
  br label %76

76:                                               ; preds = %.preheader, %81
  %.2181 = phi i64 [ 0, %.preheader ], [ %82, %81 ]
  %77 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %.3182, i64 noundef %.2181, ptr noundef %1)
  %78 = call noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %.3182, i64 noundef %.2181, ptr noundef %1)
  %79 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %77, double noundef %78)
  br i1 %79, label %80, label %81

80:                                               ; preds = %76
  br i1 %0, label %97, label %.sink.split.sink.split

81:                                               ; preds = %76
  %82 = add nuw nsw i64 %.2181, 1
  %exitcond211.not = icmp eq i64 %82, %.0145183
  br i1 %exitcond211.not, label %83, label %76, !llvm.loop !20

83:                                               ; preds = %81
  %84 = add nuw nsw i64 %.3182, 1
  %exitcond212.not = icmp eq i64 %84, %.0146184
  br i1 %exitcond212.not, label %85, label %.preheader, !llvm.loop !21

85:                                               ; preds = %83
  %86 = add nuw nsw i64 %.0145183, 1
  %exitcond213.not = icmp eq i64 %86, 30
  br i1 %exitcond213.not, label %87, label %12, !llvm.loop !22

87:                                               ; preds = %85
  %88 = add nuw nsw i64 %.0146184, 1
  %89 = icmp ult i64 %.0146184, 29
  %exitcond214.not = icmp eq i64 %88, 30
  br i1 %exitcond214.not, label %90, label %.preheader160, !llvm.loop !23

90:                                               ; preds = %87
  br i1 %0, label %97, label %.sink.split

.sink.split.sink.split:                           ; preds = %80, %70, %62
  %.1143178.lcssa.sink = phi i64 [ %.1143178, %62 ], [ %.2144180, %70 ], [ %.3182, %80 ]
  %.0177.lcssa.sink = phi i64 [ %.0177, %62 ], [ %.1179, %70 ], [ %.2181, %80 ]
  %.lcssa217.sink = phi double [ %59, %62 ], [ %67, %70 ], [ %77, %80 ]
  %.lcssa.sink = phi double [ %60, %62 ], [ %68, %70 ], [ %78, %80 ]
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.154)
  %92 = trunc i64 %.1143178.lcssa.sink to i32
  %93 = trunc i64 %.0177.lcssa.sink to i32
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.155, i32 noundef %92, i32 noundef %93, double noundef %.lcssa217.sink)
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.156, i32 noundef %92, i32 noundef %93, double noundef %.lcssa.sink)
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %90
  %.str.158.sink = phi ptr [ @.str.158, %90 ], [ @.str.157, %.sink.split.sink.split ]
  %.ph = phi i1 [ %89, %90 ], [ %11, %.sink.split.sink.split ]
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.158.sink)
  br label %97

97:                                               ; preds = %.sink.split, %90, %80, %70, %62
  %98 = phi i1 [ %11, %62 ], [ %11, %70 ], [ %11, %80 ], [ %89, %90 ], [ %.ph, %.sink.split ]
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 368, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  ret i1 %98
}

declare void @_ZN11alglib_impl18_sparsematrix_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare void @_ZN11alglib_impl9sparsesetEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl10sparsecopyEPNS_12sparsematrixES1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl18sparseconverttocrsEPNS_12sparsematrixEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef double @_ZN11alglib_impl9sparsegetEPNS_12sparsematrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl12sparsecreateElllPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl9sparseaddEPNS_12sparsematrixElldPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, double noundef, ptr noundef) local_unnamed_addr #1

declare void @_ZN11alglib_impl15sparsecreatecrsEllPNS_9ae_vectorEPNS_12sparsematrixEPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !6, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !6, i64 0}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass