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

; 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.CVBBDPrecDataRec = type { i64, i64, i64, i64, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, ptr }
%struct._generic_SUNMatrix = type { ptr, ptr, ptr }
%struct._generic_SUNMatrix_Ops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%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.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 [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 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 @CVBBDPrecInit(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i64 %1, ptr %12, align 8, !tbaa !9
  store i64 %2, ptr %13, align 8, !tbaa !9
  store i64 %3, ptr %14, align 8, !tbaa !9
  store i64 %4, ptr %15, align 8, !tbaa !9
  store i64 %5, ptr %16, align 8, !tbaa !9
  store double %6, ptr %17, align 8, !tbaa !11
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %9
  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 %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

35:                                               ; preds = %9
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %36, ptr %20, align 8, !tbaa !5
  %37 = load ptr, ptr %20, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.CVodeMemRec, ptr %37, i32 0, i32 174
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %43

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

43:                                               ; preds = %35
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.CVodeMemRec, ptr %44, i32 0, i32 174
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  store ptr %46, ptr %21, align 8, !tbaa !5
  %47 = load ptr, ptr %20, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.CVodeMemRec, ptr %47, i32 0, i32 55
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = getelementptr inbounds %struct._generic_N_Vector, ptr %49, i32 0, i32 1
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  %52 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %51, i32 0, i32 5
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %57

55:                                               ; preds = %43
  %56 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %56, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.4)
  store i32 -3, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

57:                                               ; preds = %43
  store ptr null, ptr %22, align 8, !tbaa !5
  %58 = call noalias ptr @malloc(i64 noundef 160) #6
  store ptr %58, ptr %22, align 8, !tbaa !5
  %59 = load ptr, ptr %22, align 8, !tbaa !5
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %63

61:                                               ; preds = %57
  %62 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %62, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

63:                                               ; preds = %57
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = load ptr, ptr %22, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %65, i32 0, i32 19
  store ptr %64, ptr %66, align 8, !tbaa !21
  %67 = load ptr, ptr %18, align 8, !tbaa !5
  %68 = load ptr, ptr %22, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %68, i32 0, i32 5
  store ptr %67, ptr %69, align 8, !tbaa !23
  %70 = load ptr, ptr %19, align 8, !tbaa !5
  %71 = load ptr, ptr %22, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %71, i32 0, i32 6
  store ptr %70, ptr %72, align 8, !tbaa !24
  %73 = load i64, ptr %12, align 8, !tbaa !9
  %74 = sub nsw i64 %73, 1
  %75 = load i64, ptr %13, align 8, !tbaa !9
  %76 = icmp sgt i64 0, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %63
  br label %80

78:                                               ; preds = %63
  %79 = load i64, ptr %13, align 8, !tbaa !9
  br label %80

80:                                               ; preds = %78, %77
  %81 = phi i64 [ 0, %77 ], [ %79, %78 ]
  %82 = icmp slt i64 %74, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = load i64, ptr %12, align 8, !tbaa !9
  %85 = sub nsw i64 %84, 1
  br label %94

86:                                               ; preds = %80
  %87 = load i64, ptr %13, align 8, !tbaa !9
  %88 = icmp sgt i64 0, %87
  br i1 %88, label %89, label %90

89:                                               ; preds = %86
  br label %92

90:                                               ; preds = %86
  %91 = load i64, ptr %13, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %90, %89
  %93 = phi i64 [ 0, %89 ], [ %91, %90 ]
  br label %94

94:                                               ; preds = %92, %83
  %95 = phi i64 [ %85, %83 ], [ %93, %92 ]
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %96, i32 0, i32 0
  store i64 %95, ptr %97, align 8, !tbaa !25
  %98 = load i64, ptr %12, align 8, !tbaa !9
  %99 = sub nsw i64 %98, 1
  %100 = load i64, ptr %14, align 8, !tbaa !9
  %101 = icmp sgt i64 0, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %94
  br label %105

103:                                              ; preds = %94
  %104 = load i64, ptr %14, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %103, %102
  %106 = phi i64 [ 0, %102 ], [ %104, %103 ]
  %107 = icmp slt i64 %99, %106
  br i1 %107, label %108, label %111

108:                                              ; preds = %105
  %109 = load i64, ptr %12, align 8, !tbaa !9
  %110 = sub nsw i64 %109, 1
  br label %119

111:                                              ; preds = %105
  %112 = load i64, ptr %14, align 8, !tbaa !9
  %113 = icmp sgt i64 0, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %111
  br label %117

115:                                              ; preds = %111
  %116 = load i64, ptr %14, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %115, %114
  %118 = phi i64 [ 0, %114 ], [ %116, %115 ]
  br label %119

119:                                              ; preds = %117, %108
  %120 = phi i64 [ %110, %108 ], [ %118, %117 ]
  %121 = load ptr, ptr %22, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %121, i32 0, i32 1
  store i64 %120, ptr %122, align 8, !tbaa !26
  %123 = load i64, ptr %12, align 8, !tbaa !9
  %124 = sub nsw i64 %123, 1
  %125 = load i64, ptr %15, align 8, !tbaa !9
  %126 = icmp sgt i64 0, %125
  br i1 %126, label %127, label %128

127:                                              ; preds = %119
  br label %130

128:                                              ; preds = %119
  %129 = load i64, ptr %15, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %128, %127
  %131 = phi i64 [ 0, %127 ], [ %129, %128 ]
  %132 = icmp slt i64 %124, %131
  br i1 %132, label %133, label %136

133:                                              ; preds = %130
  %134 = load i64, ptr %12, align 8, !tbaa !9
  %135 = sub nsw i64 %134, 1
  br label %144

136:                                              ; preds = %130
  %137 = load i64, ptr %15, align 8, !tbaa !9
  %138 = icmp sgt i64 0, %137
  br i1 %138, label %139, label %140

139:                                              ; preds = %136
  br label %142

140:                                              ; preds = %136
  %141 = load i64, ptr %15, align 8, !tbaa !9
  br label %142

142:                                              ; preds = %140, %139
  %143 = phi i64 [ 0, %139 ], [ %141, %140 ]
  br label %144

144:                                              ; preds = %142, %133
  %145 = phi i64 [ %135, %133 ], [ %143, %142 ]
  store i64 %145, ptr %23, align 8, !tbaa !9
  %146 = load i64, ptr %12, align 8, !tbaa !9
  %147 = sub nsw i64 %146, 1
  %148 = load i64, ptr %16, align 8, !tbaa !9
  %149 = icmp sgt i64 0, %148
  br i1 %149, label %150, label %151

150:                                              ; preds = %144
  br label %153

151:                                              ; preds = %144
  %152 = load i64, ptr %16, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %151, %150
  %154 = phi i64 [ 0, %150 ], [ %152, %151 ]
  %155 = icmp slt i64 %147, %154
  br i1 %155, label %156, label %159

156:                                              ; preds = %153
  %157 = load i64, ptr %12, align 8, !tbaa !9
  %158 = sub nsw i64 %157, 1
  br label %167

159:                                              ; preds = %153
  %160 = load i64, ptr %16, align 8, !tbaa !9
  %161 = icmp sgt i64 0, %160
  br i1 %161, label %162, label %163

162:                                              ; preds = %159
  br label %165

163:                                              ; preds = %159
  %164 = load i64, ptr %16, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %163, %162
  %166 = phi i64 [ 0, %162 ], [ %164, %163 ]
  br label %167

167:                                              ; preds = %165, %156
  %168 = phi i64 [ %158, %156 ], [ %166, %165 ]
  store i64 %168, ptr %24, align 8, !tbaa !9
  %169 = load i64, ptr %23, align 8, !tbaa !9
  %170 = load ptr, ptr %22, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %170, i32 0, i32 2
  store i64 %169, ptr %171, align 8, !tbaa !27
  %172 = load i64, ptr %24, align 8, !tbaa !9
  %173 = load ptr, ptr %22, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %173, i32 0, i32 3
  store i64 %172, ptr %174, align 8, !tbaa !28
  %175 = load i64, ptr %12, align 8, !tbaa !9
  %176 = load i64, ptr %23, align 8, !tbaa !9
  %177 = load i64, ptr %24, align 8, !tbaa !9
  %178 = load i64, ptr %23, align 8, !tbaa !9
  %179 = load ptr, ptr %20, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.CVodeMemRec, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !29
  %182 = call ptr @SUNBandMatrixStorage(i64 noundef %175, i64 noundef %176, i64 noundef %177, i64 noundef %178, ptr noundef %181)
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %183, i32 0, i32 7
  store ptr %182, ptr %184, align 8, !tbaa !30
  %185 = load ptr, ptr %22, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %185, i32 0, i32 7
  %187 = load ptr, ptr %186, align 8, !tbaa !30
  %188 = icmp eq ptr %187, null
  br i1 %188, label %189, label %192

189:                                              ; preds = %167
  %190 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %190) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %191 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %191, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

192:                                              ; preds = %167
  %193 = load i64, ptr %12, align 8, !tbaa !9
  %194 = sub nsw i64 %193, 1
  %195 = load i64, ptr %23, align 8, !tbaa !9
  %196 = load i64, ptr %24, align 8, !tbaa !9
  %197 = add nsw i64 %195, %196
  %198 = icmp slt i64 %194, %197
  br i1 %198, label %199, label %202

199:                                              ; preds = %192
  %200 = load i64, ptr %12, align 8, !tbaa !9
  %201 = sub nsw i64 %200, 1
  br label %206

202:                                              ; preds = %192
  %203 = load i64, ptr %23, align 8, !tbaa !9
  %204 = load i64, ptr %24, align 8, !tbaa !9
  %205 = add nsw i64 %203, %204
  br label %206

206:                                              ; preds = %202, %199
  %207 = phi i64 [ %201, %199 ], [ %205, %202 ]
  store i64 %207, ptr %25, align 8, !tbaa !9
  %208 = load ptr, ptr %22, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %208, i32 0, i32 8
  store ptr null, ptr %209, align 8, !tbaa !31
  %210 = load i64, ptr %12, align 8, !tbaa !9
  %211 = load i64, ptr %23, align 8, !tbaa !9
  %212 = load i64, ptr %24, align 8, !tbaa !9
  %213 = load i64, ptr %25, align 8, !tbaa !9
  %214 = load ptr, ptr %20, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.CVodeMemRec, ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !29
  %217 = call ptr @SUNBandMatrixStorage(i64 noundef %210, i64 noundef %211, i64 noundef %212, i64 noundef %213, ptr noundef %216)
  %218 = load ptr, ptr %22, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %218, i32 0, i32 8
  store ptr %217, ptr %219, align 8, !tbaa !31
  %220 = load ptr, ptr %22, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %220, i32 0, i32 8
  %222 = load ptr, ptr %221, align 8, !tbaa !31
  %223 = icmp eq ptr %222, null
  br i1 %223, label %224, label %230

224:                                              ; preds = %206
  %225 = load ptr, ptr %22, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %225, i32 0, i32 7
  %227 = load ptr, ptr %226, align 8, !tbaa !30
  call void @SUNMatDestroy(ptr noundef %227)
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %228) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %229 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %229, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

230:                                              ; preds = %206
  %231 = load ptr, ptr %22, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %231, i32 0, i32 13
  store ptr null, ptr %232, align 8, !tbaa !32
  %233 = load i64, ptr %12, align 8, !tbaa !9
  %234 = load ptr, ptr %20, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.CVodeMemRec, ptr %234, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !29
  %237 = call ptr @N_VNewEmpty_Serial(i64 noundef %233, ptr noundef %236)
  %238 = load ptr, ptr %22, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %238, i32 0, i32 13
  store ptr %237, ptr %239, align 8, !tbaa !32
  %240 = load ptr, ptr %22, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %240, i32 0, i32 13
  %242 = load ptr, ptr %241, align 8, !tbaa !32
  %243 = icmp eq ptr %242, null
  br i1 %243, label %244, label %253

244:                                              ; preds = %230
  %245 = load ptr, ptr %22, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %245, i32 0, i32 8
  %247 = load ptr, ptr %246, align 8, !tbaa !31
  call void @SUNMatDestroy(ptr noundef %247)
  %248 = load ptr, ptr %22, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %248, i32 0, i32 7
  %250 = load ptr, ptr %249, align 8, !tbaa !30
  call void @SUNMatDestroy(ptr noundef %250)
  %251 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %251) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %252 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %252, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

253:                                              ; preds = %230
  %254 = load ptr, ptr %22, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %254, i32 0, i32 14
  store ptr null, ptr %255, align 8, !tbaa !33
  %256 = load i64, ptr %12, align 8, !tbaa !9
  %257 = load ptr, ptr %20, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.CVodeMemRec, ptr %257, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8, !tbaa !29
  %260 = call ptr @N_VNewEmpty_Serial(i64 noundef %256, ptr noundef %259)
  %261 = load ptr, ptr %22, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %261, i32 0, i32 14
  store ptr %260, ptr %262, align 8, !tbaa !33
  %263 = load ptr, ptr %22, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %263, i32 0, i32 14
  %265 = load ptr, ptr %264, align 8, !tbaa !33
  %266 = icmp eq ptr %265, null
  br i1 %266, label %267, label %279

267:                                              ; preds = %253
  %268 = load ptr, ptr %22, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %268, i32 0, i32 13
  %270 = load ptr, ptr %269, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %270)
  %271 = load ptr, ptr %22, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %271, i32 0, i32 8
  %273 = load ptr, ptr %272, align 8, !tbaa !31
  call void @SUNMatDestroy(ptr noundef %273)
  %274 = load ptr, ptr %22, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %274, i32 0, i32 7
  %276 = load ptr, ptr %275, align 8, !tbaa !30
  call void @SUNMatDestroy(ptr noundef %276)
  %277 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %277) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %278 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %278, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

279:                                              ; preds = %253
  %280 = load ptr, ptr %22, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %280, i32 0, i32 10
  store ptr null, ptr %281, align 8, !tbaa !34
  %282 = load ptr, ptr %20, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.CVodeMemRec, ptr %282, i32 0, i32 55
  %284 = load ptr, ptr %283, align 8, !tbaa !16
  %285 = call ptr @N_VClone(ptr noundef %284)
  %286 = load ptr, ptr %22, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %286, i32 0, i32 10
  store ptr %285, ptr %287, align 8, !tbaa !34
  %288 = load ptr, ptr %22, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %288, i32 0, i32 10
  %290 = load ptr, ptr %289, align 8, !tbaa !34
  %291 = icmp eq ptr %290, null
  br i1 %291, label %292, label %307

292:                                              ; preds = %279
  %293 = load ptr, ptr %22, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %293, i32 0, i32 13
  %295 = load ptr, ptr %294, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %295)
  %296 = load ptr, ptr %22, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %296, i32 0, i32 14
  %298 = load ptr, ptr %297, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %298)
  %299 = load ptr, ptr %22, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %299, i32 0, i32 8
  %301 = load ptr, ptr %300, align 8, !tbaa !31
  call void @SUNMatDestroy(ptr noundef %301)
  %302 = load ptr, ptr %22, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %302, i32 0, i32 7
  %304 = load ptr, ptr %303, align 8, !tbaa !30
  call void @SUNMatDestroy(ptr noundef %304)
  %305 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %305) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %306 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %306, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

307:                                              ; preds = %279
  %308 = load ptr, ptr %22, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %308, i32 0, i32 11
  store ptr null, ptr %309, align 8, !tbaa !35
  %310 = load ptr, ptr %20, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.CVodeMemRec, ptr %310, i32 0, i32 55
  %312 = load ptr, ptr %311, align 8, !tbaa !16
  %313 = call ptr @N_VClone(ptr noundef %312)
  %314 = load ptr, ptr %22, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %314, i32 0, i32 11
  store ptr %313, ptr %315, align 8, !tbaa !35
  %316 = load ptr, ptr %22, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %316, i32 0, i32 11
  %318 = load ptr, ptr %317, align 8, !tbaa !35
  %319 = icmp eq ptr %318, null
  br i1 %319, label %320, label %338

320:                                              ; preds = %307
  %321 = load ptr, ptr %22, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %321, i32 0, i32 10
  %323 = load ptr, ptr %322, align 8, !tbaa !34
  call void @N_VDestroy(ptr noundef %323)
  %324 = load ptr, ptr %22, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %324, i32 0, i32 13
  %326 = load ptr, ptr %325, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %326)
  %327 = load ptr, ptr %22, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %327, i32 0, i32 14
  %329 = load ptr, ptr %328, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %329)
  %330 = load ptr, ptr %22, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %330, i32 0, i32 8
  %332 = load ptr, ptr %331, align 8, !tbaa !31
  call void @SUNMatDestroy(ptr noundef %332)
  %333 = load ptr, ptr %22, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %333, i32 0, i32 7
  %335 = load ptr, ptr %334, align 8, !tbaa !30
  call void @SUNMatDestroy(ptr noundef %335)
  %336 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %336) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %337 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %337, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

338:                                              ; preds = %307
  %339 = load ptr, ptr %22, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %339, i32 0, i32 12
  store ptr null, ptr %340, align 8, !tbaa !36
  %341 = load ptr, ptr %20, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.CVodeMemRec, ptr %341, i32 0, i32 55
  %343 = load ptr, ptr %342, align 8, !tbaa !16
  %344 = call ptr @N_VClone(ptr noundef %343)
  %345 = load ptr, ptr %22, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %345, i32 0, i32 12
  store ptr %344, ptr %346, align 8, !tbaa !36
  %347 = load ptr, ptr %22, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %347, i32 0, i32 12
  %349 = load ptr, ptr %348, align 8, !tbaa !36
  %350 = icmp eq ptr %349, null
  br i1 %350, label %351, label %372

351:                                              ; preds = %338
  %352 = load ptr, ptr %22, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %352, i32 0, i32 10
  %354 = load ptr, ptr %353, align 8, !tbaa !34
  call void @N_VDestroy(ptr noundef %354)
  %355 = load ptr, ptr %22, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %355, i32 0, i32 11
  %357 = load ptr, ptr %356, align 8, !tbaa !35
  call void @N_VDestroy(ptr noundef %357)
  %358 = load ptr, ptr %22, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %358, i32 0, i32 13
  %360 = load ptr, ptr %359, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %360)
  %361 = load ptr, ptr %22, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %361, i32 0, i32 14
  %363 = load ptr, ptr %362, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %363)
  %364 = load ptr, ptr %22, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %364, i32 0, i32 8
  %366 = load ptr, ptr %365, align 8, !tbaa !31
  call void @SUNMatDestroy(ptr noundef %366)
  %367 = load ptr, ptr %22, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %367, i32 0, i32 7
  %369 = load ptr, ptr %368, align 8, !tbaa !30
  call void @SUNMatDestroy(ptr noundef %369)
  %370 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %370) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %371 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %371, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

372:                                              ; preds = %338
  %373 = load ptr, ptr %22, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %373, i32 0, i32 9
  store ptr null, ptr %374, align 8, !tbaa !37
  %375 = load ptr, ptr %22, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %375, i32 0, i32 14
  %377 = load ptr, ptr %376, align 8, !tbaa !33
  %378 = load ptr, ptr %22, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %378, i32 0, i32 8
  %380 = load ptr, ptr %379, align 8, !tbaa !31
  %381 = load ptr, ptr %20, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.CVodeMemRec, ptr %381, i32 0, i32 0
  %383 = load ptr, ptr %382, align 8, !tbaa !29
  %384 = call ptr @SUNLinSol_Band(ptr noundef %377, ptr noundef %380, ptr noundef %383)
  %385 = load ptr, ptr %22, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %385, i32 0, i32 9
  store ptr %384, ptr %386, align 8, !tbaa !37
  %387 = load ptr, ptr %22, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %387, i32 0, i32 9
  %389 = load ptr, ptr %388, align 8, !tbaa !37
  %390 = icmp eq ptr %389, null
  br i1 %390, label %391, label %415

391:                                              ; preds = %372
  %392 = load ptr, ptr %22, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %392, i32 0, i32 10
  %394 = load ptr, ptr %393, align 8, !tbaa !34
  call void @N_VDestroy(ptr noundef %394)
  %395 = load ptr, ptr %22, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %395, i32 0, i32 11
  %397 = load ptr, ptr %396, align 8, !tbaa !35
  call void @N_VDestroy(ptr noundef %397)
  %398 = load ptr, ptr %22, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %398, i32 0, i32 12
  %400 = load ptr, ptr %399, align 8, !tbaa !36
  call void @N_VDestroy(ptr noundef %400)
  %401 = load ptr, ptr %22, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %401, i32 0, i32 13
  %403 = load ptr, ptr %402, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %403)
  %404 = load ptr, ptr %22, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %404, i32 0, i32 14
  %406 = load ptr, ptr %405, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %406)
  %407 = load ptr, ptr %22, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %407, i32 0, i32 8
  %409 = load ptr, ptr %408, align 8, !tbaa !31
  call void @SUNMatDestroy(ptr noundef %409)
  %410 = load ptr, ptr %22, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %410, i32 0, i32 7
  %412 = load ptr, ptr %411, align 8, !tbaa !30
  call void @SUNMatDestroy(ptr noundef %412)
  %413 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %413) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %414 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %414, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -4, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

415:                                              ; preds = %372
  %416 = load ptr, ptr %22, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %416, i32 0, i32 9
  %418 = load ptr, ptr %417, align 8, !tbaa !37
  %419 = call i32 @SUNLinSolInitialize(ptr noundef %418)
  store i32 %419, ptr %30, align 4, !tbaa !38
  %420 = load i32, ptr %30, align 4, !tbaa !38
  %421 = icmp ne i32 %420, 0
  br i1 %421, label %422, label %450

422:                                              ; preds = %415
  %423 = load ptr, ptr %22, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %423, i32 0, i32 10
  %425 = load ptr, ptr %424, align 8, !tbaa !34
  call void @N_VDestroy(ptr noundef %425)
  %426 = load ptr, ptr %22, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %426, i32 0, i32 11
  %428 = load ptr, ptr %427, align 8, !tbaa !35
  call void @N_VDestroy(ptr noundef %428)
  %429 = load ptr, ptr %22, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %429, i32 0, i32 12
  %431 = load ptr, ptr %430, align 8, !tbaa !36
  call void @N_VDestroy(ptr noundef %431)
  %432 = load ptr, ptr %22, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %432, i32 0, i32 13
  %434 = load ptr, ptr %433, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %434)
  %435 = load ptr, ptr %22, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %435, i32 0, i32 14
  %437 = load ptr, ptr %436, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %437)
  %438 = load ptr, ptr %22, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %438, i32 0, i32 8
  %440 = load ptr, ptr %439, align 8, !tbaa !31
  call void @SUNMatDestroy(ptr noundef %440)
  %441 = load ptr, ptr %22, align 8, !tbaa !5
  %442 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %441, i32 0, i32 7
  %443 = load ptr, ptr %442, align 8, !tbaa !30
  call void @SUNMatDestroy(ptr noundef %443)
  %444 = load ptr, ptr %22, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %444, i32 0, i32 9
  %446 = load ptr, ptr %445, align 8, !tbaa !37
  %447 = call i32 @SUNLinSolFree(ptr noundef %446)
  %448 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %448) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %449 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %449, i32 noundef -9, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.6)
  store i32 -9, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

450:                                              ; preds = %415
  %451 = load double, ptr %17, align 8, !tbaa !11
  %452 = fcmp ogt double %451, 0.000000e+00
  br i1 %452, label %453, label %455

453:                                              ; preds = %450
  %454 = load double, ptr %17, align 8, !tbaa !11
  br label %468

455:                                              ; preds = %450
  %456 = load ptr, ptr %20, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.CVodeMemRec, ptr %456, i32 0, i32 1
  %458 = load double, ptr %457, align 8, !tbaa !39
  %459 = fcmp ole double %458, 0.000000e+00
  br i1 %459, label %460, label %461

460:                                              ; preds = %455
  br label %466

461:                                              ; preds = %455
  %462 = load ptr, ptr %20, align 8, !tbaa !5
  %463 = getelementptr inbounds %struct.CVodeMemRec, ptr %462, i32 0, i32 1
  %464 = load double, ptr %463, align 8, !tbaa !39
  %465 = call double @sqrt(double noundef %464) #5
  br label %466

466:                                              ; preds = %461, %460
  %467 = phi double [ 0.000000e+00, %460 ], [ %465, %461 ]
  br label %468

468:                                              ; preds = %466, %453
  %469 = phi double [ %454, %453 ], [ %467, %466 ]
  %470 = load ptr, ptr %22, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %470, i32 0, i32 4
  store double %469, ptr %471, align 8, !tbaa !40
  %472 = load i64, ptr %12, align 8, !tbaa !9
  %473 = load ptr, ptr %22, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %473, i32 0, i32 15
  store i64 %472, ptr %474, align 8, !tbaa !41
  %475 = load ptr, ptr %22, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %475, i32 0, i32 16
  store i64 0, ptr %476, align 8, !tbaa !42
  %477 = load ptr, ptr %22, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %477, i32 0, i32 17
  store i64 0, ptr %478, align 8, !tbaa !43
  %479 = load ptr, ptr %20, align 8, !tbaa !5
  %480 = getelementptr inbounds %struct.CVodeMemRec, ptr %479, i32 0, i32 55
  %481 = load ptr, ptr %480, align 8, !tbaa !16
  %482 = getelementptr inbounds %struct._generic_N_Vector, ptr %481, i32 0, i32 1
  %483 = load ptr, ptr %482, align 8, !tbaa !17
  %484 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %483, i32 0, i32 4
  %485 = load ptr, ptr %484, align 8, !tbaa !44
  %486 = icmp ne ptr %485, null
  br i1 %486, label %487, label %503

487:                                              ; preds = %468
  %488 = load ptr, ptr %20, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.CVodeMemRec, ptr %488, i32 0, i32 55
  %490 = load ptr, ptr %489, align 8, !tbaa !16
  call void @N_VSpace(ptr noundef %490, ptr noundef %26, ptr noundef %27)
  %491 = load i64, ptr %26, align 8, !tbaa !9
  %492 = mul nsw i64 3, %491
  %493 = load ptr, ptr %22, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %493, i32 0, i32 16
  %495 = load i64, ptr %494, align 8, !tbaa !42
  %496 = add nsw i64 %495, %492
  store i64 %496, ptr %494, align 8, !tbaa !42
  %497 = load i64, ptr %27, align 8, !tbaa !9
  %498 = mul nsw i64 3, %497
  %499 = load ptr, ptr %22, align 8, !tbaa !5
  %500 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %499, i32 0, i32 17
  %501 = load i64, ptr %500, align 8, !tbaa !43
  %502 = add nsw i64 %501, %498
  store i64 %502, ptr %500, align 8, !tbaa !43
  br label %503

503:                                              ; preds = %487, %468
  %504 = load ptr, ptr %22, align 8, !tbaa !5
  %505 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %504, i32 0, i32 14
  %506 = load ptr, ptr %505, align 8, !tbaa !33
  %507 = getelementptr inbounds %struct._generic_N_Vector, ptr %506, i32 0, i32 1
  %508 = load ptr, ptr %507, align 8, !tbaa !17
  %509 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %508, i32 0, i32 4
  %510 = load ptr, ptr %509, align 8, !tbaa !44
  %511 = icmp ne ptr %510, null
  br i1 %511, label %512, label %528

512:                                              ; preds = %503
  %513 = load ptr, ptr %22, align 8, !tbaa !5
  %514 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %513, i32 0, i32 14
  %515 = load ptr, ptr %514, align 8, !tbaa !33
  call void @N_VSpace(ptr noundef %515, ptr noundef %26, ptr noundef %27)
  %516 = load i64, ptr %26, align 8, !tbaa !9
  %517 = mul nsw i64 2, %516
  %518 = load ptr, ptr %22, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %518, i32 0, i32 16
  %520 = load i64, ptr %519, align 8, !tbaa !42
  %521 = add nsw i64 %520, %517
  store i64 %521, ptr %519, align 8, !tbaa !42
  %522 = load i64, ptr %27, align 8, !tbaa !9
  %523 = mul nsw i64 2, %522
  %524 = load ptr, ptr %22, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %524, i32 0, i32 17
  %526 = load i64, ptr %525, align 8, !tbaa !43
  %527 = add nsw i64 %526, %523
  store i64 %527, ptr %525, align 8, !tbaa !43
  br label %528

528:                                              ; preds = %512, %503
  %529 = load ptr, ptr %22, align 8, !tbaa !5
  %530 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %529, i32 0, i32 7
  %531 = load ptr, ptr %530, align 8, !tbaa !30
  %532 = getelementptr inbounds %struct._generic_SUNMatrix, ptr %531, i32 0, i32 1
  %533 = load ptr, ptr %532, align 8, !tbaa !45
  %534 = getelementptr inbounds %struct._generic_SUNMatrix_Ops, ptr %533, i32 0, i32 9
  %535 = load ptr, ptr %534, align 8, !tbaa !47
  %536 = icmp ne ptr %535, null
  br i1 %536, label %537, label %552

537:                                              ; preds = %528
  %538 = load ptr, ptr %22, align 8, !tbaa !5
  %539 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %538, i32 0, i32 7
  %540 = load ptr, ptr %539, align 8, !tbaa !30
  %541 = call i32 @SUNMatSpace(ptr noundef %540, ptr noundef %28, ptr noundef %29)
  store i32 %541, ptr %30, align 4, !tbaa !38
  %542 = load i64, ptr %28, align 8, !tbaa !9
  %543 = load ptr, ptr %22, align 8, !tbaa !5
  %544 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %543, i32 0, i32 16
  %545 = load i64, ptr %544, align 8, !tbaa !42
  %546 = add nsw i64 %545, %542
  store i64 %546, ptr %544, align 8, !tbaa !42
  %547 = load i64, ptr %29, align 8, !tbaa !9
  %548 = load ptr, ptr %22, align 8, !tbaa !5
  %549 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %548, i32 0, i32 17
  %550 = load i64, ptr %549, align 8, !tbaa !43
  %551 = add nsw i64 %550, %547
  store i64 %551, ptr %549, align 8, !tbaa !43
  br label %552

552:                                              ; preds = %537, %528
  %553 = load ptr, ptr %22, align 8, !tbaa !5
  %554 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %553, i32 0, i32 8
  %555 = load ptr, ptr %554, align 8, !tbaa !31
  %556 = getelementptr inbounds %struct._generic_SUNMatrix, ptr %555, i32 0, i32 1
  %557 = load ptr, ptr %556, align 8, !tbaa !45
  %558 = getelementptr inbounds %struct._generic_SUNMatrix_Ops, ptr %557, i32 0, i32 9
  %559 = load ptr, ptr %558, align 8, !tbaa !47
  %560 = icmp ne ptr %559, null
  br i1 %560, label %561, label %576

561:                                              ; preds = %552
  %562 = load ptr, ptr %22, align 8, !tbaa !5
  %563 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %562, i32 0, i32 8
  %564 = load ptr, ptr %563, align 8, !tbaa !31
  %565 = call i32 @SUNMatSpace(ptr noundef %564, ptr noundef %28, ptr noundef %29)
  store i32 %565, ptr %30, align 4, !tbaa !38
  %566 = load i64, ptr %28, align 8, !tbaa !9
  %567 = load ptr, ptr %22, align 8, !tbaa !5
  %568 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %567, i32 0, i32 16
  %569 = load i64, ptr %568, align 8, !tbaa !42
  %570 = add nsw i64 %569, %566
  store i64 %570, ptr %568, align 8, !tbaa !42
  %571 = load i64, ptr %29, align 8, !tbaa !9
  %572 = load ptr, ptr %22, align 8, !tbaa !5
  %573 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %572, i32 0, i32 17
  %574 = load i64, ptr %573, align 8, !tbaa !43
  %575 = add nsw i64 %574, %571
  store i64 %575, ptr %573, align 8, !tbaa !43
  br label %576

576:                                              ; preds = %561, %552
  %577 = load ptr, ptr %22, align 8, !tbaa !5
  %578 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %577, i32 0, i32 9
  %579 = load ptr, ptr %578, align 8, !tbaa !37
  %580 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %579, i32 0, i32 1
  %581 = load ptr, ptr %580, align 8, !tbaa !49
  %582 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %581, i32 0, i32 12
  %583 = load ptr, ptr %582, align 8, !tbaa !51
  %584 = icmp ne ptr %583, null
  br i1 %584, label %585, label %600

585:                                              ; preds = %576
  %586 = load ptr, ptr %22, align 8, !tbaa !5
  %587 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %586, i32 0, i32 9
  %588 = load ptr, ptr %587, align 8, !tbaa !37
  %589 = call i32 @SUNLinSolSpace(ptr noundef %588, ptr noundef %28, ptr noundef %29)
  store i32 %589, ptr %30, align 4, !tbaa !38
  %590 = load i64, ptr %28, align 8, !tbaa !9
  %591 = load ptr, ptr %22, align 8, !tbaa !5
  %592 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %591, i32 0, i32 16
  %593 = load i64, ptr %592, align 8, !tbaa !42
  %594 = add nsw i64 %593, %590
  store i64 %594, ptr %592, align 8, !tbaa !42
  %595 = load i64, ptr %29, align 8, !tbaa !9
  %596 = load ptr, ptr %22, align 8, !tbaa !5
  %597 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %596, i32 0, i32 17
  %598 = load i64, ptr %597, align 8, !tbaa !43
  %599 = add nsw i64 %598, %595
  store i64 %599, ptr %597, align 8, !tbaa !43
  br label %600

600:                                              ; preds = %585, %576
  %601 = load ptr, ptr %22, align 8, !tbaa !5
  %602 = getelementptr inbounds %struct.CVBBDPrecDataRec, ptr %601, i32 0, i32 18
  store i64 0, ptr %602, align 8, !tbaa !53
  %603 = load ptr, ptr %21, align 8, !tbaa !5
  %604 = getelementptr inbounds %struct.CVLsMemRec, ptr %603, i32 0, i32 28
  %605 = load ptr, ptr %604, align 8, !tbaa !54
  %606 = icmp ne ptr %605, null
  br i1 %606, label %607, label %613

607:                                              ; preds = %600
  %608 = load ptr, ptr %21, align 8, !tbaa !5
  %609 = getelementptr inbounds %struct.CVLsMemRec, ptr %608, i32 0, i32 28
  %610 = load ptr, ptr %609, align 8, !tbaa !54
  %611 = load ptr, ptr %20, align 8, !tbaa !5
  %612 = call i32 %610(ptr noundef %611)
  br label %613

613:                                              ; preds = %607, %600
  %614 = load ptr, ptr %22, align 8, !tbaa !5
  %615 = load ptr, ptr %21, align 8, !tbaa !5
  %616 = getelementptr inbounds %struct.CVLsMemRec, ptr %615, i32 0, i32 29
  store ptr %614, ptr %616, align 8, !tbaa !56
  %617 = load ptr, ptr %21, align 8, !tbaa !5
  %618 = getelementptr inbounds %struct.CVLsMemRec, ptr %617, i32 0, i32 28
  store ptr @cvBBDPrecFree, ptr %618, align 8, !tbaa !54
  %619 = load ptr, ptr %11, align 8, !tbaa !5
  %620 = call i32 @CVodeSetPreconditioner(ptr noundef %619, ptr noundef @cvBBDPrecSetup, ptr noundef @cvBBDPrecSolve)
  store i32 %620, ptr %30, align 4, !tbaa !38
  %621 = load i32, ptr %30, align 4, !tbaa !38
  store i32 %621, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %622

622:                                              ; preds = %613, %422, %391, %351, %320, %292, %267, %244, %224, %189, %61, %55, %41, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %623 = load i32, ptr %10, align 4
  ret i32 %623
}

; 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 @N_VNewEmpty_Serial(i64 noundef, ptr noundef) #2

declare void @N_VDestroy(ptr noundef) #2

declare ptr @N_VClone(ptr noundef) #2

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

declare i32 @SUNLinSolInitialize(ptr noundef) #2

declare i32 @SUNLinSolFree(ptr noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

declare void @N_VSpace(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @cvBBDPrecSolve(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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 1904}
!14 = !{!"CVodeMemRec", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !15, i64 36, !12, i64 40, !12, i64 48, !6, i64 56, !15, i64 64, !15, i64 68, !6, i64 72, !6, i64 80, !15, i64 88, !15, i64 92, !6, i64 96, !15, i64 104, !15, i64 108, !12, i64 112, !12, i64 120, !6, i64 128, !15, i64 136, !15, i64 140, !15, i64 144, !15, i64 148, !6, i64 152, !6, i64 160, !6, i64 168, !15, i64 176, !15, i64 180, !6, i64 184, !6, i64 192, !6, i64 200, !15, i64 208, !12, i64 216, !15, i64 224, !15, i64 228, !12, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !15, i64 264, !6, i64 272, !6, i64 280, !15, i64 288, !15, i64 292, !15, i64 296, !12, 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, !15, i64 792, !7, i64 800, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !15, i64 944, !12, i64 952, !15, i64 960, !15, i64 964, !15, i64 968, !15, i64 972, !15, i64 976, !12, i64 984, !12, i64 992, !12, i64 1000, !12, i64 1008, !12, i64 1016, !12, i64 1024, !12, i64 1032, !12, i64 1040, !7, i64 1048, !7, i64 1160, !7, i64 1208, !12, i64 1312, !12, i64 1320, !12, i64 1328, !12, i64 1336, !12, i64 1344, !12, i64 1352, !12, i64 1360, !12, i64 1368, !15, i64 1376, !12, i64 1384, !12, i64 1392, !15, i64 1400, !12, i64 1408, !12, i64 1416, !6, i64 1424, !15, i64 1432, !10, i64 1440, !15, i64 1448, !15, i64 1452, !15, i64 1456, !12, i64 1464, !12, i64 1472, !12, 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, !15, i64 1640, !12, i64 1648, !12, i64 1656, !12, i64 1664, !10, i64 1672, !10, i64 1680, !10, i64 1688, !10, i64 1696, !10, i64 1704, !10, i64 1712, !6, i64 1720, !15, i64 1728, !6, i64 1736, !15, i64 1744, !6, i64 1752, !15, i64 1760, !6, i64 1768, !15, i64 1776, !15, i64 1780, !10, i64 1784, !15, i64 1792, !6, i64 1800, !15, i64 1808, !6, i64 1816, !6, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !15, i64 1864, !15, i64 1868, !6, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !10, i64 1912, !15, i64 1920, !15, i64 1924, !10, i64 1928, !12, i64 1936, !12, i64 1944, !12, i64 1952, !15, i64 1960, !15, i64 1964, !12, i64 1968, !15, i64 1976, !15, i64 1980, !15, i64 1984, !15, i64 1988, !15, i64 1992, !15, i64 1996, !15, i64 2000, !15, i64 2004, !15, i64 2008, !15, i64 2012, !15, i64 2016, !15, i64 2020, !15, i64 2024, !15, i64 2028, !15, i64 2032, !15, i64 2036, !6, i64 2040, !6, i64 2048, !6, i64 2056, !6, i64 2064, !10, i64 2072, !15, i64 2080, !7, i64 2088, !15, i64 2280, !10, i64 2288, !6, i64 2296, !15, i64 2304, !6, i64 2312, !6, i64 2320, !12, i64 2328, !12, i64 2336, !12, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !12, i64 2376, !12, i64 2384, !15, i64 2392, !15, i64 2396, !10, i64 2400, !6, i64 2408, !15, i64 2416, !6, i64 2424, !6, i64 2432, !6, i64 2440, !15, i64 2448, !6, i64 2456, !15, i64 2464}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !6, i64 464}
!17 = !{!18, !6, i64 8}
!18 = !{!"_generic_N_Vector", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!20, !6, i64 40}
!20 = !{!"_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}
!21 = !{!22, !6, i64 152}
!22 = !{!"CVBBDPrecDataRec", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, 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, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !6, i64 152}
!23 = !{!22, !6, i64 40}
!24 = !{!22, !6, i64 48}
!25 = !{!22, !10, i64 0}
!26 = !{!22, !10, i64 8}
!27 = !{!22, !10, i64 16}
!28 = !{!22, !10, i64 24}
!29 = !{!14, !6, i64 0}
!30 = !{!22, !6, i64 56}
!31 = !{!22, !6, i64 64}
!32 = !{!22, !6, i64 104}
!33 = !{!22, !6, i64 112}
!34 = !{!22, !6, i64 80}
!35 = !{!22, !6, i64 88}
!36 = !{!22, !6, i64 96}
!37 = !{!22, !6, i64 72}
!38 = !{!15, !15, i64 0}
!39 = !{!14, !12, i64 8}
!40 = !{!22, !12, i64 32}
!41 = !{!22, !10, i64 120}
!42 = !{!22, !10, i64 128}
!43 = !{!22, !10, i64 136}
!44 = !{!20, !6, i64 32}
!45 = !{!46, !6, i64 8}
!46 = !{!"_generic_SUNMatrix", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!48, !6, i64 72}
!48 = !{!"_generic_SUNMatrix_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}
!49 = !{!50, !6, i64 8}
!50 = !{!"_generic_SUNLinearSolver", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!52, !6, i64 96}
!52 = !{!"_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}
!53 = !{!22, !10, i64 144}
!54 = !{!55, !6, i64 208}
!55 = !{!"CVLsMemRec", !15, i64 0, !15, i64 4, !15, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !15, i64 36, !12, i64 40, !12, 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, !15, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !15, i64 264, !6, i64 272, !6, i64 280, !15, i64 288}
!56 = !{!55, !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 [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 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 @CVBBDPrecInit(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %14 = icmp eq ptr %0, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %9
  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) #8
  br label %232

16:                                               ; preds = %9
  %17 = getelementptr inbounds i8, ptr %0, i64 1904
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %16
  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) #8
  br label %232

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %0, i64 464
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %26 = getelementptr inbounds i8, ptr %25, i64 40
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %21
  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) #8
  br label %232

30:                                               ; preds = %21
  %31 = tail call noalias dereferenceable_or_null(160) ptr @malloc(i64 noundef 160) #9
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  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) #8
  br label %232

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %31, i64 152
  store ptr %0, ptr %35, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %31, i64 40
  store ptr %7, ptr %36, align 8, !tbaa !20
  %37 = getelementptr inbounds i8, ptr %31, i64 48
  store ptr %8, ptr %37, align 8, !tbaa !21
  %38 = add nsw i64 %1, -1
  %39 = tail call i64 @llvm.smax.i64(i64 %2, i64 0)
  %.not = icmp slt i64 %39, %1
  %. = select i1 %.not, i64 %39, i64 %38
  store i64 %., ptr %31, align 8, !tbaa !22
  %40 = tail call i64 @llvm.smax.i64(i64 %3, i64 0)
  %.not201 = icmp slt i64 %40, %1
  %41 = select i1 %.not201, i64 %40, i64 %38
  %42 = getelementptr inbounds i8, ptr %31, i64 8
  store i64 %41, ptr %42, align 8, !tbaa !23
  %43 = tail call i64 @llvm.smax.i64(i64 %4, i64 0)
  %.not202 = icmp slt i64 %43, %1
  %44 = select i1 %.not202, i64 %43, i64 %38
  %45 = tail call i64 @llvm.smax.i64(i64 %5, i64 0)
  %.not203 = icmp slt i64 %45, %1
  %46 = select i1 %.not203, i64 %45, i64 %38
  %47 = getelementptr inbounds i8, ptr %31, i64 16
  store i64 %44, ptr %47, align 8, !tbaa !24
  %48 = getelementptr inbounds i8, ptr %31, i64 24
  store i64 %46, ptr %48, align 8, !tbaa !25
  %49 = load ptr, ptr %0, align 8, !tbaa !26
  %50 = tail call ptr @SUNBandMatrixStorage(i64 noundef %1, i64 noundef %44, i64 noundef %46, i64 noundef %44, ptr noundef %49) #8
  %51 = getelementptr inbounds i8, ptr %31, i64 56
  store ptr %50, ptr %51, align 8, !tbaa !27
  %52 = icmp eq ptr %50, null
  br i1 %52, label %53, label %54

53:                                               ; preds = %34
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

54:                                               ; preds = %34
  %55 = add nsw i64 %46, %44
  %.not204 = icmp slt i64 %55, %1
  %.212 = select i1 %.not204, i64 %55, i64 %38
  %56 = getelementptr inbounds i8, ptr %31, i64 64
  store ptr null, ptr %56, align 8, !tbaa !28
  %57 = load ptr, ptr %0, align 8, !tbaa !26
  %58 = tail call ptr @SUNBandMatrixStorage(i64 noundef %1, i64 noundef %44, i64 noundef %46, i64 noundef %.212, ptr noundef %57) #8
  store ptr %58, ptr %56, align 8, !tbaa !28
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %62

60:                                               ; preds = %54
  %61 = load ptr, ptr %51, align 8, !tbaa !27
  tail call void @SUNMatDestroy(ptr noundef %61) #8
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

62:                                               ; preds = %54
  %63 = getelementptr inbounds i8, ptr %31, i64 104
  store ptr null, ptr %63, align 8, !tbaa !29
  %64 = load ptr, ptr %0, align 8, !tbaa !26
  %65 = tail call ptr @N_VNewEmpty_Serial(i64 noundef %1, ptr noundef %64) #8
  store ptr %65, ptr %63, align 8, !tbaa !29
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %70

67:                                               ; preds = %62
  %68 = load ptr, ptr %56, align 8, !tbaa !28
  tail call void @SUNMatDestroy(ptr noundef %68) #8
  %69 = load ptr, ptr %51, align 8, !tbaa !27
  tail call void @SUNMatDestroy(ptr noundef %69) #8
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

70:                                               ; preds = %62
  %71 = getelementptr inbounds i8, ptr %31, i64 112
  store ptr null, ptr %71, align 8, !tbaa !30
  %72 = load ptr, ptr %0, align 8, !tbaa !26
  %73 = tail call ptr @N_VNewEmpty_Serial(i64 noundef %1, ptr noundef %72) #8
  store ptr %73, ptr %71, align 8, !tbaa !30
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %79

75:                                               ; preds = %70
  %76 = load ptr, ptr %63, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %76) #8
  %77 = load ptr, ptr %56, align 8, !tbaa !28
  tail call void @SUNMatDestroy(ptr noundef %77) #8
  %78 = load ptr, ptr %51, align 8, !tbaa !27
  tail call void @SUNMatDestroy(ptr noundef %78) #8
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

79:                                               ; preds = %70
  %80 = getelementptr inbounds i8, ptr %31, i64 80
  store ptr null, ptr %80, align 8, !tbaa !31
  %81 = load ptr, ptr %22, align 8, !tbaa !13
  %82 = tail call ptr @N_VClone(ptr noundef %81) #8
  store ptr %82, ptr %80, align 8, !tbaa !31
  %83 = icmp eq ptr %82, null
  br i1 %83, label %84, label %89

84:                                               ; preds = %79
  %85 = load ptr, ptr %63, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %85) #8
  %86 = load ptr, ptr %71, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %86) #8
  %87 = load ptr, ptr %56, align 8, !tbaa !28
  tail call void @SUNMatDestroy(ptr noundef %87) #8
  %88 = load ptr, ptr %51, align 8, !tbaa !27
  tail call void @SUNMatDestroy(ptr noundef %88) #8
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

89:                                               ; preds = %79
  %90 = getelementptr inbounds i8, ptr %31, i64 88
  store ptr null, ptr %90, align 8, !tbaa !32
  %91 = load ptr, ptr %22, align 8, !tbaa !13
  %92 = tail call ptr @N_VClone(ptr noundef %91) #8
  store ptr %92, ptr %90, align 8, !tbaa !32
  %93 = icmp eq ptr %92, null
  br i1 %93, label %94, label %100

94:                                               ; preds = %89
  %95 = load ptr, ptr %80, align 8, !tbaa !31
  tail call void @N_VDestroy(ptr noundef %95) #8
  %96 = load ptr, ptr %63, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %96) #8
  %97 = load ptr, ptr %71, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %97) #8
  %98 = load ptr, ptr %56, align 8, !tbaa !28
  tail call void @SUNMatDestroy(ptr noundef %98) #8
  %99 = load ptr, ptr %51, align 8, !tbaa !27
  tail call void @SUNMatDestroy(ptr noundef %99) #8
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

100:                                              ; preds = %89
  %101 = getelementptr inbounds i8, ptr %31, i64 96
  store ptr null, ptr %101, align 8, !tbaa !33
  %102 = load ptr, ptr %22, align 8, !tbaa !13
  %103 = tail call ptr @N_VClone(ptr noundef %102) #8
  store ptr %103, ptr %101, align 8, !tbaa !33
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %112

105:                                              ; preds = %100
  %106 = load ptr, ptr %80, align 8, !tbaa !31
  tail call void @N_VDestroy(ptr noundef %106) #8
  %107 = load ptr, ptr %90, align 8, !tbaa !32
  tail call void @N_VDestroy(ptr noundef %107) #8
  %108 = load ptr, ptr %63, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %108) #8
  %109 = load ptr, ptr %71, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %109) #8
  %110 = load ptr, ptr %56, align 8, !tbaa !28
  tail call void @SUNMatDestroy(ptr noundef %110) #8
  %111 = load ptr, ptr %51, align 8, !tbaa !27
  tail call void @SUNMatDestroy(ptr noundef %111) #8
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

112:                                              ; preds = %100
  %113 = getelementptr inbounds i8, ptr %31, i64 72
  store ptr null, ptr %113, align 8, !tbaa !34
  %114 = load ptr, ptr %71, align 8, !tbaa !30
  %115 = load ptr, ptr %56, align 8, !tbaa !28
  %116 = load ptr, ptr %0, align 8, !tbaa !26
  %117 = tail call ptr @SUNLinSol_Band(ptr noundef %114, ptr noundef %115, ptr noundef %116) #8
  store ptr %117, ptr %113, align 8, !tbaa !34
  %118 = icmp eq ptr %117, null
  br i1 %118, label %119, label %127

119:                                              ; preds = %112
  %120 = load ptr, ptr %80, align 8, !tbaa !31
  tail call void @N_VDestroy(ptr noundef %120) #8
  %121 = load ptr, ptr %90, align 8, !tbaa !32
  tail call void @N_VDestroy(ptr noundef %121) #8
  %122 = load ptr, ptr %101, align 8, !tbaa !33
  tail call void @N_VDestroy(ptr noundef %122) #8
  %123 = load ptr, ptr %63, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %123) #8
  %124 = load ptr, ptr %71, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %124) #8
  %125 = load ptr, ptr %56, align 8, !tbaa !28
  tail call void @SUNMatDestroy(ptr noundef %125) #8
  %126 = load ptr, ptr %51, align 8, !tbaa !27
  tail call void @SUNMatDestroy(ptr noundef %126) #8
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

127:                                              ; preds = %112
  %128 = tail call i32 @SUNLinSolInitialize(ptr noundef nonnull %117) #8
  %.not205 = icmp eq i32 %128, 0
  br i1 %.not205, label %139, label %129

129:                                              ; preds = %127
  %130 = load ptr, ptr %80, align 8, !tbaa !31
  tail call void @N_VDestroy(ptr noundef %130) #8
  %131 = load ptr, ptr %90, align 8, !tbaa !32
  tail call void @N_VDestroy(ptr noundef %131) #8
  %132 = load ptr, ptr %101, align 8, !tbaa !33
  tail call void @N_VDestroy(ptr noundef %132) #8
  %133 = load ptr, ptr %63, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %133) #8
  %134 = load ptr, ptr %71, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %134) #8
  %135 = load ptr, ptr %56, align 8, !tbaa !28
  tail call void @SUNMatDestroy(ptr noundef %135) #8
  %136 = load ptr, ptr %51, align 8, !tbaa !27
  tail call void @SUNMatDestroy(ptr noundef %136) #8
  %137 = load ptr, ptr %113, align 8, !tbaa !34
  %138 = tail call i32 @SUNLinSolFree(ptr noundef %137) #8
  tail call void @free(ptr noundef nonnull %31) #8
  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) #8
  br label %232

139:                                              ; preds = %127
  %140 = fcmp ogt double %6, 0.000000e+00
  br i1 %140, label %147, label %141

141:                                              ; preds = %139
  %142 = getelementptr inbounds i8, ptr %0, i64 8
  %143 = load double, ptr %142, align 8, !tbaa !35
  %144 = fcmp ugt double %143, 0.000000e+00
  br i1 %144, label %145, label %147

145:                                              ; preds = %141
  %146 = tail call double @sqrt(double noundef %143) #8
  br label %147

147:                                              ; preds = %139, %145, %141
  %148 = phi double [ %146, %145 ], [ 0.000000e+00, %141 ], [ %6, %139 ]
  %149 = getelementptr inbounds i8, ptr %31, i64 32
  store double %148, ptr %149, align 8, !tbaa !36
  %150 = getelementptr inbounds i8, ptr %31, i64 120
  store i64 %1, ptr %150, align 8, !tbaa !37
  %151 = getelementptr inbounds i8, ptr %31, i64 128
  %152 = getelementptr inbounds i8, ptr %31, i64 136
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %151, i8 0, i64 16, i1 false)
  %153 = load ptr, ptr %22, align 8, !tbaa !13
  %154 = getelementptr inbounds i8, ptr %153, i64 8
  %155 = load ptr, ptr %154, align 8, !tbaa !14
  %156 = getelementptr inbounds i8, ptr %155, i64 32
  %157 = load ptr, ptr %156, align 8, !tbaa !38
  %.not206 = icmp eq ptr %157, null
  br i1 %.not206, label %167, label %158

158:                                              ; preds = %147
  call void @N_VSpace(ptr noundef nonnull %153, ptr noundef nonnull %10, ptr noundef nonnull %11) #8
  %159 = load i64, ptr %10, align 8, !tbaa !39
  %160 = mul nsw i64 %159, 3
  %161 = load i64, ptr %151, align 8, !tbaa !40
  %162 = add nsw i64 %161, %160
  store i64 %162, ptr %151, align 8, !tbaa !40
  %163 = load i64, ptr %11, align 8, !tbaa !39
  %164 = mul nsw i64 %163, 3
  %165 = load i64, ptr %152, align 8, !tbaa !41
  %166 = add nsw i64 %165, %164
  store i64 %166, ptr %152, align 8, !tbaa !41
  br label %167

167:                                              ; preds = %158, %147
  %168 = load ptr, ptr %71, align 8, !tbaa !30
  %169 = getelementptr inbounds i8, ptr %168, i64 8
  %170 = load ptr, ptr %169, align 8, !tbaa !14
  %171 = getelementptr inbounds i8, ptr %170, i64 32
  %172 = load ptr, ptr %171, align 8, !tbaa !38
  %.not207 = icmp eq ptr %172, null
  br i1 %.not207, label %181, label %173

173:                                              ; preds = %167
  call void @N_VSpace(ptr noundef nonnull %168, ptr noundef nonnull %10, ptr noundef nonnull %11) #8
  %174 = load i64, ptr %10, align 8, !tbaa !39
  %175 = load i64, ptr %11, align 8, !tbaa !39
  %176 = insertelement <2 x i64> poison, i64 %174, i64 0
  %177 = insertelement <2 x i64> %176, i64 %175, i64 1
  %178 = shl nsw <2 x i64> %177, <i64 1, i64 1>
  %179 = load <2 x i64>, ptr %151, align 8, !tbaa !39
  %180 = add nsw <2 x i64> %179, %178
  store <2 x i64> %180, ptr %151, align 8, !tbaa !39
  br label %181

181:                                              ; preds = %173, %167
  %182 = load ptr, ptr %51, align 8, !tbaa !27
  %183 = getelementptr inbounds i8, ptr %182, i64 8
  %184 = load ptr, ptr %183, align 8, !tbaa !42
  %185 = getelementptr inbounds i8, ptr %184, i64 72
  %186 = load ptr, ptr %185, align 8, !tbaa !44
  %.not208 = icmp eq ptr %186, null
  br i1 %.not208, label %195, label %187

187:                                              ; preds = %181
  %188 = call i32 @SUNMatSpace(ptr noundef nonnull %182, ptr noundef nonnull %12, ptr noundef nonnull %13) #8
  %189 = load i64, ptr %12, align 8, !tbaa !39
  %190 = load i64, ptr %151, align 8, !tbaa !40
  %191 = add nsw i64 %190, %189
  store i64 %191, ptr %151, align 8, !tbaa !40
  %192 = load i64, ptr %13, align 8, !tbaa !39
  %193 = load i64, ptr %152, align 8, !tbaa !41
  %194 = add nsw i64 %193, %192
  store i64 %194, ptr %152, align 8, !tbaa !41
  br label %195

195:                                              ; preds = %187, %181
  %196 = load ptr, ptr %56, align 8, !tbaa !28
  %197 = getelementptr inbounds i8, ptr %196, i64 8
  %198 = load ptr, ptr %197, align 8, !tbaa !42
  %199 = getelementptr inbounds i8, ptr %198, i64 72
  %200 = load ptr, ptr %199, align 8, !tbaa !44
  %.not209 = icmp eq ptr %200, null
  br i1 %.not209, label %209, label %201

201:                                              ; preds = %195
  %202 = call i32 @SUNMatSpace(ptr noundef nonnull %196, ptr noundef nonnull %12, ptr noundef nonnull %13) #8
  %203 = load i64, ptr %12, align 8, !tbaa !39
  %204 = load i64, ptr %151, align 8, !tbaa !40
  %205 = add nsw i64 %204, %203
  store i64 %205, ptr %151, align 8, !tbaa !40
  %206 = load i64, ptr %13, align 8, !tbaa !39
  %207 = load i64, ptr %152, align 8, !tbaa !41
  %208 = add nsw i64 %207, %206
  store i64 %208, ptr %152, align 8, !tbaa !41
  br label %209

209:                                              ; preds = %201, %195
  %210 = load ptr, ptr %113, align 8, !tbaa !34
  %211 = getelementptr inbounds i8, ptr %210, i64 8
  %212 = load ptr, ptr %211, align 8, !tbaa !46
  %213 = getelementptr inbounds i8, ptr %212, i64 96
  %214 = load ptr, ptr %213, align 8, !tbaa !48
  %.not210 = icmp eq ptr %214, null
  br i1 %.not210, label %223, label %215

215:                                              ; preds = %209
  %216 = call i32 @SUNLinSolSpace(ptr noundef nonnull %210, ptr noundef nonnull %12, ptr noundef nonnull %13) #8
  %217 = load i64, ptr %12, align 8, !tbaa !39
  %218 = load i64, ptr %151, align 8, !tbaa !40
  %219 = add nsw i64 %218, %217
  store i64 %219, ptr %151, align 8, !tbaa !40
  %220 = load i64, ptr %13, align 8, !tbaa !39
  %221 = load i64, ptr %152, align 8, !tbaa !41
  %222 = add nsw i64 %221, %220
  store i64 %222, ptr %152, align 8, !tbaa !41
  br label %223

223:                                              ; preds = %215, %209
  %224 = getelementptr inbounds i8, ptr %31, i64 144
  store i64 0, ptr %224, align 8, !tbaa !50
  %225 = getelementptr inbounds i8, ptr %18, i64 208
  %226 = load ptr, ptr %225, align 8, !tbaa !51
  %.not211 = icmp eq ptr %226, null
  br i1 %.not211, label %229, label %227

227:                                              ; preds = %223
  %228 = call i32 %226(ptr noundef nonnull %0) #8
  br label %229

229:                                              ; preds = %227, %223
  %230 = getelementptr inbounds i8, ptr %18, i64 216
  store ptr %31, ptr %230, align 8, !tbaa !53
  store ptr @cvBBDPrecFree, ptr %225, align 8, !tbaa !51
  %231 = call i32 @CVodeSetPreconditioner(ptr noundef nonnull %0, ptr noundef nonnull @cvBBDPrecSetup, ptr noundef nonnull @cvBBDPrecSolve) #8
  br label %232

232:                                              ; preds = %229, %129, %119, %105, %94, %84, %75, %67, %60, %53, %33, %29, %20, %15
  %.0 = phi i32 [ -1, %15 ], [ -2, %20 ], [ -3, %29 ], [ -4, %33 ], [ -4, %53 ], [ -4, %60 ], [ -4, %67 ], [ -4, %75 ], [ -4, %84 ], [ -4, %94 ], [ -4, %105 ], [ -4, %119 ], [ -9, %129 ], [ %231, %229 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

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

declare void @SUNMatDestroy(ptr noundef) local_unnamed_addr #2

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

declare void @N_VDestroy(ptr noundef) local_unnamed_addr #2

declare ptr @N_VClone(ptr noundef) local_unnamed_addr #2

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

declare i32 @SUNLinSolInitialize(ptr noundef) local_unnamed_addr #2

declare i32 @SUNLinSolFree(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

declare void @N_VSpace(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @SUNMatSpace(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @SUNLinSolSpace(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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 = { "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 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { 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 152}
!19 = !{!"CVBBDPrecDataRec", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !10, 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, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !7, i64 152}
!20 = !{!19, !7, i64 40}
!21 = !{!19, !7, i64 48}
!22 = !{!19, !12, i64 0}
!23 = !{!19, !12, i64 8}
!24 = !{!19, !12, i64 16}
!25 = !{!19, !12, i64 24}
!26 = !{!6, !7, i64 0}
!27 = !{!19, !7, i64 56}
!28 = !{!19, !7, i64 64}
!29 = !{!19, !7, i64 104}
!30 = !{!19, !7, i64 112}
!31 = !{!19, !7, i64 80}
!32 = !{!19, !7, i64 88}
!33 = !{!19, !7, i64 96}
!34 = !{!19, !7, i64 72}
!35 = !{!6, !10, i64 8}
!36 = !{!19, !10, i64 32}
!37 = !{!19, !12, i64 120}
!38 = !{!17, !7, i64 32}
!39 = !{!12, !12, i64 0}
!40 = !{!19, !12, i64 128}
!41 = !{!19, !12, i64 136}
!42 = !{!43, !7, i64 8}
!43 = !{!"_generic_SUNMatrix", !7, i64 0, !7, i64 8, !7, i64 16}
!44 = !{!45, !7, i64 72}
!45 = !{!"_generic_SUNMatrix_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}
!46 = !{!47, !7, i64 8}
!47 = !{!"_generic_SUNLinearSolver", !7, i64 0, !7, i64 8, !7, i64 16}
!48 = !{!49, !7, i64 96}
!49 = !{!"_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}
!50 = !{!19, !12, i64 144}
!51 = !{!52, !7, i64 208}
!52 = !{!"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}
!53 = !{!52, !7, i64 216}


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