; LLVM IR from stan-dev/math :: lib/sundials_6.1.1/src/sunlinsol/band (sunlinsol_band)

; 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._generic_SUNLinearSolver = type { ptr, ptr, ptr }
%struct._generic_SUNLinearSolver_Ops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._SUNLinearSolverContent_Band = type { i64, ptr, i64 }

; Function Attrs: nounwind uwtable
define dso_local ptr @SUNLinSol_Band(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 ptr, align 8
  %10 = alloca i64, align 8
  %11 = 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) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %12 = load ptr, ptr %6, align 8, !tbaa !5
  %13 = call i32 @SUNMatGetID(ptr noundef %12)
  %14 = icmp ne i32 %13, 3
  br i1 %14, label %15, label %16

15:                                               ; preds = %3
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

16:                                               ; preds = %3
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = call i64 @SUNBandMatrix_Rows(ptr noundef %17)
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i64 @SUNBandMatrix_Columns(ptr noundef %19)
  %21 = icmp ne i64 %18, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %16
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

23:                                               ; preds = %16
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = call i32 @N_VGetVectorID(ptr noundef %24)
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %36

27:                                               ; preds = %23
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i32 @N_VGetVectorID(ptr noundef %28)
  %30 = icmp ne i32 %29, 2
  br i1 %30, label %31, label %36

31:                                               ; preds = %27
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call i32 @N_VGetVectorID(ptr noundef %32)
  %34 = icmp ne i32 %33, 3
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

36:                                               ; preds = %31, %27, %23
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call i64 @SUNBandMatrix_Rows(ptr noundef %37)
  store i64 %38, ptr %10, align 8, !tbaa !9
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call i64 @SUNBandMatrix_StoredUpperBandwidth(ptr noundef %39)
  %41 = load i64, ptr %10, align 8, !tbaa !9
  %42 = sub nsw i64 %41, 1
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call i64 @SUNBandMatrix_LowerBandwidth(ptr noundef %43)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call i64 @SUNBandMatrix_UpperBandwidth(ptr noundef %45)
  %47 = add nsw i64 %44, %46
  %48 = icmp slt i64 %42, %47
  br i1 %48, label %49, label %52

49:                                               ; preds = %36
  %50 = load i64, ptr %10, align 8, !tbaa !9
  %51 = sub nsw i64 %50, 1
  br label %58

52:                                               ; preds = %36
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = call i64 @SUNBandMatrix_LowerBandwidth(ptr noundef %53)
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = call i64 @SUNBandMatrix_UpperBandwidth(ptr noundef %55)
  %57 = add nsw i64 %54, %56
  br label %58

58:                                               ; preds = %52, %49
  %59 = phi i64 [ %51, %49 ], [ %57, %52 ]
  %60 = icmp slt i64 %40, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %58
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

62:                                               ; preds = %58
  %63 = load i64, ptr %10, align 8, !tbaa !9
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = call i64 @N_VGetLength(ptr noundef %64)
  %66 = icmp ne i64 %63, %65
  br i1 %66, label %67, label %68

67:                                               ; preds = %62
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

68:                                               ; preds = %62
  store ptr null, ptr %8, align 8, !tbaa !5
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call ptr @SUNLinSolNewEmpty(ptr noundef %69)
  store ptr %70, ptr %8, align 8, !tbaa !5
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %74

73:                                               ; preds = %68
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

74:                                               ; preds = %68
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %77, i32 0, i32 0
  store ptr @SUNLinSolGetType_Band, ptr %78, align 8, !tbaa !13
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %81, i32 0, i32 1
  store ptr @SUNLinSolGetID_Band, ptr %82, align 8, !tbaa !15
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %85, i32 0, i32 6
  store ptr @SUNLinSolInitialize_Band, ptr %86, align 8, !tbaa !16
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !11
  %90 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %89, i32 0, i32 7
  store ptr @SUNLinSolSetup_Band, ptr %90, align 8, !tbaa !17
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %93, i32 0, i32 8
  store ptr @SUNLinSolSolve_Band, ptr %94, align 8, !tbaa !18
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !11
  %98 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %97, i32 0, i32 11
  store ptr @SUNLinSolLastFlag_Band, ptr %98, align 8, !tbaa !19
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %101, i32 0, i32 12
  store ptr @SUNLinSolSpace_Band, ptr %102, align 8, !tbaa !20
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !11
  %106 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %105, i32 0, i32 14
  store ptr @SUNLinSolFree_Band, ptr %106, align 8, !tbaa !21
  store ptr null, ptr %9, align 8, !tbaa !5
  %107 = call noalias ptr @malloc(i64 noundef 24) #5
  store ptr %107, ptr %9, align 8, !tbaa !5
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %113

110:                                              ; preds = %74
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = call i32 @SUNLinSolFree(ptr noundef %111)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

113:                                              ; preds = %74
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %115, i32 0, i32 0
  store ptr %114, ptr %116, align 8, !tbaa !22
  %117 = load i64, ptr %10, align 8, !tbaa !9
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct._SUNLinearSolverContent_Band, ptr %118, i32 0, i32 0
  store i64 %117, ptr %119, align 8, !tbaa !23
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._SUNLinearSolverContent_Band, ptr %120, i32 0, i32 2
  store i64 0, ptr %121, align 8, !tbaa !25
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._SUNLinearSolverContent_Band, ptr %122, i32 0, i32 1
  store ptr null, ptr %123, align 8, !tbaa !26
  %124 = load i64, ptr %10, align 8, !tbaa !9
  %125 = mul i64 %124, 8
  %126 = call noalias ptr @malloc(i64 noundef %125) #5
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._SUNLinearSolverContent_Band, ptr %127, i32 0, i32 1
  store ptr %126, ptr %128, align 8, !tbaa !26
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct._SUNLinearSolverContent_Band, ptr %129, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !26
  %132 = icmp eq ptr %131, null
  br i1 %132, label %133, label %136

133:                                              ; preds = %113
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = call i32 @SUNLinSolFree(ptr noundef %134)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

136:                                              ; preds = %113
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %137, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %138

138:                                              ; preds = %136, %133, %110, %73, %67, %61, %35, %22, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %139 = load ptr, ptr %4, align 8
  ret ptr %139
}

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

declare i32 @SUNMatGetID(ptr noundef) #2

declare i64 @SUNBandMatrix_Rows(ptr noundef) #2

declare i64 @SUNBandMatrix_Columns(ptr noundef) #2

declare i32 @N_VGetVectorID(ptr noundef) #2

declare i64 @SUNBandMatrix_StoredUpperBandwidth(ptr noundef) #2

declare i64 @SUNBandMatrix_LowerBandwidth(ptr noundef) #2

declare i64 @SUNBandMatrix_UpperBandwidth(ptr noundef) #2

declare i64 @N_VGetLength(ptr noundef) #2

declare ptr @SUNLinSolNewEmpty(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolGetType_Band(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolGetID_Band(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolInitialize_Band(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolSetup_Band(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolSolve_Band(ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolSpace_Band(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolFree_Band(ptr noundef) #0

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

declare i32 @SUNLinSolFree(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 = { "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 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 #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_generic_SUNLinearSolver", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!14, !6, i64 0}
!14 = !{!"_generic_SUNLinearSolver_Ops", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112}
!15 = !{!14, !6, i64 8}
!16 = !{!14, !6, i64 48}
!17 = !{!14, !6, i64 56}
!18 = !{!14, !6, i64 64}
!19 = !{!14, !6, i64 88}
!20 = !{!14, !6, i64 96}
!21 = !{!14, !6, i64 112}
!22 = !{!12, !6, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"_SUNLinearSolverContent_Band", !10, i64 0, !6, i64 8, !10, i64 16}
!25 = !{!24, !10, i64 16}
!26 = !{!24, !6, i64 8}


; 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
define dso_local ptr @SUNLinSol_Band(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = tail call i32 @SUNMatGetID(ptr noundef %1) #3
  %.not = icmp eq i32 %4, 3
  br i1 %.not, label %5, label %53

5:                                                ; preds = %3
  %6 = tail call i64 @SUNBandMatrix_Rows(ptr noundef %1) #3
  %7 = tail call i64 @SUNBandMatrix_Columns(ptr noundef %1) #3
  %.not43 = icmp eq i64 %6, %7
  br i1 %.not43, label %8, label %53

8:                                                ; preds = %5
  %9 = tail call i32 @N_VGetVectorID(ptr noundef %0) #3
  %.not44 = icmp eq i32 %9, 0
  br i1 %.not44, label %14, label %10

10:                                               ; preds = %8
  %11 = tail call i32 @N_VGetVectorID(ptr noundef %0) #3
  %.not45 = icmp eq i32 %11, 2
  br i1 %.not45, label %14, label %12

12:                                               ; preds = %10
  %13 = tail call i32 @N_VGetVectorID(ptr noundef %0) #3
  %.not46 = icmp eq i32 %13, 3
  br i1 %.not46, label %14, label %53

14:                                               ; preds = %12, %10, %8
  %15 = tail call i64 @SUNBandMatrix_Rows(ptr noundef %1) #3
  %16 = tail call i64 @SUNBandMatrix_StoredUpperBandwidth(ptr noundef %1) #3
  %17 = tail call i64 @SUNBandMatrix_LowerBandwidth(ptr noundef %1) #3
  %18 = tail call i64 @SUNBandMatrix_UpperBandwidth(ptr noundef %1) #3
  %19 = add nsw i64 %18, %17
  %.not47 = icmp sgt i64 %15, %19
  br i1 %.not47, label %22, label %20

20:                                               ; preds = %14
  %21 = add nsw i64 %15, -1
  br label %26

22:                                               ; preds = %14
  %23 = tail call i64 @SUNBandMatrix_LowerBandwidth(ptr noundef %1) #3
  %24 = tail call i64 @SUNBandMatrix_UpperBandwidth(ptr noundef %1) #3
  %25 = add nsw i64 %24, %23
  br label %26

26:                                               ; preds = %22, %20
  %27 = phi i64 [ %21, %20 ], [ %25, %22 ]
  %28 = icmp slt i64 %16, %27
  br i1 %28, label %53, label %29

29:                                               ; preds = %26
  %30 = tail call i64 @N_VGetLength(ptr noundef %0) #3
  %.not48 = icmp eq i64 %15, %30
  br i1 %.not48, label %31, label %53

31:                                               ; preds = %29
  %32 = tail call ptr @SUNLinSolNewEmpty(ptr noundef %2) #3
  %33 = icmp eq ptr %32, null
  br i1 %33, label %53, label %34

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %32, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr @SUNLinSolGetType_Band, ptr %36, align 8, !tbaa !10
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  store ptr @SUNLinSolGetID_Band, ptr %37, align 8, !tbaa !12
  %38 = getelementptr inbounds i8, ptr %36, i64 48
  store ptr @SUNLinSolInitialize_Band, ptr %38, align 8, !tbaa !13
  %39 = getelementptr inbounds i8, ptr %36, i64 56
  store ptr @SUNLinSolSetup_Band, ptr %39, align 8, !tbaa !14
  %40 = getelementptr inbounds i8, ptr %36, i64 64
  store ptr @SUNLinSolSolve_Band, ptr %40, align 8, !tbaa !15
  %41 = getelementptr inbounds i8, ptr %36, i64 88
  store ptr @SUNLinSolLastFlag_Band, ptr %41, align 8, !tbaa !16
  %42 = getelementptr inbounds i8, ptr %36, i64 96
  store ptr @SUNLinSolSpace_Band, ptr %42, align 8, !tbaa !17
  %43 = getelementptr inbounds i8, ptr %36, i64 112
  store ptr @SUNLinSolFree_Band, ptr %43, align 8, !tbaa !18
  %44 = tail call noalias dereferenceable_or_null(24) ptr @malloc(i64 noundef 24) #4
  %45 = icmp eq ptr %44, null
  br i1 %45, label %.sink.split, label %46

46:                                               ; preds = %34
  store ptr %44, ptr %32, align 8, !tbaa !19
  store i64 %15, ptr %44, align 8, !tbaa !20
  %47 = getelementptr inbounds i8, ptr %44, i64 8
  %48 = shl i64 %15, 3
  %49 = tail call noalias ptr @malloc(i64 noundef %48) #4
  %50 = getelementptr inbounds i8, ptr %44, i64 16
  store i64 0, ptr %50, align 8
  store ptr %49, ptr %47, align 8, !tbaa !23
  %51 = icmp eq ptr %49, null
  br i1 %51, label %.sink.split, label %53

.sink.split:                                      ; preds = %46, %34
  %52 = tail call i32 @SUNLinSolFree(ptr noundef nonnull %32) #3
  br label %53

53:                                               ; preds = %.sink.split, %46, %31, %29, %26, %12, %5, %3
  %.0 = phi ptr [ null, %3 ], [ null, %5 ], [ null, %12 ], [ null, %26 ], [ null, %29 ], [ null, %31 ], [ %32, %46 ], [ null, %.sink.split ]
  ret ptr %.0
}

declare i32 @SUNMatGetID(ptr noundef) local_unnamed_addr #1

declare i64 @SUNBandMatrix_Rows(ptr noundef) local_unnamed_addr #1

declare i64 @SUNBandMatrix_Columns(ptr noundef) local_unnamed_addr #1

declare i32 @N_VGetVectorID(ptr noundef) local_unnamed_addr #1

declare i64 @SUNBandMatrix_StoredUpperBandwidth(ptr noundef) local_unnamed_addr #1

declare i64 @SUNBandMatrix_LowerBandwidth(ptr noundef) local_unnamed_addr #1

declare i64 @SUNBandMatrix_UpperBandwidth(ptr noundef) local_unnamed_addr #1

declare i64 @N_VGetLength(ptr noundef) local_unnamed_addr #1

declare ptr @SUNLinSolNewEmpty(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolGetType_Band(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolGetID_Band(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolInitialize_Band(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolSetup_Band(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolSolve_Band(ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolSpace_Band(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @SUNLinSolFree_Band(ptr noundef) #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 #2

declare i32 @SUNLinSolFree(ptr noundef) local_unnamed_addr #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 #3 = { nounwind }
attributes #4 = { 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, !7, i64 8}
!6 = !{!"_generic_SUNLinearSolver", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"_generic_SUNLinearSolver_Ops", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112}
!12 = !{!11, !7, i64 8}
!13 = !{!11, !7, i64 48}
!14 = !{!11, !7, i64 56}
!15 = !{!11, !7, i64 64}
!16 = !{!11, !7, i64 88}
!17 = !{!11, !7, i64 96}
!18 = !{!11, !7, i64 112}
!19 = !{!6, !7, i64 0}
!20 = !{!21, !22, i64 0}
!21 = !{!"_SUNLinearSolverContent_Band", !22, i64 0, !7, i64 8, !22, i64 16}
!22 = !{!"long", !8, i64 0}
!23 = !{!21, !7, i64 8}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass