; LLVM IR from OpenFAST/openfast :: modules/map/src (mapapi)

; 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.MAP_OtherStateType = type { ptr, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32, ptr, i32 }
%struct.Domain_t = type { %struct.InnerSolveAttributes_t, %struct.OuterSolveAttributes_t, %struct.DomainOptions_t, ptr, i32, %struct.Vessel_t, %struct.list_t, %struct.list_t, %struct.list_t, %struct.list_t, ptr }
%struct.InnerSolveAttributes_t = type { ptr, double, double, double, [2 x double], [2 x double], [4 x double], [2 x double], [2 x double], [2 x double], [2 x double], [2 x double], [2 x double], double, i32, i32, i32, i32, i32, [2 x i32], i32, i32 }
%struct.OuterSolveAttributes_t = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, i8, i8, i8, i32, i32, i32 }
%struct.DomainOptions_t = type { ptr, double, double, double, i8, i8, i32 }
%struct.Vessel_t = type { %struct.EulerAngle_t, ptr, ptr, ptr, %struct.Point_t, %struct.Point_t, %struct.Force_t }
%struct.EulerAngle_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%struct.Point_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.Force_t = type { %struct.VarType_t, %struct.VarType_t, %struct.VarType_t }
%struct.list_t = type { ptr, ptr, ptr, i32, ptr, i32, i32, i32, ptr, %struct.list_attributes_s }
%struct.list_attributes_s = type { ptr, ptr, ptr, i32, ptr, ptr, ptr }
%struct.Line_t = type { ptr, %struct.LineOptions, %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarType_t, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, %struct.list_t, ptr, ptr, i32, i32, i32, i32, i32 }
%struct.LineOptions = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct.VarTypePtr_t = type { ptr, ptr, ptr, i8, i32, i32 }
%struct.Node_t = type { %struct.PointPtr_t, %struct.PointPtr_t, %struct.PointPtr_t, i32, %struct.ForcePtr_t, %struct.VarType_t, %struct.VarType_t, %struct.Force_t }
%struct.PointPtr_t = type { %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarTypePtr_t }
%struct.ForcePtr_t = type { %struct.VarTypePtr_t, %struct.VarTypePtr_t, %struct.VarTypePtr_t }
%struct.CableLibrary_t = type { double, double, double, double, double, double, double, double, double, double, ptr }

@.str.9 = external hidden unnamed_addr constant [25 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

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

declare void @map_reset_universal_error(ptr noundef, ptr noundef) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @map_plot_z_array(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #5 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.MAP_OtherStateType, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  store ptr %27, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store double 0.000000e+00, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store double 0.000000e+00, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store double 0.000000e+00, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double 0.000000e+00, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 0.000000e+00, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store double 0.000000e+00, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 0.000000e+00, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store double 0.000000e+00, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store double 0.000000e+00, ptr %22, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store ptr null, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !9
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  call void @map_reset_universal_error(ptr noundef %28, ptr noundef %29)
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.Domain_t, ptr %30, i32 0, i32 7
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = call ptr @list_get_at(ptr noundef %31, i32 noundef %32)
  store ptr %33, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %40

36:                                               ; preds = %5
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load i32, ptr %7, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %37, ptr noundef %38, i32 noundef 42, ptr noundef @.str.9, i32 noundef %39)
  br label %288

40:                                               ; preds = %5
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.Line_t, ptr %41, i32 0, i32 1
  %43 = getelementptr inbounds %struct.LineOptions, ptr %42, i32 0, i32 25
  %44 = load i8, ptr %43, align 1, !tbaa !15, !range !23, !noundef !24
  %45 = trunc i8 %44 to i1
  br i1 %45, label %46, label %94

46:                                               ; preds = %40
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.Line_t, ptr %47, i32 0, i32 27
  %49 = load ptr, ptr %48, align 8, !tbaa !25
  %50 = getelementptr inbounds %struct.Node_t, ptr %49, i32 0, i32 2
  %51 = getelementptr inbounds %struct.PointPtr_t, ptr %50, i32 0, i32 2
  %52 = getelementptr inbounds %struct.VarTypePtr_t, ptr %51, i32 0, i32 2
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %54 = load double, ptr %53, align 8, !tbaa !13
  store double %54, ptr %21, align 8, !tbaa !13
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Line_t, ptr %55, i32 0, i32 26
  %57 = load ptr, ptr %56, align 8, !tbaa !31
  %58 = getelementptr inbounds %struct.Node_t, ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %struct.PointPtr_t, ptr %58, i32 0, i32 2
  %60 = getelementptr inbounds %struct.VarTypePtr_t, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !26
  %62 = load double, ptr %61, align 8, !tbaa !13
  store double %62, ptr %22, align 8, !tbaa !13
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = mul i64 %64, 8
  %66 = call noalias ptr @malloc(i64 noundef %65) #7
  store ptr %66, ptr %23, align 8, !tbaa !5
  %67 = load double, ptr %21, align 8, !tbaa !13
  %68 = load double, ptr %22, align 8, !tbaa !13
  %69 = fsub double %67, %68
  %70 = call double @llvm.fabs.f64(double %69)
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = sub nsw i32 %71, 1
  %73 = sitofp i32 %72 to double
  %74 = fdiv double %70, %73
  store double %74, ptr %20, align 8, !tbaa !13
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %90, %46
  %76 = load i32, ptr %24, align 4, !tbaa !9
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %79, label %93

79:                                               ; preds = %75
  %80 = load double, ptr %21, align 8, !tbaa !13
  %81 = load double, ptr %19, align 8, !tbaa !13
  %82 = fsub double %80, %81
  %83 = load ptr, ptr %23, align 8, !tbaa !5
  %84 = load i32, ptr %24, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  store double %82, ptr %86, align 8, !tbaa !13
  %87 = load double, ptr %20, align 8, !tbaa !13
  %88 = load double, ptr %19, align 8, !tbaa !13
  %89 = fadd double %88, %87
  store double %89, ptr %19, align 8, !tbaa !13
  br label %90

90:                                               ; preds = %79
  %91 = load i32, ptr %24, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %24, align 4, !tbaa !9
  br label %75, !llvm.loop !32

93:                                               ; preds = %75
  br label %287

94:                                               ; preds = %40
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.Line_t, ptr %95, i32 0, i32 27
  %97 = load ptr, ptr %96, align 8, !tbaa !25
  %98 = getelementptr inbounds %struct.Node_t, ptr %97, i32 0, i32 2
  %99 = getelementptr inbounds %struct.PointPtr_t, ptr %98, i32 0, i32 2
  %100 = getelementptr inbounds %struct.VarTypePtr_t, ptr %99, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !26
  %102 = load double, ptr %101, align 8, !tbaa !13
  store double %102, ptr %21, align 8, !tbaa !13
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Line_t, ptr %103, i32 0, i32 26
  %105 = load ptr, ptr %104, align 8, !tbaa !31
  %106 = getelementptr inbounds %struct.Node_t, ptr %105, i32 0, i32 2
  %107 = getelementptr inbounds %struct.PointPtr_t, ptr %106, i32 0, i32 2
  %108 = getelementptr inbounds %struct.VarTypePtr_t, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !26
  %110 = load double, ptr %109, align 8, !tbaa !13
  store double %110, ptr %22, align 8, !tbaa !13
  %111 = load i32, ptr %8, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = mul i64 %112, 8
  %114 = call noalias ptr @malloc(i64 noundef %113) #7
  store ptr %114, ptr %23, align 8, !tbaa !5
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Line_t, ptr %115, i32 0, i32 2
  %117 = getelementptr inbounds %struct.VarTypePtr_t, ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !34
  %119 = load double, ptr %118, align 8, !tbaa !13
  store double %119, ptr %13, align 8, !tbaa !13
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Line_t, ptr %120, i32 0, i32 3
  %122 = getelementptr inbounds %struct.VarTypePtr_t, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !35
  %124 = load double, ptr %123, align 8, !tbaa !13
  store double %124, ptr %14, align 8, !tbaa !13
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.Line_t, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !36
  %128 = getelementptr inbounds %struct.CableLibrary_t, ptr %127, i32 0, i32 2
  %129 = load double, ptr %128, align 8, !tbaa !37
  store double %129, ptr %15, align 8, !tbaa !13
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Line_t, ptr %130, i32 0, i32 4
  %132 = getelementptr inbounds %struct.VarType_t, ptr %131, i32 0, i32 2
  %133 = load double, ptr %132, align 8, !tbaa !39
  store double %133, ptr %16, align 8, !tbaa !13
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.Line_t, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !36
  %137 = getelementptr inbounds %struct.CableLibrary_t, ptr %136, i32 0, i32 3
  %138 = load double, ptr %137, align 8, !tbaa !40
  store double %138, ptr %18, align 8, !tbaa !13
  %139 = load double, ptr %16, align 8, !tbaa !13
  %140 = load i32, ptr %8, align 4, !tbaa !9
  %141 = sub nsw i32 %140, 1
  %142 = sitofp i32 %141 to double
  %143 = fdiv double %139, %142
  store double %143, ptr %20, align 8, !tbaa !13
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.Line_t, ptr %144, i32 0, i32 1
  %146 = getelementptr inbounds %struct.LineOptions, ptr %145, i32 0, i32 21
  %147 = load i8, ptr %146, align 1, !tbaa !41, !range !23, !noundef !24
  %148 = trunc i8 %147 to i1
  %149 = zext i1 %148 to i32
  %150 = icmp eq i32 %149, 1
  br i1 %150, label %161, label %151

151:                                              ; preds = %94
  %152 = load double, ptr %18, align 8, !tbaa !13
  %153 = fcmp olt double %152, 0.000000e+00
  br i1 %153, label %161, label %154

154:                                              ; preds = %151
  %155 = load double, ptr %14, align 8, !tbaa !13
  %156 = load double, ptr %18, align 8, !tbaa !13
  %157 = load double, ptr %16, align 8, !tbaa !13
  %158 = fneg double %156
  %159 = call double @llvm.fmuladd.f64(double %158, double %157, double %155)
  %160 = fcmp ogt double %159, 0.000000e+00
  br i1 %160, label %161, label %224

161:                                              ; preds = %154, %151, %94
  %162 = load double, ptr %21, align 8, !tbaa !13
  %163 = load double, ptr %22, align 8, !tbaa !13
  %164 = fcmp olt double %162, %163
  br i1 %164, label %165, label %172

165:                                              ; preds = %161
  %166 = load double, ptr %14, align 8, !tbaa !13
  %167 = load double, ptr %16, align 8, !tbaa !13
  %168 = load double, ptr %18, align 8, !tbaa !13
  %169 = fneg double %167
  %170 = call double @llvm.fmuladd.f64(double %169, double %168, double %166)
  %171 = call double @llvm.fabs.f64(double %170)
  store double %171, ptr %14, align 8, !tbaa !13
  br label %172

172:                                              ; preds = %165, %161
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %220, %172
  %174 = load i32, ptr %24, align 4, !tbaa !9
  %175 = load i32, ptr %8, align 4, !tbaa !9
  %176 = icmp slt i32 %174, %175
  br i1 %176, label %177, label %223

177:                                              ; preds = %173
  %178 = load double, ptr %21, align 8, !tbaa !13
  %179 = load double, ptr %13, align 8, !tbaa !13
  %180 = load double, ptr %18, align 8, !tbaa !13
  %181 = fdiv double %179, %180
  %182 = load double, ptr %14, align 8, !tbaa !13
  %183 = load double, ptr %13, align 8, !tbaa !13
  %184 = fdiv double %182, %183
  %185 = call double @pow(double noundef %184, double noundef 2.000000e+00) #6
  %186 = fadd double 1.000000e+00, %185
  %187 = call double @sqrt(double noundef %186) #6
  %188 = load double, ptr %14, align 8, !tbaa !13
  %189 = load double, ptr %18, align 8, !tbaa !13
  %190 = load double, ptr %19, align 8, !tbaa !13
  %191 = fneg double %189
  %192 = call double @llvm.fmuladd.f64(double %191, double %190, double %188)
  %193 = load double, ptr %13, align 8, !tbaa !13
  %194 = fdiv double %192, %193
  %195 = call double @pow(double noundef %194, double noundef 2.000000e+00) #6
  %196 = fadd double 1.000000e+00, %195
  %197 = call double @sqrt(double noundef %196) #6
  %198 = fsub double %187, %197
  %199 = load double, ptr %15, align 8, !tbaa !13
  %200 = fdiv double 1.000000e+00, %199
  %201 = load double, ptr %14, align 8, !tbaa !13
  %202 = load double, ptr %19, align 8, !tbaa !13
  %203 = load double, ptr %18, align 8, !tbaa !13
  %204 = load double, ptr %19, align 8, !tbaa !13
  %205 = fmul double %203, %204
  %206 = load double, ptr %19, align 8, !tbaa !13
  %207 = fmul double %205, %206
  %208 = fdiv double %207, 2.000000e+00
  %209 = call double @llvm.fmuladd.f64(double %201, double %202, double %208)
  %210 = fmul double %200, %209
  %211 = call double @llvm.fmuladd.f64(double %181, double %198, double %210)
  %212 = fsub double %178, %211
  %213 = load ptr, ptr %23, align 8, !tbaa !5
  %214 = load i32, ptr %24, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds double, ptr %213, i64 %215
  store double %212, ptr %216, align 8, !tbaa !13
  %217 = load double, ptr %20, align 8, !tbaa !13
  %218 = load double, ptr %19, align 8, !tbaa !13
  %219 = fadd double %218, %217
  store double %219, ptr %19, align 8, !tbaa !13
  br label %220

220:                                              ; preds = %177
  %221 = load i32, ptr %24, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %24, align 4, !tbaa !9
  br label %173, !llvm.loop !42

223:                                              ; preds = %173
  br label %286

224:                                              ; preds = %154
  %225 = load double, ptr %16, align 8, !tbaa !13
  %226 = load double, ptr %14, align 8, !tbaa !13
  %227 = load double, ptr %18, align 8, !tbaa !13
  %228 = fdiv double %226, %227
  %229 = fsub double %225, %228
  store double %229, ptr %17, align 8, !tbaa !13
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %282, %224
  %231 = load i32, ptr %24, align 4, !tbaa !9
  %232 = load i32, ptr %8, align 4, !tbaa !9
  %233 = icmp slt i32 %231, %232
  br i1 %233, label %234, label %285

234:                                              ; preds = %230
  %235 = load double, ptr %19, align 8, !tbaa !13
  %236 = fcmp ole double 0.000000e+00, %235
  br i1 %236, label %237, label %247

237:                                              ; preds = %234
  %238 = load double, ptr %19, align 8, !tbaa !13
  %239 = load double, ptr %17, align 8, !tbaa !13
  %240 = fcmp ole double %238, %239
  br i1 %240, label %241, label %247

241:                                              ; preds = %237
  %242 = load double, ptr %22, align 8, !tbaa !13
  %243 = load ptr, ptr %23, align 8, !tbaa !5
  %244 = load i32, ptr %24, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds double, ptr %243, i64 %245
  store double %242, ptr %246, align 8, !tbaa !13
  br label %278

247:                                              ; preds = %237, %234
  %248 = load double, ptr %13, align 8, !tbaa !13
  %249 = load double, ptr %18, align 8, !tbaa !13
  %250 = fdiv double %248, %249
  %251 = load double, ptr %18, align 8, !tbaa !13
  %252 = load double, ptr %19, align 8, !tbaa !13
  %253 = load double, ptr %17, align 8, !tbaa !13
  %254 = fsub double %252, %253
  %255 = fmul double %251, %254
  %256 = load double, ptr %13, align 8, !tbaa !13
  %257 = fdiv double %255, %256
  %258 = call double @pow(double noundef %257, double noundef 2.000000e+00) #6
  %259 = fadd double 1.000000e+00, %258
  %260 = call double @sqrt(double noundef %259) #6
  %261 = fsub double %260, 1.000000e+00
  %262 = load double, ptr %18, align 8, !tbaa !13
  %263 = load double, ptr %19, align 8, !tbaa !13
  %264 = load double, ptr %17, align 8, !tbaa !13
  %265 = fsub double %263, %264
  %266 = call double @pow(double noundef %265, double noundef 2.000000e+00) #6
  %267 = fmul double %262, %266
  %268 = load double, ptr %15, align 8, !tbaa !13
  %269 = fmul double 2.000000e+00, %268
  %270 = fdiv double %267, %269
  %271 = call double @llvm.fmuladd.f64(double %250, double %261, double %270)
  %272 = load double, ptr %22, align 8, !tbaa !13
  %273 = fadd double %271, %272
  %274 = load ptr, ptr %23, align 8, !tbaa !5
  %275 = load i32, ptr %24, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds double, ptr %274, i64 %276
  store double %273, ptr %277, align 8, !tbaa !13
  br label %278

278:                                              ; preds = %247, %241
  %279 = load double, ptr %20, align 8, !tbaa !13
  %280 = load double, ptr %19, align 8, !tbaa !13
  %281 = fadd double %280, %279
  store double %281, ptr %19, align 8, !tbaa !13
  br label %282

282:                                              ; preds = %278
  %283 = load i32, ptr %24, align 4, !tbaa !9
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %24, align 4, !tbaa !9
  br label %230, !llvm.loop !43

285:                                              ; preds = %230
  br label %286

286:                                              ; preds = %285, %223
  br label %287

287:                                              ; preds = %286, %93
  br label %288

288:                                              ; preds = %287, %36
  %289 = load ptr, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret ptr %289
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #4

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"MAP_OtherStateType", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !10, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !10, i64 160, !6, i64 168, !10, i64 176, !6, i64 184, !10, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !10, i64 224, !6, i64 232, !10, i64 240, !6, i64 248, !10, i64 256}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !18, i64 33}
!16 = !{!"Line_t", !6, i64 0, !17, i64 8, !19, i64 40, !19, i64 80, !20, i64 120, !6, i64 160, !6, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !14, i64 272, !14, i64 280, !14, i64 288, !14, i64 296, !14, i64 304, !14, i64 312, !21, i64 320, !6, i64 440, !6, i64 448, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472}
!17 = !{!"", !18, i64 0, !18, i64 1, !18, i64 2, !18, i64 3, !18, i64 4, !18, i64 5, !18, i64 6, !18, i64 7, !18, i64 8, !18, i64 9, !18, i64 10, !18, i64 11, !18, i64 12, !18, i64 13, !18, i64 14, !18, i64 15, !18, i64 16, !18, i64 17, !18, i64 18, !18, i64 19, !18, i64 20, !18, i64 21, !18, i64 22, !18, i64 23, !18, i64 24, !18, i64 25}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"VarTypePtr_t", !6, i64 0, !6, i64 8, !6, i64 16, !18, i64 24, !10, i64 28, !10, i64 32}
!20 = !{!"VarType_t", !6, i64 0, !6, i64 8, !14, i64 16, !18, i64 24, !18, i64 25, !10, i64 28, !10, i64 32}
!21 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !6, i64 56, !22, i64 64}
!22 = !{!"list_attributes_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!16, !6, i64 448}
!26 = !{!27, !6, i64 336}
!27 = !{!"Node_t", !28, i64 0, !28, i64 120, !28, i64 240, !10, i64 360, !29, i64 368, !20, i64 488, !20, i64 528, !30, i64 568}
!28 = !{!"PointPtr_t", !19, i64 0, !19, i64 40, !19, i64 80}
!29 = !{!"ForcePtr_t", !19, i64 0, !19, i64 40, !19, i64 80}
!30 = !{!"Force_t", !20, i64 0, !20, i64 40, !20, i64 80}
!31 = !{!16, !6, i64 440}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!16, !6, i64 56}
!35 = !{!16, !6, i64 96}
!36 = !{!16, !6, i64 0}
!37 = !{!38, !14, i64 16}
!38 = !{!"CableLibrary_t", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !6, i64 80}
!39 = !{!16, !14, i64 136}
!40 = !{!38, !14, i64 24}
!41 = !{!16, !18, i64 29}
!42 = distinct !{!42, !33}
!43 = distinct !{!43, !33}


; 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.9 = external hidden unnamed_addr constant [25 x i8], align 1

declare void @map_reset_universal_error(ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @map_plot_z_array(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  tail call void @map_reset_universal_error(ptr noundef %3, ptr noundef %4) #5
  %7 = getelementptr inbounds i8, ptr %6, i64 1088
  %8 = tail call ptr @list_get_at(ptr noundef nonnull %7, i32 noundef %1) #5
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %5
  tail call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %3, ptr noundef %4, i32 noundef 42, ptr noundef nonnull @.str.9, i32 noundef %1) #5
  br label %.loopexit

11:                                               ; preds = %5
  %12 = getelementptr inbounds i8, ptr %8, i64 33
  %13 = load i8, ptr %12, align 1, !tbaa !11, !range !20, !noundef !21
  %14 = trunc nuw i8 %13 to i1
  %15 = getelementptr inbounds i8, ptr %8, i64 448
  %16 = load ptr, ptr %15, align 8, !tbaa !22
  %17 = getelementptr inbounds i8, ptr %16, i64 336
  %18 = load ptr, ptr %17, align 8, !tbaa !23
  %19 = load double, ptr %18, align 8, !tbaa !28
  %20 = getelementptr inbounds i8, ptr %8, i64 440
  %21 = load ptr, ptr %20, align 8, !tbaa !29
  %22 = getelementptr inbounds i8, ptr %21, i64 336
  %23 = load ptr, ptr %22, align 8, !tbaa !23
  %24 = load double, ptr %23, align 8, !tbaa !28
  %25 = sext i32 %2 to i64
  %26 = shl nsw i64 %25, 3
  %27 = tail call noalias ptr @malloc(i64 noundef %26) #6
  br i1 %14, label %28, label %48

28:                                               ; preds = %11
  %29 = fsub double %19, %24
  %30 = tail call double @llvm.fabs.f64(double %29)
  %31 = add nsw i32 %2, -1
  %32 = sitofp i32 %31 to double
  %33 = fdiv double %30, %32
  %34 = icmp sgt i32 %2, 0
  br i1 %34, label %.lr.ph117.preheader, label %.loopexit

.lr.ph117.preheader:                              ; preds = %28
  %wide.trip.count129 = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count129, 3
  %35 = icmp ult i32 %2, 4
  br i1 %35, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph117.preheader.new

.lr.ph117.preheader.new:                          ; preds = %.lr.ph117.preheader
  %unroll_iter = and i64 %wide.trip.count129, 2147483644
  br label %.lr.ph117

.lr.ph117:                                        ; preds = %.lr.ph117, %.lr.ph117.preheader.new
  %indvars.iv126 = phi i64 [ 0, %.lr.ph117.preheader.new ], [ %indvars.iv.next127.3, %.lr.ph117 ]
  %.096115 = phi double [ 0.000000e+00, %.lr.ph117.preheader.new ], [ %47, %.lr.ph117 ]
  %niter = phi i64 [ 0, %.lr.ph117.preheader.new ], [ %niter.next.3, %.lr.ph117 ]
  %36 = fsub double %19, %.096115
  %37 = getelementptr inbounds double, ptr %27, i64 %indvars.iv126
  store double %36, ptr %37, align 8, !tbaa !28
  %38 = fadd double %33, %.096115
  %indvars.iv.next127 = or disjoint i64 %indvars.iv126, 1
  %39 = fsub double %19, %38
  %40 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next127
  store double %39, ptr %40, align 8, !tbaa !28
  %41 = fadd double %33, %38
  %indvars.iv.next127.1 = or disjoint i64 %indvars.iv126, 2
  %42 = fsub double %19, %41
  %43 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next127.1
  store double %42, ptr %43, align 8, !tbaa !28
  %44 = fadd double %33, %41
  %indvars.iv.next127.2 = or disjoint i64 %indvars.iv126, 3
  %45 = fsub double %19, %44
  %46 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next127.2
  store double %45, ptr %46, align 8, !tbaa !28
  %47 = fadd double %33, %44
  %indvars.iv.next127.3 = add nuw nsw i64 %indvars.iv126, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph117, !llvm.loop !30

48:                                               ; preds = %11
  %49 = getelementptr inbounds i8, ptr %8, i64 56
  %50 = load ptr, ptr %49, align 8, !tbaa !32
  %51 = load double, ptr %50, align 8, !tbaa !28
  %52 = getelementptr inbounds i8, ptr %8, i64 96
  %53 = load ptr, ptr %52, align 8, !tbaa !33
  %54 = load double, ptr %53, align 8, !tbaa !28
  %55 = load ptr, ptr %8, align 8, !tbaa !34
  %56 = getelementptr inbounds i8, ptr %55, i64 16
  %57 = load double, ptr %56, align 8, !tbaa !35
  %58 = getelementptr inbounds i8, ptr %8, i64 136
  %59 = load double, ptr %58, align 8, !tbaa !37
  %60 = getelementptr inbounds i8, ptr %55, i64 24
  %61 = load double, ptr %60, align 8, !tbaa !38
  %62 = add nsw i32 %2, -1
  %63 = sitofp i32 %62 to double
  %64 = fdiv double %59, %63
  %65 = getelementptr inbounds i8, ptr %8, i64 29
  %66 = load i8, ptr %65, align 1, !tbaa !39, !range !20, !noundef !21
  %67 = trunc nuw i8 %66 to i1
  %68 = fcmp olt double %61, 0.000000e+00
  %or.cond = select i1 %67, i1 true, i1 %68
  br i1 %or.cond, label %73, label %69

69:                                               ; preds = %48
  %70 = fneg double %61
  %71 = tail call double @llvm.fmuladd.f64(double %70, double %59, double %54)
  %72 = fcmp ogt double %71, 0.000000e+00
  br i1 %72, label %73, label %100

73:                                               ; preds = %69, %48
  %74 = fcmp olt double %19, %24
  br i1 %74, label %75, label %79

75:                                               ; preds = %73
  %76 = fneg double %59
  %77 = tail call double @llvm.fmuladd.f64(double %76, double %61, double %54)
  %78 = tail call double @llvm.fabs.f64(double %77)
  br label %79

79:                                               ; preds = %75, %73
  %.099 = phi double [ %78, %75 ], [ %54, %73 ]
  %80 = icmp sgt i32 %2, 0
  br i1 %80, label %.lr.ph114, label %.loopexit

.lr.ph114:                                        ; preds = %79
  %81 = fdiv double %51, %61
  %82 = fdiv double %.099, %51
  %square103 = fmul double %82, %82
  %83 = fadd double %square103, 1.000000e+00
  %sqrt106 = tail call double @llvm.sqrt.f64(double %83)
  %84 = fneg double %61
  %85 = fdiv double 1.000000e+00, %57
  %wide.trip.count124 = zext nneg i32 %2 to i64
  br label %86

86:                                               ; preds = %.lr.ph114, %86
  %indvars.iv121 = phi i64 [ 0, %.lr.ph114 ], [ %indvars.iv.next122, %86 ]
  %.197112 = phi double [ 0.000000e+00, %.lr.ph114 ], [ %99, %86 ]
  %87 = tail call double @llvm.fmuladd.f64(double %84, double %.197112, double %.099)
  %88 = fdiv double %87, %51
  %square104 = fmul double %88, %88
  %89 = fadd double %square104, 1.000000e+00
  %sqrt = tail call double @llvm.sqrt.f64(double %89)
  %90 = fsub double %sqrt106, %sqrt
  %91 = fmul double %61, %.197112
  %92 = fmul double %.197112, %91
  %93 = fmul double %92, 5.000000e-01
  %94 = tail call double @llvm.fmuladd.f64(double %.099, double %.197112, double %93)
  %95 = fmul double %85, %94
  %96 = tail call double @llvm.fmuladd.f64(double %81, double %90, double %95)
  %97 = fsub double %19, %96
  %98 = getelementptr inbounds double, ptr %27, i64 %indvars.iv121
  store double %97, ptr %98, align 8, !tbaa !28
  %99 = fadd double %64, %.197112
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %exitcond125.not = icmp eq i64 %indvars.iv.next122, %wide.trip.count124
  br i1 %exitcond125.not, label %.loopexit, label %86, !llvm.loop !40

100:                                              ; preds = %69
  %101 = fdiv double %54, %61
  %102 = fsub double %59, %101
  %103 = icmp sgt i32 %2, 0
  br i1 %103, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %100
  %104 = fdiv double %51, %61
  %105 = fmul double %57, 2.000000e+00
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %106

106:                                              ; preds = %.lr.ph, %119
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %119 ]
  %.298110 = phi double [ 0.000000e+00, %.lr.ph ], [ %121, %119 ]
  %107 = fcmp ult double %.298110, 0.000000e+00
  %108 = fcmp ugt double %.298110, %102
  %or.cond105 = select i1 %107, i1 true, i1 %108
  br i1 %or.cond105, label %109, label %119

109:                                              ; preds = %106
  %110 = fsub double %.298110, %102
  %111 = fmul double %61, %110
  %112 = fdiv double %111, %51
  %square = fmul double %112, %112
  %113 = fadd double %square, 1.000000e+00
  %sqrt107 = tail call double @llvm.sqrt.f64(double %113)
  %114 = fadd double %sqrt107, -1.000000e+00
  %square102 = fmul double %110, %110
  %115 = fmul double %61, %square102
  %116 = fdiv double %115, %105
  %117 = tail call double @llvm.fmuladd.f64(double %104, double %114, double %116)
  %118 = fadd double %24, %117
  br label %119

119:                                              ; preds = %106, %109
  %.sink = phi double [ %118, %109 ], [ %24, %106 ]
  %120 = getelementptr inbounds double, ptr %27, i64 %indvars.iv
  store double %.sink, ptr %120, align 8
  %121 = fadd double %64, %.298110
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %106, !llvm.loop !41

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph117, %.lr.ph117.preheader
  %indvars.iv126.unr = phi i64 [ 0, %.lr.ph117.preheader ], [ %indvars.iv.next127.3, %.lr.ph117 ]
  %.096115.unr = phi double [ 0.000000e+00, %.lr.ph117.preheader ], [ %47, %.lr.ph117 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit, label %.lr.ph117.epil

.lr.ph117.epil:                                   ; preds = %.loopexit.loopexit.unr-lcssa, %.lr.ph117.epil
  %indvars.iv126.epil = phi i64 [ %indvars.iv.next127.epil, %.lr.ph117.epil ], [ %indvars.iv126.unr, %.loopexit.loopexit.unr-lcssa ]
  %.096115.epil = phi double [ %124, %.lr.ph117.epil ], [ %.096115.unr, %.loopexit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph117.epil ], [ 0, %.loopexit.loopexit.unr-lcssa ]
  %122 = fsub double %19, %.096115.epil
  %123 = getelementptr inbounds double, ptr %27, i64 %indvars.iv126.epil
  store double %122, ptr %123, align 8, !tbaa !28
  %124 = fadd double %33, %.096115.epil
  %indvars.iv.next127.epil = add nuw nsw i64 %indvars.iv126.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.loopexit, label %.lr.ph117.epil, !llvm.loop !42

.loopexit:                                        ; preds = %119, %86, %.loopexit.loopexit.unr-lcssa, %.lr.ph117.epil, %100, %79, %28, %10
  %.095 = phi ptr [ null, %10 ], [ %27, %28 ], [ %27, %79 ], [ %27, %100 ], [ %27, %.lr.ph117.epil ], [ %27, %.loopexit.loopexit.unr-lcssa ], [ %27, %86 ], [ %27, %119 ]
  ret ptr %.095
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #4

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"MAP_OtherStateType", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !10, i64 80, !7, i64 88, !10, i64 96, !7, i64 104, !10, i64 112, !7, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !7, i64 152, !10, i64 160, !7, i64 168, !10, i64 176, !7, i64 184, !10, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !10, i64 224, !7, i64 232, !10, i64 240, !7, i64 248, !10, i64 256}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !14, i64 33}
!12 = !{!"Line_t", !7, i64 0, !13, i64 8, !15, i64 40, !15, i64 80, !16, i64 120, !7, i64 160, !7, i64 168, !17, i64 176, !17, i64 184, !17, i64 192, !17, i64 200, !17, i64 208, !17, i64 216, !17, i64 224, !17, i64 232, !17, i64 240, !17, i64 248, !17, i64 256, !17, i64 264, !17, i64 272, !17, i64 280, !17, i64 288, !17, i64 296, !17, i64 304, !17, i64 312, !18, i64 320, !7, i64 440, !7, i64 448, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472}
!13 = !{!"", !14, i64 0, !14, i64 1, !14, i64 2, !14, i64 3, !14, i64 4, !14, i64 5, !14, i64 6, !14, i64 7, !14, i64 8, !14, i64 9, !14, i64 10, !14, i64 11, !14, i64 12, !14, i64 13, !14, i64 14, !14, i64 15, !14, i64 16, !14, i64 17, !14, i64 18, !14, i64 19, !14, i64 20, !14, i64 21, !14, i64 22, !14, i64 23, !14, i64 24, !14, i64 25}
!14 = !{!"_Bool", !8, i64 0}
!15 = !{!"VarTypePtr_t", !7, i64 0, !7, i64 8, !7, i64 16, !14, i64 24, !10, i64 28, !10, i64 32}
!16 = !{!"VarType_t", !7, i64 0, !7, i64 8, !17, i64 16, !14, i64 24, !14, i64 25, !10, i64 28, !10, i64 32}
!17 = !{!"double", !8, i64 0}
!18 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 56, !19, i64 64}
!19 = !{!"list_attributes_s", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!12, !7, i64 448}
!23 = !{!24, !7, i64 336}
!24 = !{!"Node_t", !25, i64 0, !25, i64 120, !25, i64 240, !10, i64 360, !26, i64 368, !16, i64 488, !16, i64 528, !27, i64 568}
!25 = !{!"PointPtr_t", !15, i64 0, !15, i64 40, !15, i64 80}
!26 = !{!"ForcePtr_t", !15, i64 0, !15, i64 40, !15, i64 80}
!27 = !{!"Force_t", !16, i64 0, !16, i64 40, !16, i64 80}
!28 = !{!17, !17, i64 0}
!29 = !{!12, !7, i64 440}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!12, !7, i64 56}
!33 = !{!12, !7, i64 96}
!34 = !{!12, !7, i64 0}
!35 = !{!36, !17, i64 16}
!36 = !{!"CableLibrary_t", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !7, i64 80}
!37 = !{!12, !17, i64 136}
!38 = !{!36, !17, i64 24}
!39 = !{!12, !14, i64 29}
!40 = distinct !{!40, !31}
!41 = distinct !{!41, !31}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.unroll.disable"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass