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

; 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.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.VarType_t = type { ptr, ptr, double, i8, i8, i32, i32 }
%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.CableLibrary_t = type { double, double, double, double, double, double, double, double, double, double, ptr }

; 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

; Function Attrs: nounwind uwtable
define dso_local i32 @inner_function_evals(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7) #1 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i8, align 1
  %28 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !9
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store i32 %6, ptr %16, align 4, !tbaa !9
  store i32 %7, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %29, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 0
  %32 = load double, ptr %31, align 8, !tbaa !11
  store double %32, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = getelementptr inbounds double, ptr %33, i64 1
  %35 = load double, ptr %34, align 8, !tbaa !11
  store double %35, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.Line_t, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  %39 = getelementptr inbounds %struct.CableLibrary_t, ptr %38, i32 0, i32 2
  %40 = load double, ptr %39, align 8, !tbaa !21
  store double %40, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.Line_t, ptr %41, i32 0, i32 4
  %43 = getelementptr inbounds %struct.VarType_t, ptr %42, i32 0, i32 2
  %44 = load double, ptr %43, align 8, !tbaa !23
  store double %44, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %45 = load ptr, ptr %18, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.Line_t, ptr %45, i32 0, i32 12
  %47 = load double, ptr %46, align 8, !tbaa !24
  store double %47, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.Line_t, ptr %48, i32 0, i32 10
  %50 = load double, ptr %49, align 8, !tbaa !25
  store double %50, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Line_t, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = getelementptr inbounds %struct.CableLibrary_t, ptr %53, i32 0, i32 3
  %55 = load double, ptr %54, align 8, !tbaa !26
  store double %55, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %56 = load ptr, ptr %18, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Line_t, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !13
  %59 = getelementptr inbounds %struct.CableLibrary_t, ptr %58, i32 0, i32 5
  %60 = load double, ptr %59, align 8, !tbaa !27
  store double %60, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #4
  %61 = load ptr, ptr %18, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.Line_t, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds %struct.LineOptions, ptr %62, i32 0, i32 21
  %64 = load i8, ptr %63, align 1, !tbaa !28, !range !29, !noundef !30
  %65 = trunc i8 %64 to i1
  %66 = zext i1 %65 to i8
  store i8 %66, ptr %27, align 1, !tbaa !31
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %8
  store i32 0, ptr %9, align 4
  store i32 1, ptr %28, align 4
  br label %216

70:                                               ; preds = %8
  %71 = load i32, ptr %17, align 4, !tbaa !9
  %72 = icmp ne i32 %71, 2
  br i1 %72, label %73, label %129

73:                                               ; preds = %70
  %74 = load i8, ptr %27, align 1, !tbaa !31, !range !29, !noundef !30
  %75 = trunc i8 %74 to i1
  %76 = zext i1 %75 to i32
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %88, label %78

78:                                               ; preds = %73
  %79 = load double, ptr %25, align 8, !tbaa !11
  %80 = fcmp olt double %79, 0.000000e+00
  br i1 %80, label %88, label %81

81:                                               ; preds = %78
  %82 = load double, ptr %20, align 8, !tbaa !11
  %83 = load double, ptr %25, align 8, !tbaa !11
  %84 = load double, ptr %22, align 8, !tbaa !11
  %85 = fneg double %83
  %86 = call double @llvm.fmuladd.f64(double %85, double %84, double %82)
  %87 = fcmp ogt double %86, 0.000000e+00
  br i1 %87, label %88, label %107

88:                                               ; preds = %81, %78, %73
  %89 = load double, ptr %20, align 8, !tbaa !11
  %90 = load double, ptr %19, align 8, !tbaa !11
  %91 = load double, ptr %25, align 8, !tbaa !11
  %92 = load double, ptr %22, align 8, !tbaa !11
  %93 = load double, ptr %21, align 8, !tbaa !11
  %94 = load double, ptr %24, align 8, !tbaa !11
  %95 = call double @residual_function_length_no_contact(double noundef %89, double noundef %90, double noundef %91, double noundef %92, double noundef %93, double noundef %94)
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i64 0
  store double %95, ptr %97, align 8, !tbaa !11
  %98 = load double, ptr %20, align 8, !tbaa !11
  %99 = load double, ptr %19, align 8, !tbaa !11
  %100 = load double, ptr %25, align 8, !tbaa !11
  %101 = load double, ptr %22, align 8, !tbaa !11
  %102 = load double, ptr %21, align 8, !tbaa !11
  %103 = load double, ptr %23, align 8, !tbaa !11
  %104 = call double @residual_function_height_no_contact(double noundef %98, double noundef %99, double noundef %100, double noundef %101, double noundef %102, double noundef %103)
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = getelementptr inbounds double, ptr %105, i64 1
  store double %104, ptr %106, align 8, !tbaa !11
  br label %128

107:                                              ; preds = %81
  %108 = load double, ptr %20, align 8, !tbaa !11
  %109 = load double, ptr %19, align 8, !tbaa !11
  %110 = load double, ptr %25, align 8, !tbaa !11
  %111 = load double, ptr %22, align 8, !tbaa !11
  %112 = load double, ptr %21, align 8, !tbaa !11
  %113 = load double, ptr %24, align 8, !tbaa !11
  %114 = load double, ptr %26, align 8, !tbaa !11
  %115 = call double @residual_function_length_contact(double noundef %108, double noundef %109, double noundef %110, double noundef %111, double noundef %112, double noundef %113, double noundef %114)
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds double, ptr %116, i64 0
  store double %115, ptr %117, align 8, !tbaa !11
  %118 = load double, ptr %20, align 8, !tbaa !11
  %119 = load double, ptr %19, align 8, !tbaa !11
  %120 = load double, ptr %25, align 8, !tbaa !11
  %121 = load double, ptr %22, align 8, !tbaa !11
  %122 = load double, ptr %21, align 8, !tbaa !11
  %123 = load double, ptr %23, align 8, !tbaa !11
  %124 = load double, ptr %26, align 8, !tbaa !11
  %125 = call double @residual_function_height_contact(double noundef %118, double noundef %119, double noundef %120, double noundef %121, double noundef %122, double noundef %123, double noundef %124)
  %126 = load ptr, ptr %14, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i64 1
  store double %125, ptr %127, align 8, !tbaa !11
  br label %128

128:                                              ; preds = %107, %88
  br label %215

129:                                              ; preds = %70
  %130 = load i8, ptr %27, align 1, !tbaa !31, !range !29, !noundef !30
  %131 = trunc i8 %130 to i1
  %132 = zext i1 %131 to i32
  %133 = icmp eq i32 %132, 1
  br i1 %133, label %144, label %134

134:                                              ; preds = %129
  %135 = load double, ptr %25, align 8, !tbaa !11
  %136 = fcmp olt double %135, 0.000000e+00
  br i1 %136, label %144, label %137

137:                                              ; preds = %134
  %138 = load double, ptr %20, align 8, !tbaa !11
  %139 = load double, ptr %25, align 8, !tbaa !11
  %140 = load double, ptr %22, align 8, !tbaa !11
  %141 = fneg double %139
  %142 = call double @llvm.fmuladd.f64(double %141, double %140, double %138)
  %143 = fcmp ogt double %142, 0.000000e+00
  br i1 %143, label %144, label %177

144:                                              ; preds = %137, %134, %129
  %145 = load double, ptr %20, align 8, !tbaa !11
  %146 = load double, ptr %19, align 8, !tbaa !11
  %147 = load double, ptr %25, align 8, !tbaa !11
  %148 = load double, ptr %22, align 8, !tbaa !11
  %149 = load double, ptr %21, align 8, !tbaa !11
  %150 = call double @jacobian_dxdh_no_contact(double noundef %145, double noundef %146, double noundef %147, double noundef %148, double noundef %149)
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %151, i64 0
  store double %150, ptr %152, align 8, !tbaa !11
  %153 = load double, ptr %20, align 8, !tbaa !11
  %154 = load double, ptr %19, align 8, !tbaa !11
  %155 = load double, ptr %25, align 8, !tbaa !11
  %156 = load double, ptr %22, align 8, !tbaa !11
  %157 = load double, ptr %21, align 8, !tbaa !11
  %158 = call double @jacobian_dxdv_no_contact(double noundef %153, double noundef %154, double noundef %155, double noundef %156, double noundef %157)
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %159, i64 1
  store double %158, ptr %160, align 8, !tbaa !11
  %161 = load double, ptr %20, align 8, !tbaa !11
  %162 = load double, ptr %19, align 8, !tbaa !11
  %163 = load double, ptr %25, align 8, !tbaa !11
  %164 = load double, ptr %22, align 8, !tbaa !11
  %165 = load double, ptr %21, align 8, !tbaa !11
  %166 = call double @jacobian_dzdh_no_contact(double noundef %161, double noundef %162, double noundef %163, double noundef %164, double noundef %165)
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %167, i64 2
  store double %166, ptr %168, align 8, !tbaa !11
  %169 = load double, ptr %20, align 8, !tbaa !11
  %170 = load double, ptr %19, align 8, !tbaa !11
  %171 = load double, ptr %25, align 8, !tbaa !11
  %172 = load double, ptr %22, align 8, !tbaa !11
  %173 = load double, ptr %21, align 8, !tbaa !11
  %174 = call double @jacobian_dzdv_no_contact(double noundef %169, double noundef %170, double noundef %171, double noundef %172, double noundef %173)
  %175 = load ptr, ptr %15, align 8, !tbaa !5
  %176 = getelementptr inbounds double, ptr %175, i64 3
  store double %174, ptr %176, align 8, !tbaa !11
  br label %214

177:                                              ; preds = %137
  %178 = load double, ptr %20, align 8, !tbaa !11
  %179 = load double, ptr %19, align 8, !tbaa !11
  %180 = load double, ptr %25, align 8, !tbaa !11
  %181 = load double, ptr %22, align 8, !tbaa !11
  %182 = load double, ptr %21, align 8, !tbaa !11
  %183 = load double, ptr %26, align 8, !tbaa !11
  %184 = call double @jacobian_dxdh_contact(double noundef %178, double noundef %179, double noundef %180, double noundef %181, double noundef %182, double noundef %183)
  %185 = load ptr, ptr %15, align 8, !tbaa !5
  %186 = getelementptr inbounds double, ptr %185, i64 0
  store double %184, ptr %186, align 8, !tbaa !11
  %187 = load double, ptr %20, align 8, !tbaa !11
  %188 = load double, ptr %19, align 8, !tbaa !11
  %189 = load double, ptr %25, align 8, !tbaa !11
  %190 = load double, ptr %22, align 8, !tbaa !11
  %191 = load double, ptr %21, align 8, !tbaa !11
  %192 = load double, ptr %26, align 8, !tbaa !11
  %193 = call double @jacobian_dxdv_contact(double noundef %187, double noundef %188, double noundef %189, double noundef %190, double noundef %191, double noundef %192)
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  %195 = getelementptr inbounds double, ptr %194, i64 1
  store double %193, ptr %195, align 8, !tbaa !11
  %196 = load double, ptr %20, align 8, !tbaa !11
  %197 = load double, ptr %19, align 8, !tbaa !11
  %198 = load double, ptr %25, align 8, !tbaa !11
  %199 = load double, ptr %22, align 8, !tbaa !11
  %200 = load double, ptr %21, align 8, !tbaa !11
  %201 = load double, ptr %26, align 8, !tbaa !11
  %202 = call double @jacobian_dzdh_contact(double noundef %196, double noundef %197, double noundef %198, double noundef %199, double noundef %200, double noundef %201)
  %203 = load ptr, ptr %15, align 8, !tbaa !5
  %204 = getelementptr inbounds double, ptr %203, i64 2
  store double %202, ptr %204, align 8, !tbaa !11
  %205 = load double, ptr %20, align 8, !tbaa !11
  %206 = load double, ptr %19, align 8, !tbaa !11
  %207 = load double, ptr %25, align 8, !tbaa !11
  %208 = load double, ptr %22, align 8, !tbaa !11
  %209 = load double, ptr %21, align 8, !tbaa !11
  %210 = load double, ptr %26, align 8, !tbaa !11
  %211 = call double @jacobian_dzdv_contact(double noundef %205, double noundef %206, double noundef %207, double noundef %208, double noundef %209, double noundef %210)
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = getelementptr inbounds double, ptr %212, i64 3
  store double %211, ptr %213, align 8, !tbaa !11
  br label %214

214:                                              ; preds = %177, %144
  br label %215

215:                                              ; preds = %214, %128
  store i32 0, ptr %9, align 4
  store i32 1, ptr %28, align 4
  br label %216

216:                                              ; preds = %215, %69
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %217 = load i32, ptr %9, align 4
  ret i32 %217
}

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

declare double @residual_function_length_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @residual_function_height_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @residual_function_length_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @residual_function_height_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @jacobian_dxdh_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @jacobian_dxdv_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @jacobian_dzdh_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @jacobian_dzdv_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @jacobian_dxdh_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @jacobian_dxdv_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @jacobian_dzdh_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

declare double @jacobian_dzdv_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 }

!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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"Line_t", !6, i64 0, !15, i64 8, !17, i64 40, !17, i64 80, !18, i64 120, !6, i64 160, !6, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !19, i64 320, !6, i64 440, !6, i64 448, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472}
!15 = !{!"", !16, i64 0, !16, i64 1, !16, i64 2, !16, i64 3, !16, i64 4, !16, i64 5, !16, i64 6, !16, i64 7, !16, i64 8, !16, i64 9, !16, i64 10, !16, i64 11, !16, i64 12, !16, i64 13, !16, i64 14, !16, i64 15, !16, i64 16, !16, i64 17, !16, i64 18, !16, i64 19, !16, i64 20, !16, i64 21, !16, i64 22, !16, i64 23, !16, i64 24, !16, i64 25}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"VarTypePtr_t", !6, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !10, i64 28, !10, i64 32}
!18 = !{!"VarType_t", !6, i64 0, !6, i64 8, !12, i64 16, !16, i64 24, !16, i64 25, !10, i64 28, !10, i64 32}
!19 = !{!"", !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, !20, i64 64}
!20 = !{!"list_attributes_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!21 = !{!22, !12, i64 16}
!22 = !{!"CableLibrary_t", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !6, i64 80}
!23 = !{!14, !12, i64 136}
!24 = !{!14, !12, i64 216}
!25 = !{!14, !12, i64 200}
!26 = !{!22, !12, i64 24}
!27 = !{!22, !12, i64 40}
!28 = !{!14, !16, i64 29}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!16, !16, i64 0}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @inner_function_evals(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #0 {
  %9 = load double, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %3, i64 8
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = load ptr, ptr %0, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = load double, ptr %13, align 8, !tbaa !19
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  %16 = load double, ptr %15, align 8, !tbaa !21
  %17 = getelementptr inbounds i8, ptr %0, i64 216
  %18 = load double, ptr %17, align 8, !tbaa !22
  %19 = getelementptr inbounds i8, ptr %0, i64 200
  %20 = load double, ptr %19, align 8, !tbaa !23
  %21 = getelementptr inbounds i8, ptr %12, i64 24
  %22 = load double, ptr %21, align 8, !tbaa !24
  %23 = getelementptr inbounds i8, ptr %12, i64 40
  %24 = load double, ptr %23, align 8, !tbaa !25
  %25 = getelementptr inbounds i8, ptr %0, i64 29
  %26 = load i8, ptr %25, align 1, !tbaa !26, !range !27, !noundef !28
  %27 = trunc nuw i8 %26 to i1
  switch i32 %7, label %28 [
    i32 0, label %64
    i32 2, label %42
  ]

28:                                               ; preds = %8
  %29 = fcmp olt double %22, 0.000000e+00
  %or.cond = select i1 %27, i1 true, i1 %29
  br i1 %or.cond, label %34, label %30

30:                                               ; preds = %28
  %31 = fneg double %22
  %32 = tail call double @llvm.fmuladd.f64(double %31, double %16, double %11)
  %33 = fcmp ogt double %32, 0.000000e+00
  br i1 %33, label %34, label %38

34:                                               ; preds = %30, %28
  %35 = tail call double @residual_function_length_no_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14, double noundef %20) #3
  store double %35, ptr %4, align 8, !tbaa !5
  %36 = tail call double @residual_function_height_no_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14, double noundef %18) #3
  %37 = getelementptr inbounds i8, ptr %4, i64 8
  store double %36, ptr %37, align 8, !tbaa !5
  br label %64

38:                                               ; preds = %30
  %39 = tail call double @residual_function_length_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14, double noundef %20, double noundef %24) #3
  store double %39, ptr %4, align 8, !tbaa !5
  %40 = tail call double @residual_function_height_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14, double noundef %18, double noundef %24) #3
  %41 = getelementptr inbounds i8, ptr %4, i64 8
  store double %40, ptr %41, align 8, !tbaa !5
  br label %64

42:                                               ; preds = %8
  %43 = fcmp olt double %22, 0.000000e+00
  %or.cond3 = select i1 %27, i1 true, i1 %43
  br i1 %or.cond3, label %48, label %44

44:                                               ; preds = %42
  %45 = fneg double %22
  %46 = tail call double @llvm.fmuladd.f64(double %45, double %16, double %11)
  %47 = fcmp ogt double %46, 0.000000e+00
  br i1 %47, label %48, label %56

48:                                               ; preds = %44, %42
  %49 = tail call double @jacobian_dxdh_no_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14) #3
  store double %49, ptr %5, align 8, !tbaa !5
  %50 = tail call double @jacobian_dxdv_no_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14) #3
  %51 = getelementptr inbounds i8, ptr %5, i64 8
  store double %50, ptr %51, align 8, !tbaa !5
  %52 = tail call double @jacobian_dzdh_no_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14) #3
  %53 = getelementptr inbounds i8, ptr %5, i64 16
  store double %52, ptr %53, align 8, !tbaa !5
  %54 = tail call double @jacobian_dzdv_no_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14) #3
  %55 = getelementptr inbounds i8, ptr %5, i64 24
  store double %54, ptr %55, align 8, !tbaa !5
  br label %64

56:                                               ; preds = %44
  %57 = tail call double @jacobian_dxdh_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14, double noundef %24) #3
  store double %57, ptr %5, align 8, !tbaa !5
  %58 = tail call double @jacobian_dxdv_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14, double noundef %24) #3
  %59 = getelementptr inbounds i8, ptr %5, i64 8
  store double %58, ptr %59, align 8, !tbaa !5
  %60 = tail call double @jacobian_dzdh_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14, double noundef %24) #3
  %61 = getelementptr inbounds i8, ptr %5, i64 16
  store double %60, ptr %61, align 8, !tbaa !5
  %62 = tail call double @jacobian_dzdv_contact(double noundef %11, double noundef %9, double noundef %22, double noundef %16, double noundef %14, double noundef %24) #3
  %63 = getelementptr inbounds i8, ptr %5, i64 24
  store double %62, ptr %63, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %38, %34, %56, %48, %8
  ret i32 0
}

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

declare double @residual_function_length_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @residual_function_height_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @residual_function_length_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @residual_function_height_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @jacobian_dxdh_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @jacobian_dxdv_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @jacobian_dzdh_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @jacobian_dzdv_no_contact(double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @jacobian_dxdh_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @jacobian_dxdv_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @jacobian_dzdh_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

declare double @jacobian_dzdv_contact(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"Line_t", !11, i64 0, !12, i64 8, !14, i64 40, !14, i64 80, !16, i64 120, !11, i64 160, !11, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !17, i64 320, !11, i64 440, !11, i64 448, !15, i64 456, !15, i64 460, !15, i64 464, !15, i64 468, !15, i64 472}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !13, i64 8, !13, i64 9, !13, i64 10, !13, i64 11, !13, i64 12, !13, i64 13, !13, i64 14, !13, i64 15, !13, i64 16, !13, i64 17, !13, i64 18, !13, i64 19, !13, i64 20, !13, i64 21, !13, i64 22, !13, i64 23, !13, i64 24, !13, i64 25}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"VarTypePtr_t", !11, i64 0, !11, i64 8, !11, i64 16, !13, i64 24, !15, i64 28, !15, i64 32}
!15 = !{!"int", !7, i64 0}
!16 = !{!"VarType_t", !11, i64 0, !11, i64 8, !6, i64 16, !13, i64 24, !13, i64 25, !15, i64 28, !15, i64 32}
!17 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !15, i64 24, !11, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !11, i64 56, !18, i64 64}
!18 = !{!"list_attributes_s", !11, i64 0, !11, i64 8, !11, i64 16, !15, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!19 = !{!20, !6, i64 16}
!20 = !{!"CableLibrary_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80}
!21 = !{!10, !6, i64 136}
!22 = !{!10, !6, i64 216}
!23 = !{!10, !6, i64 200}
!24 = !{!20, !6, i64 24}
!25 = !{!20, !6, i64 40}
!26 = !{!10, !13, i64 29}
!27 = !{i8 0, i8 2}
!28 = !{}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass