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

; 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 [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @CVodeSetNonlinearSolverSensSim(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 %303

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 %303

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 %303

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 %303

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, 1
  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.6, ptr noundef @.str.7)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

55:                                               ; preds = %48
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.CVodeMemRec, ptr %56, i32 0, i32 151
  %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 152
  %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 151
  %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 151
  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 152
  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 151
  %82 = load ptr, ptr %81, align 8, !tbaa !21
  %83 = call i32 @SUNNonlinSolSetSysFn(ptr noundef %82, ptr noundef @cvNlsResidualSensSim)
  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 151
  %91 = load ptr, ptr %90, align 8, !tbaa !21
  %92 = call i32 @SUNNonlinSolSetSysFn(ptr noundef %91, ptr noundef @cvNlsFPFunctionSensSim)
  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.8)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

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.9)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

101:                                              ; preds = %96
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.CVodeMemRec, ptr %102, i32 0, i32 151
  %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 @cvNlsConvTestSensSim, 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.10)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

111:                                              ; preds = %101
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.CVodeMemRec, ptr %112, i32 0, i32 151
  %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.11)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

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

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 = add nsw i32 %128, 1
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.CVodeMemRec, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !26
  %133 = call ptr @N_VNewEmpty_SensWrapper(i32 noundef %129, ptr noundef %132)
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.CVodeMemRec, ptr %134, i32 0, i32 162
  store ptr %133, ptr %135, align 8, !tbaa !27
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.CVodeMemRec, ptr %136, i32 0, i32 162
  %138 = load ptr, ptr %137, align 8, !tbaa !27
  %139 = icmp eq ptr %138, null
  br i1 %139, label %140, label %142

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

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

157:                                              ; preds = %142
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.CVodeMemRec, ptr %158, i32 0, i32 162
  %160 = load ptr, ptr %159, align 8, !tbaa !27
  call void @N_VDestroy(ptr noundef %160)
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %161, i32 noundef -20, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.12)
  store i32 -20, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

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

177:                                              ; preds = %162
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.CVodeMemRec, ptr %178, i32 0, i32 162
  %180 = load ptr, ptr %179, align 8, !tbaa !27
  call void @N_VDestroy(ptr noundef %180)
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.CVodeMemRec, ptr %181, i32 0, i32 163
  %183 = load ptr, ptr %182, align 8, !tbaa !28
  call void @N_VDestroy(ptr noundef %183)
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %184, i32 noundef -20, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.12)
  store i32 -20, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

185:                                              ; preds = %162
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.CVodeMemRec, ptr %186, i32 0, i32 168
  store i32 1, ptr %187, align 8, !tbaa !24
  br label %188

188:                                              ; preds = %185, %120
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.CVodeMemRec, ptr %189, i32 0, i32 51
  %191 = getelementptr inbounds [13 x ptr], ptr %190, i64 0, i64 0
  %192 = load ptr, ptr %191, align 8, !tbaa !5
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.CVodeMemRec, ptr %193, i32 0, i32 162
  %195 = load ptr, ptr %194, align 8, !tbaa !27
  %196 = getelementptr inbounds %struct._generic_N_Vector, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !30
  %198 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %197, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8, !tbaa !32
  %200 = getelementptr inbounds ptr, ptr %199, i64 0
  store ptr %192, ptr %200, align 8, !tbaa !5
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.CVodeMemRec, ptr %201, i32 0, i32 54
  %203 = load ptr, ptr %202, align 8, !tbaa !34
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.CVodeMemRec, ptr %204, i32 0, i32 163
  %206 = load ptr, ptr %205, align 8, !tbaa !28
  %207 = getelementptr inbounds %struct._generic_N_Vector, ptr %206, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !30
  %209 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %208, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !32
  %211 = getelementptr inbounds ptr, ptr %210, i64 0
  store ptr %203, ptr %211, align 8, !tbaa !5
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.CVodeMemRec, ptr %212, i32 0, i32 52
  %214 = load ptr, ptr %213, align 8, !tbaa !35
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.CVodeMemRec, ptr %215, i32 0, i32 164
  %217 = load ptr, ptr %216, align 8, !tbaa !29
  %218 = getelementptr inbounds %struct._generic_N_Vector, ptr %217, i32 0, i32 0
  %219 = load ptr, ptr %218, align 8, !tbaa !30
  %220 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %219, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8, !tbaa !32
  %222 = getelementptr inbounds ptr, ptr %221, i64 0
  store ptr %214, ptr %222, align 8, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !23
  br label %223

223:                                              ; preds = %285, %188
  %224 = load i32, ptr %8, align 4, !tbaa !23
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.CVodeMemRec, ptr %225, i32 0, i32 23
  %227 = load i32, ptr %226, align 8, !tbaa !25
  %228 = icmp slt i32 %224, %227
  br i1 %228, label %229, label %288

229:                                              ; preds = %223
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.CVodeMemRec, ptr %230, i32 0, i32 66
  %232 = getelementptr inbounds [13 x ptr], ptr %231, i64 0, i64 0
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  %234 = load i32, ptr %8, align 4, !tbaa !23
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds ptr, ptr %233, i64 %235
  %237 = load ptr, ptr %236, align 8, !tbaa !5
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.CVodeMemRec, ptr %238, i32 0, i32 162
  %240 = load ptr, ptr %239, align 8, !tbaa !27
  %241 = getelementptr inbounds %struct._generic_N_Vector, ptr %240, i32 0, i32 0
  %242 = load ptr, ptr %241, align 8, !tbaa !30
  %243 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %242, i32 0, i32 0
  %244 = load ptr, ptr %243, align 8, !tbaa !32
  %245 = load i32, ptr %8, align 4, !tbaa !23
  %246 = add nsw i32 %245, 1
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds ptr, ptr %244, i64 %247
  store ptr %237, ptr %248, align 8, !tbaa !5
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.CVodeMemRec, ptr %249, i32 0, i32 69
  %251 = load ptr, ptr %250, align 8, !tbaa !36
  %252 = load i32, ptr %8, align 4, !tbaa !23
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds ptr, ptr %251, i64 %253
  %255 = load ptr, ptr %254, align 8, !tbaa !5
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.CVodeMemRec, ptr %256, i32 0, i32 163
  %258 = load ptr, ptr %257, align 8, !tbaa !28
  %259 = getelementptr inbounds %struct._generic_N_Vector, ptr %258, i32 0, i32 0
  %260 = load ptr, ptr %259, align 8, !tbaa !30
  %261 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !32
  %263 = load i32, ptr %8, align 4, !tbaa !23
  %264 = add nsw i32 %263, 1
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds ptr, ptr %262, i64 %265
  store ptr %255, ptr %266, align 8, !tbaa !5
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.CVodeMemRec, ptr %267, i32 0, i32 67
  %269 = load ptr, ptr %268, align 8, !tbaa !37
  %270 = load i32, ptr %8, align 4, !tbaa !23
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds ptr, ptr %269, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  %274 = load ptr, ptr %6, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.CVodeMemRec, ptr %274, i32 0, i32 164
  %276 = load ptr, ptr %275, align 8, !tbaa !29
  %277 = getelementptr inbounds %struct._generic_N_Vector, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !30
  %279 = getelementptr inbounds %struct._N_VectorContent_SensWrapper, ptr %278, i32 0, i32 0
  %280 = load ptr, ptr %279, align 8, !tbaa !32
  %281 = load i32, ptr %8, align 4, !tbaa !23
  %282 = add nsw i32 %281, 1
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds ptr, ptr %280, i64 %283
  store ptr %273, ptr %284, align 8, !tbaa !5
  br label %285

285:                                              ; preds = %229
  %286 = load i32, ptr %8, align 4, !tbaa !23
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr %8, align 4, !tbaa !23
  br label %223, !llvm.loop !38

288:                                              ; preds = %223
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.CVodeMemRec, ptr %289, i32 0, i32 105
  store i32 0, ptr %290, align 8, !tbaa !40
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.CVodeMemRec, ptr %291, i32 0, i32 2
  %293 = load ptr, ptr %292, align 8, !tbaa !41
  %294 = icmp ne ptr %293, null
  br i1 %294, label %297, label %295

295:                                              ; preds = %288
  %296 = load ptr, ptr %6, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @cvProcessError(ptr noundef %296, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.13)
  store i32 -22, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

297:                                              ; preds = %288
  %298 = load ptr, ptr %6, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.CVodeMemRec, ptr %298, i32 0, i32 2
  %300 = load ptr, ptr %299, align 8, !tbaa !41
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.CVodeMemRec, ptr %301, i32 0, i32 160
  store ptr %300, ptr %302, align 8, !tbaa !42
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %303

303:                                              ; preds = %297, %295, %177, %157, %140, %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
  %304 = load i32, ptr %3, align 4
  ret i32 %304
}

; 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 @cvNlsResidualSensSim(ptr noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @cvNlsConvTestSensSim(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 1736}
!22 = !{!16, !18, i64 1744}
!23 = !{!18, !18, i64 0}
!24 = !{!16, !18, i64 1864}
!25 = !{!16, !18, i64 144}
!26 = !{!16, !6, i64 0}
!27 = !{!16, !6, i64 1816}
!28 = !{!16, !6, i64 1824}
!29 = !{!16, !6, i64 1832}
!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 456}
!35 = !{!16, !6, i64 440}
!36 = !{!16, !6, i64 768}
!37 = !{!16, !6, i64 752}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!16, !18, i64 1376}
!41 = !{!16, !6, i64 16}
!42 = !{!16, !6, i64 1800}


; 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 [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -22, 1) i32 @CVodeSetNonlinearSolverSensSim(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 %144

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 %144

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 %144

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 %144

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 148
  %28 = load i32, ptr %27, align 4, !tbaa !19
  %.not83 = icmp eq i32 %28, 1
  br i1 %.not83, 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.6, ptr noundef nonnull @.str.7) #2
  br label %144

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

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 1744
  %35 = load i32, ptr %34, align 8, !tbaa !21
  %.not85 = icmp eq i32 %35, 0
  br i1 %.not85, 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 1744
  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.8) #2
  br label %144

46:                                               ; preds = %42, %38
  %cvNlsFPFunctionSensSim.sink = phi ptr [ @cvNlsResidualSensSim, %38 ], [ @cvNlsFPFunctionSensSim, %42 ]
  %47 = load ptr, ptr %31, align 8, !tbaa !20
  %48 = tail call i32 @SUNNonlinSolSetSysFn(ptr noundef %47, ptr noundef nonnull %cvNlsFPFunctionSensSim.sink) #2
  %.not86 = icmp eq i32 %48, 0
  br i1 %.not86, 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.9) #2
  br label %144

50:                                               ; preds = %46
  %51 = load ptr, ptr %31, align 8, !tbaa !20
  %52 = tail call i32 @SUNNonlinSolSetConvTestFn(ptr noundef %51, ptr noundef nonnull @cvNlsConvTestSensSim, ptr noundef nonnull %0) #2
  %.not87 = icmp eq i32 %52, 0
  br i1 %.not87, 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.10) #2
  br label %144

54:                                               ; preds = %50
  %55 = load ptr, ptr %31, align 8, !tbaa !20
  %56 = tail call i32 @SUNNonlinSolSetMaxIters(ptr noundef %55, i32 noundef 3) #2
  %.not88 = icmp eq i32 %56, 0
  br i1 %.not88, 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.11) #2
  br label %144

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

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

70:                                               ; 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.12) #2
  br label %144

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

78:                                               ; preds = %71
  %79 = load ptr, ptr %68, align 8, !tbaa !25
  tail call void @N_VDestroy(ptr noundef %79) #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.12) #2
  br label %144

80:                                               ; preds = %71
  %81 = load i32, ptr %63, align 8, !tbaa !23
  %82 = add nsw i32 %81, 1
  %83 = load ptr, ptr %0, align 8, !tbaa !24
  %84 = tail call ptr @N_VNewEmpty_SensWrapper(i32 noundef %82, ptr noundef %83) #2
  %85 = getelementptr inbounds i8, ptr %0, i64 1832
  store ptr %84, ptr %85, align 8, !tbaa !27
  %86 = icmp eq ptr %84, null
  br i1 %86, label %87, label %90

87:                                               ; preds = %80
  %88 = load ptr, ptr %68, align 8, !tbaa !25
  tail call void @N_VDestroy(ptr noundef %88) #2
  %89 = load ptr, ptr %76, align 8, !tbaa !26
  tail call void @N_VDestroy(ptr noundef %89) #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.12) #2
  br label %144

90:                                               ; preds = %80
  store i32 1, ptr %59, align 8, !tbaa !22
  br label %91

91:                                               ; preds = %90, %58
  %92 = getelementptr inbounds i8, ptr %0, i64 336
  %93 = load ptr, ptr %92, align 8, !tbaa !28
  %94 = getelementptr inbounds i8, ptr %0, i64 1816
  %95 = load ptr, ptr %94, align 8, !tbaa !25
  %96 = load ptr, ptr %95, align 8, !tbaa !29
  %97 = load ptr, ptr %96, align 8, !tbaa !31
  store ptr %93, ptr %97, align 8, !tbaa !28
  %98 = getelementptr inbounds i8, ptr %0, i64 456
  %99 = load ptr, ptr %98, align 8, !tbaa !33
  %100 = getelementptr inbounds i8, ptr %0, i64 1824
  %101 = load ptr, ptr %100, align 8, !tbaa !26
  %102 = load ptr, ptr %101, align 8, !tbaa !29
  %103 = load ptr, ptr %102, align 8, !tbaa !31
  store ptr %99, ptr %103, align 8, !tbaa !28
  %104 = getelementptr inbounds i8, ptr %0, i64 440
  %105 = load ptr, ptr %104, align 8, !tbaa !34
  %106 = getelementptr inbounds i8, ptr %0, i64 1832
  %107 = load ptr, ptr %106, align 8, !tbaa !27
  %108 = load ptr, ptr %107, align 8, !tbaa !29
  %109 = load ptr, ptr %108, align 8, !tbaa !31
  store ptr %105, ptr %109, align 8, !tbaa !28
  %110 = getelementptr inbounds i8, ptr %0, i64 144
  %111 = load i32, ptr %110, align 8, !tbaa !23
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %91
  %113 = getelementptr inbounds i8, ptr %0, i64 648
  %114 = getelementptr inbounds i8, ptr %0, i64 768
  %115 = getelementptr inbounds i8, ptr %0, i64 752
  %wide.trip.count = zext nneg i32 %111 to i64
  br label %116

116:                                              ; preds = %.lr.ph, %116
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %116 ]
  %117 = load ptr, ptr %113, align 8, !tbaa !28
  %118 = getelementptr inbounds ptr, ptr %117, i64 %indvars.iv
  %119 = load ptr, ptr %118, align 8, !tbaa !28
  %120 = load ptr, ptr %94, align 8, !tbaa !25
  %121 = load ptr, ptr %120, align 8, !tbaa !29
  %122 = load ptr, ptr %121, align 8, !tbaa !31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %123 = getelementptr inbounds ptr, ptr %122, i64 %indvars.iv.next
  store ptr %119, ptr %123, align 8, !tbaa !28
  %124 = load ptr, ptr %114, align 8, !tbaa !35
  %125 = getelementptr inbounds ptr, ptr %124, i64 %indvars.iv
  %126 = load ptr, ptr %125, align 8, !tbaa !28
  %127 = load ptr, ptr %100, align 8, !tbaa !26
  %128 = load ptr, ptr %127, align 8, !tbaa !29
  %129 = load ptr, ptr %128, align 8, !tbaa !31
  %130 = getelementptr inbounds ptr, ptr %129, i64 %indvars.iv.next
  store ptr %126, ptr %130, align 8, !tbaa !28
  %131 = load ptr, ptr %115, align 8, !tbaa !36
  %132 = getelementptr inbounds ptr, ptr %131, i64 %indvars.iv
  %133 = load ptr, ptr %132, align 8, !tbaa !28
  %134 = load ptr, ptr %106, align 8, !tbaa !27
  %135 = load ptr, ptr %134, align 8, !tbaa !29
  %136 = load ptr, ptr %135, align 8, !tbaa !31
  %137 = getelementptr inbounds ptr, ptr %136, i64 %indvars.iv.next
  store ptr %133, ptr %137, align 8, !tbaa !28
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %116, !llvm.loop !37

._crit_edge:                                      ; preds = %116, %91
  %138 = getelementptr inbounds i8, ptr %0, i64 1376
  store i32 0, ptr %138, align 8, !tbaa !39
  %139 = getelementptr inbounds i8, ptr %0, i64 16
  %140 = load ptr, ptr %139, align 8, !tbaa !40
  %.not89 = icmp eq ptr %140, null
  br i1 %.not89, label %141, label %142

141:                                              ; preds = %._crit_edge
  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.13) #2
  br label %144

142:                                              ; preds = %._crit_edge
  %143 = getelementptr inbounds i8, ptr %0, i64 1800
  store ptr %140, ptr %143, align 8, !tbaa !41
  br label %144

144:                                              ; preds = %142, %141, %87, %78, %70, %57, %53, %49, %45, %29, %25, %21, %7, %4
  %.078 = phi i32 [ -21, %4 ], [ -22, %7 ], [ -22, %21 ], [ -22, %29 ], [ -22, %49 ], [ -22, %53 ], [ -22, %57 ], [ -20, %70 ], [ -20, %78 ], [ -20, %87 ], [ 0, %142 ], [ -22, %141 ], [ -22, %45 ], [ -22, %25 ]
  ret i32 %.078
}

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 @cvNlsResidualSensSim(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @cvNlsFPFunctionSensSim(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 @cvNlsConvTestSensSim(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 1736}
!21 = !{!15, !17, i64 1744}
!22 = !{!15, !17, i64 1864}
!23 = !{!15, !17, i64 144}
!24 = !{!15, !7, i64 0}
!25 = !{!15, !7, i64 1816}
!26 = !{!15, !7, i64 1824}
!27 = !{!15, !7, i64 1832}
!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 456}
!34 = !{!15, !7, i64 440}
!35 = !{!15, !7, i64 768}
!36 = !{!15, !7, i64 752}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!15, !17, i64 1376}
!40 = !{!15, !7, i64 16}
!41 = !{!15, !7, i64 1800}


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