; LLVM IR from stan-dev/math :: lib/sundials_6.1.1/src/idas (idas_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.IDAMemRec = type { ptr, double, ptr, ptr, i32, double, double, ptr, i32, i32, ptr, ptr, i32, i32, i32, ptr, ptr, i32, i32, double, double, ptr, i32, i32, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, double, i32, i32, double, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, double, ptr, ptr, ptr, [6 x ptr], [6 x double], [6 x double], [6 x double], [6 x double], [6 x double], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, double, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i64, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, double, double, double, ptr, ptr, ptr, double, double, i32, i32, i64, ptr, i32, ptr, [5 x double], 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.IBBDPrecDataRec = type { i64, i64, i64, i64, double, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, 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.IDALsMemRec = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }

@.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 @IDABBDPrecInit(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, ...) @IDAProcessError(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 %596

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.IDAMemRec, ptr %37, i32 0, i32 206
  %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, ...) @IDAProcessError(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 %596

43:                                               ; preds = %35
  %44 = load ptr, ptr %20, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.IDAMemRec, ptr %44, i32 0, i32 206
  %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.IDAMemRec, ptr %47, i32 0, i32 66
  %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, ...) @IDAProcessError(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 %596

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, ...) @IDAProcessError(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 %596

63:                                               ; preds = %57
  %64 = load ptr, ptr %20, align 8, !tbaa !5
  %65 = load ptr, ptr %22, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.IBBDPrecDataRec, 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.IBBDPrecDataRec, 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.IBBDPrecDataRec, 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.IBBDPrecDataRec, 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.IBBDPrecDataRec, 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.IBBDPrecDataRec, 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.IBBDPrecDataRec, 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 = sub nsw i64 %175, 1
  %177 = load i64, ptr %23, align 8, !tbaa !9
  %178 = load i64, ptr %24, align 8, !tbaa !9
  %179 = add nsw i64 %177, %178
  %180 = icmp slt i64 %176, %179
  br i1 %180, label %181, label %184

181:                                              ; preds = %167
  %182 = load i64, ptr %12, align 8, !tbaa !9
  %183 = sub nsw i64 %182, 1
  br label %188

184:                                              ; preds = %167
  %185 = load i64, ptr %23, align 8, !tbaa !9
  %186 = load i64, ptr %24, align 8, !tbaa !9
  %187 = add nsw i64 %185, %186
  br label %188

188:                                              ; preds = %184, %181
  %189 = phi i64 [ %183, %181 ], [ %187, %184 ]
  store i64 %189, ptr %25, align 8, !tbaa !9
  %190 = load ptr, ptr %22, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %190, i32 0, i32 8
  store ptr null, ptr %191, align 8, !tbaa !29
  %192 = load i64, ptr %12, align 8, !tbaa !9
  %193 = load i64, ptr %23, align 8, !tbaa !9
  %194 = load i64, ptr %24, align 8, !tbaa !9
  %195 = load i64, ptr %25, align 8, !tbaa !9
  %196 = load ptr, ptr %20, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.IDAMemRec, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !30
  %199 = call ptr @SUNBandMatrixStorage(i64 noundef %192, i64 noundef %193, i64 noundef %194, i64 noundef %195, ptr noundef %198)
  %200 = load ptr, ptr %22, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %200, i32 0, i32 8
  store ptr %199, ptr %201, align 8, !tbaa !29
  %202 = load ptr, ptr %22, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %202, i32 0, i32 8
  %204 = load ptr, ptr %203, align 8, !tbaa !29
  %205 = icmp eq ptr %204, null
  br i1 %205, label %206, label %209

206:                                              ; preds = %188
  %207 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %207) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %208 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %208, 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 %596

209:                                              ; preds = %188
  %210 = load ptr, ptr %22, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %210, i32 0, i32 10
  store ptr null, ptr %211, align 8, !tbaa !31
  %212 = load i64, ptr %12, align 8, !tbaa !9
  %213 = load ptr, ptr %20, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.IDAMemRec, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !30
  %216 = call ptr @N_VNewEmpty_Serial(i64 noundef %212, ptr noundef %215)
  %217 = load ptr, ptr %22, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %217, i32 0, i32 10
  store ptr %216, ptr %218, align 8, !tbaa !31
  %219 = load ptr, ptr %22, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %219, i32 0, i32 10
  %221 = load ptr, ptr %220, align 8, !tbaa !31
  %222 = icmp eq ptr %221, null
  br i1 %222, label %223, label %229

223:                                              ; preds = %209
  %224 = load ptr, ptr %22, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %224, i32 0, i32 8
  %226 = load ptr, ptr %225, align 8, !tbaa !29
  call void @SUNMatDestroy(ptr noundef %226)
  %227 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %227) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %228 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %228, 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 %596

229:                                              ; preds = %209
  %230 = load ptr, ptr %22, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %230, i32 0, i32 11
  store ptr null, ptr %231, align 8, !tbaa !32
  %232 = load i64, ptr %12, align 8, !tbaa !9
  %233 = load ptr, ptr %20, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.IDAMemRec, ptr %233, i32 0, i32 0
  %235 = load ptr, ptr %234, align 8, !tbaa !30
  %236 = call ptr @N_VNewEmpty_Serial(i64 noundef %232, ptr noundef %235)
  %237 = load ptr, ptr %22, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %237, i32 0, i32 11
  store ptr %236, ptr %238, align 8, !tbaa !32
  %239 = load ptr, ptr %22, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %239, i32 0, i32 11
  %241 = load ptr, ptr %240, align 8, !tbaa !32
  %242 = icmp eq ptr %241, null
  br i1 %242, label %243, label %252

243:                                              ; preds = %229
  %244 = load ptr, ptr %22, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %244, i32 0, i32 10
  %246 = load ptr, ptr %245, align 8, !tbaa !31
  call void @N_VDestroy(ptr noundef %246)
  %247 = load ptr, ptr %22, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %247, i32 0, i32 8
  %249 = load ptr, ptr %248, align 8, !tbaa !29
  call void @SUNMatDestroy(ptr noundef %249)
  %250 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %250) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %251 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %251, 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 %596

252:                                              ; preds = %229
  %253 = load ptr, ptr %22, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %253, i32 0, i32 12
  store ptr null, ptr %254, align 8, !tbaa !33
  %255 = load ptr, ptr %20, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.IDAMemRec, ptr %255, i32 0, i32 66
  %257 = load ptr, ptr %256, align 8, !tbaa !16
  %258 = call ptr @N_VClone(ptr noundef %257)
  %259 = load ptr, ptr %22, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %259, i32 0, i32 12
  store ptr %258, ptr %260, align 8, !tbaa !33
  %261 = load ptr, ptr %22, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %261, i32 0, i32 12
  %263 = load ptr, ptr %262, align 8, !tbaa !33
  %264 = icmp eq ptr %263, null
  br i1 %264, label %265, label %277

265:                                              ; preds = %252
  %266 = load ptr, ptr %22, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %266, i32 0, i32 11
  %268 = load ptr, ptr %267, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %268)
  %269 = load ptr, ptr %22, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %269, i32 0, i32 10
  %271 = load ptr, ptr %270, align 8, !tbaa !31
  call void @N_VDestroy(ptr noundef %271)
  %272 = load ptr, ptr %22, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %272, i32 0, i32 8
  %274 = load ptr, ptr %273, align 8, !tbaa !29
  call void @SUNMatDestroy(ptr noundef %274)
  %275 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %275) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %276 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %276, 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 %596

277:                                              ; preds = %252
  %278 = load ptr, ptr %22, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %278, i32 0, i32 13
  store ptr null, ptr %279, align 8, !tbaa !34
  %280 = load ptr, ptr %20, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.IDAMemRec, ptr %280, i32 0, i32 66
  %282 = load ptr, ptr %281, align 8, !tbaa !16
  %283 = call ptr @N_VClone(ptr noundef %282)
  %284 = load ptr, ptr %22, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %284, i32 0, i32 13
  store ptr %283, ptr %285, align 8, !tbaa !34
  %286 = load ptr, ptr %22, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %286, i32 0, i32 13
  %288 = load ptr, ptr %287, align 8, !tbaa !34
  %289 = icmp eq ptr %288, null
  br i1 %289, label %290, label %305

290:                                              ; preds = %277
  %291 = load ptr, ptr %22, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %291, i32 0, i32 11
  %293 = load ptr, ptr %292, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %293)
  %294 = load ptr, ptr %22, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %294, i32 0, i32 10
  %296 = load ptr, ptr %295, align 8, !tbaa !31
  call void @N_VDestroy(ptr noundef %296)
  %297 = load ptr, ptr %22, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %297, i32 0, i32 12
  %299 = load ptr, ptr %298, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %299)
  %300 = load ptr, ptr %22, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %300, i32 0, i32 8
  %302 = load ptr, ptr %301, align 8, !tbaa !29
  call void @SUNMatDestroy(ptr noundef %302)
  %303 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %303) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %304 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %304, 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 %596

305:                                              ; preds = %277
  %306 = load ptr, ptr %22, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %306, i32 0, i32 14
  store ptr null, ptr %307, align 8, !tbaa !35
  %308 = load ptr, ptr %20, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.IDAMemRec, ptr %308, i32 0, i32 66
  %310 = load ptr, ptr %309, align 8, !tbaa !16
  %311 = call ptr @N_VClone(ptr noundef %310)
  %312 = load ptr, ptr %22, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %312, i32 0, i32 14
  store ptr %311, ptr %313, align 8, !tbaa !35
  %314 = load ptr, ptr %22, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %314, i32 0, i32 14
  %316 = load ptr, ptr %315, align 8, !tbaa !35
  %317 = icmp eq ptr %316, null
  br i1 %317, label %318, label %336

318:                                              ; preds = %305
  %319 = load ptr, ptr %22, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %319, i32 0, i32 11
  %321 = load ptr, ptr %320, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %321)
  %322 = load ptr, ptr %22, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %322, i32 0, i32 10
  %324 = load ptr, ptr %323, align 8, !tbaa !31
  call void @N_VDestroy(ptr noundef %324)
  %325 = load ptr, ptr %22, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %325, i32 0, i32 12
  %327 = load ptr, ptr %326, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %327)
  %328 = load ptr, ptr %22, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %328, i32 0, i32 13
  %330 = load ptr, ptr %329, align 8, !tbaa !34
  call void @N_VDestroy(ptr noundef %330)
  %331 = load ptr, ptr %22, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %331, i32 0, i32 8
  %333 = load ptr, ptr %332, align 8, !tbaa !29
  call void @SUNMatDestroy(ptr noundef %333)
  %334 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %334) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %335 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %335, 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 %596

336:                                              ; preds = %305
  %337 = load ptr, ptr %22, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %337, i32 0, i32 15
  store ptr null, ptr %338, align 8, !tbaa !36
  %339 = load ptr, ptr %20, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.IDAMemRec, ptr %339, i32 0, i32 66
  %341 = load ptr, ptr %340, align 8, !tbaa !16
  %342 = call ptr @N_VClone(ptr noundef %341)
  %343 = load ptr, ptr %22, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %343, i32 0, i32 15
  store ptr %342, ptr %344, align 8, !tbaa !36
  %345 = load ptr, ptr %22, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %345, i32 0, i32 15
  %347 = load ptr, ptr %346, align 8, !tbaa !36
  %348 = icmp eq ptr %347, null
  br i1 %348, label %349, label %370

349:                                              ; preds = %336
  %350 = load ptr, ptr %22, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %350, i32 0, i32 11
  %352 = load ptr, ptr %351, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %352)
  %353 = load ptr, ptr %22, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %353, i32 0, i32 10
  %355 = load ptr, ptr %354, align 8, !tbaa !31
  call void @N_VDestroy(ptr noundef %355)
  %356 = load ptr, ptr %22, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %356, i32 0, i32 12
  %358 = load ptr, ptr %357, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %358)
  %359 = load ptr, ptr %22, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %359, i32 0, i32 13
  %361 = load ptr, ptr %360, align 8, !tbaa !34
  call void @N_VDestroy(ptr noundef %361)
  %362 = load ptr, ptr %22, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %362, i32 0, i32 14
  %364 = load ptr, ptr %363, align 8, !tbaa !35
  call void @N_VDestroy(ptr noundef %364)
  %365 = load ptr, ptr %22, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %365, i32 0, i32 8
  %367 = load ptr, ptr %366, align 8, !tbaa !29
  call void @SUNMatDestroy(ptr noundef %367)
  %368 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %368) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %369 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %369, 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 %596

370:                                              ; preds = %336
  %371 = load ptr, ptr %22, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %371, i32 0, i32 9
  store ptr null, ptr %372, align 8, !tbaa !37
  %373 = load ptr, ptr %22, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %373, i32 0, i32 11
  %375 = load ptr, ptr %374, align 8, !tbaa !32
  %376 = load ptr, ptr %22, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %376, i32 0, i32 8
  %378 = load ptr, ptr %377, align 8, !tbaa !29
  %379 = load ptr, ptr %20, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.IDAMemRec, ptr %379, i32 0, i32 0
  %381 = load ptr, ptr %380, align 8, !tbaa !30
  %382 = call ptr @SUNLinSol_Band(ptr noundef %375, ptr noundef %378, ptr noundef %381)
  %383 = load ptr, ptr %22, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %383, i32 0, i32 9
  store ptr %382, ptr %384, align 8, !tbaa !37
  %385 = load ptr, ptr %22, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %385, i32 0, i32 9
  %387 = load ptr, ptr %386, align 8, !tbaa !37
  %388 = icmp eq ptr %387, null
  br i1 %388, label %389, label %413

389:                                              ; preds = %370
  %390 = load ptr, ptr %22, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %390, i32 0, i32 10
  %392 = load ptr, ptr %391, align 8, !tbaa !31
  call void @N_VDestroy(ptr noundef %392)
  %393 = load ptr, ptr %22, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %393, i32 0, i32 11
  %395 = load ptr, ptr %394, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %395)
  %396 = load ptr, ptr %22, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %396, i32 0, i32 12
  %398 = load ptr, ptr %397, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %398)
  %399 = load ptr, ptr %22, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %399, i32 0, i32 13
  %401 = load ptr, ptr %400, align 8, !tbaa !34
  call void @N_VDestroy(ptr noundef %401)
  %402 = load ptr, ptr %22, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %402, i32 0, i32 14
  %404 = load ptr, ptr %403, align 8, !tbaa !35
  call void @N_VDestroy(ptr noundef %404)
  %405 = load ptr, ptr %22, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %405, i32 0, i32 15
  %407 = load ptr, ptr %406, align 8, !tbaa !36
  call void @N_VDestroy(ptr noundef %407)
  %408 = load ptr, ptr %22, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %408, i32 0, i32 8
  %410 = load ptr, ptr %409, align 8, !tbaa !29
  call void @SUNMatDestroy(ptr noundef %410)
  %411 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %411) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %412 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %412, 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 %596

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

420:                                              ; preds = %413
  %421 = load ptr, ptr %22, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %421, i32 0, i32 10
  %423 = load ptr, ptr %422, align 8, !tbaa !31
  call void @N_VDestroy(ptr noundef %423)
  %424 = load ptr, ptr %22, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %424, i32 0, i32 11
  %426 = load ptr, ptr %425, align 8, !tbaa !32
  call void @N_VDestroy(ptr noundef %426)
  %427 = load ptr, ptr %22, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %427, i32 0, i32 12
  %429 = load ptr, ptr %428, align 8, !tbaa !33
  call void @N_VDestroy(ptr noundef %429)
  %430 = load ptr, ptr %22, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %430, i32 0, i32 13
  %432 = load ptr, ptr %431, align 8, !tbaa !34
  call void @N_VDestroy(ptr noundef %432)
  %433 = load ptr, ptr %22, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %433, i32 0, i32 14
  %435 = load ptr, ptr %434, align 8, !tbaa !35
  call void @N_VDestroy(ptr noundef %435)
  %436 = load ptr, ptr %22, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %436, i32 0, i32 15
  %438 = load ptr, ptr %437, align 8, !tbaa !36
  call void @N_VDestroy(ptr noundef %438)
  %439 = load ptr, ptr %22, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %439, i32 0, i32 8
  %441 = load ptr, ptr %440, align 8, !tbaa !29
  call void @SUNMatDestroy(ptr noundef %441)
  %442 = load ptr, ptr %22, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %442, i32 0, i32 9
  %444 = load ptr, ptr %443, align 8, !tbaa !37
  %445 = call i32 @SUNLinSolFree(ptr noundef %444)
  %446 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %446) #5
  store ptr null, ptr %22, align 8, !tbaa !5
  %447 = load ptr, ptr %20, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %447, 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 %596

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

451:                                              ; preds = %448
  %452 = load double, ptr %17, align 8, !tbaa !11
  br label %466

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

458:                                              ; preds = %453
  br label %464

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

464:                                              ; preds = %459, %458
  %465 = phi double [ 0.000000e+00, %458 ], [ %463, %459 ]
  br label %466

466:                                              ; preds = %464, %451
  %467 = phi double [ %452, %451 ], [ %465, %464 ]
  %468 = load ptr, ptr %22, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %468, i32 0, i32 4
  store double %467, ptr %469, align 8, !tbaa !40
  %470 = load i64, ptr %12, align 8, !tbaa !9
  %471 = load ptr, ptr %22, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %471, i32 0, i32 7
  store i64 %470, ptr %472, align 8, !tbaa !41
  %473 = load ptr, ptr %22, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %473, i32 0, i32 16
  store i64 0, ptr %474, align 8, !tbaa !42
  %475 = load ptr, ptr %22, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %475, i32 0, i32 17
  store i64 0, ptr %476, align 8, !tbaa !43
  %477 = load ptr, ptr %20, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.IDAMemRec, ptr %477, i32 0, i32 66
  %479 = load ptr, ptr %478, align 8, !tbaa !16
  %480 = getelementptr inbounds %struct._generic_N_Vector, ptr %479, i32 0, i32 1
  %481 = load ptr, ptr %480, align 8, !tbaa !17
  %482 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %481, i32 0, i32 4
  %483 = load ptr, ptr %482, align 8, !tbaa !44
  %484 = icmp ne ptr %483, null
  br i1 %484, label %485, label %501

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

501:                                              ; preds = %485, %466
  %502 = load ptr, ptr %22, align 8, !tbaa !5
  %503 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %502, i32 0, i32 11
  %504 = load ptr, ptr %503, align 8, !tbaa !32
  %505 = getelementptr inbounds %struct._generic_N_Vector, ptr %504, i32 0, i32 1
  %506 = load ptr, ptr %505, align 8, !tbaa !17
  %507 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %506, i32 0, i32 4
  %508 = load ptr, ptr %507, align 8, !tbaa !44
  %509 = icmp ne ptr %508, null
  br i1 %509, label %510, label %526

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

526:                                              ; preds = %510, %501
  %527 = load ptr, ptr %22, align 8, !tbaa !5
  %528 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %527, i32 0, i32 8
  %529 = load ptr, ptr %528, align 8, !tbaa !29
  %530 = getelementptr inbounds %struct._generic_SUNMatrix, ptr %529, i32 0, i32 1
  %531 = load ptr, ptr %530, align 8, !tbaa !45
  %532 = getelementptr inbounds %struct._generic_SUNMatrix_Ops, ptr %531, i32 0, i32 9
  %533 = load ptr, ptr %532, align 8, !tbaa !47
  %534 = icmp ne ptr %533, null
  br i1 %534, label %535, label %550

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

550:                                              ; preds = %535, %526
  %551 = load ptr, ptr %22, align 8, !tbaa !5
  %552 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %551, i32 0, i32 9
  %553 = load ptr, ptr %552, align 8, !tbaa !37
  %554 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %553, i32 0, i32 1
  %555 = load ptr, ptr %554, align 8, !tbaa !49
  %556 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %555, i32 0, i32 12
  %557 = load ptr, ptr %556, align 8, !tbaa !51
  %558 = icmp ne ptr %557, null
  br i1 %558, label %559, label %574

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

574:                                              ; preds = %559, %550
  %575 = load ptr, ptr %22, align 8, !tbaa !5
  %576 = getelementptr inbounds %struct.IBBDPrecDataRec, ptr %575, i32 0, i32 18
  store i64 0, ptr %576, align 8, !tbaa !53
  %577 = load ptr, ptr %21, align 8, !tbaa !5
  %578 = getelementptr inbounds %struct.IDALsMemRec, ptr %577, i32 0, i32 33
  %579 = load ptr, ptr %578, align 8, !tbaa !54
  %580 = icmp ne ptr %579, null
  br i1 %580, label %581, label %587

581:                                              ; preds = %574
  %582 = load ptr, ptr %21, align 8, !tbaa !5
  %583 = getelementptr inbounds %struct.IDALsMemRec, ptr %582, i32 0, i32 33
  %584 = load ptr, ptr %583, align 8, !tbaa !54
  %585 = load ptr, ptr %20, align 8, !tbaa !5
  %586 = call i32 %584(ptr noundef %585)
  br label %587

587:                                              ; preds = %581, %574
  %588 = load ptr, ptr %22, align 8, !tbaa !5
  %589 = load ptr, ptr %21, align 8, !tbaa !5
  %590 = getelementptr inbounds %struct.IDALsMemRec, ptr %589, i32 0, i32 34
  store ptr %588, ptr %590, align 8, !tbaa !56
  %591 = load ptr, ptr %21, align 8, !tbaa !5
  %592 = getelementptr inbounds %struct.IDALsMemRec, ptr %591, i32 0, i32 33
  store ptr @IDABBDPrecFree, ptr %592, align 8, !tbaa !54
  %593 = load ptr, ptr %11, align 8, !tbaa !5
  %594 = call i32 @IDASetPreconditioner(ptr noundef %593, ptr noundef @IDABBDPrecSetup, ptr noundef @IDABBDPrecSolve)
  store i32 %594, ptr %30, align 4, !tbaa !38
  %595 = load i32, ptr %30, align 4, !tbaa !38
  store i32 %595, ptr %10, align 4
  store i32 1, ptr %31, align 4
  br label %596

596:                                              ; preds = %587, %420, %389, %349, %318, %290, %265, %243, %223, %206, %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
  %597 = load i32, ptr %10, align 4
  ret i32 %597
}

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

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

declare void @SUNMatDestroy(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 @IDABBDPrecFree(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @IDABBDPrecSolve(double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, double 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 1832}
!14 = !{!"IDAMemRec", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !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, !15, i64 96, !6, i64 104, !6, i64 112, !15, i64 120, !15, i64 124, !12, i64 128, !12, i64 136, !6, i64 144, !15, i64 152, !15, i64 156, !15, i64 160, !15, i64 164, !6, i64 168, !6, i64 176, !15, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !15, i64 216, !12, i64 224, !15, i64 232, !15, i64 236, !12, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !15, i64 272, !6, i64 280, !6, i64 288, !15, i64 296, !15, i64 300, !15, i64 304, !12, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !7, i64 344, !7, i64 392, !7, i64 440, !7, i64 488, !7, i64 536, !7, i64 584, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !6, i64 760, !7, i64 768, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !7, i64 848, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !7, i64 1024, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !6, i64 1104, !12, i64 1112, !6, i64 1120, !6, i64 1128, !15, i64 1136, !15, i64 1140, !15, i64 1144, !15, i64 1148, !15, i64 1152, !15, i64 1156, !15, i64 1160, !15, i64 1164, !12, i64 1168, !12, i64 1176, !12, i64 1184, !15, i64 1192, !12, i64 1200, !15, i64 1208, !15, i64 1212, !15, i64 1216, !15, i64 1220, !15, i64 1224, !12, i64 1232, !12, i64 1240, !12, i64 1248, !12, i64 1256, !12, i64 1264, !12, i64 1272, !12, i64 1280, !12, i64 1288, !12, i64 1296, !12, i64 1304, !12, i64 1312, !12, i64 1320, !12, i64 1328, !12, i64 1336, !12, i64 1344, !12, i64 1352, !12, i64 1360, !15, i64 1368, !15, i64 1372, !15, i64 1376, !15, i64 1380, !10, i64 1384, !12, i64 1392, !10, i64 1400, !10, i64 1408, !10, i64 1416, !10, i64 1424, !10, i64 1432, !10, i64 1440, !10, i64 1448, !10, i64 1456, !10, i64 1464, !10, i64 1472, !10, 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, !10, i64 1560, !10, i64 1568, !10, i64 1576, !10, i64 1584, !12, i64 1592, !6, i64 1600, !6, i64 1608, !6, i64 1616, !15, i64 1624, !15, i64 1628, !15, i64 1632, !15, i64 1636, !15, i64 1640, !15, i64 1644, !15, i64 1648, !15, i64 1652, !15, i64 1656, !15, i64 1660, !15, i64 1664, !15, i64 1668, !15, i64 1672, !6, i64 1680, !15, i64 1688, !6, i64 1696, !15, i64 1704, !6, i64 1712, !15, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !6, i64 1760, !6, i64 1768, !15, i64 1776, !15, i64 1780, !6, i64 1784, !6, i64 1792, !6, i64 1800, !6, i64 1808, !6, i64 1816, !6, i64 1824, !6, i64 1832, !15, i64 1840, !15, i64 1844, !6, i64 1848, !15, i64 1856, !6, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !6, i64 1904, !6, i64 1912, !6, i64 1920, !12, i64 1928, !12, i64 1936, !15, i64 1944, !15, i64 1948, !10, i64 1952, !6, i64 1960, !15, i64 1968, !6, i64 1976, !7, i64 1984, !6, i64 2024, !6, i64 2032, !15, i64 2040, !6, i64 2048, !15, i64 2056}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !6, i64 712}
!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 = !{!"IBBDPrecDataRec", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !6, i64 40, !6, i64 48, !10, 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, !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 = !{!22, !6, i64 64}
!30 = !{!14, !6, i64 0}
!31 = !{!22, !6, i64 80}
!32 = !{!22, !6, i64 88}
!33 = !{!22, !6, i64 96}
!34 = !{!22, !6, i64 104}
!35 = !{!22, !6, i64 112}
!36 = !{!22, !6, i64 120}
!37 = !{!22, !6, i64 72}
!38 = !{!15, !15, i64 0}
!39 = !{!14, !12, i64 8}
!40 = !{!22, !12, i64 32}
!41 = !{!22, !10, i64 56}
!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 256}
!55 = !{!"IDALsMemRec", !15, i64 0, !15, i64 4, !15, 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, !15, i64 96, !12, i64 104, !12, i64 112, !12, 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, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !15, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !15, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304}
!56 = !{!55, !6, i64 264}


; 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 @IDABBDPrecInit(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, ...) @IDAProcessError(ptr noundef null, i32 noundef -1, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #8
  br label %218

16:                                               ; preds = %9
  %17 = getelementptr inbounds i8, ptr %0, i64 1832
  %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, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -2, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #8
  br label %218

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %0, i64 712
  %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, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #8
  br label %218

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, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

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)
  %.not194 = icmp slt i64 %40, %1
  %41 = select i1 %.not194, 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)
  %.not195 = icmp slt i64 %43, %1
  %44 = select i1 %.not195, i64 %43, i64 %38
  %45 = tail call i64 @llvm.smax.i64(i64 %5, i64 0)
  %.not196 = icmp slt i64 %45, %1
  %46 = select i1 %.not196, 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 = add nsw i64 %46, %44
  %.not197 = icmp slt i64 %49, %1
  %50 = select i1 %.not197, i64 %49, i64 %38
  %51 = getelementptr inbounds i8, ptr %31, i64 64
  store ptr null, ptr %51, align 8, !tbaa !26
  %52 = load ptr, ptr %0, align 8, !tbaa !27
  %53 = tail call ptr @SUNBandMatrixStorage(i64 noundef %1, i64 noundef %44, i64 noundef %46, i64 noundef %50, ptr noundef %52) #8
  store ptr %53, ptr %51, align 8, !tbaa !26
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %34
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

56:                                               ; preds = %34
  %57 = getelementptr inbounds i8, ptr %31, i64 80
  store ptr null, ptr %57, align 8, !tbaa !28
  %58 = load ptr, ptr %0, align 8, !tbaa !27
  %59 = tail call ptr @N_VNewEmpty_Serial(i64 noundef %1, ptr noundef %58) #8
  store ptr %59, ptr %57, align 8, !tbaa !28
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %63

61:                                               ; preds = %56
  %62 = load ptr, ptr %51, align 8, !tbaa !26
  tail call void @SUNMatDestroy(ptr noundef %62) #8
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

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

68:                                               ; preds = %63
  %69 = load ptr, ptr %57, align 8, !tbaa !28
  tail call void @N_VDestroy(ptr noundef %69) #8
  %70 = load ptr, ptr %51, align 8, !tbaa !26
  tail call void @SUNMatDestroy(ptr noundef %70) #8
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

71:                                               ; preds = %63
  %72 = getelementptr inbounds i8, ptr %31, i64 96
  store ptr null, ptr %72, align 8, !tbaa !30
  %73 = load ptr, ptr %22, align 8, !tbaa !13
  %74 = tail call ptr @N_VClone(ptr noundef %73) #8
  store ptr %74, ptr %72, align 8, !tbaa !30
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %80

76:                                               ; preds = %71
  %77 = load ptr, ptr %64, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %77) #8
  %78 = load ptr, ptr %57, align 8, !tbaa !28
  tail call void @N_VDestroy(ptr noundef %78) #8
  %79 = load ptr, ptr %51, align 8, !tbaa !26
  tail call void @SUNMatDestroy(ptr noundef %79) #8
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

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

85:                                               ; preds = %80
  %86 = load ptr, ptr %64, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %86) #8
  %87 = load ptr, ptr %57, align 8, !tbaa !28
  tail call void @N_VDestroy(ptr noundef %87) #8
  %88 = load ptr, ptr %72, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %88) #8
  %89 = load ptr, ptr %51, align 8, !tbaa !26
  tail call void @SUNMatDestroy(ptr noundef %89) #8
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

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

95:                                               ; preds = %90
  %96 = load ptr, ptr %64, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %96) #8
  %97 = load ptr, ptr %57, align 8, !tbaa !28
  tail call void @N_VDestroy(ptr noundef %97) #8
  %98 = load ptr, ptr %72, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %98) #8
  %99 = load ptr, ptr %81, align 8, !tbaa !31
  tail call void @N_VDestroy(ptr noundef %99) #8
  %100 = load ptr, ptr %51, align 8, !tbaa !26
  tail call void @SUNMatDestroy(ptr noundef %100) #8
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

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

106:                                              ; preds = %101
  %107 = load ptr, ptr %64, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %107) #8
  %108 = load ptr, ptr %57, align 8, !tbaa !28
  tail call void @N_VDestroy(ptr noundef %108) #8
  %109 = load ptr, ptr %72, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %109) #8
  %110 = load ptr, ptr %81, align 8, !tbaa !31
  tail call void @N_VDestroy(ptr noundef %110) #8
  %111 = load ptr, ptr %91, align 8, !tbaa !32
  tail call void @N_VDestroy(ptr noundef %111) #8
  %112 = load ptr, ptr %51, align 8, !tbaa !26
  tail call void @SUNMatDestroy(ptr noundef %112) #8
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

113:                                              ; preds = %101
  %114 = getelementptr inbounds i8, ptr %31, i64 72
  store ptr null, ptr %114, align 8, !tbaa !34
  %115 = load ptr, ptr %64, align 8, !tbaa !29
  %116 = load ptr, ptr %51, align 8, !tbaa !26
  %117 = load ptr, ptr %0, align 8, !tbaa !27
  %118 = tail call ptr @SUNLinSol_Band(ptr noundef %115, ptr noundef %116, ptr noundef %117) #8
  store ptr %118, ptr %114, align 8, !tbaa !34
  %119 = icmp eq ptr %118, null
  br i1 %119, label %120, label %128

120:                                              ; preds = %113
  %121 = load ptr, ptr %57, align 8, !tbaa !28
  tail call void @N_VDestroy(ptr noundef %121) #8
  %122 = load ptr, ptr %64, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %122) #8
  %123 = load ptr, ptr %72, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %123) #8
  %124 = load ptr, ptr %81, align 8, !tbaa !31
  tail call void @N_VDestroy(ptr noundef %124) #8
  %125 = load ptr, ptr %91, align 8, !tbaa !32
  tail call void @N_VDestroy(ptr noundef %125) #8
  %126 = load ptr, ptr %102, align 8, !tbaa !33
  tail call void @N_VDestroy(ptr noundef %126) #8
  %127 = load ptr, ptr %51, align 8, !tbaa !26
  tail call void @SUNMatDestroy(ptr noundef %127) #8
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #8
  br label %218

128:                                              ; preds = %113
  %129 = tail call i32 @SUNLinSolInitialize(ptr noundef nonnull %118) #8
  %.not198 = icmp eq i32 %129, 0
  br i1 %.not198, label %140, label %130

130:                                              ; preds = %128
  %131 = load ptr, ptr %57, align 8, !tbaa !28
  tail call void @N_VDestroy(ptr noundef %131) #8
  %132 = load ptr, ptr %64, align 8, !tbaa !29
  tail call void @N_VDestroy(ptr noundef %132) #8
  %133 = load ptr, ptr %72, align 8, !tbaa !30
  tail call void @N_VDestroy(ptr noundef %133) #8
  %134 = load ptr, ptr %81, align 8, !tbaa !31
  tail call void @N_VDestroy(ptr noundef %134) #8
  %135 = load ptr, ptr %91, align 8, !tbaa !32
  tail call void @N_VDestroy(ptr noundef %135) #8
  %136 = load ptr, ptr %102, align 8, !tbaa !33
  tail call void @N_VDestroy(ptr noundef %136) #8
  %137 = load ptr, ptr %51, align 8, !tbaa !26
  tail call void @SUNMatDestroy(ptr noundef %137) #8
  %138 = load ptr, ptr %114, align 8, !tbaa !34
  %139 = tail call i32 @SUNLinSolFree(ptr noundef %138) #8
  tail call void @free(ptr noundef nonnull %31) #8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.6) #8
  br label %218

140:                                              ; preds = %128
  %141 = fcmp ogt double %6, 0.000000e+00
  br i1 %141, label %148, label %142

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

146:                                              ; preds = %142
  %147 = tail call double @sqrt(double noundef %144) #8
  br label %148

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

159:                                              ; preds = %148
  call void @N_VSpace(ptr noundef nonnull %154, ptr noundef nonnull %10, ptr noundef nonnull %11) #8
  %160 = load i64, ptr %10, align 8, !tbaa !39
  %161 = load i64, ptr %11, align 8, !tbaa !39
  %162 = insertelement <2 x i64> poison, i64 %160, i64 0
  %163 = insertelement <2 x i64> %162, i64 %161, i64 1
  %164 = shl nsw <2 x i64> %163, <i64 2, i64 2>
  %165 = load <2 x i64>, ptr %152, align 8, !tbaa !39
  %166 = add nsw <2 x i64> %165, %164
  store <2 x i64> %166, ptr %152, align 8, !tbaa !39
  br label %167

167:                                              ; preds = %159, %148
  %168 = load ptr, ptr %64, align 8, !tbaa !29
  %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
  %.not200 = icmp eq ptr %172, null
  br i1 %.not200, 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 %152, align 8, !tbaa !39
  %180 = add nsw <2 x i64> %179, %178
  store <2 x i64> %180, ptr %152, align 8, !tbaa !39
  br label %181

181:                                              ; preds = %173, %167
  %182 = load ptr, ptr %51, align 8, !tbaa !26
  %183 = getelementptr inbounds i8, ptr %182, i64 8
  %184 = load ptr, ptr %183, align 8, !tbaa !40
  %185 = getelementptr inbounds i8, ptr %184, i64 72
  %186 = load ptr, ptr %185, align 8, !tbaa !42
  %.not201 = icmp eq ptr %186, null
  br i1 %.not201, 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 %152, align 8, !tbaa !44
  %191 = add nsw i64 %190, %189
  store i64 %191, ptr %152, align 8, !tbaa !44
  %192 = load i64, ptr %13, align 8, !tbaa !39
  %193 = load i64, ptr %153, align 8, !tbaa !45
  %194 = add nsw i64 %193, %192
  store i64 %194, ptr %153, align 8, !tbaa !45
  br label %195

195:                                              ; preds = %187, %181
  %196 = load ptr, ptr %114, align 8, !tbaa !34
  %197 = getelementptr inbounds i8, ptr %196, i64 8
  %198 = load ptr, ptr %197, align 8, !tbaa !46
  %199 = getelementptr inbounds i8, ptr %198, i64 96
  %200 = load ptr, ptr %199, align 8, !tbaa !48
  %.not202 = icmp eq ptr %200, null
  br i1 %.not202, label %209, label %201

201:                                              ; preds = %195
  %202 = call i32 @SUNLinSolSpace(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 %152, align 8, !tbaa !44
  %205 = add nsw i64 %204, %203
  store i64 %205, ptr %152, align 8, !tbaa !44
  %206 = load i64, ptr %13, align 8, !tbaa !39
  %207 = load i64, ptr %153, align 8, !tbaa !45
  %208 = add nsw i64 %207, %206
  store i64 %208, ptr %153, align 8, !tbaa !45
  br label %209

209:                                              ; preds = %201, %195
  %210 = getelementptr inbounds i8, ptr %31, i64 144
  store i64 0, ptr %210, align 8, !tbaa !50
  %211 = getelementptr inbounds i8, ptr %18, i64 256
  %212 = load ptr, ptr %211, align 8, !tbaa !51
  %.not203 = icmp eq ptr %212, null
  br i1 %.not203, label %215, label %213

213:                                              ; preds = %209
  %214 = call i32 %212(ptr noundef nonnull %0) #8
  br label %215

215:                                              ; preds = %213, %209
  %216 = getelementptr inbounds i8, ptr %18, i64 264
  store ptr %31, ptr %216, align 8, !tbaa !53
  store ptr @IDABBDPrecFree, ptr %211, align 8, !tbaa !51
  %217 = call i32 @IDASetPreconditioner(ptr noundef nonnull %0, ptr noundef nonnull @IDABBDPrecSetup, ptr noundef nonnull @IDABBDPrecSolve) #8
  br label %218

218:                                              ; preds = %215, %130, %120, %106, %95, %85, %76, %68, %61, %55, %33, %29, %20, %15
  %.0 = phi i32 [ -1, %15 ], [ -2, %20 ], [ -3, %29 ], [ -4, %33 ], [ -4, %55 ], [ -4, %61 ], [ -4, %68 ], [ -4, %76 ], [ -4, %85 ], [ -4, %95 ], [ -4, %106 ], [ -4, %120 ], [ -9, %130 ], [ %217, %215 ]
  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 @IDAProcessError(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 ptr @N_VNewEmpty_Serial(i64 noundef, ptr noundef) local_unnamed_addr #2

declare void @SUNMatDestroy(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 @IDABBDPrecFree(ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @IDABBDPrecSolve(double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, double 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 1832}
!6 = !{!"IDAMemRec", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !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, !11, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 124, !10, i64 128, !10, i64 136, !7, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !7, i64 168, !7, i64 176, !11, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !11, i64 216, !10, i64 224, !11, i64 232, !11, i64 236, !10, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !11, i64 272, !7, i64 280, !7, i64 288, !11, i64 296, !11, i64 300, !11, i64 304, !10, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !8, i64 344, !8, i64 392, !8, i64 440, !8, i64 488, !8, i64 536, !8, i64 584, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !7, i64 672, !7, i64 680, !7, i64 688, !7, i64 696, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !7, i64 760, !8, i64 768, !7, i64 816, !7, i64 824, !7, i64 832, !7, i64 840, !8, i64 848, !7, i64 896, !7, i64 904, !7, i64 912, !7, i64 920, !7, i64 928, !7, i64 936, !7, i64 944, !7, i64 952, !7, i64 960, !7, i64 968, !7, i64 976, !7, i64 984, !7, i64 992, !7, i64 1000, !7, i64 1008, !7, i64 1016, !8, i64 1024, !7, i64 1072, !7, i64 1080, !7, i64 1088, !7, i64 1096, !7, i64 1104, !10, i64 1112, !7, i64 1120, !7, i64 1128, !11, i64 1136, !11, i64 1140, !11, i64 1144, !11, i64 1148, !11, i64 1152, !11, i64 1156, !11, i64 1160, !11, i64 1164, !10, i64 1168, !10, i64 1176, !10, i64 1184, !11, i64 1192, !10, i64 1200, !11, i64 1208, !11, i64 1212, !11, i64 1216, !11, i64 1220, !11, i64 1224, !10, i64 1232, !10, i64 1240, !10, i64 1248, !10, i64 1256, !10, i64 1264, !10, i64 1272, !10, i64 1280, !10, i64 1288, !10, i64 1296, !10, i64 1304, !10, i64 1312, !10, i64 1320, !10, i64 1328, !10, i64 1336, !10, i64 1344, !10, i64 1352, !10, i64 1360, !11, i64 1368, !11, i64 1372, !11, i64 1376, !11, i64 1380, !12, i64 1384, !10, i64 1392, !12, i64 1400, !12, i64 1408, !12, i64 1416, !12, i64 1424, !12, i64 1432, !12, i64 1440, !12, i64 1448, !12, i64 1456, !12, i64 1464, !12, i64 1472, !12, 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, !12, i64 1560, !12, i64 1568, !12, i64 1576, !12, i64 1584, !10, i64 1592, !7, i64 1600, !7, i64 1608, !7, i64 1616, !11, i64 1624, !11, i64 1628, !11, i64 1632, !11, i64 1636, !11, i64 1640, !11, i64 1644, !11, i64 1648, !11, i64 1652, !11, i64 1656, !11, i64 1660, !11, i64 1664, !11, i64 1668, !11, i64 1672, !7, i64 1680, !11, i64 1688, !7, i64 1696, !11, i64 1704, !7, i64 1712, !11, i64 1720, !7, i64 1728, !7, i64 1736, !7, i64 1744, !7, i64 1752, !7, i64 1760, !7, i64 1768, !11, i64 1776, !11, i64 1780, !7, i64 1784, !7, i64 1792, !7, i64 1800, !7, i64 1808, !7, i64 1816, !7, i64 1824, !7, i64 1832, !11, i64 1840, !11, i64 1844, !7, i64 1848, !11, i64 1856, !7, i64 1864, !7, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 1920, !10, i64 1928, !10, i64 1936, !11, i64 1944, !11, i64 1948, !12, i64 1952, !7, i64 1960, !11, i64 1968, !7, i64 1976, !8, i64 1984, !7, i64 2024, !7, i64 2032, !11, i64 2040, !7, i64 2048, !11, i64 2056}
!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 712}
!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 = !{!"IBBDPrecDataRec", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !10, i64 32, !7, i64 40, !7, i64 48, !12, 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, !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 = !{!19, !7, i64 64}
!27 = !{!6, !7, i64 0}
!28 = !{!19, !7, i64 80}
!29 = !{!19, !7, i64 88}
!30 = !{!19, !7, i64 96}
!31 = !{!19, !7, i64 104}
!32 = !{!19, !7, i64 112}
!33 = !{!19, !7, i64 120}
!34 = !{!19, !7, i64 72}
!35 = !{!6, !10, i64 8}
!36 = !{!19, !10, i64 32}
!37 = !{!19, !12, i64 56}
!38 = !{!17, !7, i64 32}
!39 = !{!12, !12, i64 0}
!40 = !{!41, !7, i64 8}
!41 = !{!"_generic_SUNMatrix", !7, i64 0, !7, i64 8, !7, i64 16}
!42 = !{!43, !7, i64 72}
!43 = !{!"_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}
!44 = !{!19, !12, i64 128}
!45 = !{!19, !12, i64 136}
!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 256}
!52 = !{!"IDALsMemRec", !11, i64 0, !11, i64 4, !11, 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, !11, i64 96, !10, i64 104, !10, i64 112, !10, 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, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !11, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !11, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304}
!53 = !{!52, !7, i64 264}


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