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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.IDAMemRec = type { ptr, double, ptr, ptr, i32, double, double, ptr, i32, i32, ptr, ptr, i32, i32, i32, ptr, ptr, i32, i32, double, double, ptr, i32, i32, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, i32, double, i32, i32, double, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, double, ptr, ptr, ptr, [6 x ptr], [6 x double], [6 x double], [6 x double], [6 x double], [6 x double], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [6 x ptr], ptr, ptr, ptr, ptr, ptr, double, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, double, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i64, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, double, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, double, double, double, ptr, ptr, ptr, double, double, i32, i32, i64, ptr, i32, ptr, [5 x double], ptr, ptr, i32, ptr, i32 }
%struct.IDALsMemRec = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, double, double, double, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }
%struct._generic_SUNLinearSolver = type { ptr, ptr, ptr }
%struct._generic_SUNLinearSolver_Ops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [68 x i8], align 1

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

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

declare i32 @SUNLinSolGetType(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @idaLsSolve(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.IDAMemRec, ptr %20, i32 0, i32 206
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %26

24:                                               ; preds = %6
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %25, i32 noundef -2, ptr noundef @.str, ptr noundef @.str.62, ptr noundef @.str.54)
  store i32 -2, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

26:                                               ; preds = %6
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.IDAMemRec, ptr %27, i32 0, i32 206
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  store ptr %29, ptr %14, align 8, !tbaa !5
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.IDALsMemRec, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !14
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %46

34:                                               ; preds = %26
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.IDALsMemRec, ptr %35, i32 0, i32 15
  %37 = load double, ptr %36, align 8, !tbaa !16
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.IDALsMemRec, ptr %38, i32 0, i32 14
  %40 = load double, ptr %39, align 8, !tbaa !17
  %41 = fmul double %37, %40
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.IDAMemRec, ptr %42, i32 0, i32 135
  %44 = load double, ptr %43, align 8, !tbaa !18
  %45 = fmul double %41, %44
  store double %45, ptr %17, align 8, !tbaa !19
  br label %47

46:                                               ; preds = %26
  store double 0.000000e+00, ptr %17, align 8, !tbaa !19
  br label %47

47:                                               ; preds = %46, %34
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.IDALsMemRec, ptr %49, i32 0, i32 10
  store ptr %48, ptr %50, align 8, !tbaa !20
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.IDALsMemRec, ptr %52, i32 0, i32 11
  store ptr %51, ptr %53, align 8, !tbaa !21
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.IDALsMemRec, ptr %55, i32 0, i32 12
  store ptr %54, ptr %56, align 8, !tbaa !22
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.IDALsMemRec, ptr %57, i32 0, i32 5
  %59 = load ptr, ptr %58, align 8, !tbaa !23
  %60 = getelementptr inbounds %struct._generic_SUNLinearSolver, ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %62 = getelementptr inbounds %struct._generic_SUNLinearSolver_Ops, ptr %61, i32 0, i32 4
  %63 = load ptr, ptr %62, align 8, !tbaa !26
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %82

65:                                               ; preds = %47
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.IDALsMemRec, ptr %66, i32 0, i32 5
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = call i32 @SUNLinSolSetScalingVectors(ptr noundef %68, ptr noundef %69, ptr noundef %70)
  store i32 %71, ptr %16, align 4, !tbaa !28
  %72 = load i32, ptr %16, align 4, !tbaa !28
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %81

74:                                               ; preds = %65
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %75, i32 noundef -9, ptr noundef @.str, ptr noundef @.str.62, ptr noundef @.str.63)
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.IDALsMemRec, ptr %76, i32 0, i32 30
  store i32 -9, ptr %77, align 8, !tbaa !29
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.IDALsMemRec, ptr %78, i32 0, i32 30
  %80 = load i32, ptr %79, align 8, !tbaa !29
  store i32 %80, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

81:                                               ; preds = %65
  br label %100

82:                                               ; preds = %47
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.IDALsMemRec, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !14
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %99

87:                                               ; preds = %82
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.IDALsMemRec, ptr %88, i32 0, i32 9
  %90 = load ptr, ptr %89, align 8, !tbaa !30
  call void @N_VConst(double noundef 1.000000e+00, ptr noundef %90)
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.IDALsMemRec, ptr %92, i32 0, i32 9
  %94 = load ptr, ptr %93, align 8, !tbaa !30
  %95 = call double @N_VWrmsNorm(ptr noundef %91, ptr noundef %94)
  store double %95, ptr %18, align 8, !tbaa !19
  %96 = load double, ptr %18, align 8, !tbaa !19
  %97 = load double, ptr %17, align 8, !tbaa !19
  %98 = fdiv double %97, %96
  store double %98, ptr %17, align 8, !tbaa !19
  br label %99

99:                                               ; preds = %87, %82
  br label %100

100:                                              ; preds = %99, %81
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.IDALsMemRec, ptr %101, i32 0, i32 9
  %103 = load ptr, ptr %102, align 8, !tbaa !30
  call void @N_VConst(double noundef 0.000000e+00, ptr noundef %103)
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.IDALsMemRec, ptr %104, i32 0, i32 5
  %106 = load ptr, ptr %105, align 8, !tbaa !23
  %107 = call i32 @SUNLinSolSetZeroGuess(ptr noundef %106, i32 noundef 1)
  store i32 %107, ptr %16, align 4, !tbaa !28
  %108 = load i32, ptr %16, align 4, !tbaa !28
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %111

110:                                              ; preds = %100
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

111:                                              ; preds = %100
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.IDALsMemRec, ptr %112, i32 0, i32 36
  %114 = load ptr, ptr %113, align 8, !tbaa !31
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %150

116:                                              ; preds = %111
  %117 = load ptr, ptr %14, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.IDALsMemRec, ptr %117, i32 0, i32 36
  %119 = load ptr, ptr %118, align 8, !tbaa !31
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.IDAMemRec, ptr %120, i32 0, i32 127
  %122 = load double, ptr %121, align 8, !tbaa !32
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.IDAMemRec, ptr %126, i32 0, i32 129
  %128 = load double, ptr %127, align 8, !tbaa !33
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.IDALsMemRec, ptr %129, i32 0, i32 39
  %131 = load ptr, ptr %130, align 8, !tbaa !34
  %132 = call i32 %119(double noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125, double noundef %128, ptr noundef %131)
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.IDALsMemRec, ptr %133, i32 0, i32 30
  store i32 %132, ptr %134, align 8, !tbaa !29
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.IDALsMemRec, ptr %135, i32 0, i32 23
  %137 = load i64, ptr %136, align 8, !tbaa !35
  %138 = add nsw i64 %137, 1
  store i64 %138, ptr %136, align 8, !tbaa !35
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.IDALsMemRec, ptr %139, i32 0, i32 30
  %141 = load i32, ptr %140, align 8, !tbaa !29
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %149

143:                                              ; preds = %116
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = load i32, ptr %16, align 4, !tbaa !28
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %144, i32 noundef %145, ptr noundef @.str, ptr noundef @.str.62, ptr noundef @.str.64)
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.IDALsMemRec, ptr %146, i32 0, i32 30
  %148 = load i32, ptr %147, align 8, !tbaa !29
  store i32 %148, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

149:                                              ; preds = %116
  br label %150

150:                                              ; preds = %149, %111
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.IDALsMemRec, ptr %151, i32 0, i32 5
  %153 = load ptr, ptr %152, align 8, !tbaa !23
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.IDALsMemRec, ptr %154, i32 0, i32 6
  %156 = load ptr, ptr %155, align 8, !tbaa !36
  %157 = load ptr, ptr %14, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.IDALsMemRec, ptr %157, i32 0, i32 9
  %159 = load ptr, ptr %158, align 8, !tbaa !30
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load double, ptr %17, align 8, !tbaa !19
  %162 = call i32 @SUNLinSolSolve(ptr noundef %153, ptr noundef %156, ptr noundef %159, ptr noundef %160, double noundef %161)
  store i32 %162, ptr %16, align 4, !tbaa !28
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.IDALsMemRec, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 8, !tbaa !14
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %198

167:                                              ; preds = %150
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.IDALsMemRec, ptr %168, i32 0, i32 5
  %170 = load ptr, ptr %169, align 8, !tbaa !23
  %171 = call i32 @SUNLinSolNumIters(ptr noundef %170)
  store i32 %171, ptr %15, align 4, !tbaa !28
  %172 = load i32, ptr %15, align 4, !tbaa !28
  %173 = icmp eq i32 %172, 0
  br i1 %173, label %174, label %186

174:                                              ; preds = %167
  %175 = load ptr, ptr %14, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.IDALsMemRec, ptr %175, i32 0, i32 5
  %177 = load ptr, ptr %176, align 8, !tbaa !23
  %178 = call i32 @SUNLinSolGetType(ptr noundef %177)
  %179 = icmp ne i32 %178, 3
  br i1 %179, label %180, label %186

180:                                              ; preds = %174
  %181 = load ptr, ptr %14, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.IDALsMemRec, ptr %181, i32 0, i32 5
  %183 = load ptr, ptr %182, align 8, !tbaa !23
  %184 = call ptr @SUNLinSolResid(ptr noundef %183)
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %184, ptr noundef %185)
  br label %191

186:                                              ; preds = %174, %167
  %187 = load ptr, ptr %14, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.IDALsMemRec, ptr %187, i32 0, i32 9
  %189 = load ptr, ptr %188, align 8, !tbaa !30
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %189, ptr noundef %190)
  br label %191

191:                                              ; preds = %186, %180
  %192 = load i32, ptr %15, align 4, !tbaa !28
  %193 = sext i32 %192 to i64
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.IDALsMemRec, ptr %194, i32 0, i32 19
  %196 = load i64, ptr %195, align 8, !tbaa !37
  %197 = add nsw i64 %196, %193
  store i64 %197, ptr %195, align 8, !tbaa !37
  br label %203

198:                                              ; preds = %150
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.IDALsMemRec, ptr %199, i32 0, i32 9
  %201 = load ptr, ptr %200, align 8, !tbaa !30
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  call void @N_VScale(double noundef 1.000000e+00, ptr noundef %201, ptr noundef %202)
  br label %203

203:                                              ; preds = %198, %191
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.IDALsMemRec, ptr %204, i32 0, i32 13
  %206 = load i32, ptr %205, align 8, !tbaa !38
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %221

208:                                              ; preds = %203
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.IDAMemRec, ptr %209, i32 0, i32 132
  %211 = load double, ptr %210, align 8, !tbaa !39
  %212 = fcmp une double %211, 1.000000e+00
  br i1 %212, label %213, label %221

213:                                              ; preds = %208
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.IDAMemRec, ptr %214, i32 0, i32 132
  %216 = load double, ptr %215, align 8, !tbaa !39
  %217 = fadd double 1.000000e+00, %216
  %218 = fdiv double 2.000000e+00, %217
  %219 = load ptr, ptr %9, align 8, !tbaa !5
  %220 = load ptr, ptr %9, align 8, !tbaa !5
  call void @N_VScale(double noundef %218, ptr noundef %219, ptr noundef %220)
  br label %221

221:                                              ; preds = %213, %208, %203
  %222 = load i32, ptr %16, align 4, !tbaa !28
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %229

224:                                              ; preds = %221
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.IDALsMemRec, ptr %225, i32 0, i32 21
  %227 = load i64, ptr %226, align 8, !tbaa !40
  %228 = add nsw i64 %227, 1
  store i64 %228, ptr %226, align 8, !tbaa !40
  br label %229

229:                                              ; preds = %224, %221
  %230 = load i32, ptr %16, align 4, !tbaa !28
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.IDALsMemRec, ptr %231, i32 0, i32 30
  store i32 %230, ptr %232, align 8, !tbaa !29
  %233 = load i32, ptr %16, align 4, !tbaa !28
  switch i32 %233, label %241 [
    i32 0, label %234
    i32 801, label %235
    i32 802, label %235
    i32 805, label %235
    i32 806, label %235
    i32 807, label %235
    i32 808, label %235
    i32 -801, label %236
    i32 -802, label %236
    i32 -803, label %236
    i32 -810, label %236
    i32 -811, label %236
    i32 -809, label %237
    i32 -808, label %239
  ]

234:                                              ; preds = %229
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

235:                                              ; preds = %229, %229, %229, %229, %229, %229
  store i32 1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

236:                                              ; preds = %229, %229, %229, %229, %229
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

237:                                              ; preds = %229
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %238, i32 noundef -809, ptr noundef @.str, ptr noundef @.str.62, ptr noundef @.str.65)
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

239:                                              ; preds = %229
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %240, i32 noundef -808, ptr noundef @.str, ptr noundef @.str.62, ptr noundef @.str.66)
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

241:                                              ; preds = %229
  store i32 0, ptr %7, align 4
  store i32 1, ptr %19, align 4
  br label %242

242:                                              ; preds = %241, %239, %237, %236, %235, %234, %143, %110, %74, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %243 = load i32, ptr %7, align 4
  ret i32 %243
}

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

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

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

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

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

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

declare i32 @SUNLinSolSolve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) #1

declare i32 @SUNLinSolNumIters(ptr noundef) #1

declare ptr @SUNLinSolResid(ptr noundef) #1

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

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


; 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.54 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [68 x i8], align 1

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

declare i32 @SUNLinSolGetType(ptr noundef) local_unnamed_addr #0

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

10:                                               ; preds = %6
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -2, ptr noundef nonnull @.str, ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.54) #2
  br label %112

11:                                               ; preds = %6
  %12 = load i32, ptr %8, align 8, !tbaa !13
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %22, label %13

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %8, i64 112
  %15 = load double, ptr %14, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %8, i64 104
  %17 = load double, ptr %16, align 8, !tbaa !16
  %18 = fmul double %15, %17
  %19 = getelementptr inbounds i8, ptr %0, i64 1336
  %20 = load double, ptr %19, align 8, !tbaa !17
  %21 = fmul double %18, %20
  br label %22

22:                                               ; preds = %11, %13
  %.073 = phi double [ %21, %13 ], [ 0.000000e+00, %11 ]
  %23 = getelementptr inbounds i8, ptr %8, i64 72
  store ptr %3, ptr %23, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %8, i64 80
  store ptr %4, ptr %24, align 8, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %8, i64 88
  store ptr %5, ptr %25, align 8, !tbaa !20
  %26 = getelementptr inbounds i8, ptr %8, i64 32
  %27 = load ptr, ptr %26, align 8, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %.not78 = icmp eq ptr %31, null
  br i1 %.not78, label %36, label %32

32:                                               ; preds = %22
  %33 = tail call i32 @SUNLinSolSetScalingVectors(ptr noundef nonnull %27, ptr noundef %2, ptr noundef %2) #2
  %.not80 = icmp eq i32 %33, 0
  br i1 %.not80, label %43, label %34

34:                                               ; preds = %32
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.63) #2
  %35 = getelementptr inbounds i8, ptr %8, i64 232
  store i32 -9, ptr %35, align 8, !tbaa !26
  br label %112

36:                                               ; preds = %22
  br i1 %.not, label %43, label %37

37:                                               ; preds = %36
  %38 = getelementptr inbounds i8, ptr %8, i64 64
  %39 = load ptr, ptr %38, align 8, !tbaa !27
  tail call void @N_VConst(double noundef 1.000000e+00, ptr noundef %39) #2
  %40 = load ptr, ptr %38, align 8, !tbaa !27
  %41 = tail call double @N_VWrmsNorm(ptr noundef %2, ptr noundef %40) #2
  %42 = fdiv double %.073, %41
  br label %43

43:                                               ; preds = %36, %37, %32
  %.1 = phi double [ %.073, %32 ], [ %42, %37 ], [ %.073, %36 ]
  %44 = getelementptr inbounds i8, ptr %8, i64 64
  %45 = load ptr, ptr %44, align 8, !tbaa !27
  tail call void @N_VConst(double noundef 0.000000e+00, ptr noundef %45) #2
  %46 = load ptr, ptr %26, align 8, !tbaa !21
  %47 = tail call i32 @SUNLinSolSetZeroGuess(ptr noundef %46, i32 noundef 1) #2
  %.not81 = icmp eq i32 %47, 0
  br i1 %.not81, label %48, label %112

48:                                               ; preds = %43
  %49 = getelementptr inbounds i8, ptr %8, i64 280
  %50 = load ptr, ptr %49, align 8, !tbaa !28
  %.not82 = icmp eq ptr %50, null
  br i1 %.not82, label %65, label %51

51:                                               ; preds = %48
  %52 = getelementptr inbounds i8, ptr %0, i64 1272
  %53 = load double, ptr %52, align 8, !tbaa !29
  %54 = getelementptr inbounds i8, ptr %0, i64 1288
  %55 = load double, ptr %54, align 8, !tbaa !30
  %56 = getelementptr inbounds i8, ptr %8, i64 304
  %57 = load ptr, ptr %56, align 8, !tbaa !31
  %58 = tail call i32 %50(double noundef %53, ptr noundef %3, ptr noundef %4, ptr noundef %5, double noundef %55, ptr noundef %57) #2
  %59 = getelementptr inbounds i8, ptr %8, i64 232
  store i32 %58, ptr %59, align 8, !tbaa !26
  %60 = getelementptr inbounds i8, ptr %8, i64 176
  %61 = load i64, ptr %60, align 8, !tbaa !32
  %62 = add nsw i64 %61, 1
  store i64 %62, ptr %60, align 8, !tbaa !32
  %.not83 = icmp eq i32 %58, 0
  br i1 %.not83, label %65, label %63

63:                                               ; preds = %51
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef 0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.64) #2
  %64 = load i32, ptr %59, align 8, !tbaa !26
  br label %112

65:                                               ; preds = %51, %48
  %66 = load ptr, ptr %26, align 8, !tbaa !21
  %67 = getelementptr inbounds i8, ptr %8, i64 40
  %68 = load ptr, ptr %67, align 8, !tbaa !33
  %69 = load ptr, ptr %44, align 8, !tbaa !27
  %70 = tail call i32 @SUNLinSolSolve(ptr noundef %66, ptr noundef %68, ptr noundef %69, ptr noundef %1, double noundef %.1) #2
  %71 = load i32, ptr %8, align 8, !tbaa !13
  %.not84 = icmp eq i32 %71, 0
  br i1 %.not84, label %89, label %72

72:                                               ; preds = %65
  %73 = load ptr, ptr %26, align 8, !tbaa !21
  %74 = tail call i32 @SUNLinSolNumIters(ptr noundef %73) #2
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %82

76:                                               ; preds = %72
  %77 = load ptr, ptr %26, align 8, !tbaa !21
  %78 = tail call i32 @SUNLinSolGetType(ptr noundef %77) #2
  %.not85 = icmp eq i32 %78, 3
  br i1 %.not85, label %82, label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr %26, align 8, !tbaa !21
  %81 = tail call ptr @SUNLinSolResid(ptr noundef %80) #2
  br label %84

82:                                               ; preds = %76, %72
  %83 = load ptr, ptr %44, align 8, !tbaa !27
  br label %84

84:                                               ; preds = %82, %79
  %.sink = phi ptr [ %83, %82 ], [ %81, %79 ]
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %.sink, ptr noundef %1) #2
  %85 = sext i32 %74 to i64
  %86 = getelementptr inbounds i8, ptr %8, i64 144
  %87 = load i64, ptr %86, align 8, !tbaa !34
  %88 = add nsw i64 %87, %85
  store i64 %88, ptr %86, align 8, !tbaa !34
  br label %91

89:                                               ; preds = %65
  %90 = load ptr, ptr %44, align 8, !tbaa !27
  tail call void @N_VScale(double noundef 1.000000e+00, ptr noundef %90, ptr noundef %1) #2
  br label %91

91:                                               ; preds = %89, %84
  %92 = getelementptr inbounds i8, ptr %8, i64 96
  %93 = load i32, ptr %92, align 8, !tbaa !35
  %.not86 = icmp eq i32 %93, 0
  br i1 %.not86, label %101, label %94

94:                                               ; preds = %91
  %95 = getelementptr inbounds i8, ptr %0, i64 1312
  %96 = load double, ptr %95, align 8, !tbaa !36
  %97 = fcmp une double %96, 1.000000e+00
  br i1 %97, label %98, label %101

98:                                               ; preds = %94
  %99 = fadd double %96, 1.000000e+00
  %100 = fdiv double 2.000000e+00, %99
  tail call void @N_VScale(double noundef %100, ptr noundef %1, ptr noundef %1) #2
  br label %101

101:                                              ; preds = %98, %94, %91
  %.not87 = icmp eq i32 %70, 0
  br i1 %.not87, label %.thread, label %103

.thread:                                          ; preds = %101
  %102 = getelementptr inbounds i8, ptr %8, i64 232
  store i32 0, ptr %102, align 8, !tbaa !26
  br label %112

103:                                              ; preds = %101
  %104 = getelementptr inbounds i8, ptr %8, i64 160
  %105 = load i64, ptr %104, align 8, !tbaa !37
  %106 = add nsw i64 %105, 1
  store i64 %106, ptr %104, align 8, !tbaa !37
  %107 = getelementptr inbounds i8, ptr %8, i64 232
  store i32 %70, ptr %107, align 8, !tbaa !26
  switch i32 %70, label %112 [
    i32 -808, label %111
    i32 801, label %108
    i32 802, label %108
    i32 805, label %108
    i32 806, label %108
    i32 807, label %108
    i32 808, label %108
    i32 -801, label %109
    i32 -802, label %109
    i32 -803, label %109
    i32 -810, label %109
    i32 -811, label %109
    i32 -809, label %110
  ]

108:                                              ; preds = %103, %103, %103, %103, %103, %103
  br label %112

109:                                              ; preds = %103, %103, %103, %103, %103
  br label %112

110:                                              ; preds = %103
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -809, ptr noundef nonnull @.str, ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.65) #2
  br label %112

111:                                              ; preds = %103
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -808, ptr noundef nonnull @.str, ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.66) #2
  br label %112

112:                                              ; preds = %.thread, %103, %43, %111, %110, %109, %108, %63, %34, %10
  %.0 = phi i32 [ -2, %10 ], [ -9, %34 ], [ %64, %63 ], [ -1, %111 ], [ -1, %110 ], [ -1, %109 ], [ 1, %108 ], [ -1, %43 ], [ 0, %103 ], [ 0, %.thread ]
  ret i32 %.0
}

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

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

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

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

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

declare i32 @SUNLinSolSolve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #0

declare i32 @SUNLinSolNumIters(ptr noundef) local_unnamed_addr #0

declare ptr @SUNLinSolResid(ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 1832}
!6 = !{!"IDAMemRec", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !11, i64 64, !11, i64 68, !7, i64 72, !7, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 124, !10, i64 128, !10, i64 136, !7, i64 144, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !7, i64 168, !7, i64 176, !11, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !11, i64 216, !10, i64 224, !11, i64 232, !11, i64 236, !10, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !11, i64 272, !7, i64 280, !7, i64 288, !11, i64 296, !11, i64 300, !11, i64 304, !10, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !8, i64 344, !8, i64 392, !8, i64 440, !8, i64 488, !8, i64 536, !8, i64 584, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, i64 664, !7, i64 672, !7, i64 680, !7, i64 688, !7, i64 696, !7, i64 704, !7, i64 712, !7, i64 720, !7, i64 728, !7, i64 736, !7, i64 744, !7, i64 752, !7, i64 760, !8, i64 768, !7, i64 816, !7, i64 824, !7, i64 832, !7, i64 840, !8, i64 848, !7, i64 896, !7, i64 904, !7, i64 912, !7, i64 920, !7, i64 928, !7, i64 936, !7, i64 944, !7, i64 952, !7, i64 960, !7, i64 968, !7, i64 976, !7, i64 984, !7, i64 992, !7, i64 1000, !7, i64 1008, !7, i64 1016, !8, i64 1024, !7, i64 1072, !7, i64 1080, !7, i64 1088, !7, i64 1096, !7, i64 1104, !10, i64 1112, !7, i64 1120, !7, i64 1128, !11, i64 1136, !11, i64 1140, !11, i64 1144, !11, i64 1148, !11, i64 1152, !11, i64 1156, !11, i64 1160, !11, i64 1164, !10, i64 1168, !10, i64 1176, !10, i64 1184, !11, i64 1192, !10, i64 1200, !11, i64 1208, !11, i64 1212, !11, i64 1216, !11, i64 1220, !11, i64 1224, !10, i64 1232, !10, i64 1240, !10, i64 1248, !10, i64 1256, !10, i64 1264, !10, i64 1272, !10, i64 1280, !10, i64 1288, !10, i64 1296, !10, i64 1304, !10, i64 1312, !10, i64 1320, !10, i64 1328, !10, i64 1336, !10, i64 1344, !10, i64 1352, !10, i64 1360, !11, i64 1368, !11, i64 1372, !11, i64 1376, !11, i64 1380, !12, i64 1384, !10, i64 1392, !12, i64 1400, !12, i64 1408, !12, i64 1416, !12, i64 1424, !12, i64 1432, !12, i64 1440, !12, i64 1448, !12, i64 1456, !12, i64 1464, !12, i64 1472, !12, i64 1480, !12, i64 1488, !12, i64 1496, !12, i64 1504, !12, i64 1512, !12, i64 1520, !12, i64 1528, !12, i64 1536, !12, i64 1544, !12, i64 1552, !12, i64 1560, !12, i64 1568, !12, i64 1576, !12, i64 1584, !10, i64 1592, !7, i64 1600, !7, i64 1608, !7, i64 1616, !11, i64 1624, !11, i64 1628, !11, i64 1632, !11, i64 1636, !11, i64 1640, !11, i64 1644, !11, i64 1648, !11, i64 1652, !11, i64 1656, !11, i64 1660, !11, i64 1664, !11, i64 1668, !11, i64 1672, !7, i64 1680, !11, i64 1688, !7, i64 1696, !11, i64 1704, !7, i64 1712, !11, i64 1720, !7, i64 1728, !7, i64 1736, !7, i64 1744, !7, i64 1752, !7, i64 1760, !7, i64 1768, !11, i64 1776, !11, i64 1780, !7, i64 1784, !7, i64 1792, !7, i64 1800, !7, i64 1808, !7, i64 1816, !7, i64 1824, !7, i64 1832, !11, i64 1840, !11, i64 1844, !7, i64 1848, !11, i64 1856, !7, i64 1864, !7, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 1920, !10, i64 1928, !10, i64 1936, !11, i64 1944, !11, i64 1948, !12, i64 1952, !7, i64 1960, !11, i64 1968, !7, i64 1976, !8, i64 1984, !7, i64 2024, !7, i64 2032, !11, i64 2040, !7, i64 2048, !11, i64 2056}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!14, !11, i64 0}
!14 = !{!"IDALsMemRec", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !11, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !11, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !11, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304}
!15 = !{!14, !10, i64 112}
!16 = !{!14, !10, i64 104}
!17 = !{!6, !10, i64 1336}
!18 = !{!14, !7, i64 72}
!19 = !{!14, !7, i64 80}
!20 = !{!14, !7, i64 88}
!21 = !{!14, !7, i64 32}
!22 = !{!23, !7, i64 8}
!23 = !{!"_generic_SUNLinearSolver", !7, i64 0, !7, i64 8, !7, i64 16}
!24 = !{!25, !7, i64 32}
!25 = !{!"_generic_SUNLinearSolver_Ops", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112}
!26 = !{!14, !11, i64 232}
!27 = !{!14, !7, i64 64}
!28 = !{!14, !7, i64 280}
!29 = !{!6, !10, i64 1272}
!30 = !{!6, !10, i64 1288}
!31 = !{!14, !7, i64 304}
!32 = !{!14, !12, i64 176}
!33 = !{!14, !7, i64 40}
!34 = !{!14, !12, i64 144}
!35 = !{!14, !11, i64 96}
!36 = !{!6, !10, i64 1312}
!37 = !{!14, !12, i64 160}


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