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

; 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.KINMemRec = type { ptr, double, ptr, ptr, double, double, i32, i32, i64, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, i32, double, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, double, ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, ptr, ptr, i64, i64, i32, ptr, ptr, i32, ptr, ptr, i64, i64, i64, i64, ptr, ptr, ptr, ptr, i32, ptr, double, double, double, double, double, i32, double, double, double, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.KINLsMemRec = type { i32, i32, i32, ptr, ptr, ptr, ptr, double, i64, i64, i64, i64, i64, i64, i64, i32, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, 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_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._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 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @kinLsInitialize(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.KINMemRec, ptr %7, i32 0, i32 79
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %13

11:                                               ; preds = %1
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef %12, i32 noundef -2, ptr noundef @.str, ptr noundef @.str.47, ptr noundef @.str.44)
  store i32 -2, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %257

13:                                               ; preds = %1
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.KINMemRec, ptr %14, i32 0, i32 79
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %16, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.KINLsMemRec, ptr %17, i32 0, i32 6
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %28

21:                                               ; preds = %13
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.KINLsMemRec, ptr %22, i32 0, i32 2
  store i32 0, ptr %23, align 8, !tbaa !16
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.KINLsMemRec, ptr %24, i32 0, i32 3
  store ptr null, ptr %25, align 8, !tbaa !17
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.KINLsMemRec, ptr %26, i32 0, i32 4
  store ptr null, ptr %27, align 8, !tbaa !18
  br label %120

28:                                               ; preds = %13
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.KINLsMemRec, ptr %29, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !16
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %113

33:                                               ; preds = %28
  store i32 0, ptr %5, align 4, !tbaa !19
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.KINLsMemRec, ptr %34, i32 0, i32 6
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds %struct._generic_SUNMatrix, ptr %36, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = getelementptr inbounds %struct._generic_SUNMatrix_Ops, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !22
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %64

42:                                               ; preds = %33
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.KINLsMemRec, ptr %43, i32 0, i32 6
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = call i32 @SUNMatGetID(ptr noundef %45)
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %54, label %48

48:                                               ; preds = %42
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.KINLsMemRec, ptr %49, i32 0, i32 6
  %51 = load ptr, ptr %50, align 8, !tbaa !14
  %52 = call i32 @SUNMatGetID(ptr noundef %51)
  %53 = icmp eq i32 %52, 3
  br i1 %53, label %54, label %60

54:                                               ; preds = %48, %42
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.KINLsMemRec, ptr %55, i32 0, i32 3
  store ptr @kinLsDQJac, ptr %56, align 8, !tbaa !17
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.KINLsMemRec, ptr %58, i32 0, i32 4
  store ptr %57, ptr %59, align 8, !tbaa !18
  br label %63

60:                                               ; preds = %48
  %61 = load i32, ptr %5, align 4, !tbaa !19
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %5, align 4, !tbaa !19
  br label %63

63:                                               ; preds = %60, %54
  br label %67

64:                                               ; preds = %33
  %65 = load i32, ptr %5, align 4, !tbaa !19
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %5, align 4, !tbaa !19
  br label %67

67:                                               ; preds = %64, %63
  %68 = load i32, ptr %5, align 4, !tbaa !19
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %74

70:                                               ; preds = %67
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef %71, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.47, ptr noundef @.str.48)
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.KINLsMemRec, ptr %72, i32 0, i32 16
  store i32 -3, ptr %73, align 4, !tbaa !24
  store i32 -3, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %257

74:                                               ; preds = %67
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.KINMemRec, ptr %75, i32 0, i32 46
  %77 = load ptr, ptr %76, align 8, !tbaa !25
  %78 = getelementptr inbounds %struct._generic_N_Vector, ptr %77, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !26
  %80 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %79, i32 0, i32 10
  %81 = load ptr, ptr %80, align 8, !tbaa !28
  %82 = icmp eq ptr %81, null
  br i1 %82, label %110, label %83

83:                                               ; preds = %74
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.KINMemRec, ptr %84, i32 0, i32 46
  %86 = load ptr, ptr %85, align 8, !tbaa !25
  %87 = getelementptr inbounds %struct._generic_N_Vector, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !26
  %89 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %88, i32 0, i32 14
  %90 = load ptr, ptr %89, align 8, !tbaa !30
  %91 = icmp eq ptr %90, null
  br i1 %91, label %110, label %92

92:                                               ; preds = %83
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.KINMemRec, ptr %93, i32 0, i32 46
  %95 = load ptr, ptr %94, align 8, !tbaa !25
  %96 = getelementptr inbounds %struct._generic_N_Vector, ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !26
  %98 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %97, i32 0, i32 5
  %99 = load ptr, ptr %98, align 8, !tbaa !31
  %100 = icmp eq ptr %99, null
  br i1 %100, label %110, label %101

101:                                              ; preds = %92
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.KINMemRec, ptr %102, i32 0, i32 46
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = getelementptr inbounds %struct._generic_N_Vector, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !26
  %107 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %106, i32 0, i32 7
  %108 = load ptr, ptr %107, align 8, !tbaa !32
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %112

110:                                              ; preds = %101, %92, %83, %74
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef %111, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.47, ptr noundef @.str.6)
  store i32 -3, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %257

112:                                              ; preds = %101
  br label %119

113:                                              ; preds = %28
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.KINMemRec, ptr %114, i32 0, i32 3
  %116 = load ptr, ptr %115, align 8, !tbaa !33
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.KINLsMemRec, ptr %117, i32 0, i32 4
  store ptr %116, ptr %118, align 8, !tbaa !18
  br label %119

119:                                              ; preds = %113, %112
  br label %120

120:                                              ; preds = %119, %21
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.KINMemRec, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %122, align 8, !tbaa !34
  %124 = icmp eq i32 %123, 2
  br i1 %124, label %125, label %137

125:                                              ; preds = %120
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.KINLsMemRec, ptr %126, i32 0, i32 2
  %128 = load i32, ptr %127, align 8, !tbaa !16
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %137

130:                                              ; preds = %125
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.KINLsMemRec, ptr %131, i32 0, i32 21
  %133 = load i32, ptr %132, align 8, !tbaa !35
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %137

135:                                              ; preds = %130
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef %136, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.47, ptr noundef @.str.49)
  store i32 -3, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %257

137:                                              ; preds = %130, %125, %120
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = call i32 @kinLsInitializeCounters(ptr noundef %138)
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.KINLsMemRec, ptr %140, i32 0, i32 21
  %142 = load i32, ptr %141, align 8, !tbaa !35
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %150

144:                                              ; preds = %137
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.KINLsMemRec, ptr %145, i32 0, i32 22
  store ptr @kinLsDQJtimes, ptr %146, align 8, !tbaa !36
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.KINLsMemRec, ptr %148, i32 0, i32 24
  store ptr %147, ptr %149, align 8, !tbaa !37
  br label %156

150:                                              ; preds = %137
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.KINMemRec, ptr %151, i32 0, i32 3
  %153 = load ptr, ptr %152, align 8, !tbaa !33
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.KINLsMemRec, ptr %154, i32 0, i32 24
  store ptr %153, ptr %155, align 8, !tbaa !37
  br label %156

156:                                              ; preds = %150, %144
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.KINLsMemRec, ptr %157, i32 0, i32 6
  %159 = load ptr, ptr %158, align 8, !tbaa !14
  %160 = icmp eq ptr %159, null
  br i1 %160, label %161, label %175

161:                                              ; preds = %156
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.KINLsMemRec, ptr %162, i32 0, i32 18
  %164 = load ptr, ptr %163, align 8, !tbaa !38
  %165 = icmp eq ptr %164, null
  br i1 %165, label %171, label %166

166:                                              ; preds = %161
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.KINLsMemRec, ptr %167, i32 0, i32 17
  %169 = load ptr, ptr %168, align 8, !tbaa !39
  %170 = icmp eq ptr %169, null
  br i1 %170, label %171, label %174

171:                                              ; preds = %166, %161
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.KINMemRec, ptr %172, i32 0, i32 75
  store ptr null, ptr %173, align 8, !tbaa !40
  br label %174

174:                                              ; preds = %171, %166
  br label %175

175:                                              ; preds = %174, %156
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.KINLsMemRec, ptr %176, i32 0, i32 5
  %178 = load ptr, ptr %177, align 8, !tbaa !41
  %179 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %178, i32 0, i32 1
  %180 = load ptr, ptr %179, align 8, !tbaa !42
  %181 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !44
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %200

184:                                              ; preds = %175
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.KINLsMemRec, ptr %185, i32 0, i32 5
  %187 = load ptr, ptr %186, align 8, !tbaa !41
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.KINMemRec, ptr %188, i32 0, i32 43
  %190 = load ptr, ptr %189, align 8, !tbaa !46
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.KINMemRec, ptr %191, i32 0, i32 43
  %193 = load ptr, ptr %192, align 8, !tbaa !46
  %194 = call i32 @SUNLinSolSetScalingVectors(ptr noundef %187, ptr noundef %190, ptr noundef %193)
  store i32 %194, ptr %5, align 4, !tbaa !19
  %195 = load i32, ptr %5, align 4, !tbaa !19
  %196 = icmp ne i32 %195, 0
  br i1 %196, label %197, label %199

197:                                              ; preds = %184
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef %198, i32 noundef -8, ptr noundef @.str, ptr noundef @.str.47, ptr noundef @.str.50)
  store i32 -8, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %257

199:                                              ; preds = %184
  br label %200

200:                                              ; preds = %199, %175
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.KINLsMemRec, ptr %201, i32 0, i32 0
  %203 = load i32, ptr %202, align 8, !tbaa !47
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %244

205:                                              ; preds = %200
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.KINLsMemRec, ptr %206, i32 0, i32 5
  %208 = load ptr, ptr %207, align 8, !tbaa !41
  %209 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %208, i32 0, i32 1
  %210 = load ptr, ptr %209, align 8, !tbaa !42
  %211 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %210, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !44
  %213 = icmp eq ptr %212, null
  br i1 %213, label %214, label %244

214:                                              ; preds = %205
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.KINMemRec, ptr %215, i32 0, i32 46
  %217 = load ptr, ptr %216, align 8, !tbaa !25
  call void @N_VConst(double noundef 1.000000e+00, ptr noundef %217)
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.KINMemRec, ptr %218, i32 0, i32 46
  %220 = load ptr, ptr %219, align 8, !tbaa !25
  %221 = call i64 @N_VGetLength(ptr noundef %220)
  %222 = sitofp i64 %221 to double
  %223 = fcmp ole double %222, 0.000000e+00
  br i1 %223, label %224, label %225

224:                                              ; preds = %214
  br label %232

225:                                              ; preds = %214
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.KINMemRec, ptr %226, i32 0, i32 46
  %228 = load ptr, ptr %227, align 8, !tbaa !25
  %229 = call i64 @N_VGetLength(ptr noundef %228)
  %230 = sitofp i64 %229 to double
  %231 = call double @sqrt(double noundef %230) #4
  br label %232

232:                                              ; preds = %225, %224
  %233 = phi double [ 0.000000e+00, %224 ], [ %231, %225 ]
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.KINMemRec, ptr %234, i32 0, i32 43
  %236 = load ptr, ptr %235, align 8, !tbaa !46
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.KINMemRec, ptr %237, i32 0, i32 46
  %239 = load ptr, ptr %238, align 8, !tbaa !25
  %240 = call double @N_VWL2Norm(ptr noundef %236, ptr noundef %239)
  %241 = fdiv double %233, %240
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.KINLsMemRec, ptr %242, i32 0, i32 7
  store double %241, ptr %243, align 8, !tbaa !48
  br label %247

244:                                              ; preds = %205, %200
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.KINLsMemRec, ptr %245, i32 0, i32 7
  store double 1.000000e+00, ptr %246, align 8, !tbaa !48
  br label %247

247:                                              ; preds = %244, %232
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.KINLsMemRec, ptr %248, i32 0, i32 5
  %250 = load ptr, ptr %249, align 8, !tbaa !41
  %251 = call i32 @SUNLinSolInitialize(ptr noundef %250)
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.KINLsMemRec, ptr %252, i32 0, i32 16
  store i32 %251, ptr %253, align 4, !tbaa !24
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.KINLsMemRec, ptr %254, i32 0, i32 16
  %256 = load i32, ptr %255, align 4, !tbaa !24
  store i32 %256, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %257

257:                                              ; preds = %247, %197, %135, %110, %70, %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %258 = load i32, ptr %2, align 4
  ret i32 %258
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @kinLsInitializeCounters(ptr noundef) #2

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

declare i32 @SUNMatGetID(ptr noundef) #1

declare i32 @SUNLinSolSetScalingVectors(ptr noundef, ptr noundef, ptr noundef) #1

declare void @N_VConst(double noundef, ptr noundef) #1

declare i64 @N_VGetLength(ptr noundef) #1

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

declare double @N_VWL2Norm(ptr noundef, ptr noundef) #1

declare i32 @SUNLinSolInitialize(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 584}
!10 = !{!"KINMemRec", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !12, i64 52, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !12, i64 192, !11, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !13, 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, !12, i64 352, !12, i64 356, !11, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !11, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !13, i64 448, !13, i64 456, !12, i64 464, !6, i64 472, !6, i64 480, !12, i64 488, !6, i64 496, !6, i64 504, !13, i64 512, !13, i64 520, !13, i64 528, !13, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !12, i64 576, !6, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !11, i64 624, !12, i64 632, !11, i64 640, !11, i64 648, !11, i64 656, !12, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 40}
!15 = !{!"KINLsMemRec", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !12, i64 112, !12, i64 116, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !12, i64 152, !6, i64 160, !6, i64 168, !6, i64 176}
!16 = !{!15, !12, i64 8}
!17 = !{!15, !6, i64 16}
!18 = !{!15, !6, i64 24}
!19 = !{!12, !12, i64 0}
!20 = !{!21, !6, i64 8}
!21 = !{!"_generic_SUNMatrix", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!23, !6, i64 0}
!23 = !{!"_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}
!24 = !{!15, !12, i64 116}
!25 = !{!10, !6, i64 328}
!26 = !{!27, !6, i64 8}
!27 = !{!"_generic_N_Vector", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!29, !6, i64 80}
!29 = !{!"_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}
!30 = !{!29, !6, i64 112}
!31 = !{!29, !6, i64 40}
!32 = !{!29, !6, i64 56}
!33 = !{!10, !6, i64 24}
!34 = !{!10, !12, i64 48}
!35 = !{!15, !12, i64 152}
!36 = !{!15, !6, i64 160}
!37 = !{!15, !6, i64 176}
!38 = !{!15, !6, i64 128}
!39 = !{!15, !6, i64 120}
!40 = !{!10, !6, i64 552}
!41 = !{!15, !6, i64 32}
!42 = !{!43, !6, i64 8}
!43 = !{!"_generic_SUNLinearSolver", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!45, !6, i64 32}
!45 = !{!"_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}
!46 = !{!10, !6, i64 304}
!47 = !{!15, !12, i64 0}
!48 = !{!15, !11, i64 48}


; 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 [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [44 x i8], align 1

declare void @KINProcessError(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @kinLsInitialize(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 584
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %5, label %6

5:                                                ; preds = %1
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef nonnull %0, i32 noundef -2, ptr noundef nonnull @.str, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.44) #4
  br label %132

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %3, i64 40
  %8 = load ptr, ptr %7, align 8, !tbaa !13
  %9 = icmp eq ptr %8, null
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  br i1 %9, label %11, label %13

11:                                               ; preds = %6
  store i32 0, ptr %10, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %3, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, i8 0, i64 16, i1 false)
  br label %54

13:                                               ; preds = %6
  %14 = load i32, ptr %10, align 8, !tbaa !15
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %50, label %15

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %8, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !16
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %.not62 = icmp eq ptr %18, null
  br i1 %.not62, label %35, label %19

19:                                               ; preds = %15
  %20 = tail call i32 @SUNMatGetID(ptr noundef nonnull %8) #4
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %.critedge, label %22

22:                                               ; preds = %19
  %23 = load ptr, ptr %7, align 8, !tbaa !13
  %24 = tail call i32 @SUNMatGetID(ptr noundef %23) #4
  %25 = icmp eq i32 %24, 3
  br i1 %25, label %.critedge, label %35

.critedge:                                        ; preds = %22, %19
  %26 = getelementptr inbounds i8, ptr %3, i64 16
  store ptr @kinLsDQJac, ptr %26, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %0, ptr %27, align 8, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %0, i64 328
  %29 = load ptr, ptr %28, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !23
  %32 = getelementptr inbounds i8, ptr %31, i64 80
  %33 = load ptr, ptr %32, align 8, !tbaa !25
  %34 = icmp eq ptr %33, null
  br i1 %34, label %49, label %37

35:                                               ; preds = %22, %15
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.48) #4
  %36 = getelementptr inbounds i8, ptr %3, i64 116
  store i32 -3, ptr %36, align 4, !tbaa !27
  br label %132

37:                                               ; preds = %.critedge
  %38 = getelementptr inbounds i8, ptr %31, i64 112
  %39 = load ptr, ptr %38, align 8, !tbaa !28
  %40 = icmp eq ptr %39, null
  br i1 %40, label %49, label %41

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %31, i64 40
  %43 = load ptr, ptr %42, align 8, !tbaa !29
  %44 = icmp eq ptr %43, null
  br i1 %44, label %49, label %45

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %31, i64 56
  %47 = load ptr, ptr %46, align 8, !tbaa !30
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %54

49:                                               ; preds = %45, %41, %37, %.critedge
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.6) #4
  br label %132

50:                                               ; preds = %13
  %51 = getelementptr inbounds i8, ptr %0, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !31
  %53 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %52, ptr %53, align 8, !tbaa !21
  br label %54

54:                                               ; preds = %50, %45, %11
  %55 = getelementptr inbounds i8, ptr %0, i64 48
  %56 = load i32, ptr %55, align 8, !tbaa !32
  %57 = icmp eq i32 %56, 2
  br i1 %57, label %58, label %65

58:                                               ; preds = %54
  %59 = getelementptr inbounds i8, ptr %3, i64 8
  %60 = load i32, ptr %59, align 8, !tbaa !15
  %.not64 = icmp eq i32 %60, 0
  br i1 %.not64, label %65, label %61

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %3, i64 152
  %63 = load i32, ptr %62, align 8, !tbaa !33
  %.not65 = icmp eq i32 %63, 0
  br i1 %.not65, label %65, label %64

64:                                               ; preds = %61
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.49) #4
  br label %132

65:                                               ; preds = %61, %58, %54
  %66 = tail call i32 @kinLsInitializeCounters(ptr noundef nonnull %3)
  %67 = getelementptr inbounds i8, ptr %3, i64 152
  %68 = load i32, ptr %67, align 8, !tbaa !33
  %.not66 = icmp eq i32 %68, 0
  br i1 %.not66, label %71, label %69

69:                                               ; preds = %65
  %70 = getelementptr inbounds i8, ptr %3, i64 160
  store ptr @kinLsDQJtimes, ptr %70, align 8, !tbaa !34
  br label %74

71:                                               ; preds = %65
  %72 = getelementptr inbounds i8, ptr %0, i64 24
  %73 = load ptr, ptr %72, align 8, !tbaa !31
  br label %74

74:                                               ; preds = %71, %69
  %.sink = phi ptr [ %73, %71 ], [ %0, %69 ]
  %75 = getelementptr inbounds i8, ptr %3, i64 176
  store ptr %.sink, ptr %75, align 8
  %76 = load ptr, ptr %7, align 8, !tbaa !13
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %88

78:                                               ; preds = %74
  %79 = getelementptr inbounds i8, ptr %3, i64 128
  %80 = load ptr, ptr %79, align 8, !tbaa !35
  %81 = icmp eq ptr %80, null
  br i1 %81, label %86, label %82

82:                                               ; preds = %78
  %83 = getelementptr inbounds i8, ptr %3, i64 120
  %84 = load ptr, ptr %83, align 8, !tbaa !36
  %85 = icmp eq ptr %84, null
  br i1 %85, label %86, label %88

86:                                               ; preds = %82, %78
  %87 = getelementptr inbounds i8, ptr %0, i64 552
  store ptr null, ptr %87, align 8, !tbaa !37
  br label %88

88:                                               ; preds = %82, %86, %74
  %89 = getelementptr inbounds i8, ptr %3, i64 32
  %90 = load ptr, ptr %89, align 8, !tbaa !38
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load ptr, ptr %91, align 8, !tbaa !39
  %93 = getelementptr inbounds i8, ptr %92, i64 32
  %94 = load ptr, ptr %93, align 8, !tbaa !41
  %.not67 = icmp eq ptr %94, null
  br i1 %.not67, label %100, label %95

95:                                               ; preds = %88
  %96 = getelementptr inbounds i8, ptr %0, i64 304
  %97 = load ptr, ptr %96, align 8, !tbaa !43
  %98 = tail call i32 @SUNLinSolSetScalingVectors(ptr noundef nonnull %90, ptr noundef %97, ptr noundef %97) #4
  %.not68 = icmp eq i32 %98, 0
  br i1 %.not68, label %100, label %99

99:                                               ; preds = %95
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @KINProcessError(ptr noundef nonnull %0, i32 noundef -8, ptr noundef nonnull @.str, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.50) #4
  br label %132

100:                                              ; preds = %95, %88
  %101 = load i32, ptr %3, align 8, !tbaa !44
  %.not69 = icmp eq i32 %101, 0
  br i1 %.not69, label %127, label %102

102:                                              ; preds = %100
  %103 = load ptr, ptr %89, align 8, !tbaa !38
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load ptr, ptr %104, align 8, !tbaa !39
  %106 = getelementptr inbounds i8, ptr %105, i64 32
  %107 = load ptr, ptr %106, align 8, !tbaa !41
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %127

109:                                              ; preds = %102
  %110 = getelementptr inbounds i8, ptr %0, i64 328
  %111 = load ptr, ptr %110, align 8, !tbaa !22
  tail call void @N_VConst(double noundef 1.000000e+00, ptr noundef %111) #4
  %112 = load ptr, ptr %110, align 8, !tbaa !22
  %113 = tail call i64 @N_VGetLength(ptr noundef %112) #4
  %114 = icmp slt i64 %113, 1
  br i1 %114, label %120, label %115

115:                                              ; preds = %109
  %116 = load ptr, ptr %110, align 8, !tbaa !22
  %117 = tail call i64 @N_VGetLength(ptr noundef %116) #4
  %118 = sitofp i64 %117 to double
  %119 = tail call double @sqrt(double noundef %118) #4
  br label %120

120:                                              ; preds = %109, %115
  %121 = phi double [ %119, %115 ], [ 0.000000e+00, %109 ]
  %122 = getelementptr inbounds i8, ptr %0, i64 304
  %123 = load ptr, ptr %122, align 8, !tbaa !43
  %124 = load ptr, ptr %110, align 8, !tbaa !22
  %125 = tail call double @N_VWL2Norm(ptr noundef %123, ptr noundef %124) #4
  %126 = fdiv double %121, %125
  br label %127

127:                                              ; preds = %100, %102, %120
  %.sink70 = phi double [ %126, %120 ], [ 1.000000e+00, %102 ], [ 1.000000e+00, %100 ]
  %128 = getelementptr inbounds i8, ptr %3, i64 48
  store double %.sink70, ptr %128, align 8, !tbaa !45
  %129 = load ptr, ptr %89, align 8, !tbaa !38
  %130 = tail call i32 @SUNLinSolInitialize(ptr noundef %129) #4
  %131 = getelementptr inbounds i8, ptr %3, i64 116
  store i32 %130, ptr %131, align 4, !tbaa !27
  br label %132

132:                                              ; preds = %127, %99, %64, %49, %35, %5
  %.059 = phi i32 [ -2, %5 ], [ -3, %64 ], [ -8, %99 ], [ %130, %127 ], [ -3, %35 ], [ -3, %49 ]
  ret i32 %.059
}

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @kinLsInitializeCounters(ptr noundef) local_unnamed_addr #1

declare i32 @SUNMatGetID(ptr noundef) local_unnamed_addr #0

declare i32 @SUNLinSolSetScalingVectors(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @N_VConst(double noundef, ptr noundef) local_unnamed_addr #0

declare i64 @N_VGetLength(ptr noundef) local_unnamed_addr #0

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

declare double @N_VWL2Norm(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @SUNLinSolInitialize(ptr noundef) local_unnamed_addr #0

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

attributes #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 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 584}
!6 = !{!"KINMemRec", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !11, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !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, !11, i64 192, !10, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, 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, !11, i64 352, !11, i64 356, !10, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !10, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !12, i64 448, !12, i64 456, !11, i64 464, !7, i64 472, !7, i64 480, !11, i64 488, !7, i64 496, !7, i64 504, !12, i64 512, !12, i64 520, !12, i64 528, !12, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !11, i64 576, !7, i64 584, !10, i64 592, !10, i64 600, !10, i64 608, !10, i64 616, !10, i64 624, !11, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !11, i64 664, !7, i64 672, !7, i64 680, !7, i64 688, !7, i64 696, !7, i64 704, !7, i64 712, !7, i64 720}
!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 = !{!14, !7, i64 40}
!14 = !{!"KINLsMemRec", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !11, i64 112, !11, i64 116, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !11, i64 152, !7, i64 160, !7, i64 168, !7, i64 176}
!15 = !{!14, !11, i64 8}
!16 = !{!17, !7, i64 8}
!17 = !{!"_generic_SUNMatrix", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!19, !7, i64 0}
!19 = !{!"_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}
!20 = !{!14, !7, i64 16}
!21 = !{!14, !7, i64 24}
!22 = !{!6, !7, i64 328}
!23 = !{!24, !7, i64 8}
!24 = !{!"_generic_N_Vector", !7, i64 0, !7, i64 8, !7, i64 16}
!25 = !{!26, !7, i64 80}
!26 = !{!"_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}
!27 = !{!14, !11, i64 116}
!28 = !{!26, !7, i64 112}
!29 = !{!26, !7, i64 40}
!30 = !{!26, !7, i64 56}
!31 = !{!6, !7, i64 24}
!32 = !{!6, !11, i64 48}
!33 = !{!14, !11, i64 152}
!34 = !{!14, !7, i64 160}
!35 = !{!14, !7, i64 128}
!36 = !{!14, !7, i64 120}
!37 = !{!6, !7, i64 552}
!38 = !{!14, !7, i64 32}
!39 = !{!40, !7, i64 8}
!40 = !{!"_generic_SUNLinearSolver", !7, i64 0, !7, i64 8, !7, i64 16}
!41 = !{!42, !7, i64 32}
!42 = !{!"_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}
!43 = !{!6, !7, i64 304}
!44 = !{!14, !11, i64 0}
!45 = !{!14, !10, i64 48}


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