; LLVM IR from simbody/simbody :: SimTKmath/Integrators/src/CPodes/sundials/src/cpodes (cpodes_lapack)

; 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.CPodeMemRec = type { double, i32, ptr, ptr, ptr, i32, i32, i32, double, double, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, [14 x double], [6 x double], [13 x double], [13 x double], double, double, double, double, double, double, double, i32, i32, i32, i32, i64, i64, i32, i32, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, i64, i64, double, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i64, i64, i64, i64, i32, i32, ptr, ptr, i32, i32, double, double, ptr, [13 x ptr], ptr, ptr, ptr, ptr, double, i64, i64, i32, i32, i32, i64, i64, i32, i32, double, i32, i64, i32, i32, i32, i32, double, double, double, i64, i64, i64, i64, i64, i64, i32, double, double, double, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i64, double, double, double, i32, double, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, [6 x [4 x double]], i32, i64, i32, ptr, i32, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr, double, i32, i32, i64, double, double, i32, i32, ptr, ptr }
%struct._generic_N_Vector = type { ptr, ptr }
%struct._generic_N_Vector_Ops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.CPDlsProjMemRec = type { i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, i64, i64, i64 }
%struct._DlsMat = type { i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr }

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 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 @cpProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

declare ptr @NewDenseMat(i32 noundef, i32 noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

declare ptr @NewIntArray(i32 noundef) #1

declare void @DestroyMat(ptr noundef) #1

declare void @DestroyArray(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @CPLapackDenseProj(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 -1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %4
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef null, i32 noundef -1, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.2)
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

19:                                               ; preds = %4
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %20, ptr %10, align 8, !tbaa !5
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.CPodeMemRec, ptr %21, i32 0, i32 18
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = getelementptr inbounds %struct._generic_N_Vector, ptr %23, i32 0, i32 1
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %25, i32 0, i32 4
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = icmp eq ptr %27, null
  br i1 %28, label %38, label %29

29:                                               ; preds = %19
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.CPodeMemRec, ptr %30, i32 0, i32 18
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct._generic_N_Vector, ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %34, i32 0, i32 5
  %36 = load ptr, ptr %35, align 8, !tbaa !19
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %40

38:                                               ; preds = %29, %19
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %39, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.3)
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

40:                                               ; preds = %29
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 1
  br i1 %42, label %43, label %54

43:                                               ; preds = %40
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 2
  br i1 %45, label %46, label %54

46:                                               ; preds = %43
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 3
  br i1 %48, label %49, label %54

49:                                               ; preds = %46
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 4
  br i1 %51, label %52, label %54

52:                                               ; preds = %49
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %53, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.8)
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

54:                                               ; preds = %49, %46, %43, %40
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.CPodeMemRec, ptr %55, i32 0, i32 135
  %57 = load ptr, ptr %56, align 8, !tbaa !20
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %64

59:                                               ; preds = %54
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.CPodeMemRec, ptr %60, i32 0, i32 135
  %62 = load ptr, ptr %61, align 8, !tbaa !20
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  call void %62(ptr noundef %63)
  br label %64

64:                                               ; preds = %59, %54
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CPodeMemRec, ptr %65, i32 0, i32 131
  store ptr @cpLapackDenseProjInit, ptr %66, align 8, !tbaa !21
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.CPodeMemRec, ptr %67, i32 0, i32 132
  store ptr @cpLapackDenseProjSetup, ptr %68, align 8, !tbaa !22
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.CPodeMemRec, ptr %69, i32 0, i32 133
  store ptr @cpLapackDenseProjSolve, ptr %70, align 8, !tbaa !23
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.CPodeMemRec, ptr %71, i32 0, i32 134
  store ptr @cpLapackDenseProjMult, ptr %72, align 8, !tbaa !24
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.CPodeMemRec, ptr %73, i32 0, i32 135
  store ptr @cpLapackDenseProjFree, ptr %74, align 8, !tbaa !20
  store ptr null, ptr %11, align 8, !tbaa !5
  %75 = call noalias ptr @malloc(i64 noundef 128) #6
  store ptr %75, ptr %11, align 8, !tbaa !5
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %80

78:                                               ; preds = %64
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %79, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

80:                                               ; preds = %64
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %81, i32 0, i32 3
  store ptr null, ptr %82, align 8, !tbaa !25
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %83, i32 0, i32 4
  store ptr null, ptr %84, align 8, !tbaa !27
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.CPodeMemRec, ptr %85, i32 0, i32 137
  store i32 1, ptr %86, align 8, !tbaa !28
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %87, i32 0, i32 7
  store ptr null, ptr %88, align 8, !tbaa !29
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %89, i32 0, i32 11
  store ptr null, ptr %90, align 8, !tbaa !30
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %91, i32 0, i32 10
  store ptr null, ptr %92, align 8, !tbaa !31
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %93, i32 0, i32 12
  store ptr null, ptr %94, align 8, !tbaa !32
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %95, i32 0, i32 13
  store ptr null, ptr %96, align 8, !tbaa !33
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = load i32, ptr %7, align 4, !tbaa !9
  %99 = call ptr @NewDenseMat(i32 noundef %97, i32 noundef %98)
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %100, i32 0, i32 7
  store ptr %99, ptr %101, align 8, !tbaa !29
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %102, i32 0, i32 7
  %104 = load ptr, ptr %103, align 8, !tbaa !29
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %109

106:                                              ; preds = %80
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %107, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %108) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

109:                                              ; preds = %80
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = call ptr @NewDenseMat(i32 noundef %110, i32 noundef %111)
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %113, i32 0, i32 8
  store ptr %112, ptr %114, align 8, !tbaa !34
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %115, i32 0, i32 8
  %117 = load ptr, ptr %116, align 8, !tbaa !34
  %118 = icmp eq ptr %117, null
  br i1 %118, label %119, label %125

119:                                              ; preds = %109
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %120, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %121, i32 0, i32 7
  %123 = load ptr, ptr %122, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %123)
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %124) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

125:                                              ; preds = %109
  %126 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %126, label %392 [
    i32 1, label %127
    i32 2, label %172
    i32 4, label %257
    i32 3, label %372
  ]

127:                                              ; preds = %125
  %128 = load i32, ptr %7, align 4, !tbaa !9
  %129 = call ptr @NewIntArray(i32 noundef %128)
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %130, i32 0, i32 11
  store ptr %129, ptr %131, align 8, !tbaa !30
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %132, i32 0, i32 11
  %134 = load ptr, ptr %133, align 8, !tbaa !30
  %135 = icmp eq ptr %134, null
  br i1 %135, label %136, label %145

136:                                              ; preds = %127
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %137, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %138, i32 0, i32 8
  %140 = load ptr, ptr %139, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %140)
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %141, i32 0, i32 7
  %143 = load ptr, ptr %142, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %143)
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %144) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

145:                                              ; preds = %127
  %146 = load i32, ptr %8, align 4, !tbaa !9
  %147 = load i32, ptr %7, align 4, !tbaa !9
  %148 = sub nsw i32 %146, %147
  %149 = load i32, ptr %8, align 4, !tbaa !9
  %150 = load i32, ptr %7, align 4, !tbaa !9
  %151 = sub nsw i32 %149, %150
  %152 = call ptr @NewDenseMat(i32 noundef %148, i32 noundef %151)
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %153, i32 0, i32 10
  store ptr %152, ptr %154, align 8, !tbaa !31
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %155, i32 0, i32 10
  %157 = load ptr, ptr %156, align 8, !tbaa !31
  %158 = icmp eq ptr %157, null
  br i1 %158, label %159, label %171

159:                                              ; preds = %145
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %160, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %161, i32 0, i32 11
  %163 = load ptr, ptr %162, align 8, !tbaa !30
  call void @DestroyArray(ptr noundef %163)
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %164, i32 0, i32 8
  %166 = load ptr, ptr %165, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %166)
  %167 = load ptr, ptr %11, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %167, i32 0, i32 7
  %169 = load ptr, ptr %168, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %169)
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %170) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

171:                                              ; preds = %145
  br label %392

172:                                              ; preds = %125
  %173 = load i32, ptr %7, align 4, !tbaa !9
  %174 = call ptr @NewRealArray(i32 noundef %173)
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %175, i32 0, i32 12
  store ptr %174, ptr %176, align 8, !tbaa !32
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %177, i32 0, i32 12
  %179 = load ptr, ptr %178, align 8, !tbaa !32
  %180 = icmp eq ptr %179, null
  br i1 %180, label %181, label %190

181:                                              ; preds = %172
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %182, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %183, i32 0, i32 8
  %185 = load ptr, ptr %184, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %185)
  %186 = load ptr, ptr %11, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %186, i32 0, i32 7
  %188 = load ptr, ptr %187, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %188)
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %189) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

190:                                              ; preds = %172
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %191, i32 0, i32 7
  %193 = load ptr, ptr %192, align 8, !tbaa !29
  %194 = getelementptr inbounds %struct._DlsMat, ptr %193, i32 0, i32 7
  %195 = load ptr, ptr %194, align 8, !tbaa !35
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %196, i32 0, i32 12
  %198 = load ptr, ptr %197, align 8, !tbaa !32
  call void @dgeqrf_(ptr noundef %8, ptr noundef %7, ptr noundef %195, ptr noundef %8, ptr noundef %198, ptr noundef %14, ptr noundef %13, ptr noundef %12)
  %199 = load double, ptr %14, align 8, !tbaa !37
  %200 = fptosi double %199 to i32
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %201, i32 0, i32 14
  store i32 %200, ptr %202, align 8, !tbaa !38
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %203, i32 0, i32 14
  %205 = load i32, ptr %204, align 8, !tbaa !38
  %206 = call ptr @NewRealArray(i32 noundef %205)
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %207, i32 0, i32 13
  store ptr %206, ptr %208, align 8, !tbaa !33
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %209, i32 0, i32 13
  %211 = load ptr, ptr %210, align 8, !tbaa !33
  %212 = icmp eq ptr %211, null
  br i1 %212, label %213, label %225

213:                                              ; preds = %190
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %214, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %215, i32 0, i32 12
  %217 = load ptr, ptr %216, align 8, !tbaa !32
  call void @DestroyArray(ptr noundef %217)
  %218 = load ptr, ptr %11, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %218, i32 0, i32 8
  %220 = load ptr, ptr %219, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %220)
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %221, i32 0, i32 7
  %223 = load ptr, ptr %222, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %223)
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %224) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

225:                                              ; preds = %190
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.CPodeMemRec, ptr %226, i32 0, i32 50
  %228 = load i32, ptr %227, align 8, !tbaa !39
  %229 = icmp eq i32 %228, 2
  br i1 %229, label %230, label %256

230:                                              ; preds = %225
  %231 = load i32, ptr %7, align 4, !tbaa !9
  %232 = load i32, ptr %7, align 4, !tbaa !9
  %233 = call ptr @NewDenseMat(i32 noundef %231, i32 noundef %232)
  %234 = load ptr, ptr %11, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %234, i32 0, i32 10
  store ptr %233, ptr %235, align 8, !tbaa !31
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %236, i32 0, i32 10
  %238 = load ptr, ptr %237, align 8, !tbaa !31
  %239 = icmp eq ptr %238, null
  br i1 %239, label %240, label %255

240:                                              ; preds = %230
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %241, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %242, i32 0, i32 13
  %244 = load ptr, ptr %243, align 8, !tbaa !33
  call void @DestroyArray(ptr noundef %244)
  %245 = load ptr, ptr %11, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %245, i32 0, i32 12
  %247 = load ptr, ptr %246, align 8, !tbaa !32
  call void @DestroyArray(ptr noundef %247)
  %248 = load ptr, ptr %11, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %248, i32 0, i32 8
  %250 = load ptr, ptr %249, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %250)
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %251, i32 0, i32 7
  %253 = load ptr, ptr %252, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %253)
  %254 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %254) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

255:                                              ; preds = %230
  br label %256

256:                                              ; preds = %255, %225
  br label %392

257:                                              ; preds = %125
  %258 = load i32, ptr %7, align 4, !tbaa !9
  %259 = call ptr @NewIntArray(i32 noundef %258)
  %260 = load ptr, ptr %11, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %260, i32 0, i32 11
  store ptr %259, ptr %261, align 8, !tbaa !30
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %262, i32 0, i32 11
  %264 = load ptr, ptr %263, align 8, !tbaa !30
  %265 = icmp eq ptr %264, null
  br i1 %265, label %266, label %275

266:                                              ; preds = %257
  %267 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %267, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %268, i32 0, i32 8
  %270 = load ptr, ptr %269, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %270)
  %271 = load ptr, ptr %11, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %271, i32 0, i32 7
  %273 = load ptr, ptr %272, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %273)
  %274 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %274) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

275:                                              ; preds = %257
  %276 = load i32, ptr %7, align 4, !tbaa !9
  %277 = call ptr @NewRealArray(i32 noundef %276)
  %278 = load ptr, ptr %11, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %278, i32 0, i32 12
  store ptr %277, ptr %279, align 8, !tbaa !32
  %280 = load ptr, ptr %11, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %280, i32 0, i32 12
  %282 = load ptr, ptr %281, align 8, !tbaa !32
  %283 = icmp eq ptr %282, null
  br i1 %283, label %284, label %296

284:                                              ; preds = %275
  %285 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %285, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %286 = load ptr, ptr %11, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %286, i32 0, i32 11
  %288 = load ptr, ptr %287, align 8, !tbaa !30
  call void @DestroyArray(ptr noundef %288)
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %289, i32 0, i32 8
  %291 = load ptr, ptr %290, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %291)
  %292 = load ptr, ptr %11, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %292, i32 0, i32 7
  %294 = load ptr, ptr %293, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %294)
  %295 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %295) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

296:                                              ; preds = %275
  %297 = load ptr, ptr %11, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %297, i32 0, i32 7
  %299 = load ptr, ptr %298, align 8, !tbaa !29
  %300 = getelementptr inbounds %struct._DlsMat, ptr %299, i32 0, i32 7
  %301 = load ptr, ptr %300, align 8, !tbaa !35
  %302 = load ptr, ptr %11, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %302, i32 0, i32 11
  %304 = load ptr, ptr %303, align 8, !tbaa !30
  %305 = load ptr, ptr %11, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %305, i32 0, i32 12
  %307 = load ptr, ptr %306, align 8, !tbaa !32
  call void @dgeqp3_(ptr noundef %8, ptr noundef %7, ptr noundef %301, ptr noundef %8, ptr noundef %304, ptr noundef %307, ptr noundef %14, ptr noundef %13, ptr noundef %12)
  %308 = load double, ptr %14, align 8, !tbaa !37
  %309 = fptosi double %308 to i32
  %310 = load ptr, ptr %11, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %310, i32 0, i32 14
  store i32 %309, ptr %311, align 8, !tbaa !38
  %312 = load ptr, ptr %11, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %312, i32 0, i32 14
  %314 = load i32, ptr %313, align 8, !tbaa !38
  %315 = call ptr @NewRealArray(i32 noundef %314)
  %316 = load ptr, ptr %11, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %316, i32 0, i32 13
  store ptr %315, ptr %317, align 8, !tbaa !33
  %318 = load ptr, ptr %11, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %318, i32 0, i32 13
  %320 = load ptr, ptr %319, align 8, !tbaa !33
  %321 = icmp eq ptr %320, null
  br i1 %321, label %322, label %337

322:                                              ; preds = %296
  %323 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %323, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %324 = load ptr, ptr %11, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %324, i32 0, i32 12
  %326 = load ptr, ptr %325, align 8, !tbaa !32
  call void @DestroyArray(ptr noundef %326)
  %327 = load ptr, ptr %11, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %327, i32 0, i32 11
  %329 = load ptr, ptr %328, align 8, !tbaa !30
  call void @DestroyArray(ptr noundef %329)
  %330 = load ptr, ptr %11, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %330, i32 0, i32 8
  %332 = load ptr, ptr %331, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %332)
  %333 = load ptr, ptr %11, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %333, i32 0, i32 7
  %335 = load ptr, ptr %334, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %335)
  %336 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %336) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

337:                                              ; preds = %296
  %338 = load ptr, ptr %10, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.CPodeMemRec, ptr %338, i32 0, i32 50
  %340 = load i32, ptr %339, align 8, !tbaa !39
  %341 = icmp eq i32 %340, 2
  br i1 %341, label %342, label %371

342:                                              ; preds = %337
  %343 = load i32, ptr %7, align 4, !tbaa !9
  %344 = load i32, ptr %7, align 4, !tbaa !9
  %345 = call ptr @NewDenseMat(i32 noundef %343, i32 noundef %344)
  %346 = load ptr, ptr %11, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %346, i32 0, i32 10
  store ptr %345, ptr %347, align 8, !tbaa !31
  %348 = load ptr, ptr %11, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %348, i32 0, i32 10
  %350 = load ptr, ptr %349, align 8, !tbaa !31
  %351 = icmp eq ptr %350, null
  br i1 %351, label %352, label %370

352:                                              ; preds = %342
  %353 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %353, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %354 = load ptr, ptr %11, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %354, i32 0, i32 13
  %356 = load ptr, ptr %355, align 8, !tbaa !33
  call void @DestroyArray(ptr noundef %356)
  %357 = load ptr, ptr %11, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %357, i32 0, i32 12
  %359 = load ptr, ptr %358, align 8, !tbaa !32
  call void @DestroyArray(ptr noundef %359)
  %360 = load ptr, ptr %11, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %360, i32 0, i32 11
  %362 = load ptr, ptr %361, align 8, !tbaa !30
  call void @DestroyArray(ptr noundef %362)
  %363 = load ptr, ptr %11, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %363, i32 0, i32 8
  %365 = load ptr, ptr %364, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %365)
  %366 = load ptr, ptr %11, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %366, i32 0, i32 7
  %368 = load ptr, ptr %367, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %368)
  %369 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %369) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

370:                                              ; preds = %342
  br label %371

371:                                              ; preds = %370, %337
  br label %392

372:                                              ; preds = %125
  %373 = load i32, ptr %7, align 4, !tbaa !9
  %374 = load i32, ptr %7, align 4, !tbaa !9
  %375 = call ptr @NewDenseMat(i32 noundef %373, i32 noundef %374)
  %376 = load ptr, ptr %11, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %376, i32 0, i32 10
  store ptr %375, ptr %377, align 8, !tbaa !31
  %378 = load ptr, ptr %11, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %378, i32 0, i32 10
  %380 = load ptr, ptr %379, align 8, !tbaa !31
  %381 = icmp eq ptr %380, null
  br i1 %381, label %382, label %391

382:                                              ; preds = %372
  %383 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %383, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.4)
  %384 = load ptr, ptr %11, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %384, i32 0, i32 8
  %386 = load ptr, ptr %385, align 8, !tbaa !34
  call void @DestroyMat(ptr noundef %386)
  %387 = load ptr, ptr %11, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %387, i32 0, i32 7
  %389 = load ptr, ptr %388, align 8, !tbaa !29
  call void @DestroyMat(ptr noundef %389)
  %390 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %390) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

391:                                              ; preds = %372
  br label %392

392:                                              ; preds = %391, %371, %256, %171, %125
  %393 = load i32, ptr %7, align 4, !tbaa !9
  %394 = load ptr, ptr %11, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %394, i32 0, i32 1
  store i32 %393, ptr %395, align 4, !tbaa !40
  %396 = load i32, ptr %8, align 4, !tbaa !9
  %397 = load ptr, ptr %11, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %397, i32 0, i32 2
  store i32 %396, ptr %398, align 8, !tbaa !41
  %399 = load i32, ptr %9, align 4, !tbaa !9
  %400 = load ptr, ptr %11, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %400, i32 0, i32 5
  store i32 %399, ptr %401, align 8, !tbaa !42
  %402 = load ptr, ptr %11, align 8, !tbaa !5
  %403 = load ptr, ptr %10, align 8, !tbaa !5
  %404 = getelementptr inbounds %struct.CPodeMemRec, ptr %403, i32 0, i32 136
  store ptr %402, ptr %404, align 8, !tbaa !43
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %405

405:                                              ; preds = %392, %382, %352, %322, %284, %266, %240, %213, %181, %159, %136, %119, %106, %78, %52, %38, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %406 = load i32, ptr %5, align 4
  ret i32 %406
}

; Function Attrs: nounwind uwtable
declare hidden i32 @cpLapackDenseProjInit(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @cpLapackDenseProjSetup(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @cpLapackDenseProjSolve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @cpLapackDenseProjMult(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @cpLapackDenseProjFree(ptr noundef) #4

declare ptr @NewRealArray(i32 noundef) #1

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

declare void @dgeqp3_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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 = { nounwind allocsize(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 = { 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 = { 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 }
attributes #6 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 232}
!12 = !{!"CPodeMemRec", !13, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !13, i64 56, !13, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !7, i64 96, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !7, i64 336, !7, i64 448, !7, i64 496, !7, i64 600, !13, i64 704, !13, i64 712, !13, i64 720, !13, i64 728, !13, i64 736, !13, i64 744, !13, i64 752, !10, i64 760, !10, i64 764, !10, i64 768, !10, i64 772, !14, i64 776, !14, i64 784, !10, i64 792, !10, i64 796, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !13, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !14, i64 864, !14, i64 872, !13, i64 880, !10, i64 888, !10, i64 892, !10, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !10, i64 936, !14, i64 944, !14, i64 952, !14, i64 960, !14, i64 968, !10, i64 976, !10, i64 980, !6, i64 984, !6, i64 992, !10, i64 1000, !10, i64 1004, !13, i64 1008, !13, i64 1016, !6, i64 1024, !7, i64 1032, !6, i64 1136, !6, i64 1144, !6, i64 1152, !6, i64 1160, !13, i64 1168, !14, i64 1176, !14, i64 1184, !10, i64 1192, !10, i64 1196, !10, i64 1200, !14, i64 1208, !14, i64 1216, !10, i64 1224, !10, i64 1228, !13, i64 1232, !10, i64 1240, !14, i64 1248, !10, i64 1256, !10, i64 1260, !10, i64 1264, !10, i64 1268, !13, i64 1272, !13, i64 1280, !13, i64 1288, !14, i64 1296, !14, i64 1304, !14, i64 1312, !14, i64 1320, !14, i64 1328, !14, i64 1336, !10, i64 1344, !13, i64 1352, !13, i64 1360, !13, i64 1368, !14, i64 1376, !14, i64 1384, !14, i64 1392, !14, i64 1400, !14, i64 1408, !14, i64 1416, !6, i64 1424, !6, i64 1432, !6, i64 1440, !6, i64 1448, !6, i64 1456, !10, i64 1464, !6, i64 1472, !6, i64 1480, !6, i64 1488, !6, i64 1496, !6, i64 1504, !6, i64 1512, !10, i64 1520, !10, i64 1524, !14, i64 1528, !13, i64 1536, !13, i64 1544, !13, i64 1552, !10, i64 1560, !13, i64 1568, !10, i64 1576, !10, i64 1580, !10, i64 1584, !10, i64 1588, !10, i64 1592, !10, i64 1596, !6, i64 1600, !6, i64 1608, !6, i64 1616, !10, i64 1624, !7, i64 1632, !10, i64 1824, !14, i64 1832, !10, i64 1840, !6, i64 1848, !10, i64 1856, !6, i64 1864, !6, i64 1872, !6, i64 1880, !6, i64 1888, !13, i64 1896, !13, i64 1904, !13, i64 1912, !6, i64 1920, !6, i64 1928, !6, i64 1936, !13, i64 1944, !10, i64 1952, !10, i64 1956, !14, i64 1960, !13, i64 1968, !13, i64 1976, !10, i64 1984, !10, i64 1988, !6, i64 1992, !6, i64 2000}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 8}
!16 = !{!"_generic_N_Vector", !6, i64 0, !6, i64 8}
!17 = !{!18, !6, i64 32}
!18 = !{!"_generic_N_Vector_Ops", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192}
!19 = !{!18, !6, i64 40}
!20 = !{!12, !6, i64 1504}
!21 = !{!12, !6, i64 1472}
!22 = !{!12, !6, i64 1480}
!23 = !{!12, !6, i64 1488}
!24 = !{!12, !6, i64 1496}
!25 = !{!26, !6, i64 16}
!26 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !6, i64 40, !6, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !14, i64 104, !14, i64 112, !14, i64 120}
!27 = !{!26, !6, i64 24}
!28 = !{!12, !10, i64 1520}
!29 = !{!26, !6, i64 40}
!30 = !{!26, !6, i64 72}
!31 = !{!26, !6, i64 64}
!32 = !{!26, !6, i64 80}
!33 = !{!26, !6, i64 88}
!34 = !{!26, !6, i64 48}
!35 = !{!36, !6, i64 32}
!36 = !{!"_DlsMat", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !10, i64 40, !6, i64 48}
!37 = !{!13, !13, i64 0}
!38 = !{!26, !10, i64 96}
!39 = !{!12, !10, i64 792}
!40 = !{!26, !10, i64 4}
!41 = !{!26, !10, i64 8}
!42 = !{!26, !10, i64 32}
!43 = !{!12, !6, i64 1512}


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

@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [32 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 @cpProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

declare ptr @NewDenseMat(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

declare ptr @NewIntArray(i32 noundef) local_unnamed_addr #1

declare void @DestroyMat(ptr noundef) local_unnamed_addr #1

declare void @DestroyArray(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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -4, 1) i32 @CPLapackDenseProj(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #4 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  store i32 %1, ptr %5, align 4, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 -1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %10 = icmp eq ptr %0, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %4
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef null, i32 noundef -1, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2) #6
  br label %125

12:                                               ; preds = %4
  %13 = getelementptr inbounds i8, ptr %0, i64 232
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %16, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = icmp eq ptr %18, null
  br i1 %19, label %24, label %20

20:                                               ; preds = %12
  %21 = getelementptr inbounds i8, ptr %16, i64 40
  %22 = load ptr, ptr %21, align 8, !tbaa !18
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %20, %12
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.3) #6
  br label %125

25:                                               ; preds = %20
  %26 = add i32 %3, -5
  %or.cond5 = icmp ult i32 %26, -4
  br i1 %or.cond5, label %27, label %28

27:                                               ; preds = %25
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8) #6
  br label %125

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %0, i64 1504
  %30 = load ptr, ptr %29, align 8, !tbaa !19
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %32, label %31

31:                                               ; preds = %28
  tail call void %30(ptr noundef nonnull %0) #6
  br label %32

32:                                               ; preds = %31, %28
  %33 = getelementptr inbounds i8, ptr %0, i64 1472
  store ptr @cpLapackDenseProjInit, ptr %33, align 8, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %0, i64 1480
  store ptr @cpLapackDenseProjSetup, ptr %34, align 8, !tbaa !21
  %35 = getelementptr inbounds i8, ptr %0, i64 1488
  store ptr @cpLapackDenseProjSolve, ptr %35, align 8, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %0, i64 1496
  store ptr @cpLapackDenseProjMult, ptr %36, align 8, !tbaa !23
  store ptr @cpLapackDenseProjFree, ptr %29, align 8, !tbaa !19
  %37 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #7
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %40

39:                                               ; preds = %32
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  br label %125

40:                                               ; preds = %32
  %41 = getelementptr inbounds i8, ptr %37, i64 16
  %42 = getelementptr inbounds i8, ptr %0, i64 1520
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %41, i8 0, i64 16, i1 false)
  store i32 1, ptr %42, align 8, !tbaa !24
  %43 = getelementptr inbounds i8, ptr %37, i64 40
  %44 = getelementptr inbounds i8, ptr %37, i64 72
  %45 = getelementptr inbounds i8, ptr %37, i64 64
  %46 = getelementptr inbounds i8, ptr %37, i64 80
  %47 = getelementptr inbounds i8, ptr %37, i64 88
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %45, i8 0, i64 32, i1 false)
  %48 = tail call ptr @NewDenseMat(i32 noundef %2, i32 noundef %1) #6
  store ptr %48, ptr %43, align 8, !tbaa !25
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %51

50:                                               ; preds = %40
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  tail call void @free(ptr noundef nonnull %37) #6
  br label %125

51:                                               ; preds = %40
  %52 = tail call ptr @NewDenseMat(i32 noundef %2, i32 noundef %1) #6
  %53 = getelementptr inbounds i8, ptr %37, i64 48
  store ptr %52, ptr %53, align 8, !tbaa !27
  %54 = icmp eq ptr %52, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %51
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  tail call void @DestroyMat(ptr noundef nonnull %48) #6
  tail call void @free(ptr noundef nonnull %37) #6
  br label %125

56:                                               ; preds = %51
  switch i32 %3, label %default.unreachable [
    i32 1, label %57
    i32 2, label %66
    i32 4, label %88
    i32 3, label %114
  ]

57:                                               ; preds = %56
  %58 = tail call ptr @NewIntArray(i32 noundef %1) #6
  store ptr %58, ptr %44, align 8, !tbaa !28
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %61

60:                                               ; preds = %57
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  tail call void @DestroyMat(ptr noundef nonnull %52) #6
  tail call void @DestroyMat(ptr noundef nonnull %48) #6
  tail call void @free(ptr noundef nonnull %37) #6
  br label %125

61:                                               ; preds = %57
  %62 = sub nsw i32 %2, %1
  %63 = tail call ptr @NewDenseMat(i32 noundef %62, i32 noundef %62) #6
  store ptr %63, ptr %45, align 8, !tbaa !29
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %118

65:                                               ; preds = %61
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  tail call void @DestroyArray(ptr noundef nonnull %58) #6
  tail call void @DestroyMat(ptr noundef nonnull %52) #6
  tail call void @DestroyMat(ptr noundef nonnull %48) #6
  tail call void @free(ptr noundef nonnull %37) #6
  br label %125

66:                                               ; preds = %56
  %67 = tail call ptr @NewRealArray(i32 noundef %1) #6
  store ptr %67, ptr %46, align 8, !tbaa !30
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  tail call void @DestroyMat(ptr noundef nonnull %52) #6
  tail call void @DestroyMat(ptr noundef nonnull %48) #6
  tail call void @free(ptr noundef nonnull %37) #6
  br label %125

70:                                               ; preds = %66
  %71 = getelementptr inbounds i8, ptr %48, i64 32
  %72 = load ptr, ptr %71, align 8, !tbaa !31
  call void @dgeqrf_(ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef %72, ptr noundef nonnull %6, ptr noundef nonnull %67, ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef nonnull %7) #6
  %73 = load double, ptr %9, align 8, !tbaa !33
  %74 = fptosi double %73 to i32
  %75 = getelementptr inbounds i8, ptr %37, i64 96
  store i32 %74, ptr %75, align 8, !tbaa !34
  %76 = call ptr @NewRealArray(i32 noundef %74) #6
  store ptr %76, ptr %47, align 8, !tbaa !35
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %79

78:                                               ; preds = %70
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  call void @DestroyArray(ptr noundef nonnull %67) #6
  call void @DestroyMat(ptr noundef nonnull %52) #6
  call void @DestroyMat(ptr noundef nonnull %48) #6
  call void @free(ptr noundef nonnull %37) #6
  br label %125

79:                                               ; preds = %70
  %80 = getelementptr inbounds i8, ptr %0, i64 792
  %81 = load i32, ptr %80, align 8, !tbaa !36
  %82 = icmp eq i32 %81, 2
  br i1 %82, label %83, label %118

83:                                               ; preds = %79
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = call ptr @NewDenseMat(i32 noundef %84, i32 noundef %84) #6
  store ptr %85, ptr %45, align 8, !tbaa !29
  %86 = icmp eq ptr %85, null
  br i1 %86, label %87, label %118

87:                                               ; preds = %83
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  call void @DestroyArray(ptr noundef nonnull %76) #6
  call void @DestroyArray(ptr noundef nonnull %67) #6
  call void @DestroyMat(ptr noundef nonnull %52) #6
  call void @DestroyMat(ptr noundef nonnull %48) #6
  call void @free(ptr noundef nonnull %37) #6
  br label %125

88:                                               ; preds = %56
  %89 = tail call ptr @NewIntArray(i32 noundef %1) #6
  store ptr %89, ptr %44, align 8, !tbaa !28
  %90 = icmp eq ptr %89, null
  br i1 %90, label %91, label %92

91:                                               ; preds = %88
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  tail call void @DestroyMat(ptr noundef nonnull %52) #6
  tail call void @DestroyMat(ptr noundef nonnull %48) #6
  tail call void @free(ptr noundef nonnull %37) #6
  br label %125

92:                                               ; preds = %88
  %93 = tail call ptr @NewRealArray(i32 noundef %1) #6
  store ptr %93, ptr %46, align 8, !tbaa !30
  %94 = icmp eq ptr %93, null
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  tail call void @DestroyArray(ptr noundef nonnull %89) #6
  tail call void @DestroyMat(ptr noundef nonnull %52) #6
  tail call void @DestroyMat(ptr noundef nonnull %48) #6
  tail call void @free(ptr noundef nonnull %37) #6
  br label %125

96:                                               ; preds = %92
  %97 = getelementptr inbounds i8, ptr %48, i64 32
  %98 = load ptr, ptr %97, align 8, !tbaa !31
  call void @dgeqp3_(ptr noundef nonnull %6, ptr noundef nonnull %5, ptr noundef %98, ptr noundef nonnull %6, ptr noundef nonnull %89, ptr noundef nonnull %93, ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef nonnull %7) #6
  %99 = load double, ptr %9, align 8, !tbaa !33
  %100 = fptosi double %99 to i32
  %101 = getelementptr inbounds i8, ptr %37, i64 96
  store i32 %100, ptr %101, align 8, !tbaa !34
  %102 = call ptr @NewRealArray(i32 noundef %100) #6
  store ptr %102, ptr %47, align 8, !tbaa !35
  %103 = icmp eq ptr %102, null
  br i1 %103, label %104, label %105

104:                                              ; preds = %96
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  call void @DestroyArray(ptr noundef nonnull %93) #6
  call void @DestroyArray(ptr noundef nonnull %89) #6
  call void @DestroyMat(ptr noundef nonnull %52) #6
  call void @DestroyMat(ptr noundef nonnull %48) #6
  call void @free(ptr noundef nonnull %37) #6
  br label %125

105:                                              ; preds = %96
  %106 = getelementptr inbounds i8, ptr %0, i64 792
  %107 = load i32, ptr %106, align 8, !tbaa !36
  %108 = icmp eq i32 %107, 2
  br i1 %108, label %109, label %118

109:                                              ; preds = %105
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = call ptr @NewDenseMat(i32 noundef %110, i32 noundef %110) #6
  store ptr %111, ptr %45, align 8, !tbaa !29
  %112 = icmp eq ptr %111, null
  br i1 %112, label %113, label %118

113:                                              ; preds = %109
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  call void @DestroyArray(ptr noundef nonnull %102) #6
  call void @DestroyArray(ptr noundef nonnull %93) #6
  call void @DestroyArray(ptr noundef nonnull %89) #6
  call void @DestroyMat(ptr noundef nonnull %52) #6
  call void @DestroyMat(ptr noundef nonnull %48) #6
  call void @free(ptr noundef nonnull %37) #6
  br label %125

114:                                              ; preds = %56
  %115 = tail call ptr @NewDenseMat(i32 noundef %1, i32 noundef %1) #6
  store ptr %115, ptr %45, align 8, !tbaa !29
  %116 = icmp eq ptr %115, null
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4) #6
  tail call void @DestroyMat(ptr noundef nonnull %52) #6
  tail call void @DestroyMat(ptr noundef nonnull %48) #6
  tail call void @free(ptr noundef nonnull %37) #6
  br label %125

default.unreachable:                              ; preds = %56
  unreachable

118:                                              ; preds = %114, %105, %109, %79, %83, %61
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %37, i64 4
  store i32 %119, ptr %120, align 4, !tbaa !37
  %121 = load i32, ptr %6, align 4, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %37, i64 8
  store i32 %121, ptr %122, align 8, !tbaa !38
  %123 = getelementptr inbounds i8, ptr %37, i64 32
  store i32 %3, ptr %123, align 8, !tbaa !39
  %124 = getelementptr inbounds i8, ptr %0, i64 1512
  store ptr %37, ptr %124, align 8, !tbaa !40
  br label %125

125:                                              ; preds = %118, %117, %113, %104, %95, %91, %87, %78, %69, %65, %60, %55, %50, %39, %27, %24, %11
  %.0 = phi i32 [ -1, %11 ], [ -3, %24 ], [ -3, %27 ], [ -4, %39 ], [ -4, %50 ], [ -4, %55 ], [ 0, %118 ], [ -4, %117 ], [ -4, %91 ], [ -4, %95 ], [ -4, %104 ], [ -4, %113 ], [ -4, %69 ], [ -4, %78 ], [ -4, %87 ], [ -4, %60 ], [ -4, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @cpLapackDenseProjInit(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @cpLapackDenseProjSetup(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @cpLapackDenseProjSolve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @cpLapackDenseProjMult(ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden void @cpLapackDenseProjFree(ptr noundef) #4

declare ptr @NewRealArray(i32 noundef) local_unnamed_addr #1

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

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

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

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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 232}
!10 = !{!"CPodeMemRec", !11, i64 0, !6, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !6, i64 40, !6, i64 44, !6, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !7, i64 96, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !7, i64 336, !7, i64 448, !7, i64 496, !7, i64 600, !11, i64 704, !11, i64 712, !11, i64 720, !11, i64 728, !11, i64 736, !11, i64 744, !11, i64 752, !6, i64 760, !6, i64 764, !6, i64 768, !6, i64 772, !13, i64 776, !13, i64 784, !6, i64 792, !6, i64 796, !12, i64 800, !12, i64 808, !12, i64 816, !12, i64 824, !11, i64 832, !12, i64 840, !12, i64 848, !12, i64 856, !13, i64 864, !13, i64 872, !11, i64 880, !6, i64 888, !6, i64 892, !6, i64 896, !12, i64 904, !12, i64 912, !12, i64 920, !12, i64 928, !6, i64 936, !13, i64 944, !13, i64 952, !13, i64 960, !13, i64 968, !6, i64 976, !6, i64 980, !12, i64 984, !12, i64 992, !6, i64 1000, !6, i64 1004, !11, i64 1008, !11, i64 1016, !12, i64 1024, !7, i64 1032, !12, i64 1136, !12, i64 1144, !12, i64 1152, !12, i64 1160, !11, i64 1168, !13, i64 1176, !13, i64 1184, !6, i64 1192, !6, i64 1196, !6, i64 1200, !13, i64 1208, !13, i64 1216, !6, i64 1224, !6, i64 1228, !11, i64 1232, !6, i64 1240, !13, i64 1248, !6, i64 1256, !6, i64 1260, !6, i64 1264, !6, i64 1268, !11, i64 1272, !11, i64 1280, !11, i64 1288, !13, i64 1296, !13, i64 1304, !13, i64 1312, !13, i64 1320, !13, i64 1328, !13, i64 1336, !6, i64 1344, !11, i64 1352, !11, i64 1360, !11, i64 1368, !13, i64 1376, !13, i64 1384, !13, i64 1392, !13, i64 1400, !13, i64 1408, !13, i64 1416, !12, i64 1424, !12, i64 1432, !12, i64 1440, !12, i64 1448, !12, i64 1456, !6, i64 1464, !12, i64 1472, !12, i64 1480, !12, i64 1488, !12, i64 1496, !12, i64 1504, !12, i64 1512, !6, i64 1520, !6, i64 1524, !13, i64 1528, !11, i64 1536, !11, i64 1544, !11, i64 1552, !6, i64 1560, !11, i64 1568, !6, i64 1576, !6, i64 1580, !6, i64 1584, !6, i64 1588, !6, i64 1592, !6, i64 1596, !12, i64 1600, !12, i64 1608, !12, i64 1616, !6, i64 1624, !7, i64 1632, !6, i64 1824, !13, i64 1832, !6, i64 1840, !12, i64 1848, !6, i64 1856, !12, i64 1864, !12, i64 1872, !12, i64 1880, !12, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912, !12, i64 1920, !12, i64 1928, !12, i64 1936, !11, i64 1944, !6, i64 1952, !6, i64 1956, !13, i64 1960, !11, i64 1968, !11, i64 1976, !6, i64 1984, !6, i64 1988, !12, i64 1992, !12, i64 2000}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !12, i64 8}
!15 = !{!"_generic_N_Vector", !12, i64 0, !12, i64 8}
!16 = !{!17, !12, i64 32}
!17 = !{!"_generic_N_Vector_Ops", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192}
!18 = !{!17, !12, i64 40}
!19 = !{!10, !12, i64 1504}
!20 = !{!10, !12, i64 1472}
!21 = !{!10, !12, i64 1480}
!22 = !{!10, !12, i64 1488}
!23 = !{!10, !12, i64 1496}
!24 = !{!10, !6, i64 1520}
!25 = !{!26, !12, i64 40}
!26 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !6, i64 36, !12, i64 40, !12, i64 48, !6, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !6, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!27 = !{!26, !12, i64 48}
!28 = !{!26, !12, i64 72}
!29 = !{!26, !12, i64 64}
!30 = !{!26, !12, i64 80}
!31 = !{!32, !12, i64 32}
!32 = !{!"_DlsMat", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !12, i64 32, !6, i64 40, !12, i64 48}
!33 = !{!11, !11, i64 0}
!34 = !{!26, !6, i64 96}
!35 = !{!26, !12, i64 88}
!36 = !{!10, !6, i64 792}
!37 = !{!26, !6, i64 4}
!38 = !{!26, !6, i64 8}
!39 = !{!26, !6, i64 32}
!40 = !{!10, !12, i64 1512}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass