; LLVM IR from Derek-TH-Wang/quadruped_ctrl :: src/osqp/lin_sys/direct/qdldl/qdldl_sources/examples/c (example)

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

@Ap = external dso_local constant [11 x i64], align 16
@Ai = external dso_local constant [17 x i64], align 16
@Ax = external dso_local constant [17 x double], align 16
@b = external dso_local constant [10 x double], align 16
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %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 ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  store i64 10, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  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 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %16 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %16, ptr %9, align 8, !tbaa !9
  %17 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %17, ptr %10, align 8, !tbaa !9
  %18 = call noalias ptr @malloc(i64 noundef 88) #6
  store ptr %18, ptr %4, align 8, !tbaa !9
  %19 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %19, ptr %7, align 8, !tbaa !9
  %20 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %20, ptr %8, align 8, !tbaa !9
  %21 = call noalias ptr @malloc(i64 noundef 240) #6
  store ptr %21, ptr %12, align 8, !tbaa !9
  %22 = call noalias ptr @malloc(i64 noundef 10) #6
  store ptr %22, ptr %13, align 8, !tbaa !9
  %23 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %23, ptr %14, align 8, !tbaa !9
  %24 = load ptr, ptr %12, align 8, !tbaa !9
  %25 = load ptr, ptr %10, align 8, !tbaa !9
  %26 = load ptr, ptr %9, align 8, !tbaa !9
  %27 = call i64 @QDLDL_etree(i64 noundef 10, ptr noundef @Ap, ptr noundef @Ai, ptr noundef %24, ptr noundef %25, ptr noundef %26)
  store i64 %27, ptr %11, align 8, !tbaa !5
  %28 = load i64, ptr %11, align 8, !tbaa !5
  %29 = mul i64 8, %28
  %30 = call noalias ptr @malloc(i64 noundef %29) #6
  store ptr %30, ptr %5, align 8, !tbaa !9
  %31 = load i64, ptr %11, align 8, !tbaa !5
  %32 = mul i64 8, %31
  %33 = call noalias ptr @malloc(i64 noundef %32) #6
  store ptr %33, ptr %6, align 8, !tbaa !9
  %34 = load ptr, ptr %4, align 8, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = load ptr, ptr %6, align 8, !tbaa !9
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  %38 = load ptr, ptr %8, align 8, !tbaa !9
  %39 = load ptr, ptr %10, align 8, !tbaa !9
  %40 = load ptr, ptr %9, align 8, !tbaa !9
  %41 = load ptr, ptr %13, align 8, !tbaa !9
  %42 = load ptr, ptr %12, align 8, !tbaa !9
  %43 = load ptr, ptr %14, align 8, !tbaa !9
  %44 = call i64 @QDLDL_factor(i64 noundef 10, ptr noundef @Ap, ptr noundef @Ai, ptr noundef @Ax, ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43)
  %45 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %45, ptr %15, align 8, !tbaa !9
  store i64 0, ptr %2, align 8, !tbaa !5
  br label %46

46:                                               ; preds = %57, %0
  %47 = load i64, ptr %2, align 8, !tbaa !5
  %48 = load i64, ptr %3, align 8, !tbaa !5
  %49 = icmp slt i64 %47, %48
  br i1 %49, label %50, label %60

50:                                               ; preds = %46
  %51 = load i64, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds [10 x double], ptr @b, i64 0, i64 %51
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = load ptr, ptr %15, align 8, !tbaa !9
  %55 = load i64, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %54, i64 %55
  store double %53, ptr %56, align 8, !tbaa !11
  br label %57

57:                                               ; preds = %50
  %58 = load i64, ptr %2, align 8, !tbaa !5
  %59 = add nsw i64 %58, 1
  store i64 %59, ptr %2, align 8, !tbaa !5
  br label %46, !llvm.loop !13

60:                                               ; preds = %46
  %61 = load i64, ptr %3, align 8, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !9
  %65 = load ptr, ptr %8, align 8, !tbaa !9
  %66 = load ptr, ptr %15, align 8, !tbaa !9
  call void @QDLDL_solve(i64 noundef %61, ptr noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66)
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  call void @print_line()
  call void @print_arrayi(ptr noundef @Ap, i64 noundef 11, ptr noundef @.str.2)
  %69 = load i64, ptr getelementptr inbounds ([11 x i64], ptr @Ap, i64 0, i64 10), align 16, !tbaa !5
  call void @print_arrayi(ptr noundef @Ai, i64 noundef %69, ptr noundef @.str.3)
  %70 = load i64, ptr getelementptr inbounds ([11 x i64], ptr @Ap, i64 0, i64 10), align 16, !tbaa !5
  call void @print_arrayf(ptr noundef @Ax, i64 noundef %70, ptr noundef @.str.4)
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @print_line()
  %73 = load ptr, ptr %9, align 8, !tbaa !9
  %74 = load i64, ptr %3, align 8, !tbaa !5
  call void @print_arrayi(ptr noundef %73, i64 noundef %74, ptr noundef @.str.7)
  %75 = load ptr, ptr %10, align 8, !tbaa !9
  %76 = load i64, ptr %3, align 8, !tbaa !5
  call void @print_arrayi(ptr noundef %75, i64 noundef %76, ptr noundef @.str.8)
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @print_line()
  %79 = load ptr, ptr %4, align 8, !tbaa !9
  %80 = load i64, ptr %3, align 8, !tbaa !5
  %81 = add nsw i64 %80, 1
  call void @print_arrayi(ptr noundef %79, i64 noundef %81, ptr noundef @.str.10)
  %82 = load ptr, ptr %5, align 8, !tbaa !9
  %83 = load ptr, ptr %4, align 8, !tbaa !9
  %84 = load i64, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds i64, ptr %83, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !5
  call void @print_arrayi(ptr noundef %82, i64 noundef %86, ptr noundef @.str.11)
  %87 = load ptr, ptr %6, align 8, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = load i64, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds i64, ptr %88, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !5
  call void @print_arrayf(ptr noundef %87, i64 noundef %91, ptr noundef @.str.12)
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  call void @print_line()
  %94 = load ptr, ptr %7, align 8, !tbaa !9
  call void @print_arrayf(ptr noundef %94, i64 noundef 10, ptr noundef @.str.14)
  %95 = load ptr, ptr %8, align 8, !tbaa !9
  call void @print_arrayf(ptr noundef %95, i64 noundef 10, ptr noundef @.str.15)
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  call void @print_line()
  call void @print_arrayf(ptr noundef @b, i64 noundef 10, ptr noundef @.str.17)
  %98 = load ptr, ptr %15, align 8, !tbaa !9
  call void @print_arrayf(ptr noundef %98, i64 noundef 10, ptr noundef @.str.18)
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %100 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %100) #5
  %101 = load ptr, ptr %5, align 8, !tbaa !9
  call void @free(ptr noundef %101) #5
  %102 = load ptr, ptr %6, align 8, !tbaa !9
  call void @free(ptr noundef %102) #5
  %103 = load ptr, ptr %7, align 8, !tbaa !9
  call void @free(ptr noundef %103) #5
  %104 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %104) #5
  %105 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %105) #5
  %106 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %106) #5
  %107 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %107) #5
  %108 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %108) #5
  %109 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %109) #5
  %110 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %110) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  ret i32 0
}

; 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)
declare noalias ptr @malloc(i64 noundef) #2

declare i64 @QDLDL_etree(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i64 @QDLDL_factor(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare void @QDLDL_solve(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local void @print_line() #0

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

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

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

; 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) "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 = { "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 "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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

@Ap = external dso_local constant [11 x i64], align 16
@Ai = external dso_local constant [17 x i64], align 16
@Ax = external dso_local constant [17 x double], align 16
@b = external dso_local constant [10 x double], align 16
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  %2 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  %3 = tail call noalias dereferenceable_or_null(88) ptr @malloc(i64 noundef 88) #6
  %4 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  %5 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  %6 = tail call noalias dereferenceable_or_null(240) ptr @malloc(i64 noundef 240) #6
  %7 = tail call noalias dereferenceable_or_null(10) ptr @malloc(i64 noundef 10) #6
  %8 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  %9 = tail call i64 @QDLDL_etree(i64 noundef 10, ptr noundef nonnull @Ap, ptr noundef nonnull @Ai, ptr noundef %6, ptr noundef %2, ptr noundef %1) #7
  %10 = shl i64 %9, 3
  %11 = tail call noalias ptr @malloc(i64 noundef %10) #6
  %12 = tail call noalias ptr @malloc(i64 noundef %10) #6
  %13 = tail call i64 @QDLDL_factor(i64 noundef 10, ptr noundef nonnull @Ap, ptr noundef nonnull @Ai, ptr noundef nonnull @Ax, ptr noundef %3, ptr noundef %11, ptr noundef %12, ptr noundef %4, ptr noundef %5, ptr noundef %2, ptr noundef %1, ptr noundef %7, ptr noundef %6, ptr noundef %8) #7
  %14 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %14, ptr noundef nonnull align 16 dereferenceable(80) @b, i64 80, i1 false), !tbaa !5
  tail call void @QDLDL_solve(i64 noundef 10, ptr noundef %3, ptr noundef %11, ptr noundef %12, ptr noundef %5, ptr noundef %14) #7
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  tail call void @print_line()
  tail call void @print_arrayi(ptr noundef nonnull @Ap, i64 noundef 11, ptr noundef nonnull @.str.2)
  %17 = load i64, ptr getelementptr inbounds (i8, ptr @Ap, i64 80), align 16, !tbaa !9
  tail call void @print_arrayi(ptr noundef nonnull @Ai, i64 noundef %17, ptr noundef nonnull @.str.3)
  tail call void @print_arrayf(ptr noundef nonnull @Ax, i64 noundef %17, ptr noundef nonnull @.str.4)
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  tail call void @print_line()
  tail call void @print_arrayi(ptr noundef %1, i64 noundef 10, ptr noundef nonnull @.str.7)
  tail call void @print_arrayi(ptr noundef %2, i64 noundef 10, ptr noundef nonnull @.str.8)
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  tail call void @print_line()
  tail call void @print_arrayi(ptr noundef %3, i64 noundef 11, ptr noundef nonnull @.str.10)
  %22 = getelementptr inbounds i8, ptr %3, i64 80
  %23 = load i64, ptr %22, align 8, !tbaa !9
  tail call void @print_arrayi(ptr noundef %11, i64 noundef %23, ptr noundef nonnull @.str.11)
  %24 = load i64, ptr %22, align 8, !tbaa !9
  tail call void @print_arrayf(ptr noundef %12, i64 noundef %24, ptr noundef nonnull @.str.12)
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %26 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  tail call void @print_line()
  tail call void @print_arrayf(ptr noundef %4, i64 noundef 10, ptr noundef nonnull @.str.14)
  tail call void @print_arrayf(ptr noundef %5, i64 noundef 10, ptr noundef nonnull @.str.15)
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  tail call void @print_line()
  tail call void @print_arrayf(ptr noundef nonnull @b, i64 noundef 10, ptr noundef nonnull @.str.17)
  tail call void @print_arrayf(ptr noundef %14, i64 noundef 10, ptr noundef nonnull @.str.18)
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  tail call void @free(ptr noundef %3) #7
  tail call void @free(ptr noundef %11) #7
  tail call void @free(ptr noundef %12) #7
  tail call void @free(ptr noundef %4) #7
  tail call void @free(ptr noundef %5) #7
  tail call void @free(ptr noundef %1) #7
  tail call void @free(ptr noundef %2) #7
  tail call void @free(ptr noundef %6) #7
  tail call void @free(ptr noundef %7) #7
  tail call void @free(ptr noundef %8) #7
  tail call void @free(ptr noundef %14) #7
  ret i32 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 i64 @QDLDL_etree(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i64 @QDLDL_factor(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @QDLDL_solve(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @print_line() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @print_arrayf(ptr noundef, i64 noundef, ptr 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 #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass