; LLVM IR from stan-dev/math :: lib/sundials_6.1.1/src/cvodes (cvodes_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._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.CVodeMemRec = type { ptr, double, ptr, ptr, i32, i32, double, double, ptr, i32, i32, ptr, ptr, i32, i32, ptr, i32, i32, double, double, ptr, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, i32, double, i32, i32, double, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, double, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, [13 x ptr], ptr, ptr, ptr, ptr, ptr, i32, [13 x ptr], ptr, ptr, ptr, ptr, ptr, i32, double, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, [14 x double], [6 x double], [13 x double], double, double, double, double, double, double, double, double, i32, double, double, i32, double, double, ptr, i32, i64, i32, i32, i32, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, ptr, i64, i64, ptr, i64, i64, i64, i64, i64, i64, i32, double, double, double, i64, i64, i64, i64, i64, i64, ptr, i32, ptr, i32, ptr, i32, ptr, i32, i32, i64, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, i64, i32, i32, i64, double, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i64, i32, [6 x [4 x double]], i32, i64, ptr, i32, ptr, ptr, double, double, double, ptr, ptr, ptr, double, double, i32, i32, i64, ptr, i32, ptr, ptr, ptr, i32, ptr, i32 }
%struct._generic_N_Vector = type { ptr, ptr, ptr }
%struct._generic_N_Vector_Ops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.CVLsMemRec = type { i32, i32, i32, ptr, ptr, i32, i32, double, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1

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

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

18:                                               ; preds = %3
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %18
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef null, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.3)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

22:                                               ; preds = %18
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %23, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = icmp eq ptr %28, null
  br i1 %29, label %37, label %30

30:                                               ; preds = %22
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %33, i32 0, i32 8
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %39

37:                                               ; preds = %30, %22
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %38, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.4)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

39:                                               ; preds = %30
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call i32 @SUNLinSolGetType(ptr noundef %40)
  store i32 %41, ptr %11, align 4, !tbaa !14
  %42 = load i32, ptr %11, align 4, !tbaa !14
  %43 = icmp ne i32 %42, 0
  %44 = zext i1 %43 to i32
  store i32 %44, ptr %12, align 4, !tbaa !14
  %45 = load i32, ptr %11, align 4, !tbaa !14
  %46 = icmp ne i32 %45, 1
  br i1 %46, label %47, label %50

47:                                               ; preds = %39
  %48 = load i32, ptr %11, align 4, !tbaa !14
  %49 = icmp ne i32 %48, 3
  br label %50

50:                                               ; preds = %47, %39
  %51 = phi i1 [ false, %39 ], [ %49, %47 ]
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %13, align 4, !tbaa !14
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.CVodeMemRec, ptr %53, i32 0, i32 55
  %55 = load ptr, ptr %54, align 8, !tbaa !16
  %56 = getelementptr inbounds %struct._generic_N_Vector, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !20
  %58 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %57, i32 0, i32 11
  %59 = load ptr, ptr %58, align 8, !tbaa !22
  %60 = icmp eq ptr %59, null
  br i1 %60, label %70, label %61

61:                                               ; preds = %50
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.CVodeMemRec, ptr %62, i32 0, i32 55
  %64 = load ptr, ptr %63, align 8, !tbaa !16
  %65 = getelementptr inbounds %struct._generic_N_Vector, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !20
  %67 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %66, i32 0, i32 20
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %72

70:                                               ; preds = %61, %50
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %71, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

72:                                               ; preds = %61
  %73 = load i32, ptr %11, align 4, !tbaa !14
  %74 = icmp eq i32 %73, 3
  br i1 %74, label %75, label %80

75:                                               ; preds = %72
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %80

78:                                               ; preds = %75
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %79, i32 noundef -3, ptr noundef @.str.6, ptr noundef @.str.1, ptr noundef @.str.7)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

80:                                               ; preds = %75, %72
  %81 = load i32, ptr %12, align 4, !tbaa !14
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %118

83:                                               ; preds = %80
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.CVodeMemRec, ptr %84, i32 0, i32 55
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  %87 = getelementptr inbounds %struct._generic_N_Vector, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !20
  %89 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %88, i32 0, i32 9
  %90 = load ptr, ptr %89, align 8, !tbaa !25
  %91 = icmp eq ptr %90, null
  br i1 %91, label %92, label %94

92:                                               ; preds = %83
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %93, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

94:                                               ; preds = %83
  %95 = load i32, ptr %13, align 4, !tbaa !14
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %109, label %97

97:                                               ; preds = %94
  %98 = load i32, ptr %11, align 4, !tbaa !14
  %99 = icmp ne i32 %98, 3
  br i1 %99, label %100, label %109

100:                                              ; preds = %97
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %101, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %103, i32 0, i32 2
  %105 = load ptr, ptr %104, align 8, !tbaa !26
  %106 = icmp eq ptr %105, null
  br i1 %106, label %107, label %109

107:                                              ; preds = %100
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %108, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.8)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

109:                                              ; preds = %100, %97, %94
  %110 = load i32, ptr %13, align 4, !tbaa !14
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %117

112:                                              ; preds = %109
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = icmp eq ptr %113, null
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %116, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.9)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

117:                                              ; preds = %112, %109
  br label %124

118:                                              ; preds = %80
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = icmp eq ptr %119, null
  br i1 %120, label %121, label %123

121:                                              ; preds = %118
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %122, i32 noundef -3, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.10)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

123:                                              ; preds = %118
  br label %124

124:                                              ; preds = %123, %117
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.CVodeMemRec, ptr %125, i32 0, i32 173
  %127 = load ptr, ptr %126, align 8, !tbaa !27
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %135

129:                                              ; preds = %124
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.CVodeMemRec, ptr %130, i32 0, i32 173
  %132 = load ptr, ptr %131, align 8, !tbaa !27
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = call i32 %132(ptr noundef %133)
  br label %135

135:                                              ; preds = %129, %124
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.CVodeMemRec, ptr %136, i32 0, i32 170
  store ptr @cvLsInitialize, ptr %137, align 8, !tbaa !28
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.CVodeMemRec, ptr %138, i32 0, i32 171
  store ptr @cvLsSetup, ptr %139, align 8, !tbaa !29
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.CVodeMemRec, ptr %140, i32 0, i32 172
  store ptr @cvLsSolve, ptr %141, align 8, !tbaa !30
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.CVodeMemRec, ptr %142, i32 0, i32 173
  store ptr @cvLsFree, ptr %143, align 8, !tbaa !27
  store ptr null, ptr %9, align 8, !tbaa !5
  %144 = call noalias ptr @malloc(i64 noundef 296) #7
  store ptr %144, ptr %9, align 8, !tbaa !5
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %149

147:                                              ; preds = %135
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %148, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.11)
  store i32 -4, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

149:                                              ; preds = %135
  %150 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %150, i8 0, i64 296, i1 false)
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.CVLsMemRec, ptr %152, i32 0, i32 9
  store ptr %151, ptr %153, align 8, !tbaa !31
  %154 = load i32, ptr %12, align 4, !tbaa !14
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.CVLsMemRec, ptr %155, i32 0, i32 0
  store i32 %154, ptr %156, align 8, !tbaa !33
  %157 = load i32, ptr %13, align 4, !tbaa !14
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.CVLsMemRec, ptr %158, i32 0, i32 1
  store i32 %157, ptr %159, align 4, !tbaa !34
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %170

162:                                              ; preds = %149
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.CVLsMemRec, ptr %163, i32 0, i32 2
  store i32 1, ptr %164, align 8, !tbaa !35
  %165 = load ptr, ptr %9, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.CVLsMemRec, ptr %165, i32 0, i32 3
  store ptr @cvLsDQJac, ptr %166, align 8, !tbaa !36
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.CVLsMemRec, ptr %168, i32 0, i32 4
  store ptr %167, ptr %169, align 8, !tbaa !37
  br label %177

170:                                              ; preds = %149
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.CVLsMemRec, ptr %171, i32 0, i32 2
  store i32 0, ptr %172, align 8, !tbaa !35
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.CVLsMemRec, ptr %173, i32 0, i32 3
  store ptr null, ptr %174, align 8, !tbaa !36
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.CVLsMemRec, ptr %175, i32 0, i32 4
  store ptr null, ptr %176, align 8, !tbaa !37
  br label %177

177:                                              ; preds = %170, %162
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.CVLsMemRec, ptr %178, i32 0, i32 30
  store i32 1, ptr %179, align 8, !tbaa !38
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.CVLsMemRec, ptr %180, i32 0, i32 31
  store ptr null, ptr %181, align 8, !tbaa !39
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.CVLsMemRec, ptr %182, i32 0, i32 32
  store ptr @cvLsDQJtimes, ptr %183, align 8, !tbaa !40
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.CVodeMemRec, ptr %184, i32 0, i32 2
  %186 = load ptr, ptr %185, align 8, !tbaa !41
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.CVLsMemRec, ptr %187, i32 0, i32 33
  store ptr %186, ptr %188, align 8, !tbaa !42
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.CVLsMemRec, ptr %190, i32 0, i32 34
  store ptr %189, ptr %191, align 8, !tbaa !43
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.CVLsMemRec, ptr %192, i32 0, i32 35
  store i32 0, ptr %193, align 8, !tbaa !44
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.CVLsMemRec, ptr %194, i32 0, i32 36
  store ptr @cvLsLinSys, ptr %195, align 8, !tbaa !45
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.CVLsMemRec, ptr %197, i32 0, i32 37
  store ptr %196, ptr %198, align 8, !tbaa !46
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.CVLsMemRec, ptr %199, i32 0, i32 26
  store ptr null, ptr %200, align 8, !tbaa !47
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.CVLsMemRec, ptr %201, i32 0, i32 27
  store ptr null, ptr %202, align 8, !tbaa !48
  %203 = load ptr, ptr %9, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.CVLsMemRec, ptr %203, i32 0, i32 28
  store ptr null, ptr %204, align 8, !tbaa !49
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.CVodeMemRec, ptr %205, i32 0, i32 3
  %207 = load ptr, ptr %206, align 8, !tbaa !50
  %208 = load ptr, ptr %9, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.CVLsMemRec, ptr %208, i32 0, i32 29
  store ptr %207, ptr %209, align 8, !tbaa !51
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = call i32 @cvLsInitializeCounters(ptr noundef %210)
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.CVLsMemRec, ptr %212, i32 0, i32 16
  store i64 51, ptr %213, align 8, !tbaa !52
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.CVLsMemRec, ptr %214, i32 0, i32 5
  store i32 1, ptr %215, align 8, !tbaa !53
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.CVLsMemRec, ptr %216, i32 0, i32 7
  store double 5.000000e-02, ptr %217, align 8, !tbaa !54
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.CVLsMemRec, ptr %218, i32 0, i32 38
  store i32 0, ptr %219, align 8, !tbaa !55
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %220, i32 0, i32 1
  %222 = load ptr, ptr %221, align 8, !tbaa !9
  %223 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %222, i32 0, i32 2
  %224 = load ptr, ptr %223, align 8, !tbaa !26
  %225 = icmp ne ptr %224, null
  br i1 %225, label %226, label %236

226:                                              ; preds = %177
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  %229 = call i32 @SUNLinSolSetATimes(ptr noundef %227, ptr noundef %228, ptr noundef @cvLsATimes)
  store i32 %229, ptr %10, align 4, !tbaa !14
  %230 = load i32, ptr %10, align 4, !tbaa !14
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %235

232:                                              ; preds = %226
  %233 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %233, i32 noundef -9, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.12)
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %234) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  store i32 -9, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

235:                                              ; preds = %226
  br label %236

236:                                              ; preds = %235, %177
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %237, i32 0, i32 1
  %239 = load ptr, ptr %238, align 8, !tbaa !9
  %240 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %239, i32 0, i32 3
  %241 = load ptr, ptr %240, align 8, !tbaa !56
  %242 = icmp ne ptr %241, null
  br i1 %242, label %243, label %253

243:                                              ; preds = %236
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = call i32 @SUNLinSolSetPreconditioner(ptr noundef %244, ptr noundef %245, ptr noundef null, ptr noundef null)
  store i32 %246, ptr %10, align 4, !tbaa !14
  %247 = load i32, ptr %10, align 4, !tbaa !14
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %252

249:                                              ; preds = %243
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %250, i32 noundef -9, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.13)
  %251 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %251) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  store i32 -9, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

252:                                              ; preds = %243
  br label %253

253:                                              ; preds = %252, %236
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = icmp ne ptr %254, null
  br i1 %255, label %256, label %262

256:                                              ; preds = %253
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.CVLsMemRec, ptr %258, i32 0, i32 10
  store ptr %257, ptr %259, align 8, !tbaa !57
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.CVLsMemRec, ptr %260, i32 0, i32 11
  store ptr null, ptr %261, align 8, !tbaa !58
  br label %262

262:                                              ; preds = %256, %253
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.CVodeMemRec, ptr %263, i32 0, i32 55
  %265 = load ptr, ptr %264, align 8, !tbaa !16
  %266 = call ptr @N_VClone(ptr noundef %265)
  %267 = load ptr, ptr %9, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.CVLsMemRec, ptr %267, i32 0, i32 12
  store ptr %266, ptr %268, align 8, !tbaa !59
  %269 = load ptr, ptr %9, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.CVLsMemRec, ptr %269, i32 0, i32 12
  %271 = load ptr, ptr %270, align 8, !tbaa !59
  %272 = icmp eq ptr %271, null
  br i1 %272, label %273, label %276

273:                                              ; preds = %262
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %274, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.11)
  %275 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %275) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  store i32 -4, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

276:                                              ; preds = %262
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.CVodeMemRec, ptr %277, i32 0, i32 55
  %279 = load ptr, ptr %278, align 8, !tbaa !16
  %280 = call ptr @N_VClone(ptr noundef %279)
  %281 = load ptr, ptr %9, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.CVLsMemRec, ptr %281, i32 0, i32 13
  store ptr %280, ptr %282, align 8, !tbaa !60
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.CVLsMemRec, ptr %283, i32 0, i32 13
  %285 = load ptr, ptr %284, align 8, !tbaa !60
  %286 = icmp eq ptr %285, null
  br i1 %286, label %287, label %293

287:                                              ; preds = %276
  %288 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %288, i32 noundef -4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.11)
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.CVLsMemRec, ptr %289, i32 0, i32 12
  %291 = load ptr, ptr %290, align 8, !tbaa !59
  call void @N_VDestroy(ptr noundef %291)
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %292) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  store i32 -4, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

293:                                              ; preds = %276
  %294 = load i32, ptr %12, align 4, !tbaa !14
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %315

296:                                              ; preds = %293
  %297 = load ptr, ptr %9, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.CVLsMemRec, ptr %297, i32 0, i32 12
  %299 = load ptr, ptr %298, align 8, !tbaa !59
  %300 = call i64 @N_VGetLength(ptr noundef %299)
  %301 = sitofp i64 %300 to double
  %302 = fcmp ole double %301, 0.000000e+00
  br i1 %302, label %303, label %304

303:                                              ; preds = %296
  br label %311

304:                                              ; preds = %296
  %305 = load ptr, ptr %9, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.CVLsMemRec, ptr %305, i32 0, i32 12
  %307 = load ptr, ptr %306, align 8, !tbaa !59
  %308 = call i64 @N_VGetLength(ptr noundef %307)
  %309 = sitofp i64 %308 to double
  %310 = call double @sqrt(double noundef %309) #6
  br label %311

311:                                              ; preds = %304, %303
  %312 = phi double [ 0.000000e+00, %303 ], [ %310, %304 ]
  %313 = load ptr, ptr %9, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.CVLsMemRec, ptr %313, i32 0, i32 8
  store double %312, ptr %314, align 8, !tbaa !61
  br label %315

315:                                              ; preds = %311, %293
  %316 = load i32, ptr %13, align 4, !tbaa !14
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %326

318:                                              ; preds = %315
  %319 = load ptr, ptr %8, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.CVodeMemRec, ptr %319, i32 0, i32 4
  %321 = load i32, ptr %320, align 8, !tbaa !62
  %322 = icmp eq i32 %321, 2
  br i1 %322, label %323, label %326

323:                                              ; preds = %318
  %324 = load ptr, ptr %9, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.CVLsMemRec, ptr %324, i32 0, i32 6
  store i32 1, ptr %325, align 4, !tbaa !63
  br label %329

326:                                              ; preds = %318, %315
  %327 = load ptr, ptr %9, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.CVLsMemRec, ptr %327, i32 0, i32 6
  store i32 0, ptr %328, align 4, !tbaa !63
  br label %329

329:                                              ; preds = %326, %323
  %330 = load ptr, ptr %9, align 8, !tbaa !5
  %331 = load ptr, ptr %8, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.CVodeMemRec, ptr %331, i32 0, i32 174
  store ptr %330, ptr %332, align 8, !tbaa !64
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %333

333:                                              ; preds = %329, %287, %273, %249, %232, %147, %121, %115, %107, %92, %78, %70, %37, %21, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %334 = load i32, ptr %4, align 4
  ret i32 %334
}

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

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

declare i32 @SUNLinSolGetType(ptr noundef) #2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @N_VClone(ptr noundef) #2

declare void @N_VDestroy(ptr noundef) #2

declare i64 @N_VGetLength(ptr noundef) #2

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

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


; 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.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -9, 1) i32 @CVodeSetLinearSolver(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %5, label %6

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

6:                                                ; preds = %3
  %7 = icmp eq ptr %1, null
  br i1 %7, label %8, label %9

8:                                                ; preds = %6
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef null, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #6
  br label %148

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

14:                                               ; preds = %9
  %15 = getelementptr inbounds i8, ptr %11, i64 64
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %14, %9
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #6
  br label %148

19:                                               ; preds = %14
  %20 = tail call i32 @SUNLinSolGetType(ptr noundef nonnull %1) #6
  %21 = icmp ne i32 %20, 0
  %22 = zext i1 %21 to i32
  %23 = icmp ne i32 %20, 1
  %24 = icmp ne i32 %20, 3
  %25 = and i1 %23, %24
  %26 = zext i1 %25 to i32
  %27 = getelementptr inbounds i8, ptr %0, i64 464
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %31 = getelementptr inbounds i8, ptr %30, i64 88
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = icmp eq ptr %32, null
  br i1 %33, label %38, label %34

34:                                               ; preds = %19
  %35 = getelementptr inbounds i8, ptr %30, i64 160
  %36 = load ptr, ptr %35, align 8, !tbaa !22
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %34, %19
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #6
  br label %148

39:                                               ; preds = %34
  %40 = icmp eq i32 %20, 3
  %41 = icmp ne ptr %2, null
  %or.cond = and i1 %41, %40
  br i1 %or.cond, label %42, label %43

42:                                               ; preds = %39
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.7) #6
  br label %148

43:                                               ; preds = %39
  br i1 %21, label %44, label %59

44:                                               ; preds = %43
  %45 = getelementptr inbounds i8, ptr %30, i64 72
  %46 = load ptr, ptr %45, align 8, !tbaa !23
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %44
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #6
  br label %148

49:                                               ; preds = %44
  %or.cond3 = xor i1 %24, %25
  br i1 %or.cond3, label %50, label %56

50:                                               ; preds = %49
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !24
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %50
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.8) #6
  br label %148

56:                                               ; preds = %50, %49
  %57 = icmp eq ptr %2, null
  br i1 %57, label %switch.early.test, label %62

switch.early.test:                                ; preds = %56
  switch i32 %20, label %58 [
    i32 3, label %62
    i32 1, label %62
  ]

58:                                               ; preds = %switch.early.test
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.9) #6
  br label %148

59:                                               ; preds = %43
  %60 = icmp eq ptr %2, null
  br i1 %60, label %61, label %62

61:                                               ; preds = %59
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #6
  br label %148

62:                                               ; preds = %switch.early.test, %switch.early.test, %56, %59
  %63 = getelementptr inbounds i8, ptr %0, i64 1896
  %64 = load ptr, ptr %63, align 8, !tbaa !25
  %.not = icmp eq ptr %64, null
  br i1 %.not, label %67, label %65

65:                                               ; preds = %62
  %66 = tail call i32 %64(ptr noundef nonnull %0) #6
  br label %67

67:                                               ; preds = %65, %62
  %68 = getelementptr inbounds i8, ptr %0, i64 1872
  store ptr @cvLsInitialize, ptr %68, align 8, !tbaa !26
  %69 = getelementptr inbounds i8, ptr %0, i64 1880
  store ptr @cvLsSetup, ptr %69, align 8, !tbaa !27
  %70 = getelementptr inbounds i8, ptr %0, i64 1888
  store ptr @cvLsSolve, ptr %70, align 8, !tbaa !28
  store ptr @cvLsFree, ptr %63, align 8, !tbaa !25
  %calloc = tail call dereferenceable_or_null(296) ptr @calloc(i64 1, i64 296)
  %71 = icmp eq ptr %calloc, null
  br i1 %71, label %72, label %73

72:                                               ; preds = %67
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #6
  br label %148

73:                                               ; preds = %67
  %74 = getelementptr inbounds i8, ptr %calloc, i64 56
  store ptr %1, ptr %74, align 8, !tbaa !29
  store i32 %22, ptr %calloc, align 8, !tbaa !31
  %75 = getelementptr inbounds i8, ptr %calloc, i64 4
  store i32 %26, ptr %75, align 4, !tbaa !32
  %.sink125 = zext i1 %41 to i32
  %.sink124 = select i1 %41, ptr @cvLsDQJac, ptr null
  %.sink = select i1 %41, ptr %0, ptr null
  %76 = getelementptr inbounds i8, ptr %calloc, i64 8
  store i32 %.sink125, ptr %76, align 8
  %77 = getelementptr inbounds i8, ptr %calloc, i64 16
  store ptr %.sink124, ptr %77, align 8
  %78 = getelementptr inbounds i8, ptr %calloc, i64 24
  store ptr %.sink, ptr %78, align 8
  %79 = getelementptr inbounds i8, ptr %calloc, i64 224
  store i32 1, ptr %79, align 8, !tbaa !33
  %80 = getelementptr inbounds i8, ptr %calloc, i64 232
  store ptr null, ptr %80, align 8, !tbaa !34
  %81 = getelementptr inbounds i8, ptr %calloc, i64 240
  store ptr @cvLsDQJtimes, ptr %81, align 8, !tbaa !35
  %82 = getelementptr inbounds i8, ptr %0, i64 16
  %83 = load ptr, ptr %82, align 8, !tbaa !36
  %84 = getelementptr inbounds i8, ptr %calloc, i64 248
  store ptr %83, ptr %84, align 8, !tbaa !37
  %85 = getelementptr inbounds i8, ptr %calloc, i64 256
  store ptr %0, ptr %85, align 8, !tbaa !38
  %86 = getelementptr inbounds i8, ptr %calloc, i64 264
  store i32 0, ptr %86, align 8, !tbaa !39
  %87 = getelementptr inbounds i8, ptr %calloc, i64 272
  store ptr @cvLsLinSys, ptr %87, align 8, !tbaa !40
  %88 = getelementptr inbounds i8, ptr %calloc, i64 280
  store ptr %0, ptr %88, align 8, !tbaa !41
  %89 = getelementptr inbounds i8, ptr %calloc, i64 192
  %90 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %89, i8 0, i64 24, i1 false)
  %91 = load ptr, ptr %90, align 8, !tbaa !42
  %92 = getelementptr inbounds i8, ptr %calloc, i64 216
  store ptr %91, ptr %92, align 8, !tbaa !43
  %93 = tail call i32 @cvLsInitializeCounters(ptr noundef nonnull %calloc)
  %94 = getelementptr inbounds i8, ptr %calloc, i64 112
  store i64 51, ptr %94, align 8, !tbaa !44
  %95 = getelementptr inbounds i8, ptr %calloc, i64 32
  store i32 1, ptr %95, align 8, !tbaa !45
  %96 = getelementptr inbounds i8, ptr %calloc, i64 40
  store double 5.000000e-02, ptr %96, align 8, !tbaa !46
  %97 = getelementptr inbounds i8, ptr %calloc, i64 288
  store i32 0, ptr %97, align 8, !tbaa !47
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  %100 = load ptr, ptr %99, align 8, !tbaa !24
  %.not120 = icmp eq ptr %100, null
  br i1 %.not120, label %104, label %101

101:                                              ; preds = %73
  %102 = tail call i32 @SUNLinSolSetATimes(ptr noundef nonnull %1, ptr noundef nonnull %0, ptr noundef nonnull @cvLsATimes) #6
  %.not121 = icmp eq i32 %102, 0
  br i1 %.not121, label %._crit_edge, label %103

._crit_edge:                                      ; preds = %101
  %.pre = load ptr, ptr %10, align 8, !tbaa !5
  br label %104

103:                                              ; preds = %101
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.12) #6
  tail call void @free(ptr noundef nonnull %calloc) #6
  br label %148

104:                                              ; preds = %._crit_edge, %73
  %105 = phi ptr [ %.pre, %._crit_edge ], [ %98, %73 ]
  %106 = getelementptr inbounds i8, ptr %105, i64 24
  %107 = load ptr, ptr %106, align 8, !tbaa !48
  %.not122 = icmp eq ptr %107, null
  br i1 %.not122, label %111, label %108

108:                                              ; preds = %104
  %109 = tail call i32 @SUNLinSolSetPreconditioner(ptr noundef nonnull %1, ptr noundef nonnull %0, ptr noundef null, ptr noundef null) #6
  %.not123 = icmp eq i32 %109, 0
  br i1 %.not123, label %111, label %110

110:                                              ; preds = %108
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.13) #6
  tail call void @free(ptr noundef nonnull %calloc) #6
  br label %148

111:                                              ; preds = %108, %104
  br i1 %41, label %112, label %115

112:                                              ; preds = %111
  %113 = getelementptr inbounds i8, ptr %calloc, i64 64
  store ptr %2, ptr %113, align 8, !tbaa !49
  %114 = getelementptr inbounds i8, ptr %calloc, i64 72
  store ptr null, ptr %114, align 8, !tbaa !50
  br label %115

115:                                              ; preds = %112, %111
  %116 = load ptr, ptr %27, align 8, !tbaa !13
  %117 = tail call ptr @N_VClone(ptr noundef %116) #6
  %118 = getelementptr inbounds i8, ptr %calloc, i64 80
  store ptr %117, ptr %118, align 8, !tbaa !51
  %119 = icmp eq ptr %117, null
  br i1 %119, label %120, label %121

120:                                              ; preds = %115
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #6
  tail call void @free(ptr noundef nonnull %calloc) #6
  br label %148

121:                                              ; preds = %115
  %122 = load ptr, ptr %27, align 8, !tbaa !13
  %123 = tail call ptr @N_VClone(ptr noundef %122) #6
  %124 = getelementptr inbounds i8, ptr %calloc, i64 88
  store ptr %123, ptr %124, align 8, !tbaa !52
  %125 = icmp eq ptr %123, null
  br i1 %125, label %126, label %128

126:                                              ; preds = %121
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -4, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #6
  %127 = load ptr, ptr %118, align 8, !tbaa !51
  tail call void @N_VDestroy(ptr noundef %127) #6
  tail call void @free(ptr noundef nonnull %calloc) #6
  br label %148

128:                                              ; preds = %121
  br i1 %21, label %129, label %.thread

129:                                              ; preds = %128
  %130 = load ptr, ptr %118, align 8, !tbaa !51
  %131 = tail call i64 @N_VGetLength(ptr noundef %130) #6
  %132 = icmp slt i64 %131, 1
  br i1 %132, label %138, label %133

133:                                              ; preds = %129
  %134 = load ptr, ptr %118, align 8, !tbaa !51
  %135 = tail call i64 @N_VGetLength(ptr noundef %134) #6
  %136 = sitofp i64 %135 to double
  %137 = tail call double @sqrt(double noundef %136) #6
  br label %138

138:                                              ; preds = %133, %129
  %139 = phi double [ %137, %133 ], [ 0.000000e+00, %129 ]
  %140 = getelementptr inbounds i8, ptr %calloc, i64 48
  store double %139, ptr %140, align 8, !tbaa !53
  switch i32 %20, label %.thread [
    i32 3, label %144
    i32 1, label %144
  ]

.thread:                                          ; preds = %128, %138
  %141 = getelementptr inbounds i8, ptr %0, i64 32
  %142 = load i32, ptr %141, align 8, !tbaa !54
  %143 = icmp eq i32 %142, 2
  br i1 %143, label %145, label %144

144:                                              ; preds = %138, %138, %.thread
  br label %145

145:                                              ; preds = %.thread, %144
  %.sink126 = phi i32 [ 0, %144 ], [ 1, %.thread ]
  %146 = getelementptr inbounds i8, ptr %calloc, i64 36
  store i32 %.sink126, ptr %146, align 4, !tbaa !55
  %147 = getelementptr inbounds i8, ptr %0, i64 1904
  store ptr %calloc, ptr %147, align 8, !tbaa !56
  br label %148

148:                                              ; preds = %145, %126, %120, %110, %103, %72, %61, %58, %55, %48, %42, %38, %18, %8, %5
  %.0 = phi i32 [ -1, %5 ], [ -3, %8 ], [ -3, %18 ], [ -3, %38 ], [ -3, %42 ], [ -3, %48 ], [ -3, %55 ], [ -3, %58 ], [ -4, %72 ], [ -9, %103 ], [ -9, %110 ], [ -4, %120 ], [ -4, %126 ], [ 0, %145 ], [ -3, %61 ]
  ret i32 %.0
}

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

declare i32 @SUNLinSolGetType(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

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

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

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

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

declare ptr @N_VClone(ptr noundef) local_unnamed_addr #1

declare void @N_VDestroy(ptr noundef) local_unnamed_addr #1

declare i64 @N_VGetLength(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #5

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


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