; LLVM IR from cvxgrp/scs :: linsys/cpu/indirect (private)

; 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.SCS_LIN_SYS_WORK = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr }
%struct.ScsMatrix = type { ptr, ptr, ptr, i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local void @scs_free_lin_sys_work(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @set_preconditioner(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local ptr @scs_init_lin_sys_work(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %10 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 96) #4
  store ptr %10, ptr %8, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %8, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %12, i32 0, i32 6
  store ptr %11, ptr %13, align 8, !tbaa !9
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %8, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %15, i32 0, i32 7
  store ptr %14, ptr %16, align 8, !tbaa !12
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ScsMatrix, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %20, i32 0, i32 1
  store i32 %19, ptr %21, align 4, !tbaa !15
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ScsMatrix, ptr %22, i32 0, i32 4
  %24 = load i32, ptr %23, align 4, !tbaa !16
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %25, i32 0, i32 0
  store i32 %24, ptr %26, align 8, !tbaa !17
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ScsMatrix, ptr %27, i32 0, i32 4
  %29 = load i32, ptr %28, align 4, !tbaa !16
  %30 = sext i32 %29 to i64
  %31 = call noalias ptr @calloc(i64 noundef %30, i64 noundef 8) #4
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %32, i32 0, i32 2
  store ptr %31, ptr %33, align 8, !tbaa !18
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ScsMatrix, ptr %34, i32 0, i32 4
  %36 = load i32, ptr %35, align 4, !tbaa !16
  %37 = sext i32 %36 to i64
  %38 = call noalias ptr @calloc(i64 noundef %37, i64 noundef 8) #4
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %39, i32 0, i32 3
  store ptr %38, ptr %40, align 8, !tbaa !19
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ScsMatrix, ptr %41, i32 0, i32 4
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = sext i32 %43 to i64
  %45 = call noalias ptr @calloc(i64 noundef %44, i64 noundef 8) #4
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %46, i32 0, i32 4
  store ptr %45, ptr %47, align 8, !tbaa !20
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ScsMatrix, ptr %48, i32 0, i32 3
  %50 = load i32, ptr %49, align 8, !tbaa !13
  %51 = sext i32 %50 to i64
  %52 = call noalias ptr @calloc(i64 noundef %51, i64 noundef 8) #4
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %53, i32 0, i32 5
  store ptr %52, ptr %54, align 8, !tbaa !21
  %55 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 32) #4
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %56, i32 0, i32 8
  store ptr %55, ptr %57, align 8, !tbaa !22
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ScsMatrix, ptr %58, i32 0, i32 4
  %60 = load i32, ptr %59, align 4, !tbaa !16
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %61, i32 0, i32 8
  %63 = load ptr, ptr %62, align 8, !tbaa !22
  %64 = getelementptr inbounds %struct.ScsMatrix, ptr %63, i32 0, i32 3
  store i32 %60, ptr %64, align 8, !tbaa !13
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ScsMatrix, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 8, !tbaa !13
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %68, i32 0, i32 8
  %70 = load ptr, ptr %69, align 8, !tbaa !22
  %71 = getelementptr inbounds %struct.ScsMatrix, ptr %70, i32 0, i32 4
  store i32 %67, ptr %71, align 4, !tbaa !16
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ScsMatrix, ptr %72, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !23
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ScsMatrix, ptr %75, i32 0, i32 4
  %77 = load i32, ptr %76, align 4, !tbaa !16
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %74, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !24
  %81 = sext i32 %80 to i64
  %82 = call noalias ptr @calloc(i64 noundef %81, i64 noundef 4) #4
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %83, i32 0, i32 8
  %85 = load ptr, ptr %84, align 8, !tbaa !22
  %86 = getelementptr inbounds %struct.ScsMatrix, ptr %85, i32 0, i32 1
  store ptr %82, ptr %86, align 8, !tbaa !25
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ScsMatrix, ptr %87, i32 0, i32 3
  %89 = load i32, ptr %88, align 8, !tbaa !13
  %90 = add nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = call noalias ptr @calloc(i64 noundef %91, i64 noundef 4) #4
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %93, i32 0, i32 8
  %95 = load ptr, ptr %94, align 8, !tbaa !22
  %96 = getelementptr inbounds %struct.ScsMatrix, ptr %95, i32 0, i32 2
  store ptr %92, ptr %96, align 8, !tbaa !23
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ScsMatrix, ptr %97, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !23
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ScsMatrix, ptr %100, i32 0, i32 4
  %102 = load i32, ptr %101, align 4, !tbaa !16
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %99, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !24
  %106 = sext i32 %105 to i64
  %107 = call noalias ptr @calloc(i64 noundef %106, i64 noundef 8) #4
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %108, i32 0, i32 8
  %110 = load ptr, ptr %109, align 8, !tbaa !22
  %111 = getelementptr inbounds %struct.ScsMatrix, ptr %110, i32 0, i32 0
  store ptr %107, ptr %111, align 8, !tbaa !26
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  call void @transpose(ptr noundef %112, ptr noundef %113)
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %115, i32 0, i32 12
  store ptr %114, ptr %116, align 8, !tbaa !27
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ScsMatrix, ptr %117, i32 0, i32 4
  %119 = load i32, ptr %118, align 4, !tbaa !16
  %120 = sext i32 %119 to i64
  %121 = call noalias ptr @calloc(i64 noundef %120, i64 noundef 8) #4
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %122, i32 0, i32 9
  store ptr %121, ptr %123, align 8, !tbaa !28
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ScsMatrix, ptr %124, i32 0, i32 4
  %126 = load i32, ptr %125, align 4, !tbaa !16
  %127 = sext i32 %126 to i64
  %128 = call noalias ptr @calloc(i64 noundef %127, i64 noundef 8) #4
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %129, i32 0, i32 10
  store ptr %128, ptr %130, align 8, !tbaa !29
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  call void @set_preconditioner(ptr noundef %131)
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %132, i32 0, i32 11
  store i32 0, ptr %133, align 8, !tbaa !30
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %179

138:                                              ; preds = %3
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %139, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !19
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %179

143:                                              ; preds = %138
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !20
  %147 = icmp ne ptr %146, null
  br i1 %147, label %148, label %179

148:                                              ; preds = %143
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %149, i32 0, i32 5
  %151 = load ptr, ptr %150, align 8, !tbaa !21
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %179

153:                                              ; preds = %148
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %154, i32 0, i32 8
  %156 = load ptr, ptr %155, align 8, !tbaa !22
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %179

158:                                              ; preds = %153
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %159, i32 0, i32 8
  %161 = load ptr, ptr %160, align 8, !tbaa !22
  %162 = getelementptr inbounds %struct.ScsMatrix, ptr %161, i32 0, i32 1
  %163 = load ptr, ptr %162, align 8, !tbaa !25
  %164 = icmp ne ptr %163, null
  br i1 %164, label %165, label %179

165:                                              ; preds = %158
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %166, i32 0, i32 8
  %168 = load ptr, ptr %167, align 8, !tbaa !22
  %169 = getelementptr inbounds %struct.ScsMatrix, ptr %168, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !23
  %171 = icmp ne ptr %170, null
  br i1 %171, label %172, label %179

172:                                              ; preds = %165
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.SCS_LIN_SYS_WORK, ptr %173, i32 0, i32 8
  %175 = load ptr, ptr %174, align 8, !tbaa !22
  %176 = getelementptr inbounds %struct.ScsMatrix, ptr %175, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !26
  %178 = icmp ne ptr %177, null
  br i1 %178, label %181, label %179

179:                                              ; preds = %172, %165, %158, %153, %148, %143, %138, %3
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  call void @scs_free_lin_sys_work(ptr noundef %180)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %183

181:                                              ; preds = %172
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %182, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %183

183:                                              ; preds = %181, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %184 = load ptr, ptr %4, align 8
  ret ptr %184
}

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0,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 #3 = { nounwind }
attributes #4 = { nounwind allocsize(0,1) }

!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, !6, i64 40}
!10 = !{!"SCS_LIN_SYS_WORK", !11, i64 0, !11, i64 4, !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, !11, i64 80, !6, i64 88}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 48}
!13 = !{!14, !11, i64 24}
!14 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28}
!15 = !{!10, !11, i64 4}
!16 = !{!14, !11, i64 28}
!17 = !{!10, !11, i64 0}
!18 = !{!10, !6, i64 8}
!19 = !{!10, !6, i64 16}
!20 = !{!10, !6, i64 24}
!21 = !{!10, !6, i64 32}
!22 = !{!10, !6, i64 56}
!23 = !{!14, !6, i64 16}
!24 = !{!11, !11, i64 0}
!25 = !{!14, !6, i64 8}
!26 = !{!14, !6, i64 0}
!27 = !{!10, !6, i64 88}
!28 = !{!10, !6, i64 64}
!29 = !{!10, !6, i64 72}
!30 = !{!10, !11, i64 80}


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

; Function Attrs: nounwind uwtable
declare dso_local void @scs_free_lin_sys_work(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @set_preconditioner(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @scs_init_lin_sys_work(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = tail call noalias dereferenceable_or_null(96) ptr @calloc(i64 noundef 1, i64 noundef 96) #2
  %5 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr %0, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %4, i64 48
  store ptr %1, ptr %6, align 8, !tbaa !11
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i32, ptr %7, align 8, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %8, ptr %9, align 4, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  %11 = load i32, ptr %10, align 4, !tbaa !15
  store i32 %11, ptr %4, align 8, !tbaa !16
  %12 = sext i32 %11 to i64
  %13 = tail call noalias ptr @calloc(i64 noundef %12, i64 noundef 8) #2
  %14 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %13, ptr %14, align 8, !tbaa !17
  %15 = tail call noalias ptr @calloc(i64 noundef %12, i64 noundef 8) #2
  %16 = getelementptr inbounds i8, ptr %4, i64 16
  store ptr %15, ptr %16, align 8, !tbaa !18
  %17 = tail call noalias ptr @calloc(i64 noundef %12, i64 noundef 8) #2
  %18 = getelementptr inbounds i8, ptr %4, i64 24
  store ptr %17, ptr %18, align 8, !tbaa !19
  %19 = sext i32 %8 to i64
  %20 = tail call noalias ptr @calloc(i64 noundef %19, i64 noundef 8) #2
  %21 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %20, ptr %21, align 8, !tbaa !20
  %22 = tail call noalias dereferenceable_or_null(32) ptr @calloc(i64 noundef 1, i64 noundef 32) #2
  %23 = getelementptr inbounds i8, ptr %4, i64 56
  store ptr %22, ptr %23, align 8, !tbaa !21
  %24 = getelementptr inbounds i8, ptr %22, i64 24
  store i32 %11, ptr %24, align 8, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %22, i64 28
  store i32 %8, ptr %25, align 4, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  %28 = getelementptr inbounds i32, ptr %27, i64 %12
  %29 = load i32, ptr %28, align 4, !tbaa !23
  %30 = sext i32 %29 to i64
  %31 = tail call noalias ptr @calloc(i64 noundef %30, i64 noundef 4) #2
  %32 = getelementptr inbounds i8, ptr %22, i64 8
  store ptr %31, ptr %32, align 8, !tbaa !24
  %33 = add nsw i32 %8, 1
  %34 = sext i32 %33 to i64
  %35 = tail call noalias ptr @calloc(i64 noundef %34, i64 noundef 4) #2
  %36 = getelementptr inbounds i8, ptr %22, i64 16
  store ptr %35, ptr %36, align 8, !tbaa !22
  %37 = tail call noalias ptr @calloc(i64 noundef %30, i64 noundef 8) #2
  store ptr %37, ptr %22, align 8, !tbaa !25
  tail call void @transpose(ptr noundef %0, ptr noundef nonnull %4)
  %38 = getelementptr inbounds i8, ptr %4, i64 88
  store ptr %2, ptr %38, align 8, !tbaa !26
  %39 = load i32, ptr %10, align 4, !tbaa !15
  %40 = sext i32 %39 to i64
  %41 = tail call noalias ptr @calloc(i64 noundef %40, i64 noundef 8) #2
  %42 = getelementptr inbounds i8, ptr %4, i64 64
  store ptr %41, ptr %42, align 8, !tbaa !27
  %43 = tail call noalias ptr @calloc(i64 noundef %40, i64 noundef 8) #2
  %44 = getelementptr inbounds i8, ptr %4, i64 72
  store ptr %43, ptr %44, align 8, !tbaa !28
  tail call void @set_preconditioner(ptr noundef nonnull %4)
  %45 = getelementptr inbounds i8, ptr %4, i64 80
  store i32 0, ptr %45, align 8, !tbaa !29
  %46 = load ptr, ptr %14, align 8, !tbaa !17
  %.not = icmp eq ptr %46, null
  br i1 %.not, label %63, label %47

47:                                               ; preds = %3
  %48 = load ptr, ptr %16, align 8, !tbaa !18
  %.not51 = icmp eq ptr %48, null
  br i1 %.not51, label %63, label %49

49:                                               ; preds = %47
  %50 = load ptr, ptr %18, align 8, !tbaa !19
  %.not52 = icmp eq ptr %50, null
  br i1 %.not52, label %63, label %51

51:                                               ; preds = %49
  %52 = load ptr, ptr %21, align 8, !tbaa !20
  %.not53 = icmp eq ptr %52, null
  br i1 %.not53, label %63, label %53

53:                                               ; preds = %51
  %54 = load ptr, ptr %23, align 8, !tbaa !21
  %.not54 = icmp eq ptr %54, null
  br i1 %.not54, label %63, label %55

55:                                               ; preds = %53
  %56 = getelementptr inbounds i8, ptr %54, i64 8
  %57 = load ptr, ptr %56, align 8, !tbaa !24
  %.not55 = icmp eq ptr %57, null
  br i1 %.not55, label %63, label %58

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %54, i64 16
  %60 = load ptr, ptr %59, align 8, !tbaa !22
  %.not56 = icmp eq ptr %60, null
  br i1 %.not56, label %63, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr %54, align 8, !tbaa !25
  %.not57 = icmp eq ptr %62, null
  br i1 %.not57, label %63, label %64

63:                                               ; preds = %61, %58, %55, %53, %51, %49, %47, %3
  tail call void @scs_free_lin_sys_work(ptr noundef nonnull %4)
  br label %64

64:                                               ; preds = %61, %63
  %.0 = phi ptr [ null, %63 ], [ %4, %61 ]
  ret ptr %.0
}

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

; Function Attrs: nounwind uwtable
declare hidden void @transpose(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 = { nounwind allocsize(0,1) }

!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, !10, i64 40}
!6 = !{!"SCS_LIN_SYS_WORK", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !7, i64 80, !10, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 48}
!12 = !{!13, !7, i64 24}
!13 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 28}
!14 = !{!6, !7, i64 4}
!15 = !{!13, !7, i64 28}
!16 = !{!6, !7, i64 0}
!17 = !{!6, !10, i64 8}
!18 = !{!6, !10, i64 16}
!19 = !{!6, !10, i64 24}
!20 = !{!6, !10, i64 32}
!21 = !{!6, !10, i64 56}
!22 = !{!13, !10, i64 16}
!23 = !{!7, !7, i64 0}
!24 = !{!13, !10, i64 8}
!25 = !{!13, !10, i64 0}
!26 = !{!6, !10, i64 88}
!27 = !{!6, !10, i64 64}
!28 = !{!6, !10, i64 72}
!29 = !{!6, !7, i64 80}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass