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

; 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_SUNNonlinearSolver = type { ptr, ptr, ptr }
%struct._generic_SUNNonlinearSolver_Ops = type { 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._N_VectorContent_SensWrapper = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1

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

12:                                               ; preds = %2
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef null, i32 noundef -21, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
  store i32 -21, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

13:                                               ; preds = %2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %14, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %13
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef null, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.3)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

18:                                               ; preds = %13
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._generic_SUNNonlinearSolver, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds %struct._generic_SUNNonlinearSolver_Ops, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = icmp eq ptr %23, null
  br i1 %24, label %39, label %25

25:                                               ; preds = %18
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._generic_SUNNonlinearSolver, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct._generic_SUNNonlinearSolver_Ops, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = icmp eq ptr %30, null
  br i1 %31, label %39, label %32

32:                                               ; preds = %25
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._generic_SUNNonlinearSolver, ptr %33, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds %struct._generic_SUNNonlinearSolver_Ops, ptr %35, i32 0, i32 5
  %37 = load ptr, ptr %36, align 8, !tbaa !14
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %41

39:                                               ; preds = %32, %25, %18
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %40, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.4)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

41:                                               ; preds = %32
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.CVodeMemRec, ptr %42, i32 0, i32 22
  %44 = load i32, ptr %43, align 4, !tbaa !15
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %48, label %46

46:                                               ; preds = %41
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %47, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.5)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

48:                                               ; preds = %41
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.CVodeMemRec, ptr %49, i32 0, i32 24
  %51 = load i32, ptr %50, align 4, !tbaa !20
  %52 = icmp ne i32 %51, 2
  br i1 %52, label %53, label %55

53:                                               ; preds = %48
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %54, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.6)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

55:                                               ; preds = %48
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.CVodeMemRec, ptr %56, i32 0, i32 153
  %58 = load ptr, ptr %57, align 8, !tbaa !21
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %70

60:                                               ; preds = %55
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.CVodeMemRec, ptr %61, i32 0, i32 154
  %63 = load i32, ptr %62, align 8, !tbaa !22
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %60
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.CVodeMemRec, ptr %66, i32 0, i32 153
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = call i32 @SUNNonlinSolFree(ptr noundef %68)
  store i32 %69, ptr %7, align 4, !tbaa !23
  br label %70

70:                                               ; preds = %65, %60, %55
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.CVodeMemRec, ptr %72, i32 0, i32 153
  store ptr %71, ptr %73, align 8, !tbaa !21
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.CVodeMemRec, ptr %74, i32 0, i32 154
  store i32 0, ptr %75, align 8, !tbaa !22
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = call i32 @SUNNonlinSolGetType(ptr noundef %76)
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %84

79:                                               ; preds = %70
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.CVodeMemRec, ptr %80, i32 0, i32 153
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  %83 = call i32 @SUNNonlinSolSetSysFn(ptr noundef %82, ptr noundef @cvNlsResidualSensStg)
  store i32 %83, ptr %7, align 4, !tbaa !23
  br label %96

84:                                               ; preds = %70
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = call i32 @SUNNonlinSolGetType(ptr noundef %85)
  %87 = icmp eq i32 %86, 1
  br i1 %87, label %88, label %93

88:                                               ; preds = %84
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.CVodeMemRec, ptr %89, i32 0, i32 153
  %91 = load ptr, ptr %90, align 8, !tbaa !21
  %92 = call i32 @SUNNonlinSolSetSysFn(ptr noundef %91, ptr noundef @cvNlsFPFunctionSensStg)
  store i32 %92, ptr %7, align 4, !tbaa !23
  br label %95

93:                                               ; preds = %84
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %94, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.7)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

95:                                               ; preds = %88
  br label %96

96:                                               ; preds = %95, %79
  %97 = load i32, ptr %7, align 4, !tbaa !23
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %96
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %100, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.8)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

101:                                              ; preds = %96
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.CVodeMemRec, ptr %102, i32 0, i32 153
  %104 = load ptr, ptr %103, align 8, !tbaa !21
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = call i32 @SUNNonlinSolSetConvTestFn(ptr noundef %104, ptr noundef @cvNlsConvTestSensStg, ptr noundef %105)
  store i32 %106, ptr %7, align 4, !tbaa !23
  %107 = load i32, ptr %7, align 4, !tbaa !23
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %101
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %110, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.9)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

111:                                              ; preds = %101
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.CVodeMemRec, ptr %112, i32 0, i32 153
  %114 = load ptr, ptr %113, align 8, !tbaa !21
  %115 = call i32 @SUNNonlinSolSetMaxIters(ptr noundef %114, i32 noundef 3)
  store i32 %115, ptr %7, align 4, !tbaa !23
  %116 = load i32, ptr %7, align 4, !tbaa !23
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %120

118:                                              ; preds = %111
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %119, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.10)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

120:                                              ; preds = %111
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.CVodeMemRec, ptr %121, i32 0, i32 169
  %123 = load i32, ptr %122, align 4, !tbaa !24
  %124 = icmp eq i32 %123, 0
  br i1 %124, label %125, label %185

125:                                              ; preds = %120
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.CVodeMemRec, ptr %126, i32 0, i32 23
  %128 = load i32, ptr %127, align 8, !tbaa !25
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.CVodeMemRec, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !26
  %132 = call ptr @N_VNewEmpty_SensWrapper(i32 noundef %128, ptr noundef %131)
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.CVodeMemRec, ptr %133, i32 0, i32 165
  store ptr %132, ptr %134, align 8, !tbaa !27
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.CVodeMemRec, ptr %135, i32 0, i32 165
  %137 = load ptr, ptr %136, align 8, !tbaa !27
  %138 = icmp eq ptr %137, null
  br i1 %138, label %139, label %141

139:                                              ; preds = %125
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %140, i32 noundef -20, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.11)
  store i32 -20, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

141:                                              ; preds = %125
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.CVodeMemRec, ptr %142, i32 0, i32 23
  %144 = load i32, ptr %143, align 8, !tbaa !25
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.CVodeMemRec, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !26
  %148 = call ptr @N_VNewEmpty_SensWrapper(i32 noundef %144, ptr noundef %147)
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.CVodeMemRec, ptr %149, i32 0, i32 166
  store ptr %148, ptr %150, align 8, !tbaa !28
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.CVodeMemRec, ptr %151, i32 0, i32 166
  %153 = load ptr, ptr %152, align 8, !tbaa !28
  %154 = icmp eq ptr %153, null
  br i1 %154, label %155, label %160

155:                                              ; preds = %141
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.CVodeMemRec, ptr %156, i32 0, i32 165
  %158 = load ptr, ptr %157, align 8, !tbaa !27
  call void @N_VDestroy(ptr noundef %158)
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %159, i32 noundef -20, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.11)
  store i32 -20, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

160:                                              ; preds = %141
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.CVodeMemRec, ptr %161, i32 0, i32 23
  %163 = load i32, ptr %162, align 8, !tbaa !25
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.CVodeMemRec, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !26
  %167 = call ptr @N_VNewEmpty_SensWrapper(i32 noundef %163, ptr noundef %166)
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.CVodeMemRec, ptr %168, i32 0, i32 167
  store ptr %167, ptr %169, align 8, !tbaa !29
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.CVodeMemRec, ptr %170, i32 0, i32 167
  %172 = load ptr, ptr %171, align 8, !tbaa !29
  %173 = icmp eq ptr %172, null
  br i1 %173, label %174, label %182

174:                                              ; preds = %160
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.CVodeMemRec, ptr %175, i32 0, i32 165
  %177 = load ptr, ptr %176, align 8, !tbaa !27
  call void @N_VDestroy(ptr noundef %177)
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.CVodeMemRec, ptr %178, i32 0, i32 166
  %180 = load ptr, ptr %179, align 8, !tbaa !28
  call void @N_VDestroy(ptr noundef %180)
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %181, i32 noundef -20, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.11)
  store i32 -20, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

182:                                              ; preds = %160
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.CVodeMemRec, ptr %183, i32 0, i32 169
  store i32 1, ptr %184, align 4, !tbaa !24
  br label %185

185:                                              ; preds = %182, %120
  store i32 0, ptr %8, align 4, !tbaa !23
  br label %186

186:                                              ; preds = %245, %185
  %187 = load i32, ptr %8, align 4, !tbaa !23
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.CVodeMemRec, ptr %188, i32 0, i32 23
  %190 = load i32, ptr %189, align 8, !tbaa !25
  %191 = icmp slt i32 %187, %190
  br i1 %191, label %192, label %248

192:                                              ; preds = %186
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.CVodeMemRec, ptr %193, i32 0, i32 66
  %195 = getelementptr inbounds [13 x ptr], ptr %194, i64 0, i64 0
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = load i32, ptr %8, align 4, !tbaa !23
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds ptr, ptr %196, i64 %198
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.CVodeMemRec, ptr %201, i32 0, i32 165
  %203 = load ptr, ptr %202, align 8, !tbaa !27
  %204 = getelementptr inbounds %struct._generic_N_Vector, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !30
  %206 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %205, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8, !tbaa !32
  %208 = load i32, ptr %8, align 4, !tbaa !23
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds ptr, ptr %207, i64 %209
  store ptr %200, ptr %210, align 8, !tbaa !5
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.CVodeMemRec, ptr %211, i32 0, i32 69
  %213 = load ptr, ptr %212, align 8, !tbaa !34
  %214 = load i32, ptr %8, align 4, !tbaa !23
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds ptr, ptr %213, i64 %215
  %217 = load ptr, ptr %216, align 8, !tbaa !5
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.CVodeMemRec, ptr %218, i32 0, i32 166
  %220 = load ptr, ptr %219, align 8, !tbaa !28
  %221 = getelementptr inbounds %struct._generic_N_Vector, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !30
  %223 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8, !tbaa !32
  %225 = load i32, ptr %8, align 4, !tbaa !23
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds ptr, ptr %224, i64 %226
  store ptr %217, ptr %227, align 8, !tbaa !5
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.CVodeMemRec, ptr %228, i32 0, i32 67
  %230 = load ptr, ptr %229, align 8, !tbaa !35
  %231 = load i32, ptr %8, align 4, !tbaa !23
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds ptr, ptr %230, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.CVodeMemRec, ptr %235, i32 0, i32 167
  %237 = load ptr, ptr %236, align 8, !tbaa !29
  %238 = getelementptr inbounds %struct._generic_N_Vector, ptr %237, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8, !tbaa !30
  %240 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8, !tbaa !32
  %242 = load i32, ptr %8, align 4, !tbaa !23
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds ptr, ptr %241, i64 %243
  store ptr %234, ptr %244, align 8, !tbaa !5
  br label %245

245:                                              ; preds = %192
  %246 = load i32, ptr %8, align 4, !tbaa !23
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %8, align 4, !tbaa !23
  br label %186, !llvm.loop !36

248:                                              ; preds = %186
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.CVodeMemRec, ptr %249, i32 0, i32 108
  store i32 0, ptr %250, align 8, !tbaa !38
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %251

251:                                              ; preds = %248, %174, %155, %139, %118, %109, %99, %93, %53, %46, %39, %17, %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %252 = load i32, ptr %3, align 4
  ret i32 %252
}

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

declare i32 @SUNNonlinSolGetType(ptr noundef) #2

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

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

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

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

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

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

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

declare void @N_VDestroy(ptr noundef) #2

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

!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_SUNNonlinearSolver", !6, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!12, !6, i64 0}
!12 = !{!"_generic_SUNNonlinearSolver_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}
!13 = !{!12, !6, i64 24}
!14 = !{!12, !6, i64 40}
!15 = !{!16, !18, i64 140}
!16 = !{!"CVodeMemRec", !6, i64 0, !17, i64 8, !6, i64 16, !6, i64 24, !18, i64 32, !18, i64 36, !17, i64 40, !17, i64 48, !6, i64 56, !18, i64 64, !18, i64 68, !6, i64 72, !6, i64 80, !18, i64 88, !18, i64 92, !6, i64 96, !18, i64 104, !18, i64 108, !17, i64 112, !17, i64 120, !6, i64 128, !18, i64 136, !18, i64 140, !18, i64 144, !18, i64 148, !6, i64 152, !6, i64 160, !6, i64 168, !18, i64 176, !18, i64 180, !6, i64 184, !6, i64 192, !6, i64 200, !18, i64 208, !17, i64 216, !18, i64 224, !18, i64 228, !17, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !18, i64 264, !6, i64 272, !6, i64 280, !18, i64 288, !18, i64 292, !18, i64 296, !17, 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, !18, i64 792, !7, i64 800, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !18, i64 944, !17, i64 952, !18, i64 960, !18, i64 964, !18, i64 968, !18, i64 972, !18, i64 976, !17, i64 984, !17, i64 992, !17, i64 1000, !17, i64 1008, !17, i64 1016, !17, i64 1024, !17, i64 1032, !17, i64 1040, !7, i64 1048, !7, i64 1160, !7, i64 1208, !17, i64 1312, !17, i64 1320, !17, i64 1328, !17, i64 1336, !17, i64 1344, !17, i64 1352, !17, i64 1360, !17, i64 1368, !18, i64 1376, !17, i64 1384, !17, i64 1392, !18, i64 1400, !17, i64 1408, !17, i64 1416, !6, i64 1424, !18, i64 1432, !19, i64 1440, !18, i64 1448, !18, i64 1452, !18, i64 1456, !17, i64 1464, !17, i64 1472, !17, 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, !18, i64 1640, !17, i64 1648, !17, i64 1656, !17, i64 1664, !19, i64 1672, !19, i64 1680, !19, i64 1688, !19, i64 1696, !19, i64 1704, !19, i64 1712, !6, i64 1720, !18, i64 1728, !6, i64 1736, !18, i64 1744, !6, i64 1752, !18, i64 1760, !6, i64 1768, !18, i64 1776, !18, i64 1780, !19, i64 1784, !18, i64 1792, !6, i64 1800, !18, i64 1808, !6, i64 1816, !6, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !18, i64 1864, !18, i64 1868, !6, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !19, i64 1912, !18, i64 1920, !18, i64 1924, !19, i64 1928, !17, i64 1936, !17, i64 1944, !17, i64 1952, !18, i64 1960, !18, i64 1964, !17, i64 1968, !18, i64 1976, !18, i64 1980, !18, i64 1984, !18, i64 1988, !18, i64 1992, !18, i64 1996, !18, i64 2000, !18, i64 2004, !18, i64 2008, !18, i64 2012, !18, i64 2016, !18, i64 2020, !18, i64 2024, !18, i64 2028, !18, i64 2032, !18, i64 2036, !6, i64 2040, !6, i64 2048, !6, i64 2056, !6, i64 2064, !19, i64 2072, !18, i64 2080, !7, i64 2088, !18, i64 2280, !19, i64 2288, !6, i64 2296, !18, i64 2304, !6, i64 2312, !6, i64 2320, !17, i64 2328, !17, i64 2336, !17, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !17, i64 2376, !17, i64 2384, !18, i64 2392, !18, i64 2396, !19, i64 2400, !6, i64 2408, !18, i64 2416, !6, i64 2424, !6, i64 2432, !6, i64 2440, !18, i64 2448, !6, i64 2456, !18, i64 2464}
!17 = !{!"double", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!16, !18, i64 148}
!21 = !{!16, !6, i64 1752}
!22 = !{!16, !18, i64 1760}
!23 = !{!18, !18, i64 0}
!24 = !{!16, !18, i64 1868}
!25 = !{!16, !18, i64 144}
!26 = !{!16, !6, i64 0}
!27 = !{!16, !6, i64 1840}
!28 = !{!16, !6, i64 1848}
!29 = !{!16, !6, i64 1856}
!30 = !{!31, !6, i64 0}
!31 = !{!"_generic_N_Vector", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!33, !6, i64 0}
!33 = !{!"_N_VectorContent_SensWrapper", !6, i64 0, !18, i64 8, !18, i64 12}
!34 = !{!16, !6, i64 768}
!35 = !{!16, !6, i64 752}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!16, !18, i64 1400}


; 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 [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

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

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

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

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %10, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  %16 = icmp eq ptr %15, null
  br i1 %16, label %21, label %17

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %10, i64 40
  %19 = load ptr, ptr %18, align 8, !tbaa !13
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %17, %13, %8
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #2
  br label %121

22:                                               ; preds = %17
  %23 = getelementptr inbounds i8, ptr %0, i64 140
  %24 = load i32, ptr %23, align 4, !tbaa !14
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %25, label %26

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

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 148
  %28 = load i32, ptr %27, align 4, !tbaa !19
  %.not72 = icmp eq i32 %28, 2
  br i1 %.not72, label %30, label %29

29:                                               ; preds = %26
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.6) #2
  br label %121

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %0, i64 1752
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %.not73 = icmp eq ptr %32, null
  br i1 %.not73, label %38, label %33

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 1760
  %35 = load i32, ptr %34, align 8, !tbaa !21
  %.not74 = icmp eq i32 %35, 0
  br i1 %.not74, label %38, label %36

36:                                               ; preds = %33
  %37 = tail call i32 @SUNNonlinSolFree(ptr noundef nonnull %32) #2
  br label %38

38:                                               ; preds = %36, %33, %30
  store ptr %1, ptr %31, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %0, i64 1760
  store i32 0, ptr %39, align 8, !tbaa !21
  %40 = tail call i32 @SUNNonlinSolGetType(ptr noundef nonnull %1) #2
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %46, label %42

42:                                               ; preds = %38
  %43 = tail call i32 @SUNNonlinSolGetType(ptr noundef nonnull %1) #2
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.7) #2
  br label %121

46:                                               ; preds = %42, %38
  %cvNlsFPFunctionSensStg.sink = phi ptr [ @cvNlsResidualSensStg, %38 ], [ @cvNlsFPFunctionSensStg, %42 ]
  %47 = load ptr, ptr %31, align 8, !tbaa !20
  %48 = tail call i32 @SUNNonlinSolSetSysFn(ptr noundef %47, ptr noundef nonnull %cvNlsFPFunctionSensStg.sink) #2
  %.not75 = icmp eq i32 %48, 0
  br i1 %.not75, label %50, label %49

49:                                               ; preds = %46
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.8) #2
  br label %121

50:                                               ; preds = %46
  %51 = load ptr, ptr %31, align 8, !tbaa !20
  %52 = tail call i32 @SUNNonlinSolSetConvTestFn(ptr noundef %51, ptr noundef nonnull @cvNlsConvTestSensStg, ptr noundef nonnull %0) #2
  %.not76 = icmp eq i32 %52, 0
  br i1 %.not76, label %54, label %53

53:                                               ; preds = %50
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.9) #2
  br label %121

54:                                               ; preds = %50
  %55 = load ptr, ptr %31, align 8, !tbaa !20
  %56 = tail call i32 @SUNNonlinSolSetMaxIters(ptr noundef %55, i32 noundef 3) #2
  %.not77 = icmp eq i32 %56, 0
  br i1 %.not77, label %58, label %57

57:                                               ; preds = %54
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #2
  br label %121

58:                                               ; preds = %54
  %59 = getelementptr inbounds i8, ptr %0, i64 1868
  %60 = load i32, ptr %59, align 4, !tbaa !22
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %88

62:                                               ; preds = %58
  %63 = getelementptr inbounds i8, ptr %0, i64 144
  %64 = load i32, ptr %63, align 8, !tbaa !23
  %65 = load ptr, ptr %0, align 8, !tbaa !24
  %66 = tail call ptr @N_VNewEmpty_SensWrapper(i32 noundef %64, ptr noundef %65) #2
  %67 = getelementptr inbounds i8, ptr %0, i64 1840
  store ptr %66, ptr %67, align 8, !tbaa !25
  %68 = icmp eq ptr %66, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %62
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -20, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #2
  br label %121

70:                                               ; preds = %62
  %71 = load i32, ptr %63, align 8, !tbaa !23
  %72 = load ptr, ptr %0, align 8, !tbaa !24
  %73 = tail call ptr @N_VNewEmpty_SensWrapper(i32 noundef %71, ptr noundef %72) #2
  %74 = getelementptr inbounds i8, ptr %0, i64 1848
  store ptr %73, ptr %74, align 8, !tbaa !26
  %75 = icmp eq ptr %73, null
  br i1 %75, label %76, label %78

76:                                               ; preds = %70
  %77 = load ptr, ptr %67, align 8, !tbaa !25
  tail call void @N_VDestroy(ptr noundef %77) #2
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -20, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #2
  br label %121

78:                                               ; preds = %70
  %79 = load i32, ptr %63, align 8, !tbaa !23
  %80 = load ptr, ptr %0, align 8, !tbaa !24
  %81 = tail call ptr @N_VNewEmpty_SensWrapper(i32 noundef %79, ptr noundef %80) #2
  %82 = getelementptr inbounds i8, ptr %0, i64 1856
  store ptr %81, ptr %82, align 8, !tbaa !27
  %83 = icmp eq ptr %81, null
  br i1 %83, label %84, label %87

84:                                               ; preds = %78
  %85 = load ptr, ptr %67, align 8, !tbaa !25
  tail call void @N_VDestroy(ptr noundef %85) #2
  %86 = load ptr, ptr %74, align 8, !tbaa !26
  tail call void @N_VDestroy(ptr noundef %86) #2
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef nonnull %0, i32 noundef -20, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #2
  br label %121

87:                                               ; preds = %78
  store i32 1, ptr %59, align 4, !tbaa !22
  br label %88

88:                                               ; preds = %87, %58
  %89 = getelementptr inbounds i8, ptr %0, i64 144
  %90 = load i32, ptr %89, align 8, !tbaa !23
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %88
  %92 = getelementptr inbounds i8, ptr %0, i64 648
  %93 = getelementptr inbounds i8, ptr %0, i64 1840
  %94 = getelementptr inbounds i8, ptr %0, i64 768
  %95 = getelementptr inbounds i8, ptr %0, i64 1848
  %96 = getelementptr inbounds i8, ptr %0, i64 752
  %97 = getelementptr inbounds i8, ptr %0, i64 1856
  %wide.trip.count = zext nneg i32 %90 to i64
  br label %98

98:                                               ; preds = %.lr.ph, %98
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %98 ]
  %99 = load ptr, ptr %92, align 8, !tbaa !28
  %100 = getelementptr inbounds ptr, ptr %99, i64 %indvars.iv
  %101 = load ptr, ptr %100, align 8, !tbaa !28
  %102 = load ptr, ptr %93, align 8, !tbaa !25
  %103 = load ptr, ptr %102, align 8, !tbaa !29
  %104 = load ptr, ptr %103, align 8, !tbaa !31
  %105 = getelementptr inbounds ptr, ptr %104, i64 %indvars.iv
  store ptr %101, ptr %105, align 8, !tbaa !28
  %106 = load ptr, ptr %94, align 8, !tbaa !33
  %107 = getelementptr inbounds ptr, ptr %106, i64 %indvars.iv
  %108 = load ptr, ptr %107, align 8, !tbaa !28
  %109 = load ptr, ptr %95, align 8, !tbaa !26
  %110 = load ptr, ptr %109, align 8, !tbaa !29
  %111 = load ptr, ptr %110, align 8, !tbaa !31
  %112 = getelementptr inbounds ptr, ptr %111, i64 %indvars.iv
  store ptr %108, ptr %112, align 8, !tbaa !28
  %113 = load ptr, ptr %96, align 8, !tbaa !34
  %114 = getelementptr inbounds ptr, ptr %113, i64 %indvars.iv
  %115 = load ptr, ptr %114, align 8, !tbaa !28
  %116 = load ptr, ptr %97, align 8, !tbaa !27
  %117 = load ptr, ptr %116, align 8, !tbaa !29
  %118 = load ptr, ptr %117, align 8, !tbaa !31
  %119 = getelementptr inbounds ptr, ptr %118, i64 %indvars.iv
  store ptr %115, ptr %119, align 8, !tbaa !28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %98, !llvm.loop !35

._crit_edge:                                      ; preds = %98, %88
  %120 = getelementptr inbounds i8, ptr %0, i64 1400
  store i32 0, ptr %120, align 8, !tbaa !37
  br label %121

121:                                              ; preds = %._crit_edge, %84, %76, %69, %57, %53, %49, %45, %29, %25, %21, %7, %4
  %.068 = phi i32 [ -21, %4 ], [ -22, %7 ], [ -22, %21 ], [ -22, %29 ], [ -22, %49 ], [ -22, %53 ], [ -22, %57 ], [ -20, %69 ], [ -20, %76 ], [ -20, %84 ], [ 0, %._crit_edge ], [ -22, %45 ], [ -22, %25 ]
  ret i32 %.068
}

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

declare i32 @SUNNonlinSolFree(ptr noundef) local_unnamed_addr #1

declare i32 @SUNNonlinSolGetType(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

declare void @N_VDestroy(ptr noundef) local_unnamed_addr #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 = { "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 }

!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_SUNNonlinearSolver", !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_SUNNonlinearSolver_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}
!12 = !{!11, !7, i64 24}
!13 = !{!11, !7, i64 40}
!14 = !{!15, !17, i64 140}
!15 = !{!"CVodeMemRec", !7, i64 0, !16, i64 8, !7, i64 16, !7, i64 24, !17, i64 32, !17, i64 36, !16, i64 40, !16, i64 48, !7, i64 56, !17, i64 64, !17, i64 68, !7, i64 72, !7, i64 80, !17, i64 88, !17, i64 92, !7, i64 96, !17, i64 104, !17, i64 108, !16, i64 112, !16, i64 120, !7, i64 128, !17, i64 136, !17, i64 140, !17, i64 144, !17, i64 148, !7, i64 152, !7, i64 160, !7, i64 168, !17, i64 176, !17, i64 180, !7, i64 184, !7, i64 192, !7, i64 200, !17, i64 208, !16, i64 216, !17, i64 224, !17, i64 228, !16, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !17, i64 264, !7, i64 272, !7, i64 280, !17, i64 288, !17, i64 292, !17, i64 296, !16, 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, !17, i64 792, !8, i64 800, !7, i64 904, !7, i64 912, !7, i64 920, !7, i64 928, !7, i64 936, !17, i64 944, !16, i64 952, !17, i64 960, !17, i64 964, !17, i64 968, !17, i64 972, !17, i64 976, !16, i64 984, !16, i64 992, !16, i64 1000, !16, i64 1008, !16, i64 1016, !16, i64 1024, !16, i64 1032, !16, i64 1040, !8, i64 1048, !8, i64 1160, !8, i64 1208, !16, i64 1312, !16, i64 1320, !16, i64 1328, !16, i64 1336, !16, i64 1344, !16, i64 1352, !16, i64 1360, !16, i64 1368, !17, i64 1376, !16, i64 1384, !16, i64 1392, !17, i64 1400, !16, i64 1408, !16, i64 1416, !7, i64 1424, !17, i64 1432, !18, i64 1440, !17, i64 1448, !17, i64 1452, !17, i64 1456, !16, i64 1464, !16, i64 1472, !16, i64 1480, !18, i64 1488, !18, i64 1496, !18, i64 1504, !18, i64 1512, !18, i64 1520, !18, i64 1528, !18, i64 1536, !18, i64 1544, !18, i64 1552, !7, i64 1560, !18, i64 1568, !18, i64 1576, !7, i64 1584, !18, i64 1592, !18, i64 1600, !18, i64 1608, !18, i64 1616, !18, i64 1624, !18, i64 1632, !17, i64 1640, !16, i64 1648, !16, i64 1656, !16, i64 1664, !18, i64 1672, !18, i64 1680, !18, i64 1688, !18, i64 1696, !18, i64 1704, !18, i64 1712, !7, i64 1720, !17, i64 1728, !7, i64 1736, !17, i64 1744, !7, i64 1752, !17, i64 1760, !7, i64 1768, !17, i64 1776, !17, i64 1780, !18, i64 1784, !17, i64 1792, !7, i64 1800, !17, i64 1808, !7, i64 1816, !7, i64 1824, !7, i64 1832, !7, i64 1840, !7, i64 1848, !7, i64 1856, !17, i64 1864, !17, i64 1868, !7, i64 1872, !7, i64 1880, !7, i64 1888, !7, i64 1896, !7, i64 1904, !18, i64 1912, !17, i64 1920, !17, i64 1924, !18, i64 1928, !16, i64 1936, !16, i64 1944, !16, i64 1952, !17, i64 1960, !17, i64 1964, !16, i64 1968, !17, i64 1976, !17, i64 1980, !17, i64 1984, !17, i64 1988, !17, i64 1992, !17, i64 1996, !17, i64 2000, !17, i64 2004, !17, i64 2008, !17, i64 2012, !17, i64 2016, !17, i64 2020, !17, i64 2024, !17, i64 2028, !17, i64 2032, !17, i64 2036, !7, i64 2040, !7, i64 2048, !7, i64 2056, !7, i64 2064, !18, i64 2072, !17, i64 2080, !8, i64 2088, !17, i64 2280, !18, i64 2288, !7, i64 2296, !17, i64 2304, !7, i64 2312, !7, i64 2320, !16, i64 2328, !16, i64 2336, !16, i64 2344, !7, i64 2352, !7, i64 2360, !7, i64 2368, !16, i64 2376, !16, i64 2384, !17, i64 2392, !17, i64 2396, !18, i64 2400, !7, i64 2408, !17, i64 2416, !7, i64 2424, !7, i64 2432, !7, i64 2440, !17, i64 2448, !7, i64 2456, !17, i64 2464}
!16 = !{!"double", !8, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = !{!15, !17, i64 148}
!20 = !{!15, !7, i64 1752}
!21 = !{!15, !17, i64 1760}
!22 = !{!15, !17, i64 1868}
!23 = !{!15, !17, i64 144}
!24 = !{!15, !7, i64 0}
!25 = !{!15, !7, i64 1840}
!26 = !{!15, !7, i64 1848}
!27 = !{!15, !7, i64 1856}
!28 = !{!7, !7, i64 0}
!29 = !{!30, !7, i64 0}
!30 = !{!"_generic_N_Vector", !7, i64 0, !7, i64 8, !7, i64 16}
!31 = !{!32, !7, i64 0}
!32 = !{!"_N_VectorContent_SensWrapper", !7, i64 0, !17, i64 8, !17, i64 12}
!33 = !{!15, !7, i64 768}
!34 = !{!15, !7, i64 752}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!15, !17, i64 1400}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass