; LLVM IR from oxfordcontrol/Clarabel.cpp :: examples/c (example_qp)

; 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.ClarabelCscMatrix_f64 = type { i64, i64, ptr, ptr, ptr }
%struct.ClarabelSupportedConeT_f64 = type { i32, %union.anon }
%union.anon = type { %struct.anon.3 }
%struct.anon.3 = type { ptr, i64, i64 }
%struct.ClarabelDefaultSettings_f64 = type { i32, double, i8, double, double, double, double, double, double, double, double, double, double, double, double, double, i8, i32, double, double, double, double, double, i32, i8, i32, i8, double, double, i8, double, double, i8, double, double, i32, double, i8 }
%struct.ClarabelDefaultSolution_f64 = type { ptr, i64, ptr, i64, ptr, i64, i32, double, double, double, i32, double, double }
%struct.ClarabelDefaultInfo_f64 = type { double, double, double, i32, double, double, double, double, double, double, double, double, double, double, i32, %struct.ClarabelLinearSolverInfo }
%struct.ClarabelLinearSolverInfo = type { i32, i32, i8, i32, i32, i32 }
%struct.anon = type { i64 }
%struct.anon.0 = type { i64 }

@constinit = external hidden constant [3 x i64], align 8
@__const.main.q = external hidden unnamed_addr constant [2 x double], align 16
@constinit.1 = external hidden constant [3 x i64], align 8
@constinit.2 = external hidden constant [6 x i64], align 8
@constinit.3 = external hidden constant [6 x double], align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.ClarabelCscMatrix_f64, align 8
  %3 = alloca [3 x i64], align 8
  %4 = alloca [2 x i64], align 8
  %5 = alloca [2 x double], align 8
  %6 = alloca [2 x double], align 16
  %7 = alloca %struct.ClarabelCscMatrix_f64, align 8
  %8 = alloca [3 x i64], align 8
  %9 = alloca [6 x i64], align 8
  %10 = alloca [6 x double], align 8
  %11 = alloca [5 x double], align 16
  %12 = alloca [2 x %struct.ClarabelSupportedConeT_f64], align 16
  %13 = alloca %struct.ClarabelDefaultSettings_f64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.ClarabelDefaultSolution_f64, align 8
  %16 = alloca %struct.ClarabelDefaultInfo_f64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 @constinit, i64 24, i1 false), !tbaa.struct !5
  %17 = getelementptr inbounds [3 x i64], ptr %3, i64 0, i64 0
  store i64 0, ptr %4, align 8, !tbaa !9
  %18 = getelementptr inbounds i64, ptr %4, i64 1
  store i64 1, ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds [2 x i64], ptr %4, i64 0, i64 0
  store double 6.000000e+00, ptr %5, align 8, !tbaa !11
  %20 = getelementptr inbounds double, ptr %5, i64 1
  store double 4.000000e+00, ptr %20, align 8, !tbaa !11
  %21 = getelementptr inbounds [2 x double], ptr %5, i64 0, i64 0
  call void @clarabel_CscMatrix_init(ptr noundef %2, i64 noundef 2, i64 noundef 2, ptr noundef %17, ptr noundef %19, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.q, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @constinit.1, i64 24, i1 false), !tbaa.struct !5
  %22 = getelementptr inbounds [3 x i64], ptr %8, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 @constinit.2, i64 48, i1 false), !tbaa.struct !13
  %23 = getelementptr inbounds [6 x i64], ptr %9, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 @constinit.3, i64 48, i1 false), !tbaa.struct !13
  %24 = getelementptr inbounds [6 x double], ptr %10, i64 0, i64 0
  call void @clarabel_CscMatrix_init(ptr noundef %7, i64 noundef 5, i64 noundef 2, ptr noundef %22, ptr noundef %23, ptr noundef %24)
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 40, i1 false)
  %25 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 1
  store double 1.000000e+00, ptr %25, align 8
  %26 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 2
  store double 1.000000e+00, ptr %26, align 16
  %27 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 3
  store double 1.000000e+00, ptr %27, align 8
  %28 = getelementptr inbounds [5 x double], ptr %11, i32 0, i32 4
  store double 1.000000e+00, ptr %28, align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 64, i1 false)
  %29 = getelementptr inbounds <{ { i32, { %struct.anon, [16 x i8] } }, { i32, { %struct.anon.0, [16 x i8] } } }>, ptr %12, i32 0, i32 0
  %30 = getelementptr inbounds { i32, { %struct.anon, [16 x i8] } }, ptr %29, i32 0, i32 1
  %31 = getelementptr inbounds { %struct.anon, [16 x i8] }, ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds %struct.anon, ptr %31, i32 0, i32 0
  store i64 1, ptr %32, align 8
  %33 = getelementptr inbounds <{ { i32, { %struct.anon, [16 x i8] } }, { i32, { %struct.anon.0, [16 x i8] } } }>, ptr %12, i32 0, i32 1
  %34 = getelementptr inbounds { i32, { %struct.anon.0, [16 x i8] } }, ptr %33, i32 0, i32 0
  store i32 1, ptr %34, align 16
  %35 = getelementptr inbounds { i32, { %struct.anon.0, [16 x i8] } }, ptr %33, i32 0, i32 1
  %36 = getelementptr inbounds { %struct.anon.0, [16 x i8] }, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %struct.anon.0, ptr %36, i32 0, i32 0
  store i64 4, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 280, ptr %13) #6
  call void @clarabel_DefaultSettings_default(ptr dead_on_unwind writable sret(%struct.ClarabelDefaultSettings_f64) align 8 %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %38 = getelementptr inbounds [2 x double], ptr %6, i64 0, i64 0
  %39 = getelementptr inbounds [5 x double], ptr %11, i64 0, i64 0
  %40 = getelementptr inbounds [2 x %struct.ClarabelSupportedConeT_f64], ptr %12, i64 0, i64 0
  %41 = call ptr @clarabel_DefaultSolver_new(ptr noundef %2, ptr noundef %38, ptr noundef %7, ptr noundef %39, i64 noundef 2, ptr noundef %40, ptr noundef %13)
  store ptr %41, ptr %14, align 8, !tbaa !14
  %42 = load ptr, ptr %14, align 8, !tbaa !14
  call void @clarabel_DefaultSolver_solve(ptr noundef %42)
  call void @llvm.lifetime.start.p0(i64 104, ptr %15) #6
  %43 = load ptr, ptr %14, align 8, !tbaa !14
  call void @clarabel_DefaultSolver_solution(ptr dead_on_unwind writable sret(%struct.ClarabelDefaultSolution_f64) align 8 %15, ptr noundef %43)
  call void @print_solution_f64(ptr noundef %15)
  call void @llvm.lifetime.start.p0(i64 144, ptr %16) #6
  %44 = load ptr, ptr %14, align 8, !tbaa !14
  call void @clarabel_DefaultSolver_info(ptr dead_on_unwind writable sret(%struct.ClarabelDefaultInfo_f64) align 8 %16, ptr noundef %44)
  %45 = getelementptr inbounds %struct.ClarabelDefaultInfo_f64, ptr %16, i32 0, i32 6
  %46 = load double, ptr %45, align 8, !tbaa !16
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %46)
  %48 = getelementptr inbounds %struct.ClarabelDefaultInfo_f64, ptr %16, i32 0, i32 7
  %49 = load double, ptr %48, align 8, !tbaa !21
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %49)
  %51 = getelementptr inbounds %struct.ClarabelDefaultInfo_f64, ptr %16, i32 0, i32 15
  %52 = getelementptr inbounds %struct.ClarabelLinearSolverInfo, ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !22
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %53)
  %55 = getelementptr inbounds %struct.ClarabelDefaultInfo_f64, ptr %16, i32 0, i32 15
  %56 = getelementptr inbounds %struct.ClarabelLinearSolverInfo, ptr %55, i32 0, i32 3
  %57 = load i32, ptr %56, align 4, !tbaa !23
  %58 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %57)
  %59 = getelementptr inbounds %struct.ClarabelDefaultInfo_f64, ptr %16, i32 0, i32 15
  %60 = getelementptr inbounds %struct.ClarabelLinearSolverInfo, ptr %59, i32 0, i32 4
  %61 = load i32, ptr %60, align 4, !tbaa !24
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %61)
  %63 = load ptr, ptr %14, align 8, !tbaa !14
  call void @clarabel_DefaultSolver_free(ptr noundef %63)
  call void @llvm.lifetime.end.p0(i64 144, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #6
  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: inlinehint nounwind uwtable
declare hidden void @clarabel_CscMatrix_init(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #2

; 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) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSettings_default(ptr dead_on_unwind noalias writable sret(%struct.ClarabelDefaultSettings_f64) align 8) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @clarabel_DefaultSolver_new(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSolver_solve(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSolver_solution(ptr dead_on_unwind noalias writable sret(%struct.ClarabelDefaultSolution_f64) align 8, ptr noundef) #2

declare void @print_solution_f64(ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSolver_info(ptr dead_on_unwind noalias writable sret(%struct.ClarabelDefaultInfo_f64) align 8, ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSolver_free(ptr noundef) #2

; 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 = { inlinehint 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 #6 = { 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 = !{i64 0, i64 24, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 48, !6}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!17, !12, i64 48}
!17 = !{!"ClarabelDefaultInfo_f64", !12, i64 0, !12, i64 8, !12, i64 16, !18, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !18, i64 112, !19, i64 116}
!18 = !{!"int", !7, i64 0}
!19 = !{!"ClarabelLinearSolverInfo", !18, i64 0, !18, i64 4, !20, i64 8, !18, i64 12, !18, i64 16, !18, i64 20}
!20 = !{!"_Bool", !7, i64 0}
!21 = !{!17, !12, i64 56}
!22 = !{!17, !18, i64 120}
!23 = !{!17, !18, i64 128}
!24 = !{!17, !18, i64 132}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ClarabelCscMatrix_f64 = type { i64, i64, ptr, ptr, ptr }
%struct.ClarabelSupportedConeT_f64 = type { i32, %union.anon }
%union.anon = type { %struct.anon.3 }
%struct.anon.3 = type { ptr, i64, i64 }
%struct.ClarabelDefaultSettings_f64 = type { i32, double, i8, double, double, double, double, double, double, double, double, double, double, double, double, double, i8, i32, double, double, double, double, double, i32, i8, i32, i8, double, double, i8, double, double, i8, double, double, i32, double, i8 }
%struct.ClarabelDefaultSolution_f64 = type { ptr, i64, ptr, i64, ptr, i64, i32, double, double, double, i32, double, double }
%struct.ClarabelDefaultInfo_f64 = type { double, double, double, i32, double, double, double, double, double, double, double, double, double, double, i32, %struct.ClarabelLinearSolverInfo }
%struct.ClarabelLinearSolverInfo = type { i32, i32, i8, i32, i32, i32 }

@constinit = external hidden local_unnamed_addr constant [3 x i64], align 8
@__const.main.q = external hidden unnamed_addr constant [2 x double], align 16
@constinit.1 = external hidden local_unnamed_addr constant [3 x i64], align 8
@constinit.2 = external hidden local_unnamed_addr constant [6 x i64], align 8
@constinit.3 = external hidden local_unnamed_addr constant [6 x double], align 8
@.str = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.ClarabelCscMatrix_f64, align 8
  %2 = alloca [3 x i64], align 8
  %3 = alloca [2 x i64], align 8
  %4 = alloca [2 x double], align 16
  %5 = alloca [2 x double], align 16
  %6 = alloca %struct.ClarabelCscMatrix_f64, align 8
  %7 = alloca [3 x i64], align 8
  %8 = alloca [6 x i64], align 8
  %9 = alloca [6 x double], align 8
  %10 = alloca [5 x double], align 16
  %11 = alloca [2 x %struct.ClarabelSupportedConeT_f64], align 16
  %12 = alloca %struct.ClarabelDefaultSettings_f64, align 8
  %13 = alloca %struct.ClarabelDefaultSolution_f64, align 8
  %14 = alloca %struct.ClarabelDefaultInfo_f64, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) @constinit, i64 24, i1 false), !tbaa.struct !5
  store i64 0, ptr %3, align 8, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 1, ptr %15, align 8, !tbaa !9
  store <2 x double> <double 6.000000e+00, double 4.000000e+00>, ptr %4, align 16, !tbaa !11
  call void @clarabel_CscMatrix_init(ptr noundef nonnull %1, i64 noundef 2, i64 noundef 2, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %5, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.q, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) @constinit.1, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) @constinit.2, i64 48, i1 false), !tbaa.struct !13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) @constinit.3, i64 48, i1 false), !tbaa.struct !13
  call void @clarabel_CscMatrix_init(ptr noundef nonnull %6, i64 noundef 5, i64 noundef 2, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) %10, i8 0, i64 16, i1 false)
  %16 = getelementptr inbounds i8, ptr %10, i64 8
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %16, align 8
  %17 = getelementptr inbounds i8, ptr %10, i64 24
  store <2 x double> <double 1.000000e+00, double 1.000000e+00>, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  %18 = getelementptr inbounds i8, ptr %11, i64 8
  store i64 1, ptr %18, align 8
  %19 = getelementptr inbounds i8, ptr %11, i64 32
  store i32 1, ptr %19, align 16
  %20 = getelementptr inbounds i8, ptr %11, i64 40
  store i64 4, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %12) #7
  call void @clarabel_DefaultSettings_default(ptr dead_on_unwind nonnull writable sret(%struct.ClarabelDefaultSettings_f64) align 8 %12)
  %21 = call ptr @clarabel_DefaultSolver_new(ptr noundef nonnull %1, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %10, i64 noundef 2, ptr noundef nonnull %11, ptr noundef nonnull %12)
  call void @clarabel_DefaultSolver_solve(ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %13) #7
  call void @clarabel_DefaultSolver_solution(ptr dead_on_unwind nonnull writable sret(%struct.ClarabelDefaultSolution_f64) align 8 %13, ptr noundef %21)
  call void @print_solution_f64(ptr noundef nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %14) #7
  call void @clarabel_DefaultSolver_info(ptr dead_on_unwind nonnull writable sret(%struct.ClarabelDefaultInfo_f64) align 8 %14, ptr noundef %21)
  %22 = getelementptr inbounds i8, ptr %14, i64 48
  %23 = load double, ptr %22, align 8, !tbaa !14
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %23)
  %25 = getelementptr inbounds i8, ptr %14, i64 56
  %26 = load double, ptr %25, align 8, !tbaa !19
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %26)
  %28 = getelementptr inbounds i8, ptr %14, i64 120
  %29 = load i32, ptr %28, align 8, !tbaa !20
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %29)
  %31 = getelementptr inbounds i8, ptr %14, i64 128
  %32 = load i32, ptr %31, align 8, !tbaa !21
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %32)
  %34 = getelementptr inbounds i8, ptr %14, i64 132
  %35 = load i32, ptr %34, align 4, !tbaa !22
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %35)
  call void @clarabel_DefaultSolver_free(ptr noundef %21)
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #7
  ret i32 0
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_CscMatrix_init(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSettings_default(ptr dead_on_unwind noalias writable sret(%struct.ClarabelDefaultSettings_f64) align 8) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @clarabel_DefaultSolver_new(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSolver_solve(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSolver_solution(ptr dead_on_unwind noalias writable sret(%struct.ClarabelDefaultSolution_f64) align 8, ptr noundef) local_unnamed_addr #2

declare void @print_solution_f64(ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSolver_info(ptr dead_on_unwind noalias writable sret(%struct.ClarabelDefaultInfo_f64) align 8, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @clarabel_DefaultSolver_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 #6 = { 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 #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 = !{i64 0, i64 24, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{i64 0, i64 48, !6}
!14 = !{!15, !12, i64 48}
!15 = !{!"ClarabelDefaultInfo_f64", !12, i64 0, !12, i64 8, !12, i64 16, !16, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !16, i64 112, !17, i64 116}
!16 = !{!"int", !7, i64 0}
!17 = !{!"ClarabelLinearSolverInfo", !16, i64 0, !16, i64 4, !18, i64 8, !16, i64 12, !16, i64 16, !16, i64 20}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!15, !12, i64 56}
!20 = !{!15, !16, i64 120}
!21 = !{!15, !16, i64 128}
!22 = !{!15, !16, i64 132}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass