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

; 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.anon = type { i64 }

@constinit = external hidden constant [7 x i64], align 8
@constinit.1 = external hidden constant [7 x i64], align 8
@constinit.2 = external hidden constant [10 x i64], align 8
@constinit.3 = external hidden constant [10 x double], align 8
@__const.main.alpha1 = external hidden unnamed_addr constant [2 x double], align 16
@__const.main.alpha2 = external hidden unnamed_addr constant [2 x double], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.ClarabelCscMatrix_f64, align 8
  %3 = alloca [7 x i64], align 8
  %4 = alloca [6 x double], align 16
  %5 = alloca %struct.ClarabelCscMatrix_f64, align 8
  %6 = alloca [7 x i64], align 8
  %7 = alloca [10 x i64], align 8
  %8 = alloca [10 x double], align 8
  %9 = alloca [8 x double], align 16
  %10 = alloca [2 x double], align 16
  %11 = alloca [2 x double], align 16
  %12 = alloca [4 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #6
  call void @llvm.memset.p0.i64(ptr align 8 %3, i8 0, i64 56, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 @constinit, i64 56, i1 false), !tbaa.struct !5
  %16 = getelementptr inbounds [7 x i64], ptr %3, i64 0, i64 0
  call void @clarabel_CscMatrix_init(ptr noundef %2, i64 noundef 6, i64 noundef 6, ptr noundef %16, ptr noundef null, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 48, ptr %4) #6
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 48, i1 false)
  %17 = getelementptr inbounds [6 x double], ptr %4, i32 0, i32 2
  store double -1.000000e+00, ptr %17, align 16
  %18 = getelementptr inbounds [6 x double], ptr %4, i32 0, i32 5
  store double -1.000000e+00, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 @constinit.1, i64 56, i1 false), !tbaa.struct !5
  %19 = getelementptr inbounds [7 x i64], ptr %6, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 @constinit.2, i64 80, i1 false), !tbaa.struct !9
  %20 = getelementptr inbounds [10 x i64], ptr %7, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @constinit.3, i64 80, i1 false), !tbaa.struct !9
  %21 = getelementptr inbounds [10 x double], ptr %8, i64 0, i64 0
  call void @clarabel_CscMatrix_init(ptr noundef %5, i64 noundef 8, i64 noundef 6, ptr noundef %19, ptr noundef %20, ptr noundef %21)
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #6
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 64, i1 false)
  %22 = getelementptr inbounds [8 x double], ptr %9, i32 0, i32 6
  store double 3.000000e+00, ptr %22, align 16
  %23 = getelementptr inbounds [8 x double], ptr %9, i32 0, i32 7
  store double 1.000000e+00, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.alpha1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.alpha2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #6
  %24 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %12, i32 0, i32 0
  store i32 5, ptr %24, align 16, !tbaa !10
  %25 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %12, i32 0, i32 1
  %26 = getelementptr inbounds %struct.anon.3, ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
  store ptr %27, ptr %26, align 8, !tbaa !13
  %28 = getelementptr inbounds %struct.anon.3, ptr %25, i32 0, i32 1
  store i64 2, ptr %28, align 8, !tbaa !17
  %29 = getelementptr inbounds %struct.anon.3, ptr %25, i32 0, i32 2
  store i64 1, ptr %29, align 8, !tbaa !18
  %30 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %12, i64 1
  %31 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %30, i32 0, i32 0
  store i32 5, ptr %31, align 16, !tbaa !10
  %32 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %30, i32 0, i32 1
  %33 = getelementptr inbounds %struct.anon.3, ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds [2 x double], ptr %11, i64 0, i64 0
  store ptr %34, ptr %33, align 8, !tbaa !13
  %35 = getelementptr inbounds %struct.anon.3, ptr %32, i32 0, i32 1
  store i64 2, ptr %35, align 8, !tbaa !17
  %36 = getelementptr inbounds %struct.anon.3, ptr %32, i32 0, i32 2
  store i64 1, ptr %36, align 8, !tbaa !18
  %37 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %12, i64 2
  %38 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %37, i32 0, i32 0
  store i32 0, ptr %38, align 16, !tbaa !10
  %39 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %37, i32 0, i32 1
  %40 = getelementptr inbounds %struct.anon, ptr %39, i32 0, i32 0
  store i64 1, ptr %40, align 8, !tbaa !19
  %41 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %12, i64 3
  %42 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %41, i32 0, i32 0
  store i32 0, ptr %42, align 16, !tbaa !10
  %43 = getelementptr inbounds %struct.ClarabelSupportedConeT_f64, ptr %41, i32 0, i32 1
  %44 = getelementptr inbounds %struct.anon, ptr %43, i32 0, i32 0
  store i64 1, ptr %44, align 8, !tbaa !19
  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)
  %45 = getelementptr inbounds %struct.ClarabelDefaultSettings_f64, ptr %13, i32 0, i32 2
  store i8 1, ptr %45, align 8, !tbaa !21
  %46 = getelementptr inbounds %struct.ClarabelDefaultSettings_f64, ptr %13, i32 0, i32 0
  store i32 100, ptr %46, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %47 = getelementptr inbounds [6 x double], ptr %4, i64 0, i64 0
  %48 = getelementptr inbounds [8 x double], ptr %9, i64 0, i64 0
  %49 = getelementptr inbounds [4 x %struct.ClarabelSupportedConeT_f64], ptr %12, i64 0, i64 0
  %50 = call ptr @clarabel_DefaultSolver_new(ptr noundef %2, ptr noundef %47, ptr noundef %5, ptr noundef %48, i64 noundef 4, ptr noundef %49, ptr noundef %13)
  store ptr %50, ptr %14, align 8, !tbaa !26
  %51 = load ptr, ptr %14, align 8, !tbaa !26
  call void @clarabel_DefaultSolver_solve(ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 104, ptr %15) #6
  %52 = load ptr, ptr %14, align 8, !tbaa !26
  call void @clarabel_DefaultSolver_solution(ptr dead_on_unwind writable sret(%struct.ClarabelDefaultSolution_f64) align 8 %15, ptr noundef %52)
  call void @print_solution_f64(ptr noundef %15)
  %53 = load ptr, ptr %14, align 8, !tbaa !26
  call void @clarabel_DefaultSolver_free(ptr noundef %53)
  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 128, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %4) #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: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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) #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_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: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 56, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 80, !6}
!10 = !{!11, !12, i64 0}
!11 = !{!"ClarabelSupportedConeT_f64", !12, i64 0, !7, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"", !15, i64 0, !16, i64 8, !16, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !16, i64 8}
!18 = !{!14, !16, i64 16}
!19 = !{!20, !16, i64 0}
!20 = !{!"", !16, i64 0}
!21 = !{!22, !24, i64 16}
!22 = !{!"ClarabelDefaultSettings_f64", !12, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !23, i64 32, !23, i64 40, !23, i64 48, !23, i64 56, !23, i64 64, !23, i64 72, !23, i64 80, !23, i64 88, !23, i64 96, !23, i64 104, !23, i64 112, !23, i64 120, !24, i64 128, !12, i64 132, !23, i64 136, !23, i64 144, !23, i64 152, !23, i64 160, !23, i64 168, !12, i64 176, !24, i64 180, !12, i64 184, !24, i64 188, !23, i64 192, !23, i64 200, !24, i64 208, !23, i64 216, !23, i64 224, !24, i64 232, !23, i64 240, !23, i64 248, !12, i64 256, !23, i64 264, !24, i64 272}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_Bool", !7, i64 0}
!25 = !{!22, !12, i64 0}
!26 = !{!15, !15, i64 0}


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

@constinit = external hidden local_unnamed_addr constant [7 x i64], align 8
@constinit.1 = external hidden local_unnamed_addr constant [7 x i64], align 8
@constinit.2 = external hidden local_unnamed_addr constant [10 x i64], align 8
@constinit.3 = external hidden local_unnamed_addr constant [10 x double], align 8
@__const.main.alpha1 = external hidden unnamed_addr constant [2 x double], align 16
@__const.main.alpha2 = external hidden unnamed_addr constant [2 x double], align 16

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %struct.ClarabelCscMatrix_f64, align 8
  %2 = alloca [7 x i64], align 8
  %3 = alloca [6 x double], align 16
  %4 = alloca %struct.ClarabelCscMatrix_f64, align 8
  %5 = alloca [7 x i64], align 8
  %6 = alloca [10 x i64], align 8
  %7 = alloca [10 x double], align 8
  %8 = alloca [8 x double], align 16
  %9 = alloca [2 x double], align 16
  %10 = alloca [2 x double], align 16
  %11 = alloca [4 x %struct.ClarabelSupportedConeT_f64], align 16
  %12 = alloca %struct.ClarabelDefaultSettings_f64, align 8
  %13 = alloca %struct.ClarabelDefaultSolution_f64, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(56) @constinit, i64 56, i1 false), !tbaa.struct !5
  call void @clarabel_CscMatrix_init(ptr noundef nonnull %1, i64 noundef 6, i64 noundef 6, ptr noundef nonnull %2, ptr noundef null, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %3, i8 0, i64 48, i1 false)
  %14 = getelementptr inbounds i8, ptr %3, i64 16
  store double -1.000000e+00, ptr %14, align 16
  %15 = getelementptr inbounds i8, ptr %3, i64 40
  store double -1.000000e+00, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 8 dereferenceable(56) @constinit.1, i64 56, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %6, ptr noundef nonnull align 8 dereferenceable(80) @constinit.2, i64 80, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 8 dereferenceable(80) @constinit.3, i64 80, i1 false), !tbaa.struct !9
  call void @clarabel_CscMatrix_init(ptr noundef nonnull %4, i64 noundef 8, i64 noundef 6, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %8, i8 0, i64 48, i1 false)
  %16 = getelementptr inbounds i8, ptr %8, i64 48
  store <2 x double> <double 3.000000e+00, double 1.000000e+00>, ptr %16, align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.alpha1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.alpha2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #6
  store i32 5, ptr %11, align 16, !tbaa !10
  %17 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %9, ptr %17, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %11, i64 16
  store i64 2, ptr %18, align 16, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %11, i64 24
  store i64 1, ptr %19, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %11, i64 32
  store i32 5, ptr %20, align 16, !tbaa !10
  %21 = getelementptr inbounds i8, ptr %11, i64 40
  store ptr %10, ptr %21, align 8, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %11, i64 48
  store i64 2, ptr %22, align 16, !tbaa !17
  %23 = getelementptr inbounds i8, ptr %11, i64 56
  store i64 1, ptr %23, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %11, i64 64
  store i32 0, ptr %24, align 16, !tbaa !10
  %25 = getelementptr inbounds i8, ptr %11, i64 72
  store i64 1, ptr %25, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %11, i64 96
  store i32 0, ptr %26, align 16, !tbaa !10
  %27 = getelementptr inbounds i8, ptr %11, i64 104
  store i64 1, ptr %27, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %12) #6
  call void @clarabel_DefaultSettings_default(ptr dead_on_unwind nonnull writable sret(%struct.ClarabelDefaultSettings_f64) align 8 %12)
  %28 = getelementptr inbounds i8, ptr %12, i64 16
  store i8 1, ptr %28, align 8, !tbaa !21
  store i32 100, ptr %12, align 8, !tbaa !25
  %29 = call ptr @clarabel_DefaultSolver_new(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %8, i64 noundef 4, ptr noundef nonnull %11, ptr noundef nonnull %12)
  call void @clarabel_DefaultSolver_solve(ptr noundef %29)
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %13) #6
  call void @clarabel_DefaultSolver_solution(ptr dead_on_unwind nonnull writable sret(%struct.ClarabelDefaultSolution_f64) align 8 %13, ptr noundef %29)
  call void @print_solution_f64(ptr noundef nonnull %13) #6
  call void @clarabel_DefaultSolver_free(ptr noundef %29)
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #6
  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: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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) #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_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: write) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 56, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 80, !6}
!10 = !{!11, !12, i64 0}
!11 = !{!"ClarabelSupportedConeT_f64", !12, i64 0, !7, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"", !15, i64 0, !16, i64 8, !16, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !16, i64 8}
!18 = !{!14, !16, i64 16}
!19 = !{!20, !16, i64 0}
!20 = !{!"", !16, i64 0}
!21 = !{!22, !24, i64 16}
!22 = !{!"ClarabelDefaultSettings_f64", !12, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !23, i64 32, !23, i64 40, !23, i64 48, !23, i64 56, !23, i64 64, !23, i64 72, !23, i64 80, !23, i64 88, !23, i64 96, !23, i64 104, !23, i64 112, !23, i64 120, !24, i64 128, !12, i64 132, !23, i64 136, !23, i64 144, !23, i64 152, !23, i64 160, !23, i64 168, !12, i64 176, !24, i64 180, !12, i64 184, !24, i64 188, !23, i64 192, !23, i64 200, !24, i64 208, !23, i64 216, !23, i64 224, !24, i64 232, !23, i64 240, !23, i64 248, !12, i64 256, !23, i64 264, !24, i64 272}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_Bool", !7, i64 0}
!25 = !{!22, !12, i64 0}


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