; LLVM IR from stan-dev/math :: lib/sundials_6.1.1/src/cvodes (cvodes_bandpre)

; 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.CVodeMemRec = type { ptr, double, ptr, ptr, i32, i32, double, double, ptr, i32, i32, ptr, ptr, i32, i32, ptr, i32, i32, double, double, ptr, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, double, i32, i32, double, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, double, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, ptr, i32, [13 x ptr], ptr, ptr, ptr, ptr, ptr, i32, double, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, [14 x double], [6 x double], [13 x double], double, double, double, double, double, double, double, double, i32, double, double, i32, double, double, ptr, i32, i64, i32, i32, i32, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, ptr, i64, i64, ptr, i64, i64, i64, i64, i64, i64, i32, double, double, double, i64, i64, i64, i64, i64, i64, ptr, i32, ptr, i32, ptr, i32, ptr, i32, i32, i64, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, i64, i32, i32, i64, double, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i64, i32, [6 x [4 x double]], i32, i64, ptr, i32, ptr, ptr, double, double, double, ptr, ptr, ptr, double, double, i32, i32, i64, ptr, i32, ptr, ptr, ptr, i32, ptr, i32 }
%struct._generic_N_Vector = type { ptr, ptr, ptr }
%struct._generic_N_Vector_Ops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.CVBandPrecDataRec = type { i64, i64, i64, ptr, ptr, ptr, ptr, ptr, i64, ptr }
%struct.CVLsMemRec = type { i32, i32, i32, ptr, ptr, i32, i32, double, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @CVBandPrecInit(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %4
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef null, i32 noundef -1, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
  store i32 -1, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

21:                                               ; preds = %4
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %22, ptr %10, align 8, !tbaa !5
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.CVodeMemRec, ptr %23, i32 0, i32 174
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %29

27:                                               ; preds = %21
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %28, i32 noundef -2, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.3)
  store i32 -2, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

29:                                               ; preds = %21
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.CVodeMemRec, ptr %30, i32 0, i32 174
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  store ptr %32, ptr %11, align 8, !tbaa !5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.CVodeMemRec, ptr %33, i32 0, i32 55
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = getelementptr inbounds %struct._generic_N_Vector, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %37, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %43

41:                                               ; preds = %29
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %42, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.4)
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

43:                                               ; preds = %29
  store ptr null, ptr %12, align 8, !tbaa !5
  %44 = call noalias ptr @malloc(i64 noundef 80) #6
  store ptr %44, ptr %12, align 8, !tbaa !5
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %49

47:                                               ; preds = %43
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %48, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

49:                                               ; preds = %43
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %51, i32 0, i32 9
  store ptr %50, ptr %52, align 8, !tbaa !20
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %54, i32 0, i32 0
  store i64 %53, ptr %55, align 8, !tbaa !22
  %56 = load i64, ptr %7, align 8, !tbaa !9
  %57 = sub nsw i64 %56, 1
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = icmp sgt i64 0, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %49
  br label %63

61:                                               ; preds = %49
  %62 = load i64, ptr %8, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %61, %60
  %64 = phi i64 [ 0, %60 ], [ %62, %61 ]
  %65 = icmp slt i64 %57, %64
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = load i64, ptr %7, align 8, !tbaa !9
  %68 = sub nsw i64 %67, 1
  br label %77

69:                                               ; preds = %63
  %70 = load i64, ptr %8, align 8, !tbaa !9
  %71 = icmp sgt i64 0, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  br label %75

73:                                               ; preds = %69
  %74 = load i64, ptr %8, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %73, %72
  %76 = phi i64 [ 0, %72 ], [ %74, %73 ]
  br label %77

77:                                               ; preds = %75, %66
  %78 = phi i64 [ %68, %66 ], [ %76, %75 ]
  store i64 %78, ptr %13, align 8, !tbaa !9
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %79, i32 0, i32 2
  store i64 %78, ptr %80, align 8, !tbaa !23
  %81 = load i64, ptr %7, align 8, !tbaa !9
  %82 = sub nsw i64 %81, 1
  %83 = load i64, ptr %9, align 8, !tbaa !9
  %84 = icmp sgt i64 0, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %77
  br label %88

86:                                               ; preds = %77
  %87 = load i64, ptr %9, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %86, %85
  %89 = phi i64 [ 0, %85 ], [ %87, %86 ]
  %90 = icmp slt i64 %82, %89
  br i1 %90, label %91, label %94

91:                                               ; preds = %88
  %92 = load i64, ptr %7, align 8, !tbaa !9
  %93 = sub nsw i64 %92, 1
  br label %102

94:                                               ; preds = %88
  %95 = load i64, ptr %9, align 8, !tbaa !9
  %96 = icmp sgt i64 0, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  br label %100

98:                                               ; preds = %94
  %99 = load i64, ptr %9, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %98, %97
  %101 = phi i64 [ 0, %97 ], [ %99, %98 ]
  br label %102

102:                                              ; preds = %100, %91
  %103 = phi i64 [ %93, %91 ], [ %101, %100 ]
  store i64 %103, ptr %14, align 8, !tbaa !9
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %104, i32 0, i32 1
  store i64 %103, ptr %105, align 8, !tbaa !24
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %106, i32 0, i32 8
  store i64 0, ptr %107, align 8, !tbaa !25
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %108, i32 0, i32 3
  store ptr null, ptr %109, align 8, !tbaa !26
  %110 = load i64, ptr %7, align 8, !tbaa !9
  %111 = load i64, ptr %13, align 8, !tbaa !9
  %112 = load i64, ptr %14, align 8, !tbaa !9
  %113 = load i64, ptr %13, align 8, !tbaa !9
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.CVodeMemRec, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !27
  %117 = call ptr @SUNBandMatrixStorage(i64 noundef %110, i64 noundef %111, i64 noundef %112, i64 noundef %113, ptr noundef %116)
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %118, i32 0, i32 3
  store ptr %117, ptr %119, align 8, !tbaa !26
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %120, i32 0, i32 3
  %122 = load ptr, ptr %121, align 8, !tbaa !26
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %127

124:                                              ; preds = %102
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %125) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %126, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

127:                                              ; preds = %102
  %128 = load i64, ptr %7, align 8, !tbaa !9
  %129 = sub nsw i64 %128, 1
  %130 = load i64, ptr %13, align 8, !tbaa !9
  %131 = load i64, ptr %14, align 8, !tbaa !9
  %132 = add nsw i64 %130, %131
  %133 = icmp slt i64 %129, %132
  br i1 %133, label %134, label %137

134:                                              ; preds = %127
  %135 = load i64, ptr %7, align 8, !tbaa !9
  %136 = sub nsw i64 %135, 1
  br label %141

137:                                              ; preds = %127
  %138 = load i64, ptr %13, align 8, !tbaa !9
  %139 = load i64, ptr %14, align 8, !tbaa !9
  %140 = add nsw i64 %138, %139
  br label %141

141:                                              ; preds = %137, %134
  %142 = phi i64 [ %136, %134 ], [ %140, %137 ]
  store i64 %142, ptr %15, align 8, !tbaa !9
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %143, i32 0, i32 4
  store ptr null, ptr %144, align 8, !tbaa !28
  %145 = load i64, ptr %7, align 8, !tbaa !9
  %146 = load i64, ptr %13, align 8, !tbaa !9
  %147 = load i64, ptr %14, align 8, !tbaa !9
  %148 = load i64, ptr %15, align 8, !tbaa !9
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.CVodeMemRec, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !27
  %152 = call ptr @SUNBandMatrixStorage(i64 noundef %145, i64 noundef %146, i64 noundef %147, i64 noundef %148, ptr noundef %151)
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %153, i32 0, i32 4
  store ptr %152, ptr %154, align 8, !tbaa !28
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %155, i32 0, i32 4
  %157 = load ptr, ptr %156, align 8, !tbaa !28
  %158 = icmp eq ptr %157, null
  br i1 %158, label %159, label %165

159:                                              ; preds = %141
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %160, i32 0, i32 3
  %162 = load ptr, ptr %161, align 8, !tbaa !26
  call void @SUNMatDestroy(ptr noundef %162)
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %163) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  %164 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %164, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

165:                                              ; preds = %141
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %166, i32 0, i32 5
  store ptr null, ptr %167, align 8, !tbaa !29
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.CVodeMemRec, ptr %168, i32 0, i32 55
  %170 = load ptr, ptr %169, align 8, !tbaa !15
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !28
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.CVodeMemRec, ptr %174, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !27
  %177 = call ptr @SUNLinSol_Band(ptr noundef %170, ptr noundef %173, ptr noundef %176)
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %178, i32 0, i32 5
  store ptr %177, ptr %179, align 8, !tbaa !29
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %180, i32 0, i32 5
  %182 = load ptr, ptr %181, align 8, !tbaa !29
  %183 = icmp eq ptr %182, null
  br i1 %183, label %184, label %193

184:                                              ; preds = %165
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %185, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !28
  call void @SUNMatDestroy(ptr noundef %187)
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %188, i32 0, i32 3
  %190 = load ptr, ptr %189, align 8, !tbaa !26
  call void @SUNMatDestroy(ptr noundef %190)
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %191) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %192, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

193:                                              ; preds = %165
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %194, i32 0, i32 6
  store ptr null, ptr %195, align 8, !tbaa !30
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.CVodeMemRec, ptr %196, i32 0, i32 55
  %198 = load ptr, ptr %197, align 8, !tbaa !15
  %199 = call ptr @N_VClone(ptr noundef %198)
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %200, i32 0, i32 6
  store ptr %199, ptr %201, align 8, !tbaa !30
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %202, i32 0, i32 6
  %204 = load ptr, ptr %203, align 8, !tbaa !30
  %205 = icmp eq ptr %204, null
  br i1 %205, label %206, label %219

206:                                              ; preds = %193
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %207, i32 0, i32 5
  %209 = load ptr, ptr %208, align 8, !tbaa !29
  %210 = call i32 @SUNLinSolFree(ptr noundef %209)
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !28
  call void @SUNMatDestroy(ptr noundef %213)
  %214 = load ptr, ptr %12, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %214, i32 0, i32 3
  %216 = load ptr, ptr %215, align 8, !tbaa !26
  call void @SUNMatDestroy(ptr noundef %216)
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %217) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  %218 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %218, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

219:                                              ; preds = %193
  %220 = load ptr, ptr %12, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %220, i32 0, i32 7
  store ptr null, ptr %221, align 8, !tbaa !31
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.CVodeMemRec, ptr %222, i32 0, i32 55
  %224 = load ptr, ptr %223, align 8, !tbaa !15
  %225 = call ptr @N_VClone(ptr noundef %224)
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %226, i32 0, i32 7
  store ptr %225, ptr %227, align 8, !tbaa !31
  %228 = load ptr, ptr %12, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %228, i32 0, i32 7
  %230 = load ptr, ptr %229, align 8, !tbaa !31
  %231 = icmp eq ptr %230, null
  br i1 %231, label %232, label %248

232:                                              ; preds = %219
  %233 = load ptr, ptr %12, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %233, i32 0, i32 5
  %235 = load ptr, ptr %234, align 8, !tbaa !29
  %236 = call i32 @SUNLinSolFree(ptr noundef %235)
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %237, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !28
  call void @SUNMatDestroy(ptr noundef %239)
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %240, i32 0, i32 3
  %242 = load ptr, ptr %241, align 8, !tbaa !26
  call void @SUNMatDestroy(ptr noundef %242)
  %243 = load ptr, ptr %12, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %243, i32 0, i32 6
  %245 = load ptr, ptr %244, align 8, !tbaa !30
  call void @N_VDestroy(ptr noundef %245)
  %246 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %246) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  %247 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %247, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

248:                                              ; preds = %219
  %249 = load ptr, ptr %12, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %249, i32 0, i32 5
  %251 = load ptr, ptr %250, align 8, !tbaa !29
  %252 = call i32 @SUNLinSolInitialize(ptr noundef %251)
  store i32 %252, ptr %16, align 4, !tbaa !32
  %253 = load i32, ptr %16, align 4, !tbaa !32
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %255, label %274

255:                                              ; preds = %248
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %256, i32 0, i32 5
  %258 = load ptr, ptr %257, align 8, !tbaa !29
  %259 = call i32 @SUNLinSolFree(ptr noundef %258)
  %260 = load ptr, ptr %12, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %260, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !28
  call void @SUNMatDestroy(ptr noundef %262)
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %263, i32 0, i32 3
  %265 = load ptr, ptr %264, align 8, !tbaa !26
  call void @SUNMatDestroy(ptr noundef %265)
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %266, i32 0, i32 6
  %268 = load ptr, ptr %267, align 8, !tbaa !30
  call void @N_VDestroy(ptr noundef %268)
  %269 = load ptr, ptr %12, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.CVBandPrecDataRec, ptr %269, i32 0, i32 7
  %271 = load ptr, ptr %270, align 8, !tbaa !31
  call void @N_VDestroy(ptr noundef %271)
  %272 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %272) #5
  store ptr null, ptr %12, align 8, !tbaa !5
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %273, i32 noundef -9, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.6)
  store i32 -9, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

274:                                              ; preds = %248
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.CVLsMemRec, ptr %275, i32 0, i32 28
  %277 = load ptr, ptr %276, align 8, !tbaa !33
  %278 = icmp ne ptr %277, null
  br i1 %278, label %279, label %285

279:                                              ; preds = %274
  %280 = load ptr, ptr %11, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.CVLsMemRec, ptr %280, i32 0, i32 28
  %282 = load ptr, ptr %281, align 8, !tbaa !33
  %283 = load ptr, ptr %10, align 8, !tbaa !5
  %284 = call i32 %282(ptr noundef %283)
  br label %285

285:                                              ; preds = %279, %274
  %286 = load ptr, ptr %12, align 8, !tbaa !5
  %287 = load ptr, ptr %11, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.CVLsMemRec, ptr %287, i32 0, i32 29
  store ptr %286, ptr %288, align 8, !tbaa !35
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.CVLsMemRec, ptr %289, i32 0, i32 28
  store ptr @cvBandPrecFree, ptr %290, align 8, !tbaa !33
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = call i32 @CVodeSetPreconditioner(ptr noundef %291, ptr noundef @cvBandPrecSetup, ptr noundef @cvBandPrecSolve)
  store i32 %292, ptr %16, align 4, !tbaa !32
  %293 = load i32, ptr %16, align 4, !tbaa !32
  store i32 %293, ptr %5, align 4
  store i32 1, ptr %17, align 4
  br label %294

294:                                              ; preds = %285, %255, %232, %206, %184, %159, %124, %47, %41, %27, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #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
  %295 = load i32, ptr %5, align 4
  ret i32 %295
}

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

declare void @cvProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) #2

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

declare ptr @SUNBandMatrixStorage(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) #2

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

declare void @SUNMatDestroy(ptr noundef) #2

declare ptr @SUNLinSol_Band(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @N_VClone(ptr noundef) #2

declare i32 @SUNLinSolFree(ptr noundef) #2

declare void @N_VDestroy(ptr noundef) #2

declare i32 @SUNLinSolInitialize(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @cvBandPrecFree(ptr noundef) #0

declare i32 @CVodeSetPreconditioner(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 "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 = !{!"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 1904}
!12 = !{!"CVodeMemRec", !6, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !14, i64 36, !13, i64 40, !13, i64 48, !6, i64 56, !14, i64 64, !14, i64 68, !6, i64 72, !6, i64 80, !14, i64 88, !14, i64 92, !6, i64 96, !14, i64 104, !14, i64 108, !13, i64 112, !13, i64 120, !6, i64 128, !14, i64 136, !14, i64 140, !14, i64 144, !14, i64 148, !6, i64 152, !6, i64 160, !6, i64 168, !14, i64 176, !14, i64 180, !6, i64 184, !6, i64 192, !6, i64 200, !14, i64 208, !13, i64 216, !14, i64 224, !14, i64 228, !13, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !14, i64 264, !6, i64 272, !6, i64 280, !14, i64 288, !14, i64 292, !14, i64 296, !13, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !7, i64 336, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !7, i64 512, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !7, i64 648, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !14, i64 792, !7, i64 800, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !14, i64 944, !13, i64 952, !14, i64 960, !14, i64 964, !14, i64 968, !14, i64 972, !14, i64 976, !13, i64 984, !13, i64 992, !13, i64 1000, !13, i64 1008, !13, i64 1016, !13, i64 1024, !13, i64 1032, !13, i64 1040, !7, i64 1048, !7, i64 1160, !7, i64 1208, !13, i64 1312, !13, i64 1320, !13, i64 1328, !13, i64 1336, !13, i64 1344, !13, i64 1352, !13, i64 1360, !13, i64 1368, !14, i64 1376, !13, i64 1384, !13, i64 1392, !14, i64 1400, !13, i64 1408, !13, i64 1416, !6, i64 1424, !14, i64 1432, !10, i64 1440, !14, i64 1448, !14, i64 1452, !14, i64 1456, !13, i64 1464, !13, i64 1472, !13, i64 1480, !10, i64 1488, !10, i64 1496, !10, i64 1504, !10, i64 1512, !10, i64 1520, !10, i64 1528, !10, i64 1536, !10, i64 1544, !10, i64 1552, !6, i64 1560, !10, i64 1568, !10, i64 1576, !6, i64 1584, !10, i64 1592, !10, i64 1600, !10, i64 1608, !10, i64 1616, !10, i64 1624, !10, i64 1632, !14, i64 1640, !13, i64 1648, !13, i64 1656, !13, i64 1664, !10, i64 1672, !10, i64 1680, !10, i64 1688, !10, i64 1696, !10, i64 1704, !10, i64 1712, !6, i64 1720, !14, i64 1728, !6, i64 1736, !14, i64 1744, !6, i64 1752, !14, i64 1760, !6, i64 1768, !14, i64 1776, !14, i64 1780, !10, i64 1784, !14, i64 1792, !6, i64 1800, !14, i64 1808, !6, i64 1816, !6, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !14, i64 1864, !14, i64 1868, !6, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !10, i64 1912, !14, i64 1920, !14, i64 1924, !10, i64 1928, !13, i64 1936, !13, i64 1944, !13, i64 1952, !14, i64 1960, !14, i64 1964, !13, i64 1968, !14, i64 1976, !14, i64 1980, !14, i64 1984, !14, i64 1988, !14, i64 1992, !14, i64 1996, !14, i64 2000, !14, i64 2004, !14, i64 2008, !14, i64 2012, !14, i64 2016, !14, i64 2020, !14, i64 2024, !14, i64 2028, !14, i64 2032, !14, i64 2036, !6, i64 2040, !6, i64 2048, !6, i64 2056, !6, i64 2064, !10, i64 2072, !14, i64 2080, !7, i64 2088, !14, i64 2280, !10, i64 2288, !6, i64 2296, !14, i64 2304, !6, i64 2312, !6, i64 2320, !13, i64 2328, !13, i64 2336, !13, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !13, i64 2376, !13, i64 2384, !14, i64 2392, !14, i64 2396, !10, i64 2400, !6, i64 2408, !14, i64 2416, !6, i64 2424, !6, i64 2432, !6, i64 2440, !14, i64 2448, !6, i64 2456, !14, i64 2464}
!13 = !{!"double", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!12, !6, i64 464}
!16 = !{!17, !6, i64 8}
!17 = !{!"_generic_N_Vector", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!19, !6, i64 40}
!19 = !{!"_generic_N_Vector_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, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432}
!20 = !{!21, !6, i64 72}
!21 = !{!"CVBandPrecDataRec", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72}
!22 = !{!21, !10, i64 0}
!23 = !{!21, !10, i64 16}
!24 = !{!21, !10, i64 8}
!25 = !{!21, !10, i64 64}
!26 = !{!21, !6, i64 24}
!27 = !{!12, !6, i64 0}
!28 = !{!21, !6, i64 32}
!29 = !{!21, !6, i64 40}
!30 = !{!21, !6, i64 48}
!31 = !{!21, !6, i64 56}
!32 = !{!14, !14, i64 0}
!33 = !{!34, !6, i64 208}
!34 = !{!"CVLsMemRec", !14, i64 0, !14, i64 4, !14, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !14, i64 36, !13, i64 40, !13, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !14, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !14, i64 264, !6, i64 272, !6, i64 280, !14, i64 288}
!35 = !{!34, !6, i64 216}


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

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @CVBandPrecInit(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) local_unnamed_addr #0 {
  %5 = icmp eq ptr %0, null
  br i1 %5, label %6, label %7

6:                                                ; preds = %4
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef null, i32 noundef -1, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #5
  br label %79

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 1904
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %7
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -2, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #5
  br label %79

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 464
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %14, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %16, i64 40
  %18 = load ptr, ptr %17, align 8, !tbaa !16
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %12
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #5
  br label %79

21:                                               ; preds = %12
  %22 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #6
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #5
  br label %79

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %22, i64 72
  store ptr %0, ptr %26, align 8, !tbaa !18
  store i64 %1, ptr %22, align 8, !tbaa !20
  %27 = add nsw i64 %1, -1
  %28 = tail call i64 @llvm.smax.i64(i64 %2, i64 0)
  %.not = icmp slt i64 %28, %1
  %. = select i1 %.not, i64 %28, i64 %27
  %29 = getelementptr inbounds i8, ptr %22, i64 16
  store i64 %., ptr %29, align 8, !tbaa !21
  %30 = tail call i64 @llvm.smax.i64(i64 %3, i64 0)
  %.not109 = icmp slt i64 %30, %1
  %31 = select i1 %.not109, i64 %30, i64 %27
  %32 = getelementptr inbounds i8, ptr %22, i64 8
  store i64 %31, ptr %32, align 8, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %22, i64 64
  store i64 0, ptr %33, align 8, !tbaa !23
  %34 = getelementptr inbounds i8, ptr %22, i64 24
  %35 = load ptr, ptr %0, align 8, !tbaa !24
  %36 = tail call ptr @SUNBandMatrixStorage(i64 noundef %1, i64 noundef %., i64 noundef %31, i64 noundef %., ptr noundef %35) #5
  store ptr %36, ptr %34, align 8, !tbaa !25
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %25
  tail call void @free(ptr noundef nonnull %22) #5
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #5
  br label %79

39:                                               ; preds = %25
  %40 = add nsw i64 %31, %.
  %.not110 = icmp slt i64 %40, %1
  %.113 = select i1 %.not110, i64 %40, i64 %27
  %41 = getelementptr inbounds i8, ptr %22, i64 32
  %42 = load ptr, ptr %0, align 8, !tbaa !24
  %43 = tail call ptr @SUNBandMatrixStorage(i64 noundef %1, i64 noundef %., i64 noundef %31, i64 noundef %.113, ptr noundef %42) #5
  store ptr %43, ptr %41, align 8, !tbaa !26
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %46

45:                                               ; preds = %39
  tail call void @SUNMatDestroy(ptr noundef nonnull %36) #5
  tail call void @free(ptr noundef nonnull %22) #5
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #5
  br label %79

46:                                               ; preds = %39
  %47 = getelementptr inbounds i8, ptr %22, i64 40
  %48 = load ptr, ptr %13, align 8, !tbaa !13
  %49 = load ptr, ptr %0, align 8, !tbaa !24
  %50 = tail call ptr @SUNLinSol_Band(ptr noundef %48, ptr noundef nonnull %43, ptr noundef %49) #5
  store ptr %50, ptr %47, align 8, !tbaa !27
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %46
  tail call void @SUNMatDestroy(ptr noundef nonnull %43) #5
  tail call void @SUNMatDestroy(ptr noundef nonnull %36) #5
  tail call void @free(ptr noundef nonnull %22) #5
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #5
  br label %79

53:                                               ; preds = %46
  %54 = getelementptr inbounds i8, ptr %22, i64 48
  %55 = load ptr, ptr %13, align 8, !tbaa !13
  %56 = tail call ptr @N_VClone(ptr noundef %55) #5
  store ptr %56, ptr %54, align 8, !tbaa !28
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %60

58:                                               ; preds = %53
  %59 = tail call i32 @SUNLinSolFree(ptr noundef nonnull %50) #5
  tail call void @SUNMatDestroy(ptr noundef nonnull %43) #5
  tail call void @SUNMatDestroy(ptr noundef nonnull %36) #5
  tail call void @free(ptr noundef nonnull %22) #5
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #5
  br label %79

60:                                               ; preds = %53
  %61 = getelementptr inbounds i8, ptr %22, i64 56
  %62 = load ptr, ptr %13, align 8, !tbaa !13
  %63 = tail call ptr @N_VClone(ptr noundef %62) #5
  store ptr %63, ptr %61, align 8, !tbaa !29
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %67

65:                                               ; preds = %60
  %66 = tail call i32 @SUNLinSolFree(ptr noundef nonnull %50) #5
  tail call void @SUNMatDestroy(ptr noundef nonnull %43) #5
  tail call void @SUNMatDestroy(ptr noundef nonnull %36) #5
  tail call void @N_VDestroy(ptr noundef nonnull %56) #5
  tail call void @free(ptr noundef nonnull %22) #5
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #5
  br label %79

67:                                               ; preds = %60
  %68 = tail call i32 @SUNLinSolInitialize(ptr noundef nonnull %50) #5
  %.not111 = icmp eq i32 %68, 0
  br i1 %.not111, label %71, label %69

69:                                               ; preds = %67
  %70 = tail call i32 @SUNLinSolFree(ptr noundef nonnull %50) #5
  tail call void @SUNMatDestroy(ptr noundef nonnull %43) #5
  tail call void @SUNMatDestroy(ptr noundef nonnull %36) #5
  tail call void @N_VDestroy(ptr noundef nonnull %56) #5
  tail call void @N_VDestroy(ptr noundef nonnull %63) #5
  tail call void @free(ptr noundef nonnull %22) #5
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.6) #5
  br label %79

71:                                               ; preds = %67
  %72 = getelementptr inbounds i8, ptr %9, i64 208
  %73 = load ptr, ptr %72, align 8, !tbaa !30
  %.not112 = icmp eq ptr %73, null
  br i1 %.not112, label %76, label %74

74:                                               ; preds = %71
  %75 = tail call i32 %73(ptr noundef nonnull %0) #5
  br label %76

76:                                               ; preds = %74, %71
  %77 = getelementptr inbounds i8, ptr %9, i64 216
  store ptr %22, ptr %77, align 8, !tbaa !32
  store ptr @cvBandPrecFree, ptr %72, align 8, !tbaa !30
  %78 = tail call i32 @CVodeSetPreconditioner(ptr noundef nonnull %0, ptr noundef nonnull @cvBandPrecSetup, ptr noundef nonnull @cvBandPrecSolve) #5
  br label %79

79:                                               ; preds = %76, %69, %65, %58, %52, %45, %38, %24, %20, %11, %6
  %.0 = phi i32 [ -1, %6 ], [ -2, %11 ], [ -3, %20 ], [ -4, %24 ], [ -4, %38 ], [ -4, %45 ], [ -4, %52 ], [ -4, %58 ], [ -4, %65 ], [ -9, %69 ], [ %78, %76 ]
  ret i32 %.0
}

declare void @cvProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; 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 ptr @SUNBandMatrixStorage(i64 noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

declare void @SUNMatDestroy(ptr noundef) local_unnamed_addr #1

declare ptr @SUNLinSol_Band(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @N_VClone(ptr noundef) local_unnamed_addr #1

declare i32 @SUNLinSolFree(ptr noundef) local_unnamed_addr #1

declare void @N_VDestroy(ptr noundef) local_unnamed_addr #1

declare i32 @SUNLinSolInitialize(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @cvBandPrecFree(ptr noundef) #0

declare i32 @CVodeSetPreconditioner(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #4

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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 1904}
!6 = !{!"CVodeMemRec", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !11, i64 36, !10, i64 40, !10, i64 48, !7, i64 56, !11, i64 64, !11, i64 68, !7, i64 72, !7, i64 80, !11, i64 88, !11, i64 92, !7, i64 96, !11, i64 104, !11, i64 108, !10, i64 112, !10, i64 120, !7, i64 128, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !7, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !11, i64 180, !7, i64 184, !7, i64 192, !7, i64 200, !11, i64 208, !10, i64 216, !11, i64 224, !11, i64 228, !10, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !11, i64 264, !7, i64 272, !7, i64 280, !11, i64 288, !11, i64 292, !11, i64 296, !10, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !8, i64 336, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !7, i64 504, !8, i64 512, !7, i64 616, !7, i64 624, !7, i64 632, !7, i64 640, !8, i64 648, !7, i64 752, !7, i64 760, !7, i64 768, !7, i64 776, !7, i64 784, !11, i64 792, !8, i64 800, !7, i64 904, !7, i64 912, !7, i64 920, !7, i64 928, !7, i64 936, !11, i64 944, !10, i64 952, !11, i64 960, !11, i64 964, !11, i64 968, !11, i64 972, !11, i64 976, !10, i64 984, !10, i64 992, !10, i64 1000, !10, i64 1008, !10, i64 1016, !10, i64 1024, !10, i64 1032, !10, i64 1040, !8, i64 1048, !8, i64 1160, !8, i64 1208, !10, i64 1312, !10, i64 1320, !10, i64 1328, !10, i64 1336, !10, i64 1344, !10, i64 1352, !10, i64 1360, !10, i64 1368, !11, i64 1376, !10, i64 1384, !10, i64 1392, !11, i64 1400, !10, i64 1408, !10, i64 1416, !7, i64 1424, !11, i64 1432, !12, i64 1440, !11, i64 1448, !11, i64 1452, !11, i64 1456, !10, i64 1464, !10, i64 1472, !10, i64 1480, !12, i64 1488, !12, i64 1496, !12, i64 1504, !12, i64 1512, !12, i64 1520, !12, i64 1528, !12, i64 1536, !12, i64 1544, !12, i64 1552, !7, i64 1560, !12, i64 1568, !12, i64 1576, !7, i64 1584, !12, i64 1592, !12, i64 1600, !12, i64 1608, !12, i64 1616, !12, i64 1624, !12, i64 1632, !11, i64 1640, !10, i64 1648, !10, i64 1656, !10, i64 1664, !12, i64 1672, !12, i64 1680, !12, i64 1688, !12, i64 1696, !12, i64 1704, !12, i64 1712, !7, i64 1720, !11, i64 1728, !7, i64 1736, !11, i64 1744, !7, i64 1752, !11, i64 1760, !7, i64 1768, !11, i64 1776, !11, i64 1780, !12, i64 1784, !11, i64 1792, !7, i64 1800, !11, i64 1808, !7, i64 1816, !7, i64 1824, !7, i64 1832, !7, i64 1840, !7, i64 1848, !7, i64 1856, !11, i64 1864, !11, i64 1868, !7, i64 1872, !7, i64 1880, !7, i64 1888, !7, i64 1896, !7, i64 1904, !12, i64 1912, !11, i64 1920, !11, i64 1924, !12, i64 1928, !10, i64 1936, !10, i64 1944, !10, i64 1952, !11, i64 1960, !11, i64 1964, !10, i64 1968, !11, i64 1976, !11, i64 1980, !11, i64 1984, !11, i64 1988, !11, i64 1992, !11, i64 1996, !11, i64 2000, !11, i64 2004, !11, i64 2008, !11, i64 2012, !11, i64 2016, !11, i64 2020, !11, i64 2024, !11, i64 2028, !11, i64 2032, !11, i64 2036, !7, i64 2040, !7, i64 2048, !7, i64 2056, !7, i64 2064, !12, i64 2072, !11, i64 2080, !8, i64 2088, !11, i64 2280, !12, i64 2288, !7, i64 2296, !11, i64 2304, !7, i64 2312, !7, i64 2320, !10, i64 2328, !10, i64 2336, !10, i64 2344, !7, i64 2352, !7, i64 2360, !7, i64 2368, !10, i64 2376, !10, i64 2384, !11, i64 2392, !11, i64 2396, !12, i64 2400, !7, i64 2408, !11, i64 2416, !7, i64 2424, !7, i64 2432, !7, i64 2440, !11, i64 2448, !7, i64 2456, !11, i64 2464}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 464}
!14 = !{!15, !7, i64 8}
!15 = !{!"_generic_N_Vector", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!17, !7, i64 40}
!17 = !{!"_generic_N_Vector_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, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !7, i64 408, !7, i64 416, !7, i64 424, !7, i64 432}
!18 = !{!19, !7, i64 72}
!19 = !{!"CVBandPrecDataRec", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !12, i64 64, !7, i64 72}
!20 = !{!19, !12, i64 0}
!21 = !{!19, !12, i64 16}
!22 = !{!19, !12, i64 8}
!23 = !{!19, !12, i64 64}
!24 = !{!6, !7, i64 0}
!25 = !{!19, !7, i64 24}
!26 = !{!19, !7, i64 32}
!27 = !{!19, !7, i64 40}
!28 = !{!19, !7, i64 48}
!29 = !{!19, !7, i64 56}
!30 = !{!31, !7, i64 208}
!31 = !{!"CVLsMemRec", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !11, i64 36, !10, i64 40, !10, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !11, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !11, i64 264, !7, i64 272, !7, i64 280, !11, i64 288}
!32 = !{!31, !7, i64 216}


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