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

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

@.str = external hidden unnamed_addr constant [8 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.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = 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 @CPDenseProj(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
  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
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

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

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

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

35:                                               ; preds = %26, %16
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %36, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.3)
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

37:                                               ; preds = %26
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = icmp ne i32 %38, 1
  br i1 %39, label %40, label %48

40:                                               ; preds = %37
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 2
  br i1 %42, label %43, label %48

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

46:                                               ; preds = %43
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %47, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.6)
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

48:                                               ; preds = %43, %40, %37
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.CPodeMemRec, ptr %49, i32 0, i32 135
  %51 = load ptr, ptr %50, align 8, !tbaa !20
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %58

53:                                               ; preds = %48
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.CPodeMemRec, ptr %54, i32 0, i32 135
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  call void %56(ptr noundef %57)
  br label %58

58:                                               ; preds = %53, %48
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.CPodeMemRec, ptr %59, i32 0, i32 131
  store ptr @cpDenseProjInit, ptr %60, align 8, !tbaa !21
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.CPodeMemRec, ptr %61, i32 0, i32 132
  store ptr @cpDenseProjSetup, ptr %62, align 8, !tbaa !22
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.CPodeMemRec, ptr %63, i32 0, i32 133
  store ptr @cpDenseProjSolve, ptr %64, align 8, !tbaa !23
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CPodeMemRec, ptr %65, i32 0, i32 134
  store ptr @cpDenseProjMult, ptr %66, align 8, !tbaa !24
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.CPodeMemRec, ptr %67, i32 0, i32 135
  store ptr @cpDenseProjFree, ptr %68, align 8, !tbaa !20
  store ptr null, ptr %11, align 8, !tbaa !5
  %69 = call noalias ptr @malloc(i64 noundef 128) #6
  store ptr %69, ptr %11, align 8, !tbaa !5
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = icmp eq ptr %70, null
  br i1 %71, label %72, label %74

72:                                               ; preds = %58
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %73, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.4)
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

74:                                               ; preds = %58
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.CPodeMemRec, ptr %75, i32 0, i32 137
  store i32 1, ptr %76, align 8, !tbaa !25
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %77, i32 0, i32 7
  store ptr null, ptr %78, align 8, !tbaa !26
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %79, i32 0, i32 10
  store ptr null, ptr %80, align 8, !tbaa !28
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %81, i32 0, i32 11
  store ptr null, ptr %82, align 8, !tbaa !29
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %83, i32 0, i32 12
  store ptr null, ptr %84, align 8, !tbaa !30
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = call ptr @NewDenseMat(i32 noundef %85, i32 noundef %86)
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %88, i32 0, i32 7
  store ptr %87, ptr %89, align 8, !tbaa !26
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %90, i32 0, i32 7
  %92 = load ptr, ptr %91, align 8, !tbaa !26
  %93 = icmp eq ptr %92, null
  br i1 %93, label %94, label %97

94:                                               ; preds = %74
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %95, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.4)
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %96) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

97:                                               ; preds = %74
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = call ptr @NewDenseMat(i32 noundef %98, i32 noundef %99)
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %101, i32 0, i32 8
  store ptr %100, ptr %102, align 8, !tbaa !31
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %103, i32 0, i32 8
  %105 = load ptr, ptr %104, align 8, !tbaa !31
  %106 = icmp eq ptr %105, null
  br i1 %106, label %107, label %113

107:                                              ; preds = %97
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %108, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.4)
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %109, i32 0, i32 7
  %111 = load ptr, ptr %110, align 8, !tbaa !26
  call void @DestroyMat(ptr noundef %111)
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %112) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

113:                                              ; preds = %97
  %114 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %114, label %227 [
    i32 1, label %115
    i32 2, label %160
    i32 3, label %207
  ]

115:                                              ; preds = %113
  %116 = load i32, ptr %7, align 4, !tbaa !9
  %117 = call ptr @NewIntArray(i32 noundef %116)
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %118, i32 0, i32 11
  store ptr %117, ptr %119, align 8, !tbaa !29
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %120, i32 0, i32 11
  %122 = load ptr, ptr %121, align 8, !tbaa !29
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %133

124:                                              ; preds = %115
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %125, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.4)
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %126, i32 0, i32 8
  %128 = load ptr, ptr %127, align 8, !tbaa !31
  call void @DestroyMat(ptr noundef %128)
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %129, i32 0, i32 7
  %131 = load ptr, ptr %130, align 8, !tbaa !26
  call void @DestroyMat(ptr noundef %131)
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %132) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

133:                                              ; preds = %115
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = load i32, ptr %7, align 4, !tbaa !9
  %136 = sub nsw i32 %134, %135
  %137 = load i32, ptr %8, align 4, !tbaa !9
  %138 = load i32, ptr %7, align 4, !tbaa !9
  %139 = sub nsw i32 %137, %138
  %140 = call ptr @NewDenseMat(i32 noundef %136, i32 noundef %139)
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %141, i32 0, i32 10
  store ptr %140, ptr %142, align 8, !tbaa !28
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %143, i32 0, i32 10
  %145 = load ptr, ptr %144, align 8, !tbaa !28
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %159

147:                                              ; preds = %133
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %148, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.4)
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %149, i32 0, i32 11
  %151 = load ptr, ptr %150, align 8, !tbaa !29
  call void @DestroyArray(ptr noundef %151)
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %152, i32 0, i32 8
  %154 = load ptr, ptr %153, align 8, !tbaa !31
  call void @DestroyMat(ptr noundef %154)
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %155, i32 0, i32 7
  %157 = load ptr, ptr %156, align 8, !tbaa !26
  call void @DestroyMat(ptr noundef %157)
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %158) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

159:                                              ; preds = %133
  br label %227

160:                                              ; preds = %113
  %161 = load i32, ptr %7, align 4, !tbaa !9
  %162 = call ptr @NewRealArray(i32 noundef %161)
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %163, i32 0, i32 12
  store ptr %162, ptr %164, align 8, !tbaa !30
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %165, i32 0, i32 12
  %167 = load ptr, ptr %166, align 8, !tbaa !30
  %168 = icmp eq ptr %167, null
  br i1 %168, label %169, label %178

169:                                              ; preds = %160
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %170, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.4)
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %171, i32 0, i32 8
  %173 = load ptr, ptr %172, align 8, !tbaa !31
  call void @DestroyMat(ptr noundef %173)
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %174, i32 0, i32 7
  %176 = load ptr, ptr %175, align 8, !tbaa !26
  call void @DestroyMat(ptr noundef %176)
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %177) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

178:                                              ; preds = %160
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.CPodeMemRec, ptr %179, i32 0, i32 50
  %181 = load i32, ptr %180, align 8, !tbaa !32
  %182 = icmp eq i32 %181, 2
  br i1 %182, label %183, label %206

183:                                              ; preds = %178
  %184 = load i32, ptr %7, align 4, !tbaa !9
  %185 = load i32, ptr %7, align 4, !tbaa !9
  %186 = call ptr @NewDenseMat(i32 noundef %184, i32 noundef %185)
  %187 = load ptr, ptr %11, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %187, i32 0, i32 10
  store ptr %186, ptr %188, align 8, !tbaa !28
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %189, i32 0, i32 10
  %191 = load ptr, ptr %190, align 8, !tbaa !28
  %192 = icmp eq ptr %191, null
  br i1 %192, label %193, label %205

193:                                              ; preds = %183
  %194 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %194, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.4)
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %195, i32 0, i32 12
  %197 = load ptr, ptr %196, align 8, !tbaa !30
  call void @DestroyArray(ptr noundef %197)
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %198, i32 0, i32 8
  %200 = load ptr, ptr %199, align 8, !tbaa !31
  call void @DestroyMat(ptr noundef %200)
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %201, i32 0, i32 7
  %203 = load ptr, ptr %202, align 8, !tbaa !26
  call void @DestroyMat(ptr noundef %203)
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %204) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

205:                                              ; preds = %183
  br label %206

206:                                              ; preds = %205, %178
  br label %227

207:                                              ; preds = %113
  %208 = load i32, ptr %7, align 4, !tbaa !9
  %209 = load i32, ptr %7, align 4, !tbaa !9
  %210 = call ptr @NewDenseMat(i32 noundef %208, i32 noundef %209)
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %211, i32 0, i32 10
  store ptr %210, ptr %212, align 8, !tbaa !28
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %213, i32 0, i32 10
  %215 = load ptr, ptr %214, align 8, !tbaa !28
  %216 = icmp eq ptr %215, null
  br i1 %216, label %217, label %226

217:                                              ; preds = %207
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef %218, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.4)
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %219, i32 0, i32 8
  %221 = load ptr, ptr %220, align 8, !tbaa !31
  call void @DestroyMat(ptr noundef %221)
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %222, i32 0, i32 7
  %224 = load ptr, ptr %223, align 8, !tbaa !26
  call void @DestroyMat(ptr noundef %224)
  %225 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %225) #5
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

226:                                              ; preds = %207
  br label %227

227:                                              ; preds = %226, %206, %159, %113
  %228 = load ptr, ptr %11, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %228, i32 0, i32 3
  store ptr null, ptr %229, align 8, !tbaa !33
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %230, i32 0, i32 4
  store ptr null, ptr %231, align 8, !tbaa !34
  %232 = load ptr, ptr %10, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.CPodeMemRec, ptr %232, i32 0, i32 137
  store i32 1, ptr %233, align 8, !tbaa !25
  %234 = load i32, ptr %7, align 4, !tbaa !9
  %235 = load ptr, ptr %11, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %235, i32 0, i32 1
  store i32 %234, ptr %236, align 4, !tbaa !35
  %237 = load i32, ptr %8, align 4, !tbaa !9
  %238 = load ptr, ptr %11, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %238, i32 0, i32 2
  store i32 %237, ptr %239, align 8, !tbaa !36
  %240 = load i32, ptr %9, align 4, !tbaa !9
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.CPDlsProjMemRec, ptr %241, i32 0, i32 5
  store i32 %240, ptr %242, align 8, !tbaa !37
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.CPodeMemRec, ptr %244, i32 0, i32 136
  store ptr %243, ptr %245, align 8, !tbaa !38
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %246

246:                                              ; preds = %227, %217, %193, %169, %147, %124, %107, %94, %72, %46, %35, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %247 = load i32, ptr %5, align 4
  ret i32 %247
}

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

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

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

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

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

declare ptr @NewRealArray(i32 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 = !{!12, !10, i64 1520}
!26 = !{!27, !6, i64 40}
!27 = !{!"", !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}
!28 = !{!27, !6, i64 64}
!29 = !{!27, !6, i64 72}
!30 = !{!27, !6, i64 80}
!31 = !{!27, !6, i64 48}
!32 = !{!12, !10, i64 792}
!33 = !{!27, !6, i64 16}
!34 = !{!27, !6, i64 24}
!35 = !{!27, !10, i64 4}
!36 = !{!27, !10, i64 8}
!37 = !{!27, !10, i64 32}
!38 = !{!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 [8 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.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1

declare void @cpProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

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

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

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

declare ptr @NewIntArray(i32 noundef) local_unnamed_addr #0

declare void @DestroyMat(ptr noundef) local_unnamed_addr #0

declare void @DestroyArray(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 -4, 1) i32 @CPDenseProj(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = icmp eq ptr %0, null
  br i1 %5, label %6, label %7

6:                                                ; 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.5, ptr noundef nonnull @.str.2) #5
  br label %81

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 232
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %11, i64 32
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = icmp eq ptr %13, null
  br i1 %14, label %19, label %15

15:                                               ; preds = %7
  %16 = getelementptr inbounds i8, ptr %11, i64 40
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %15, %7
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3) #5
  br label %81

20:                                               ; preds = %15
  %21 = add i32 %3, -4
  %or.cond3 = icmp ult i32 %21, -3
  br i1 %or.cond3, label %22, label %23

22:                                               ; preds = %20
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6) #5
  br label %81

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %0, i64 1504
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %27, label %26

26:                                               ; preds = %23
  tail call void %25(ptr noundef nonnull %0) #5
  br label %27

27:                                               ; preds = %26, %23
  %28 = getelementptr inbounds i8, ptr %0, i64 1472
  store ptr @cpDenseProjInit, ptr %28, align 8, !tbaa !19
  %29 = getelementptr inbounds i8, ptr %0, i64 1480
  store ptr @cpDenseProjSetup, ptr %29, align 8, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %0, i64 1488
  store ptr @cpDenseProjSolve, ptr %30, align 8, !tbaa !21
  %31 = getelementptr inbounds i8, ptr %0, i64 1496
  store ptr @cpDenseProjMult, ptr %31, align 8, !tbaa !22
  store ptr @cpDenseProjFree, ptr %24, align 8, !tbaa !18
  %32 = tail call noalias dereferenceable_or_null(128) ptr @malloc(i64 noundef 128) #6
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %27
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4) #5
  br label %81

35:                                               ; preds = %27
  %36 = getelementptr inbounds i8, ptr %0, i64 1520
  store i32 1, ptr %36, align 8, !tbaa !23
  %37 = getelementptr inbounds i8, ptr %32, i64 40
  %38 = getelementptr inbounds i8, ptr %32, i64 64
  %39 = getelementptr inbounds i8, ptr %32, i64 72
  %40 = getelementptr inbounds i8, ptr %32, i64 80
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %38, i8 0, i64 24, i1 false)
  %41 = tail call ptr @NewDenseMat(i32 noundef %2, i32 noundef %1) #5
  store ptr %41, ptr %37, align 8, !tbaa !24
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %44

43:                                               ; preds = %35
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4) #5
  tail call void @free(ptr noundef nonnull %32) #5
  br label %81

44:                                               ; preds = %35
  %45 = tail call ptr @NewDenseMat(i32 noundef %2, i32 noundef %1) #5
  %46 = getelementptr inbounds i8, ptr %32, i64 48
  store ptr %45, ptr %46, align 8, !tbaa !26
  %47 = icmp eq ptr %45, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %44
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4) #5
  tail call void @DestroyMat(ptr noundef nonnull %41) #5
  tail call void @free(ptr noundef nonnull %32) #5
  br label %81

49:                                               ; preds = %44
  switch i32 %3, label %default.unreachable [
    i32 1, label %50
    i32 2, label %59
    i32 3, label %71
  ]

50:                                               ; preds = %49
  %51 = tail call ptr @NewIntArray(i32 noundef %1) #5
  store ptr %51, ptr %39, align 8, !tbaa !27
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4) #5
  tail call void @DestroyMat(ptr noundef nonnull %45) #5
  tail call void @DestroyMat(ptr noundef nonnull %41) #5
  tail call void @free(ptr noundef nonnull %32) #5
  br label %81

54:                                               ; preds = %50
  %55 = sub nsw i32 %2, %1
  %56 = tail call ptr @NewDenseMat(i32 noundef %55, i32 noundef %55) #5
  store ptr %56, ptr %38, align 8, !tbaa !28
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %75

58:                                               ; preds = %54
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4) #5
  tail call void @DestroyArray(ptr noundef nonnull %51) #5
  tail call void @DestroyMat(ptr noundef nonnull %45) #5
  tail call void @DestroyMat(ptr noundef nonnull %41) #5
  tail call void @free(ptr noundef nonnull %32) #5
  br label %81

59:                                               ; preds = %49
  %60 = tail call ptr @NewRealArray(i32 noundef %1) #5
  store ptr %60, ptr %40, align 8, !tbaa !29
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4) #5
  tail call void @DestroyMat(ptr noundef nonnull %45) #5
  tail call void @DestroyMat(ptr noundef nonnull %41) #5
  tail call void @free(ptr noundef nonnull %32) #5
  br label %81

63:                                               ; preds = %59
  %64 = getelementptr inbounds i8, ptr %0, i64 792
  %65 = load i32, ptr %64, align 8, !tbaa !30
  %66 = icmp eq i32 %65, 2
  br i1 %66, label %67, label %75

67:                                               ; preds = %63
  %68 = tail call ptr @NewDenseMat(i32 noundef %1, i32 noundef %1) #5
  store ptr %68, ptr %38, align 8, !tbaa !28
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %75

70:                                               ; preds = %67
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4) #5
  tail call void @DestroyArray(ptr noundef nonnull %60) #5
  tail call void @DestroyMat(ptr noundef nonnull %45) #5
  tail call void @DestroyMat(ptr noundef nonnull %41) #5
  tail call void @free(ptr noundef nonnull %32) #5
  br label %81

71:                                               ; preds = %49
  %72 = tail call ptr @NewDenseMat(i32 noundef %1, i32 noundef %1) #5
  store ptr %72, ptr %38, align 8, !tbaa !28
  %73 = icmp eq ptr %72, null
  br i1 %73, label %74, label %75

74:                                               ; preds = %71
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cpProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4) #5
  tail call void @DestroyMat(ptr noundef nonnull %45) #5
  tail call void @DestroyMat(ptr noundef nonnull %41) #5
  tail call void @free(ptr noundef nonnull %32) #5
  br label %81

default.unreachable:                              ; preds = %49
  unreachable

75:                                               ; preds = %71, %63, %67, %54
  %76 = getelementptr inbounds i8, ptr %32, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %76, i8 0, i64 16, i1 false)
  store i32 1, ptr %36, align 8, !tbaa !23
  %77 = getelementptr inbounds i8, ptr %32, i64 4
  store i32 %1, ptr %77, align 4, !tbaa !31
  %78 = getelementptr inbounds i8, ptr %32, i64 8
  store i32 %2, ptr %78, align 8, !tbaa !32
  %79 = getelementptr inbounds i8, ptr %32, i64 32
  store i32 %3, ptr %79, align 8, !tbaa !33
  %80 = getelementptr inbounds i8, ptr %0, i64 1512
  store ptr %32, ptr %80, align 8, !tbaa !34
  br label %81

81:                                               ; preds = %75, %74, %70, %62, %58, %53, %48, %43, %34, %22, %19, %6
  %.0 = phi i32 [ -1, %6 ], [ -3, %19 ], [ -3, %22 ], [ -4, %34 ], [ -4, %43 ], [ -4, %48 ], [ 0, %75 ], [ -4, %74 ], [ -4, %62 ], [ -4, %70 ], [ -4, %53 ], [ -4, %58 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @cpDenseProjInit(ptr noundef) #3

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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @cpDenseProjFree(ptr noundef) #3

declare ptr @NewRealArray(i32 noundef) local_unnamed_addr #0

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

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


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