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

; 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.IDAadjMemRec = type { double, double, i32, i32, double, i32, double, ptr, i32, ptr, i32, ptr, ptr, i32, i64, i64, ptr, i64, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, [6 x ptr], [6 x ptr], [6 x double], ptr, ptr, ptr, ptr }
%struct.CkpntMemRec = type { double, double, [6 x ptr], i32, [6 x ptr], i32, i32, [6 x ptr], i32, [6 x ptr], i64, double, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, double, [6 x double], [6 x double], [6 x double], [6 x double], [6 x double], i32, ptr }
%struct.DtpntMemRec = type { double, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [55 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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @IDASolveF(ptr noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) #2 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store double %1, ptr %10, align 8, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i32 %5, ptr %14, align 4, !tbaa !11
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %7
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef null, i32 noundef -20, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.2)
  store i32 -20, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

30:                                               ; preds = %7
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %31, ptr %17, align 8, !tbaa !5
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.IDAMemRec, ptr %32, i32 0, i32 232
  %34 = load i32, ptr %33, align 8, !tbaa !13
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %30
  %37 = load ptr, ptr %17, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %37, i32 noundef -101, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.7)
  store i32 -101, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

38:                                               ; preds = %30
  %39 = load ptr, ptr %17, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.IDAMemRec, ptr %39, i32 0, i32 231
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  store ptr %41, ptr %16, align 8, !tbaa !5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %46

44:                                               ; preds = %38
  %45 = load ptr, ptr %17, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %45, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.9)
  store i32 -22, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

46:                                               ; preds = %38
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %51

49:                                               ; preds = %46
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %50, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.10)
  store i32 -22, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

51:                                               ; preds = %46
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = icmp eq ptr %52, null
  br i1 %53, label %54, label %56

54:                                               ; preds = %51
  %55 = load ptr, ptr %17, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %55, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.11)
  store i32 -22, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

56:                                               ; preds = %51
  %57 = load i32, ptr %14, align 4, !tbaa !11
  %58 = icmp ne i32 %57, 1
  br i1 %58, label %59, label %64

59:                                               ; preds = %56
  %60 = load i32, ptr %14, align 4, !tbaa !11
  %61 = icmp ne i32 %60, 2
  br i1 %61, label %62, label %64

62:                                               ; preds = %59
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %63, i32 noundef -22, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.12)
  store i32 -22, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

64:                                               ; preds = %59, %56
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.IDAadjMemRec, ptr %65, i32 0, i32 16
  %67 = load ptr, ptr %66, align 8, !tbaa !17
  store ptr %67, ptr %19, align 8, !tbaa !5
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.IDAMemRec, ptr %68, i32 0, i32 115
  %70 = load i32, ptr %69, align 8, !tbaa !19
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %80

72:                                               ; preds = %64
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.IDAadjMemRec, ptr %73, i32 0, i32 3
  store i32 1, ptr %74, align 4, !tbaa !20
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.IDAMemRec, ptr %75, i32 0, i32 116
  %77 = load double, ptr %76, align 8, !tbaa !21
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.IDAadjMemRec, ptr %78, i32 0, i32 4
  store double %77, ptr %79, align 8, !tbaa !22
  br label %80

80:                                               ; preds = %72, %64
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.IDAadjMemRec, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %82, align 8, !tbaa !23
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %191

85:                                               ; preds = %80
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.IDAMemRec, ptr %86, i32 0, i32 127
  %88 = load double, ptr %87, align 8, !tbaa !24
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.IDAadjMemRec, ptr %89, i32 0, i32 0
  store double %88, ptr %90, align 8, !tbaa !25
  %91 = load ptr, ptr %17, align 8, !tbaa !5
  %92 = call ptr @IDAAckpntInit(ptr noundef %91)
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.IDAadjMemRec, ptr %93, i32 0, i32 11
  store ptr %92, ptr %94, align 8, !tbaa !26
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.IDAadjMemRec, ptr %95, i32 0, i32 11
  %97 = load ptr, ptr %96, align 8, !tbaa !26
  %98 = icmp eq ptr %97, null
  br i1 %98, label %99, label %101

99:                                               ; preds = %85
  %100 = load ptr, ptr %17, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %100, i32 noundef -21, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.5)
  store i32 -21, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

101:                                              ; preds = %85
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.IDAadjMemRec, ptr %102, i32 0, i32 23
  %104 = load i32, ptr %103, align 8, !tbaa !27
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %171, label %106

106:                                              ; preds = %101
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.IDAMemRec, ptr %107, i32 0, i32 23
  %109 = load i32, ptr %108, align 4, !tbaa !28
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %114, label %111

111:                                              ; preds = %106
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.IDAadjMemRec, ptr %112, i32 0, i32 25
  store i32 0, ptr %113, align 8, !tbaa !29
  br label %114

114:                                              ; preds = %111, %106
  %115 = load ptr, ptr %16, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.IDAadjMemRec, ptr %115, i32 0, i32 21
  %117 = load ptr, ptr %116, align 8, !tbaa !30
  %118 = load ptr, ptr %17, align 8, !tbaa !5
  %119 = call i32 %117(ptr noundef %118)
  store i32 %119, ptr %23, align 4, !tbaa !11
  %120 = load i32, ptr %23, align 4, !tbaa !11
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %124, label %122

122:                                              ; preds = %114
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %123, i32 noundef -21, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.5)
  store i32 -21, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

124:                                              ; preds = %114
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %125

125:                                              ; preds = %140, %124
  %126 = load i32, ptr %22, align 4, !tbaa !11
  %127 = icmp slt i32 %126, 6
  br i1 %127, label %128, label %143

128:                                              ; preds = %125
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.IDAMemRec, ptr %129, i32 0, i32 50
  %131 = load i32, ptr %22, align 4, !tbaa !11
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [6 x ptr], ptr %130, i64 0, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = load ptr, ptr %16, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.IDAadjMemRec, ptr %135, i32 0, i32 28
  %137 = load i32, ptr %22, align 4, !tbaa !11
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [6 x ptr], ptr %136, i64 0, i64 %138
  store ptr %134, ptr %139, align 8, !tbaa !5
  br label %140

140:                                              ; preds = %128
  %141 = load i32, ptr %22, align 4, !tbaa !11
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %22, align 4, !tbaa !11
  br label %125, !llvm.loop !31

143:                                              ; preds = %125
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.IDAadjMemRec, ptr %144, i32 0, i32 25
  %146 = load i32, ptr %145, align 8, !tbaa !29
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %168

148:                                              ; preds = %143
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %149

149:                                              ; preds = %164, %148
  %150 = load i32, ptr %22, align 4, !tbaa !11
  %151 = icmp slt i32 %150, 6
  br i1 %151, label %152, label %167

152:                                              ; preds = %149
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.IDAMemRec, ptr %153, i32 0, i32 78
  %155 = load i32, ptr %22, align 4, !tbaa !11
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [6 x ptr], ptr %154, i64 0, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.IDAadjMemRec, ptr %159, i32 0, i32 29
  %161 = load i32, ptr %22, align 4, !tbaa !11
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [6 x ptr], ptr %160, i64 0, i64 %162
  store ptr %158, ptr %163, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %152
  %165 = load i32, ptr %22, align 4, !tbaa !11
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %22, align 4, !tbaa !11
  br label %149, !llvm.loop !33

167:                                              ; preds = %149
  br label %168

168:                                              ; preds = %167, %143
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.IDAadjMemRec, ptr %169, i32 0, i32 23
  store i32 1, ptr %170, align 8, !tbaa !27
  br label %171

171:                                              ; preds = %168, %101
  %172 = load ptr, ptr %16, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.IDAadjMemRec, ptr %172, i32 0, i32 11
  %174 = load ptr, ptr %173, align 8, !tbaa !26
  %175 = getelementptr inbounds %struct.CkpntMemRec, ptr %174, i32 0, i32 0
  %176 = load double, ptr %175, align 8, !tbaa !34
  %177 = load ptr, ptr %19, align 8, !tbaa !5
  %178 = getelementptr inbounds ptr, ptr %177, i64 0
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.DtpntMemRec, ptr %179, i32 0, i32 0
  store double %176, ptr %180, align 8, !tbaa !36
  %181 = load ptr, ptr %16, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.IDAadjMemRec, ptr %181, i32 0, i32 19
  %183 = load ptr, ptr %182, align 8, !tbaa !38
  %184 = load ptr, ptr %17, align 8, !tbaa !5
  %185 = load ptr, ptr %19, align 8, !tbaa !5
  %186 = getelementptr inbounds ptr, ptr %185, i64 0
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = call i32 %183(ptr noundef %184, ptr noundef %187)
  %189 = load ptr, ptr %16, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.IDAadjMemRec, ptr %189, i32 0, i32 2
  store i32 0, ptr %190, align 8, !tbaa !23
  br label %273

191:                                              ; preds = %80
  %192 = load i32, ptr %14, align 4, !tbaa !11
  %193 = icmp eq i32 %192, 1
  br i1 %193, label %194, label %272

194:                                              ; preds = %191
  store i32 0, ptr %24, align 4, !tbaa !11
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.IDAadjMemRec, ptr %195, i32 0, i32 5
  %197 = load i32, ptr %196, align 8, !tbaa !39
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %203

199:                                              ; preds = %194
  %200 = load ptr, ptr %16, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.IDAadjMemRec, ptr %200, i32 0, i32 6
  %202 = load double, ptr %201, align 8, !tbaa !40
  br label %207

203:                                              ; preds = %194
  %204 = load ptr, ptr %17, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.IDAMemRec, ptr %204, i32 0, i32 127
  %206 = load double, ptr %205, align 8, !tbaa !24
  br label %207

207:                                              ; preds = %203, %199
  %208 = phi double [ %202, %199 ], [ %206, %203 ]
  store double %208, ptr %25, align 8, !tbaa !9
  %209 = load double, ptr %25, align 8, !tbaa !9
  %210 = load double, ptr %10, align 8, !tbaa !9
  %211 = fsub double %209, %210
  %212 = load ptr, ptr %17, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.IDAMemRec, ptr %212, i32 0, i32 124
  %214 = load double, ptr %213, align 8, !tbaa !41
  %215 = fmul double %211, %214
  %216 = fcmp oge double %215, 0.000000e+00
  br i1 %216, label %217, label %225

217:                                              ; preds = %207
  %218 = load double, ptr %10, align 8, !tbaa !9
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  store double %218, ptr %219, align 8, !tbaa !9
  %220 = load ptr, ptr %17, align 8, !tbaa !5
  %221 = load double, ptr %10, align 8, !tbaa !9
  %222 = load ptr, ptr %12, align 8, !tbaa !5
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = call i32 @IDAGetSolution(ptr noundef %220, double noundef %221, ptr noundef %222, ptr noundef %223)
  store i32 %224, ptr %21, align 4, !tbaa !11
  store i32 1, ptr %24, align 4, !tbaa !11
  br label %245

225:                                              ; preds = %207
  %226 = load ptr, ptr %16, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.IDAadjMemRec, ptr %226, i32 0, i32 5
  %228 = load i32, ptr %227, align 8, !tbaa !39
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %244

230:                                              ; preds = %225
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.IDAadjMemRec, ptr %231, i32 0, i32 6
  %233 = load double, ptr %232, align 8, !tbaa !40
  %234 = load ptr, ptr %11, align 8, !tbaa !5
  store double %233, ptr %234, align 8, !tbaa !9
  %235 = load ptr, ptr %17, align 8, !tbaa !5
  %236 = load ptr, ptr %16, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.IDAadjMemRec, ptr %236, i32 0, i32 6
  %238 = load double, ptr %237, align 8, !tbaa !40
  %239 = load ptr, ptr %12, align 8, !tbaa !5
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = call i32 @IDAGetSolution(ptr noundef %235, double noundef %238, ptr noundef %239, ptr noundef %240)
  store i32 %241, ptr %21, align 4, !tbaa !11
  store i32 2, ptr %21, align 4, !tbaa !11
  %242 = load ptr, ptr %16, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.IDAadjMemRec, ptr %242, i32 0, i32 5
  store i32 0, ptr %243, align 8, !tbaa !39
  store i32 1, ptr %24, align 4, !tbaa !11
  br label %244

244:                                              ; preds = %230, %225
  br label %245

245:                                              ; preds = %244, %217
  %246 = load i32, ptr %24, align 4, !tbaa !11
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %271

248:                                              ; preds = %245
  %249 = load ptr, ptr %16, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.IDAadjMemRec, ptr %249, i32 0, i32 13
  %251 = load i32, ptr %250, align 8, !tbaa !42
  %252 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 %251, ptr %252, align 4, !tbaa !11
  %253 = load ptr, ptr %16, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.IDAadjMemRec, ptr %253, i32 0, i32 24
  store i32 1, ptr %254, align 4, !tbaa !43
  %255 = load ptr, ptr %16, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.IDAadjMemRec, ptr %255, i32 0, i32 11
  %257 = load ptr, ptr %256, align 8, !tbaa !26
  %258 = load ptr, ptr %16, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.IDAadjMemRec, ptr %258, i32 0, i32 12
  store ptr %257, ptr %259, align 8, !tbaa !44
  %260 = load ptr, ptr %17, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.IDAMemRec, ptr %260, i32 0, i32 145
  %262 = load i64, ptr %261, align 8, !tbaa !45
  %263 = load ptr, ptr %16, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.IDAadjMemRec, ptr %263, i32 0, i32 14
  %265 = load i64, ptr %264, align 8, !tbaa !46
  %266 = srem i64 %262, %265
  %267 = add nsw i64 %266, 1
  %268 = load ptr, ptr %16, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.IDAadjMemRec, ptr %268, i32 0, i32 17
  store i64 %267, ptr %269, align 8, !tbaa !47
  %270 = load i32, ptr %21, align 4, !tbaa !11
  store i32 %270, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

271:                                              ; preds = %245
  br label %272

272:                                              ; preds = %271, %191
  br label %273

273:                                              ; preds = %272, %171
  store i64 0, ptr %20, align 8, !tbaa !48
  br label %274

274:                                              ; preds = %440, %273
  %275 = load ptr, ptr %17, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.IDAMemRec, ptr %275, i32 0, i32 143
  %277 = load i64, ptr %276, align 8, !tbaa !49
  %278 = icmp sgt i64 %277, 0
  br i1 %278, label %279, label %290

279:                                              ; preds = %274
  %280 = load i64, ptr %20, align 8, !tbaa !48
  %281 = load ptr, ptr %17, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.IDAMemRec, ptr %281, i32 0, i32 143
  %283 = load i64, ptr %282, align 8, !tbaa !49
  %284 = icmp sge i64 %280, %283
  br i1 %284, label %285, label %290

285:                                              ; preds = %279
  %286 = load ptr, ptr %17, align 8, !tbaa !5
  %287 = load ptr, ptr %17, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.IDAMemRec, ptr %287, i32 0, i32 127
  %289 = load double, ptr %288, align 8, !tbaa !24
  call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef %286, i32 noundef -1, ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.13, double noundef %289)
  store i32 -1, ptr %21, align 4, !tbaa !11
  br label %441

290:                                              ; preds = %279, %274
  %291 = load ptr, ptr %17, align 8, !tbaa !5
  %292 = load double, ptr %10, align 8, !tbaa !9
  %293 = load ptr, ptr %11, align 8, !tbaa !5
  %294 = load ptr, ptr %12, align 8, !tbaa !5
  %295 = load ptr, ptr %13, align 8, !tbaa !5
  %296 = call i32 @IDASolve(ptr noundef %291, double noundef %292, ptr noundef %293, ptr noundef %294, ptr noundef %295, i32 noundef 2)
  store i32 %296, ptr %21, align 4, !tbaa !11
  %297 = load i32, ptr %21, align 4, !tbaa !11
  %298 = icmp slt i32 %297, 0
  br i1 %298, label %299, label %300

299:                                              ; preds = %290
  br label %441

300:                                              ; preds = %290
  %301 = load i64, ptr %20, align 8, !tbaa !48
  %302 = add nsw i64 %301, 1
  store i64 %302, ptr %20, align 8, !tbaa !48
  %303 = load ptr, ptr %17, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.IDAMemRec, ptr %303, i32 0, i32 145
  %305 = load i64, ptr %304, align 8, !tbaa !45
  %306 = load ptr, ptr %16, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.IDAadjMemRec, ptr %306, i32 0, i32 14
  %308 = load i64, ptr %307, align 8, !tbaa !46
  %309 = srem i64 %305, %308
  %310 = icmp eq i64 %309, 0
  br i1 %310, label %311, label %356

311:                                              ; preds = %300
  %312 = load ptr, ptr %17, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.IDAMemRec, ptr %312, i32 0, i32 127
  %314 = load double, ptr %313, align 8, !tbaa !24
  %315 = load ptr, ptr %16, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.IDAadjMemRec, ptr %315, i32 0, i32 11
  %317 = load ptr, ptr %316, align 8, !tbaa !26
  %318 = getelementptr inbounds %struct.CkpntMemRec, ptr %317, i32 0, i32 1
  store double %314, ptr %318, align 8, !tbaa !50
  %319 = load ptr, ptr %17, align 8, !tbaa !5
  %320 = call ptr @IDAAckpntNew(ptr noundef %319)
  store ptr %320, ptr %18, align 8, !tbaa !5
  %321 = load ptr, ptr %18, align 8, !tbaa !5
  %322 = icmp eq ptr %321, null
  br i1 %322, label %323, label %324

323:                                              ; preds = %311
  store i32 -21, ptr %21, align 4, !tbaa !11
  br label %441

324:                                              ; preds = %311
  %325 = load ptr, ptr %16, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.IDAadjMemRec, ptr %325, i32 0, i32 11
  %327 = load ptr, ptr %326, align 8, !tbaa !26
  %328 = load ptr, ptr %18, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.CkpntMemRec, ptr %328, i32 0, i32 32
  store ptr %327, ptr %329, align 8, !tbaa !51
  %330 = load ptr, ptr %18, align 8, !tbaa !5
  %331 = load ptr, ptr %16, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.IDAadjMemRec, ptr %331, i32 0, i32 11
  store ptr %330, ptr %332, align 8, !tbaa !26
  %333 = load ptr, ptr %16, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.IDAadjMemRec, ptr %333, i32 0, i32 13
  %335 = load i32, ptr %334, align 8, !tbaa !42
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %334, align 8, !tbaa !42
  %337 = load ptr, ptr %17, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.IDAMemRec, ptr %337, i32 0, i32 207
  store i32 1, ptr %338, align 8, !tbaa !52
  %339 = load ptr, ptr %16, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.IDAadjMemRec, ptr %339, i32 0, i32 11
  %341 = load ptr, ptr %340, align 8, !tbaa !26
  %342 = getelementptr inbounds %struct.CkpntMemRec, ptr %341, i32 0, i32 0
  %343 = load double, ptr %342, align 8, !tbaa !34
  %344 = load ptr, ptr %19, align 8, !tbaa !5
  %345 = getelementptr inbounds ptr, ptr %344, i64 0
  %346 = load ptr, ptr %345, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.DtpntMemRec, ptr %346, i32 0, i32 0
  store double %343, ptr %347, align 8, !tbaa !36
  %348 = load ptr, ptr %16, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.IDAadjMemRec, ptr %348, i32 0, i32 19
  %350 = load ptr, ptr %349, align 8, !tbaa !38
  %351 = load ptr, ptr %17, align 8, !tbaa !5
  %352 = load ptr, ptr %19, align 8, !tbaa !5
  %353 = getelementptr inbounds ptr, ptr %352, i64 0
  %354 = load ptr, ptr %353, align 8, !tbaa !5
  %355 = call i32 %350(ptr noundef %351, ptr noundef %354)
  br label %386

356:                                              ; preds = %300
  %357 = load ptr, ptr %17, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.IDAMemRec, ptr %357, i32 0, i32 127
  %359 = load double, ptr %358, align 8, !tbaa !24
  %360 = load ptr, ptr %19, align 8, !tbaa !5
  %361 = load ptr, ptr %17, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.IDAMemRec, ptr %361, i32 0, i32 145
  %363 = load i64, ptr %362, align 8, !tbaa !45
  %364 = load ptr, ptr %16, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.IDAadjMemRec, ptr %364, i32 0, i32 14
  %366 = load i64, ptr %365, align 8, !tbaa !46
  %367 = srem i64 %363, %366
  %368 = getelementptr inbounds ptr, ptr %360, i64 %367
  %369 = load ptr, ptr %368, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.DtpntMemRec, ptr %369, i32 0, i32 0
  store double %359, ptr %370, align 8, !tbaa !36
  %371 = load ptr, ptr %16, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.IDAadjMemRec, ptr %371, i32 0, i32 19
  %373 = load ptr, ptr %372, align 8, !tbaa !38
  %374 = load ptr, ptr %17, align 8, !tbaa !5
  %375 = load ptr, ptr %19, align 8, !tbaa !5
  %376 = load ptr, ptr %17, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.IDAMemRec, ptr %376, i32 0, i32 145
  %378 = load i64, ptr %377, align 8, !tbaa !45
  %379 = load ptr, ptr %16, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.IDAadjMemRec, ptr %379, i32 0, i32 14
  %381 = load i64, ptr %380, align 8, !tbaa !46
  %382 = srem i64 %378, %381
  %383 = getelementptr inbounds ptr, ptr %375, i64 %382
  %384 = load ptr, ptr %383, align 8, !tbaa !5
  %385 = call i32 %373(ptr noundef %374, ptr noundef %384)
  br label %386

386:                                              ; preds = %356, %324
  %387 = load ptr, ptr %17, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.IDAMemRec, ptr %387, i32 0, i32 127
  %389 = load double, ptr %388, align 8, !tbaa !24
  %390 = load ptr, ptr %16, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.IDAadjMemRec, ptr %390, i32 0, i32 11
  %392 = load ptr, ptr %391, align 8, !tbaa !26
  %393 = getelementptr inbounds %struct.CkpntMemRec, ptr %392, i32 0, i32 1
  store double %389, ptr %393, align 8, !tbaa !50
  %394 = load ptr, ptr %17, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.IDAMemRec, ptr %394, i32 0, i32 127
  %396 = load double, ptr %395, align 8, !tbaa !24
  %397 = load ptr, ptr %16, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.IDAadjMemRec, ptr %397, i32 0, i32 1
  store double %396, ptr %398, align 8, !tbaa !53
  %399 = load i32, ptr %14, align 4, !tbaa !11
  %400 = icmp eq i32 %399, 2
  br i1 %400, label %401, label %402

401:                                              ; preds = %386
  br label %441

402:                                              ; preds = %386
  %403 = load ptr, ptr %11, align 8, !tbaa !5
  %404 = load double, ptr %403, align 8, !tbaa !9
  %405 = load double, ptr %10, align 8, !tbaa !9
  %406 = fsub double %404, %405
  %407 = load ptr, ptr %17, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.IDAMemRec, ptr %407, i32 0, i32 124
  %409 = load double, ptr %408, align 8, !tbaa !41
  %410 = fmul double %406, %409
  %411 = fcmp oge double %410, 0.000000e+00
  br i1 %411, label %412, label %433

412:                                              ; preds = %402
  %413 = load i32, ptr %21, align 4, !tbaa !11
  %414 = icmp eq i32 %413, 2
  br i1 %414, label %415, label %422

415:                                              ; preds = %412
  %416 = load ptr, ptr %16, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.IDAadjMemRec, ptr %416, i32 0, i32 5
  store i32 1, ptr %417, align 8, !tbaa !39
  %418 = load ptr, ptr %11, align 8, !tbaa !5
  %419 = load double, ptr %418, align 8, !tbaa !9
  %420 = load ptr, ptr %16, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.IDAadjMemRec, ptr %420, i32 0, i32 6
  store double %419, ptr %421, align 8, !tbaa !40
  br label %422

422:                                              ; preds = %415, %412
  %423 = load double, ptr %10, align 8, !tbaa !9
  %424 = load ptr, ptr %11, align 8, !tbaa !5
  store double %423, ptr %424, align 8, !tbaa !9
  %425 = load ptr, ptr %17, align 8, !tbaa !5
  %426 = load double, ptr %10, align 8, !tbaa !9
  %427 = load ptr, ptr %12, align 8, !tbaa !5
  %428 = load ptr, ptr %13, align 8, !tbaa !5
  %429 = call i32 @IDAGetSolution(ptr noundef %425, double noundef %426, ptr noundef %427, ptr noundef %428)
  store i32 %429, ptr %21, align 4, !tbaa !11
  %430 = load double, ptr %10, align 8, !tbaa !9
  %431 = load ptr, ptr %17, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.IDAMemRec, ptr %431, i32 0, i32 128
  store double %430, ptr %432, align 8, !tbaa !54
  br label %441

433:                                              ; preds = %402
  %434 = load i32, ptr %21, align 4, !tbaa !11
  %435 = icmp eq i32 %434, 1
  br i1 %435, label %439, label %436

436:                                              ; preds = %433
  %437 = load i32, ptr %21, align 4, !tbaa !11
  %438 = icmp eq i32 %437, 2
  br i1 %438, label %439, label %440

439:                                              ; preds = %436, %433
  br label %441

440:                                              ; preds = %436
  br label %274

441:                                              ; preds = %439, %422, %401, %323, %299, %285
  %442 = load ptr, ptr %16, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.IDAadjMemRec, ptr %442, i32 0, i32 13
  %444 = load i32, ptr %443, align 8, !tbaa !42
  %445 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 %444, ptr %445, align 4, !tbaa !11
  %446 = load ptr, ptr %16, align 8, !tbaa !5
  %447 = getelementptr inbounds %struct.IDAadjMemRec, ptr %446, i32 0, i32 24
  store i32 1, ptr %447, align 4, !tbaa !43
  %448 = load ptr, ptr %16, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.IDAadjMemRec, ptr %448, i32 0, i32 11
  %450 = load ptr, ptr %449, align 8, !tbaa !26
  %451 = load ptr, ptr %16, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.IDAadjMemRec, ptr %451, i32 0, i32 12
  store ptr %450, ptr %452, align 8, !tbaa !44
  %453 = load ptr, ptr %17, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.IDAMemRec, ptr %453, i32 0, i32 145
  %455 = load i64, ptr %454, align 8, !tbaa !45
  %456 = load ptr, ptr %16, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.IDAadjMemRec, ptr %456, i32 0, i32 14
  %458 = load i64, ptr %457, align 8, !tbaa !46
  %459 = srem i64 %455, %458
  %460 = add nsw i64 %459, 1
  %461 = load ptr, ptr %16, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.IDAadjMemRec, ptr %461, i32 0, i32 17
  store i64 %460, ptr %462, align 8, !tbaa !47
  %463 = load i32, ptr %21, align 4, !tbaa !11
  store i32 %463, ptr %8, align 4
  store i32 1, ptr %26, align 4
  br label %464

464:                                              ; preds = %441, %248, %122, %99, %62, %54, %49, %44, %36, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  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 8, ptr %16) #3
  %465 = load i32, ptr %8, align 4
  ret i32 %465
}

; Function Attrs: nounwind uwtable
declare hidden ptr @IDAAckpntInit(ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @IDAAckpntNew(ptr noundef) #2

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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 2056}
!14 = !{!"IDAMemRec", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !10, i64 40, !10, 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, !10, i64 128, !10, 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, !10, i64 224, !12, i64 232, !12, i64 236, !10, 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, !10, 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, !10, 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, !10, i64 1168, !10, i64 1176, !10, i64 1184, !12, i64 1192, !10, i64 1200, !12, i64 1208, !12, i64 1212, !12, i64 1216, !12, i64 1220, !12, 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, !12, i64 1368, !12, i64 1372, !12, i64 1376, !12, i64 1380, !15, i64 1384, !10, i64 1392, !15, i64 1400, !15, i64 1408, !15, i64 1416, !15, i64 1424, !15, i64 1432, !15, i64 1440, !15, i64 1448, !15, i64 1456, !15, i64 1464, !15, i64 1472, !15, i64 1480, !15, i64 1488, !15, i64 1496, !15, i64 1504, !15, i64 1512, !15, i64 1520, !15, i64 1528, !15, i64 1536, !15, i64 1544, !15, i64 1552, !15, i64 1560, !15, i64 1568, !15, i64 1576, !15, i64 1584, !10, 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, !10, i64 1880, !10, i64 1888, !10, i64 1896, !6, i64 1904, !6, i64 1912, !6, i64 1920, !10, i64 1928, !10, i64 1936, !12, i64 1944, !12, i64 1948, !15, 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}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !6, i64 2048}
!17 = !{!18, !6, i64 120}
!18 = !{!"IDAadjMemRec", !10, i64 0, !10, i64 8, !12, i64 16, !12, i64 20, !10, i64 24, !12, i64 32, !10, i64 40, !6, i64 48, !12, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !12, i64 96, !15, i64 104, !15, i64 112, !6, i64 120, !15, i64 128, !12, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !7, i64 200, !7, i64 248, !7, i64 296, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!19 = !{!14, !12, i64 1192}
!20 = !{!18, !12, i64 20}
!21 = !{!14, !10, i64 1200}
!22 = !{!18, !10, i64 24}
!23 = !{!18, !12, i64 16}
!24 = !{!14, !10, i64 1272}
!25 = !{!18, !10, i64 0}
!26 = !{!18, !6, i64 80}
!27 = !{!18, !12, i64 176}
!28 = !{!14, !12, i64 156}
!29 = !{!18, !12, i64 184}
!30 = !{!18, !6, i64 160}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!35, !10, i64 0}
!35 = !{!"CkpntMemRec", !10, i64 0, !10, i64 8, !7, i64 16, !12, i64 64, !7, i64 72, !12, i64 120, !12, i64 124, !7, i64 128, !12, i64 176, !7, i64 184, !15, i64 232, !10, i64 240, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !7, i64 344, !7, i64 392, !7, i64 440, !7, i64 488, !7, i64 536, !12, i64 584, !6, i64 592}
!36 = !{!37, !10, i64 0}
!37 = !{!"DtpntMemRec", !10, i64 0, !6, i64 8}
!38 = !{!18, !6, i64 144}
!39 = !{!18, !12, i64 32}
!40 = !{!18, !10, i64 40}
!41 = !{!14, !10, i64 1248}
!42 = !{!18, !12, i64 96}
!43 = !{!18, !12, i64 180}
!44 = !{!18, !6, i64 88}
!45 = !{!14, !15, i64 1400}
!46 = !{!18, !15, i64 104}
!47 = !{!18, !15, i64 128}
!48 = !{!15, !15, i64 0}
!49 = !{!14, !15, i64 1384}
!50 = !{!35, !10, i64 8}
!51 = !{!35, !6, i64 592}
!52 = !{!14, !12, i64 1840}
!53 = !{!18, !10, i64 8}
!54 = !{!14, !10, i64 1280}


; 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 [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [55 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @IDASolveF(ptr noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #1 {
  %8 = icmp eq ptr %0, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %7
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef null, i32 noundef -20, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2) #2
  br label %212

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %0, i64 2056
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %10
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -101, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7) #2
  br label %212

15:                                               ; preds = %10
  %16 = getelementptr inbounds i8, ptr %0, i64 2048
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = icmp eq ptr %3, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %15
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9) #2
  br label %212

20:                                               ; preds = %15
  %21 = icmp eq ptr %4, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %20
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.10) #2
  br label %212

23:                                               ; preds = %20
  %24 = icmp eq ptr %2, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %23
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.11) #2
  br label %212

26:                                               ; preds = %23
  %27 = add i32 %5, -3
  %or.cond = icmp ult i32 %27, -2
  br i1 %or.cond, label %28, label %29

28:                                               ; preds = %26
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.12) #2
  br label %212

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %17, i64 120
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = getelementptr inbounds i8, ptr %0, i64 1192
  %33 = load i32, ptr %32, align 8, !tbaa !16
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %39, label %34

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %17, i64 20
  store i32 1, ptr %35, align 4, !tbaa !17
  %36 = getelementptr inbounds i8, ptr %0, i64 1200
  %37 = load double, ptr %36, align 8, !tbaa !18
  %38 = getelementptr inbounds i8, ptr %17, i64 24
  store double %37, ptr %38, align 8, !tbaa !19
  br label %39

39:                                               ; preds = %34, %29
  %40 = getelementptr inbounds i8, ptr %17, i64 16
  %41 = load i32, ptr %40, align 8, !tbaa !20
  %.not170 = icmp eq i32 %41, 0
  br i1 %.not170, label %107, label %42

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %0, i64 1272
  %44 = load double, ptr %43, align 8, !tbaa !21
  store double %44, ptr %17, align 8, !tbaa !22
  %45 = tail call ptr @IDAAckpntInit(ptr noundef nonnull %0)
  %46 = getelementptr inbounds i8, ptr %17, i64 80
  store ptr %45, ptr %46, align 8, !tbaa !23
  %47 = icmp eq ptr %45, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %42
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5) #2
  br label %212

49:                                               ; preds = %42
  %50 = getelementptr inbounds i8, ptr %17, i64 176
  %51 = load i32, ptr %50, align 8, !tbaa !24
  %.not174 = icmp eq i32 %51, 0
  br i1 %.not174, label %52, label %100

52:                                               ; preds = %49
  %53 = getelementptr inbounds i8, ptr %0, i64 156
  %54 = load i32, ptr %53, align 4, !tbaa !25
  %.not175 = icmp eq i32 %54, 0
  br i1 %.not175, label %55, label %57

55:                                               ; preds = %52
  %56 = getelementptr inbounds i8, ptr %17, i64 184
  store i32 0, ptr %56, align 8, !tbaa !26
  br label %57

57:                                               ; preds = %55, %52
  %58 = getelementptr inbounds i8, ptr %17, i64 160
  %59 = load ptr, ptr %58, align 8, !tbaa !27
  %60 = tail call i32 %59(ptr noundef nonnull %0) #2
  %.not176 = icmp eq i32 %60, 0
  br i1 %.not176, label %81, label %.preheader184

.preheader184:                                    ; preds = %57
  %61 = getelementptr inbounds i8, ptr %0, i64 344
  %62 = getelementptr inbounds i8, ptr %17, i64 200
  %63 = load ptr, ptr %61, align 8, !tbaa !28
  store ptr %63, ptr %62, align 8, !tbaa !28
  %64 = getelementptr inbounds i8, ptr %0, i64 352
  %65 = load ptr, ptr %64, align 8, !tbaa !28
  %66 = getelementptr inbounds i8, ptr %17, i64 208
  store ptr %65, ptr %66, align 8, !tbaa !28
  %67 = getelementptr inbounds i8, ptr %0, i64 360
  %68 = load ptr, ptr %67, align 8, !tbaa !28
  %69 = getelementptr inbounds i8, ptr %17, i64 216
  store ptr %68, ptr %69, align 8, !tbaa !28
  %70 = getelementptr inbounds i8, ptr %0, i64 368
  %71 = load ptr, ptr %70, align 8, !tbaa !28
  %72 = getelementptr inbounds i8, ptr %17, i64 224
  store ptr %71, ptr %72, align 8, !tbaa !28
  %73 = getelementptr inbounds i8, ptr %0, i64 376
  %74 = load ptr, ptr %73, align 8, !tbaa !28
  %75 = getelementptr inbounds i8, ptr %17, i64 232
  store ptr %74, ptr %75, align 8, !tbaa !28
  %76 = getelementptr inbounds i8, ptr %0, i64 384
  %77 = load ptr, ptr %76, align 8, !tbaa !28
  %78 = getelementptr inbounds i8, ptr %17, i64 240
  store ptr %77, ptr %78, align 8, !tbaa !28
  %79 = getelementptr inbounds i8, ptr %17, i64 184
  %80 = load i32, ptr %79, align 8, !tbaa !26
  %.not177 = icmp eq i32 %80, 0
  br i1 %.not177, label %.loopexit183, label %.preheader

81:                                               ; preds = %57
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5) #2
  br label %212

.preheader:                                       ; preds = %.preheader184
  %82 = getelementptr inbounds i8, ptr %0, i64 848
  %83 = getelementptr inbounds i8, ptr %17, i64 248
  %84 = load ptr, ptr %82, align 8, !tbaa !28
  store ptr %84, ptr %83, align 8, !tbaa !28
  %85 = getelementptr inbounds i8, ptr %0, i64 856
  %86 = load ptr, ptr %85, align 8, !tbaa !28
  %87 = getelementptr inbounds i8, ptr %17, i64 256
  store ptr %86, ptr %87, align 8, !tbaa !28
  %88 = getelementptr inbounds i8, ptr %0, i64 864
  %89 = load ptr, ptr %88, align 8, !tbaa !28
  %90 = getelementptr inbounds i8, ptr %17, i64 264
  store ptr %89, ptr %90, align 8, !tbaa !28
  %91 = getelementptr inbounds i8, ptr %0, i64 872
  %92 = load ptr, ptr %91, align 8, !tbaa !28
  %93 = getelementptr inbounds i8, ptr %17, i64 272
  store ptr %92, ptr %93, align 8, !tbaa !28
  %94 = getelementptr inbounds i8, ptr %0, i64 880
  %95 = load ptr, ptr %94, align 8, !tbaa !28
  %96 = getelementptr inbounds i8, ptr %17, i64 280
  store ptr %95, ptr %96, align 8, !tbaa !28
  %97 = getelementptr inbounds i8, ptr %0, i64 888
  %98 = load ptr, ptr %97, align 8, !tbaa !28
  %99 = getelementptr inbounds i8, ptr %17, i64 288
  store ptr %98, ptr %99, align 8, !tbaa !28
  br label %.loopexit183

.loopexit183:                                     ; preds = %.preheader, %.preheader184
  store i32 1, ptr %50, align 8, !tbaa !24
  %.pre = load ptr, ptr %46, align 8, !tbaa !23
  br label %100

100:                                              ; preds = %.loopexit183, %49
  %101 = phi ptr [ %.pre, %.loopexit183 ], [ %45, %49 ]
  %102 = load double, ptr %101, align 8, !tbaa !29
  %103 = load ptr, ptr %31, align 8, !tbaa !28
  store double %102, ptr %103, align 8, !tbaa !31
  %104 = getelementptr inbounds i8, ptr %17, i64 144
  %105 = load ptr, ptr %104, align 8, !tbaa !33
  %106 = tail call i32 %105(ptr noundef nonnull %0, ptr noundef nonnull %103) #2
  store i32 0, ptr %40, align 8, !tbaa !20
  br label %140

107:                                              ; preds = %39
  %108 = icmp eq i32 %5, 1
  br i1 %108, label %109, label %140

109:                                              ; preds = %107
  %110 = getelementptr inbounds i8, ptr %17, i64 32
  %111 = load i32, ptr %110, align 8, !tbaa !34
  %.not171 = icmp eq i32 %111, 0
  %112 = getelementptr inbounds i8, ptr %17, i64 40
  %113 = getelementptr inbounds i8, ptr %0, i64 1272
  %.in = select i1 %.not171, ptr %113, ptr %112
  %114 = load double, ptr %.in, align 8, !tbaa !35
  %115 = fsub double %114, %1
  %116 = getelementptr inbounds i8, ptr %0, i64 1248
  %117 = load double, ptr %116, align 8, !tbaa !36
  %118 = fmul double %115, %117
  %119 = fcmp ult double %118, 0.000000e+00
  br i1 %119, label %122, label %120

120:                                              ; preds = %109
  store double %1, ptr %2, align 8, !tbaa !35
  %121 = tail call i32 @IDAGetSolution(ptr noundef nonnull %0, double noundef %1, ptr noundef nonnull %3, ptr noundef nonnull %4) #2
  br label %126

122:                                              ; preds = %109
  br i1 %.not171, label %140, label %123

123:                                              ; preds = %122
  %124 = load double, ptr %112, align 8, !tbaa !37
  store double %124, ptr %2, align 8, !tbaa !35
  %125 = tail call i32 @IDAGetSolution(ptr noundef nonnull %0, double noundef %124, ptr noundef nonnull %3, ptr noundef nonnull %4) #2
  store i32 0, ptr %110, align 8, !tbaa !34
  br label %126

126:                                              ; preds = %120, %123
  %.0159.ph = phi i32 [ 2, %123 ], [ %121, %120 ]
  %127 = getelementptr inbounds i8, ptr %17, i64 96
  %128 = load i32, ptr %127, align 8, !tbaa !38
  store i32 %128, ptr %6, align 4, !tbaa !39
  %129 = getelementptr inbounds i8, ptr %17, i64 180
  store i32 1, ptr %129, align 4, !tbaa !40
  %130 = getelementptr inbounds i8, ptr %17, i64 80
  %131 = load ptr, ptr %130, align 8, !tbaa !23
  %132 = getelementptr inbounds i8, ptr %17, i64 88
  store ptr %131, ptr %132, align 8, !tbaa !41
  %133 = getelementptr inbounds i8, ptr %0, i64 1400
  %134 = load i64, ptr %133, align 8, !tbaa !42
  %135 = getelementptr inbounds i8, ptr %17, i64 104
  %136 = load i64, ptr %135, align 8, !tbaa !43
  %137 = srem i64 %134, %136
  %138 = add nsw i64 %137, 1
  %139 = getelementptr inbounds i8, ptr %17, i64 128
  store i64 %138, ptr %139, align 8, !tbaa !44
  br label %212

140:                                              ; preds = %122, %107, %100
  %141 = getelementptr inbounds i8, ptr %0, i64 1384
  %142 = getelementptr inbounds i8, ptr %0, i64 1400
  %143 = getelementptr inbounds i8, ptr %17, i64 104
  %144 = getelementptr inbounds i8, ptr %0, i64 1272
  %145 = getelementptr inbounds i8, ptr %17, i64 144
  %146 = getelementptr inbounds i8, ptr %17, i64 80
  %147 = getelementptr inbounds i8, ptr %17, i64 96
  %148 = getelementptr inbounds i8, ptr %0, i64 1840
  %149 = getelementptr inbounds i8, ptr %17, i64 8
  %150 = icmp eq i32 %5, 2
  %151 = getelementptr inbounds i8, ptr %0, i64 1248
  br label %152

152:                                              ; preds = %201, %140
  %.0157 = phi i64 [ 0, %140 ], [ %161, %201 ]
  %153 = load i64, ptr %141, align 8, !tbaa !45
  %154 = icmp slt i64 %153, 1
  %.not178 = icmp slt i64 %.0157, %153
  %or.cond179 = select i1 %154, i1 true, i1 %.not178
  br i1 %or.cond179, label %157, label %155

155:                                              ; preds = %152
  %156 = load double, ptr %144, align 8, !tbaa !21
  tail call void (ptr, i32, ptr, ptr, ptr, ...) @IDAProcessError(ptr noundef nonnull %0, i32 noundef -1, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.13, double noundef %156) #2
  br label %.loopexit

157:                                              ; preds = %152
  %158 = tail call i32 @IDASolve(ptr noundef nonnull %0, double noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef 2) #2
  %159 = icmp slt i32 %158, 0
  br i1 %159, label %.loopexit, label %160

160:                                              ; preds = %157
  %161 = add nuw nsw i64 %.0157, 1
  %162 = load i64, ptr %142, align 8, !tbaa !42
  %163 = load i64, ptr %143, align 8, !tbaa !43
  %164 = srem i64 %162, %163
  %165 = icmp eq i64 %164, 0
  %166 = load double, ptr %144, align 8, !tbaa !21
  br i1 %165, label %167, label %178

167:                                              ; preds = %160
  %168 = load ptr, ptr %146, align 8, !tbaa !23
  %169 = getelementptr inbounds i8, ptr %168, i64 8
  store double %166, ptr %169, align 8, !tbaa !46
  %170 = tail call ptr @IDAAckpntNew(ptr noundef nonnull %0)
  %171 = icmp eq ptr %170, null
  br i1 %171, label %.loopexit, label %172

172:                                              ; preds = %167
  %173 = load ptr, ptr %146, align 8, !tbaa !23
  %174 = getelementptr inbounds i8, ptr %170, i64 592
  store ptr %173, ptr %174, align 8, !tbaa !47
  store ptr %170, ptr %146, align 8, !tbaa !23
  %175 = load i32, ptr %147, align 8, !tbaa !38
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %147, align 8, !tbaa !38
  store i32 1, ptr %148, align 8, !tbaa !48
  %177 = load double, ptr %170, align 8, !tbaa !29
  br label %180

178:                                              ; preds = %160
  %179 = getelementptr inbounds ptr, ptr %31, i64 %164
  br label %180

180:                                              ; preds = %178, %172
  %.sink198 = phi ptr [ %179, %178 ], [ %31, %172 ]
  %.sink196 = phi double [ %166, %178 ], [ %177, %172 ]
  %181 = load ptr, ptr %.sink198, align 8, !tbaa !28
  store double %.sink196, ptr %181, align 8, !tbaa !31
  %182 = load ptr, ptr %145, align 8, !tbaa !33
  %183 = tail call i32 %182(ptr noundef nonnull %0, ptr noundef nonnull %181) #2
  %184 = load double, ptr %144, align 8, !tbaa !21
  %185 = load ptr, ptr %146, align 8, !tbaa !23
  %186 = getelementptr inbounds i8, ptr %185, i64 8
  store double %184, ptr %186, align 8, !tbaa !46
  store double %184, ptr %149, align 8, !tbaa !49
  br i1 %150, label %.loopexit, label %187

187:                                              ; preds = %180
  %188 = load double, ptr %2, align 8, !tbaa !35
  %189 = fsub double %188, %1
  %190 = load double, ptr %151, align 8, !tbaa !36
  %191 = fmul double %189, %190
  %192 = fcmp ult double %191, 0.000000e+00
  br i1 %192, label %201, label %193

193:                                              ; preds = %187
  %194 = icmp eq i32 %158, 2
  br i1 %194, label %195, label %198

195:                                              ; preds = %193
  %196 = getelementptr inbounds i8, ptr %17, i64 32
  store i32 1, ptr %196, align 8, !tbaa !34
  %197 = getelementptr inbounds i8, ptr %17, i64 40
  store double %188, ptr %197, align 8, !tbaa !37
  br label %198

198:                                              ; preds = %195, %193
  store double %1, ptr %2, align 8, !tbaa !35
  %199 = tail call i32 @IDAGetSolution(ptr noundef nonnull %0, double noundef %1, ptr noundef nonnull %3, ptr noundef nonnull %4) #2
  %200 = getelementptr inbounds i8, ptr %0, i64 1280
  store double %1, ptr %200, align 8, !tbaa !50
  br label %.loopexit

201:                                              ; preds = %187
  %202 = add nsw i32 %158, -1
  %or.cond3 = icmp ult i32 %202, 2
  br i1 %or.cond3, label %.loopexit, label %152

.loopexit:                                        ; preds = %167, %201, %180, %157, %198, %155
  %.1160 = phi i32 [ -1, %155 ], [ %199, %198 ], [ -21, %167 ], [ %158, %201 ], [ %158, %180 ], [ %158, %157 ]
  %203 = load i32, ptr %147, align 8, !tbaa !38
  store i32 %203, ptr %6, align 4, !tbaa !39
  %204 = getelementptr inbounds i8, ptr %17, i64 180
  store i32 1, ptr %204, align 4, !tbaa !40
  %205 = load ptr, ptr %146, align 8, !tbaa !23
  %206 = getelementptr inbounds i8, ptr %17, i64 88
  store ptr %205, ptr %206, align 8, !tbaa !41
  %207 = load i64, ptr %142, align 8, !tbaa !42
  %208 = load i64, ptr %143, align 8, !tbaa !43
  %209 = srem i64 %207, %208
  %210 = add nsw i64 %209, 1
  %211 = getelementptr inbounds i8, ptr %17, i64 128
  store i64 %210, ptr %211, align 8, !tbaa !44
  br label %212

212:                                              ; preds = %.loopexit, %126, %81, %48, %28, %25, %22, %19, %14, %9
  %.0 = phi i32 [ -20, %9 ], [ -101, %14 ], [ -22, %19 ], [ -22, %22 ], [ -22, %25 ], [ -22, %28 ], [ -21, %48 ], [ %.1160, %.loopexit ], [ -21, %81 ], [ %.0159.ph, %126 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden ptr @IDAAckpntInit(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @IDAAckpntNew(ptr noundef) local_unnamed_addr #1

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, !11, i64 2056}
!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 = !{!6, !7, i64 2048}
!14 = !{!15, !7, i64 120}
!15 = !{!"IDAadjMemRec", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !10, i64 24, !11, i64 32, !10, i64 40, !7, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !7, i64 80, !7, i64 88, !11, i64 96, !12, i64 104, !12, i64 112, !7, i64 120, !12, i64 128, !11, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !8, i64 200, !8, i64 248, !8, i64 296, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368}
!16 = !{!6, !11, i64 1192}
!17 = !{!15, !11, i64 20}
!18 = !{!6, !10, i64 1200}
!19 = !{!15, !10, i64 24}
!20 = !{!15, !11, i64 16}
!21 = !{!6, !10, i64 1272}
!22 = !{!15, !10, i64 0}
!23 = !{!15, !7, i64 80}
!24 = !{!15, !11, i64 176}
!25 = !{!6, !11, i64 156}
!26 = !{!15, !11, i64 184}
!27 = !{!15, !7, i64 160}
!28 = !{!7, !7, i64 0}
!29 = !{!30, !10, i64 0}
!30 = !{!"CkpntMemRec", !10, i64 0, !10, i64 8, !8, i64 16, !11, i64 64, !8, i64 72, !11, i64 120, !11, i64 124, !8, i64 128, !11, i64 176, !8, i64 184, !12, i64 232, !10, i64 240, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !8, i64 344, !8, i64 392, !8, i64 440, !8, i64 488, !8, i64 536, !11, i64 584, !7, i64 592}
!31 = !{!32, !10, i64 0}
!32 = !{!"DtpntMemRec", !10, i64 0, !7, i64 8}
!33 = !{!15, !7, i64 144}
!34 = !{!15, !11, i64 32}
!35 = !{!10, !10, i64 0}
!36 = !{!6, !10, i64 1248}
!37 = !{!15, !10, i64 40}
!38 = !{!15, !11, i64 96}
!39 = !{!11, !11, i64 0}
!40 = !{!15, !11, i64 180}
!41 = !{!15, !7, i64 88}
!42 = !{!6, !12, i64 1400}
!43 = !{!15, !12, i64 104}
!44 = !{!15, !12, i64 128}
!45 = !{!6, !12, i64 1384}
!46 = !{!30, !10, i64 8}
!47 = !{!30, !7, i64 592}
!48 = !{!6, !11, i64 1840}
!49 = !{!15, !10, i64 8}
!50 = !{!6, !10, i64 1280}


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