; 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.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 }

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 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

; Function Attrs: nounwind uwtable
declare dso_local i32 @inner_function_evals(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @call_minpack_lmder(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store float %3, ptr %10, align 4, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.Line_t, ptr %14, i32 0, i32 2
  %16 = getelementptr inbounds %struct.VarTypePtr_t, ptr %15, i32 0, i32 2
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = load double, ptr %17, align 8, !tbaa !22
  %19 = call double @llvm.fabs.f64(double %18)
  %20 = fcmp ogt double %19, 1.000000e-02
  br i1 %20, label %21, label %28

21:                                               ; preds = %6
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.Line_t, ptr %22, i32 0, i32 2
  %24 = getelementptr inbounds %struct.VarTypePtr_t, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = load double, ptr %25, align 8, !tbaa !22
  %27 = call double @llvm.fabs.f64(double %26)
  br label %29

28:                                               ; preds = %6
  br label %29

29:                                               ; preds = %28, %21
  %30 = phi double [ %27, %21 ], [ 1.000000e-02, %28 ]
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %31, i32 0, i32 4
  %33 = getelementptr inbounds [2 x double], ptr %32, i64 0, i64 0
  store double %30, ptr %33, align 8, !tbaa !22
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Line_t, ptr %34, i32 0, i32 3
  %36 = getelementptr inbounds %struct.VarTypePtr_t, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = load double, ptr %37, align 8, !tbaa !22
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %39, i32 0, i32 4
  %41 = getelementptr inbounds [2 x double], ptr %40, i64 0, i64 1
  store double %38, ptr %41, align 8, !tbaa !22
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Line_t, ptr %42, i32 0, i32 30
  store i32 0, ptr %43, align 8, !tbaa !24
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.Line_t, ptr %44, i32 0, i32 31
  store i32 0, ptr %45, align 4, !tbaa !25
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %47, i32 0, i32 20
  %49 = load i32, ptr %48, align 4, !tbaa !26
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %50, i32 0, i32 21
  %52 = load i32, ptr %51, align 8, !tbaa !28
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %53, i32 0, i32 4
  %55 = getelementptr inbounds [2 x double], ptr %54, i64 0, i64 0
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %56, i32 0, i32 5
  %58 = getelementptr inbounds [2 x double], ptr %57, i64 0, i64 0
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %59, i32 0, i32 6
  %61 = getelementptr inbounds [4 x double], ptr %60, i64 0, i64 0
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %62, i32 0, i32 15
  %64 = load i32, ptr %63, align 4, !tbaa !29
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %65, i32 0, i32 1
  %67 = load double, ptr %66, align 8, !tbaa !30
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %68, i32 0, i32 3
  %70 = load double, ptr %69, align 8, !tbaa !31
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %71, i32 0, i32 2
  %73 = load double, ptr %72, align 8, !tbaa !32
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %74, i32 0, i32 14
  %76 = load i32, ptr %75, align 8, !tbaa !33
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %77, i32 0, i32 11
  %79 = getelementptr inbounds [2 x double], ptr %78, i64 0, i64 0
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %80, i32 0, i32 16
  %82 = load i32, ptr %81, align 8, !tbaa !34
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %83, i32 0, i32 13
  %85 = load double, ptr %84, align 8, !tbaa !35
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %86, i32 0, i32 17
  %88 = load i32, ptr %87, align 4, !tbaa !36
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Line_t, ptr %89, i32 0, i32 30
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.Line_t, ptr %91, i32 0, i32 31
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %93, i32 0, i32 19
  %95 = getelementptr inbounds [2 x i32], ptr %94, i64 0, i64 0
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %96, i32 0, i32 12
  %98 = getelementptr inbounds [2 x double], ptr %97, i64 0, i64 0
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %99, i32 0, i32 7
  %101 = getelementptr inbounds [2 x double], ptr %100, i64 0, i64 0
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %102, i32 0, i32 8
  %104 = getelementptr inbounds [2 x double], ptr %103, i64 0, i64 0
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %105, i32 0, i32 9
  %107 = getelementptr inbounds [2 x double], ptr %106, i64 0, i64 0
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %108, i32 0, i32 10
  %110 = getelementptr inbounds [2 x double], ptr %109, i64 0, i64 0
  %111 = call i32 @lmder(ptr noundef @inner_function_evals, ptr noundef %46, i32 noundef %49, i32 noundef %52, ptr noundef %55, ptr noundef %58, ptr noundef %61, i32 noundef %64, double noundef %67, double noundef %70, double noundef %73, i32 noundef %76, ptr noundef %79, i32 noundef %82, double noundef %85, i32 noundef %88, ptr noundef %90, ptr noundef %92, ptr noundef %95, ptr noundef %98, ptr noundef %101, ptr noundef %104, ptr noundef %107, ptr noundef %110)
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %112, i32 0, i32 18
  store i32 %111, ptr %113, align 8, !tbaa !37
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %114, i32 0, i32 20
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %116, i32 0, i32 5
  %118 = getelementptr inbounds [2 x double], ptr %117, i64 0, i64 0
  %119 = call double @enorm_(ptr noundef %115, ptr noundef %118)
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Line_t, ptr %120, i32 0, i32 18
  store double %119, ptr %121, align 8, !tbaa !38
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.Line_t, ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds %struct.LineOptions, ptr %123, i32 0, i32 24
  %125 = load i8, ptr %124, align 8, !tbaa !39, !range !40, !noundef !41
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %167

127:                                              ; preds = %29
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Line_t, ptr %128, i32 0, i32 29
  %130 = load i32, ptr %129, align 4, !tbaa !42
  %131 = sitofp i32 %130 to double
  %132 = load float, ptr %10, align 4, !tbaa !11
  %133 = fpext float %132 to double
  %134 = fcmp ogt double %131, %133
  br i1 %134, label %135, label %167

135:                                              ; preds = %127
  %136 = load float, ptr %10, align 4, !tbaa !11
  %137 = fpext float %136 to double
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %137, i32 noundef %138)
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Line_t, ptr %141, i32 0, i32 18
  %143 = load double, ptr %142, align 8, !tbaa !38
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %143)
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.Line_t, ptr %145, i32 0, i32 30
  %147 = load i32, ptr %146, align 8, !tbaa !24
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %147)
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.Line_t, ptr %149, i32 0, i32 31
  %151 = load i32, ptr %150, align 4, !tbaa !25
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %151)
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.Line_t, ptr %153, i32 0, i32 18
  %155 = load double, ptr %154, align 8, !tbaa !38
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %156, i32 0, i32 1
  %158 = load double, ptr %157, align 8, !tbaa !30
  %159 = fcmp ogt double %155, %158
  br i1 %159, label %160, label %162

160:                                              ; preds = %135
  %161 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %162

162:                                              ; preds = %160, %135
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %163, i32 0, i32 18
  %165 = load i32, ptr %164, align 8, !tbaa !37
  %166 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %165)
  br label %167

167:                                              ; preds = %162, %127, %29
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %168, i32 0, i32 4
  %170 = getelementptr inbounds [2 x double], ptr %169, i64 0, i64 0
  %171 = load double, ptr %170, align 8, !tbaa !22
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.Line_t, ptr %172, i32 0, i32 2
  %174 = getelementptr inbounds %struct.VarTypePtr_t, ptr %173, i32 0, i32 2
  %175 = load ptr, ptr %174, align 8, !tbaa !13
  store double %171, ptr %175, align 8, !tbaa !22
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %176, i32 0, i32 4
  %178 = getelementptr inbounds [2 x double], ptr %177, i64 0, i64 1
  %179 = load double, ptr %178, align 8, !tbaa !22
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.Line_t, ptr %180, i32 0, i32 3
  %182 = getelementptr inbounds %struct.VarTypePtr_t, ptr %181, i32 0, i32 2
  %183 = load ptr, ptr %182, align 8, !tbaa !23
  store double %179, ptr %183, align 8, !tbaa !22
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %184, i32 0, i32 18
  %186 = load i32, ptr %185, align 8, !tbaa !37
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.Line_t, ptr %187, i32 0, i32 32
  store i32 %186, ptr %188, align 8, !tbaa !43
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.InnerSolveAttributes_t, ptr %189, i32 0, i32 18
  %191 = load i32, ptr %190, align 8, !tbaa !37
  switch i32 %191, label %216 [
    i32 0, label %192
    i32 1, label %196
    i32 2, label %197
    i32 3, label %198
    i32 4, label %199
    i32 5, label %200
    i32 6, label %204
    i32 7, label %208
    i32 8, label %212
  ]

192:                                              ; preds = %167
  store i32 3, ptr %13, align 4, !tbaa !9
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = load i32, ptr %9, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %193, ptr noundef %194, i32 noundef 39, ptr noundef @.str.7, i32 noundef %195)
  br label %217

196:                                              ; preds = %167
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %217

197:                                              ; preds = %167
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %217

198:                                              ; preds = %167
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %217

199:                                              ; preds = %167
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %217

200:                                              ; preds = %167
  store i32 3, ptr %13, align 4, !tbaa !9
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = load ptr, ptr %12, align 8, !tbaa !5
  %203 = load i32, ptr %9, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %201, ptr noundef %202, i32 noundef 40, ptr noundef @.str.7, i32 noundef %203)
  br label %217

204:                                              ; preds = %167
  store i32 3, ptr %13, align 4, !tbaa !9
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = load i32, ptr %9, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %205, ptr noundef %206, i32 noundef 109, ptr noundef @.str.7, i32 noundef %207)
  br label %217

208:                                              ; preds = %167
  store i32 3, ptr %13, align 4, !tbaa !9
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = load i32, ptr %9, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %209, ptr noundef %210, i32 noundef 111, ptr noundef @.str.7, i32 noundef %211)
  br label %217

212:                                              ; preds = %167
  store i32 3, ptr %13, align 4, !tbaa !9
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = load ptr, ptr %12, align 8, !tbaa !5
  %215 = load i32, ptr %9, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %213, ptr noundef %214, i32 noundef 110, ptr noundef @.str.7, i32 noundef %215)
  br label %217

216:                                              ; preds = %167
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %217

217:                                              ; preds = %216, %212, %208, %204, %200, %199, %198, %197, %196, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret i32 0
}

declare i32 @lmder(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, double noundef, i32 noundef, ptr noundef, i32 noundef, double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare double @enorm_(ptr noundef, ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #3

declare void @set_universal_error_with_message(ptr noundef, ptr noundef, i32 noundef, ptr 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 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 56}
!14 = !{!"Line_t", !6, i64 0, !15, i64 8, !17, i64 40, !17, i64 80, !18, i64 120, !6, i64 160, !6, i64 168, !19, i64 176, !19, i64 184, !19, i64 192, !19, i64 200, !19, i64 208, !19, i64 216, !19, i64 224, !19, i64 232, !19, i64 240, !19, i64 248, !19, i64 256, !19, i64 264, !19, i64 272, !19, i64 280, !19, i64 288, !19, i64 296, !19, i64 304, !19, i64 312, !20, 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, !19, i64 16, !16, i64 24, !16, i64 25, !10, i64 28, !10, i64 32}
!19 = !{!"double", !7, i64 0}
!20 = !{!"", !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, !21, i64 64}
!21 = !{!"list_attributes_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!22 = !{!19, !19, i64 0}
!23 = !{!14, !6, i64 96}
!24 = !{!14, !10, i64 464}
!25 = !{!14, !10, i64 468}
!26 = !{!27, !10, i64 228}
!27 = !{!"InnerSolveAttributes_t", !6, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !7, i64 32, !7, i64 48, !7, i64 64, !7, i64 96, !7, i64 112, !7, i64 128, !7, i64 144, !7, i64 160, !7, i64 176, !19, i64 192, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !7, i64 220, !10, i64 228, !10, i64 232}
!28 = !{!27, !10, i64 232}
!29 = !{!27, !10, i64 204}
!30 = !{!27, !19, i64 8}
!31 = !{!27, !19, i64 24}
!32 = !{!27, !19, i64 16}
!33 = !{!27, !10, i64 200}
!34 = !{!27, !10, i64 208}
!35 = !{!27, !19, i64 192}
!36 = !{!27, !10, i64 212}
!37 = !{!27, !10, i64 216}
!38 = !{!14, !19, i64 264}
!39 = !{!14, !16, i64 32}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!14, !10, i64 460}
!43 = !{!14, !10, i64 472}


; 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 [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@switch.table.call_minpack_lmder = private unnamed_addr constant [9 x i32] [i32 39, i32 39, i32 39, i32 39, i32 39, i32 40, i32 109, i32 111, i32 110], align 4

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @call_minpack_lmder(ptr noundef %0, ptr noundef %1, i32 noundef %2, float noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = getelementptr inbounds i8, ptr %0, i64 56
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = load double, ptr %8, align 8, !tbaa !18
  %10 = tail call double @llvm.fabs.f64(double %9)
  %11 = fcmp ogt double %10, 1.000000e-02
  %12 = select i1 %11, double %10, double 1.000000e-02
  %13 = getelementptr inbounds i8, ptr %1, i64 32
  store double %12, ptr %13, align 8, !tbaa !18
  %14 = getelementptr inbounds i8, ptr %0, i64 96
  %15 = load ptr, ptr %14, align 8, !tbaa !19
  %16 = load double, ptr %15, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %1, i64 40
  store double %16, ptr %17, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %0, i64 464
  store i32 0, ptr %18, align 8, !tbaa !20
  %19 = getelementptr inbounds i8, ptr %0, i64 468
  store i32 0, ptr %19, align 4, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %1, i64 228
  %21 = load i32, ptr %20, align 4, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %1, i64 232
  %23 = load i32, ptr %22, align 8, !tbaa !24
  %24 = getelementptr inbounds i8, ptr %1, i64 48
  %25 = getelementptr inbounds i8, ptr %1, i64 64
  %26 = getelementptr inbounds i8, ptr %1, i64 204
  %27 = load i32, ptr %26, align 4, !tbaa !25
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %29 = load double, ptr %28, align 8, !tbaa !26
  %30 = getelementptr inbounds i8, ptr %1, i64 24
  %31 = load double, ptr %30, align 8, !tbaa !27
  %32 = getelementptr inbounds i8, ptr %1, i64 16
  %33 = load double, ptr %32, align 8, !tbaa !28
  %34 = getelementptr inbounds i8, ptr %1, i64 200
  %35 = load i32, ptr %34, align 8, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %1, i64 160
  %37 = getelementptr inbounds i8, ptr %1, i64 208
  %38 = load i32, ptr %37, align 8, !tbaa !30
  %39 = getelementptr inbounds i8, ptr %1, i64 192
  %40 = load double, ptr %39, align 8, !tbaa !31
  %41 = getelementptr inbounds i8, ptr %1, i64 212
  %42 = load i32, ptr %41, align 4, !tbaa !32
  %43 = getelementptr inbounds i8, ptr %1, i64 220
  %44 = getelementptr inbounds i8, ptr %1, i64 176
  %45 = getelementptr inbounds i8, ptr %1, i64 96
  %46 = getelementptr inbounds i8, ptr %1, i64 112
  %47 = getelementptr inbounds i8, ptr %1, i64 128
  %48 = getelementptr inbounds i8, ptr %1, i64 144
  %49 = tail call i32 @lmder(ptr noundef nonnull @inner_function_evals, ptr noundef %0, i32 noundef %21, i32 noundef %23, ptr noundef nonnull %13, ptr noundef nonnull %24, ptr noundef nonnull %25, i32 noundef %27, double noundef %29, double noundef %31, double noundef %33, i32 noundef %35, ptr noundef nonnull %36, i32 noundef %38, double noundef %40, i32 noundef %42, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %47, ptr noundef nonnull %48) #4
  %50 = getelementptr inbounds i8, ptr %1, i64 216
  store i32 %49, ptr %50, align 8, !tbaa !33
  %51 = tail call double @enorm_(ptr noundef nonnull %20, ptr noundef nonnull %24) #4
  %52 = getelementptr inbounds i8, ptr %0, i64 264
  store double %51, ptr %52, align 8, !tbaa !34
  %53 = getelementptr inbounds i8, ptr %0, i64 32
  %54 = load i8, ptr %53, align 8, !tbaa !35, !range !36, !noundef !37
  %55 = trunc nuw i8 %54 to i1
  br i1 %55, label %56, label %79

56:                                               ; preds = %6
  %57 = getelementptr inbounds i8, ptr %0, i64 460
  %58 = load i32, ptr %57, align 4, !tbaa !38
  %59 = sitofp i32 %58 to double
  %60 = fpext float %3 to double
  %61 = fcmp ogt double %59, %60
  br i1 %61, label %62, label %79

62:                                               ; preds = %56
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %60, i32 noundef %2)
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %65 = load double, ptr %52, align 8, !tbaa !34
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %65)
  %67 = load i32, ptr %18, align 8, !tbaa !20
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %67)
  %69 = load i32, ptr %19, align 4, !tbaa !21
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %69)
  %71 = load double, ptr %52, align 8, !tbaa !34
  %72 = load double, ptr %28, align 8, !tbaa !26
  %73 = fcmp ogt double %71, %72
  br i1 %73, label %74, label %76

74:                                               ; preds = %62
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %76

76:                                               ; preds = %74, %62
  %77 = load i32, ptr %50, align 8, !tbaa !33
  %78 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %77)
  br label %79

79:                                               ; preds = %76, %56, %6
  %80 = load double, ptr %13, align 8, !tbaa !18
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  store double %80, ptr %81, align 8, !tbaa !18
  %82 = load double, ptr %17, align 8, !tbaa !18
  %83 = load ptr, ptr %14, align 8, !tbaa !19
  store double %82, ptr %83, align 8, !tbaa !18
  %84 = load i32, ptr %50, align 8, !tbaa !33
  %85 = getelementptr inbounds i8, ptr %0, i64 472
  store i32 %84, ptr %85, align 8, !tbaa !39
  %86 = icmp ult i32 %84, 9
  br i1 %86, label %switch.hole_check, label %88

switch.hole_check:                                ; preds = %79
  %switch.maskindex = trunc nuw i32 %84 to i16
  %switch.shifted = lshr i16 481, %switch.maskindex
  %switch.lobit = trunc i16 %switch.shifted to i1
  br i1 %switch.lobit, label %switch.lookup, label %88

switch.lookup:                                    ; preds = %switch.hole_check
  %87 = zext nneg i32 %84 to i64
  %switch.gep = getelementptr inbounds [9 x i32], ptr @switch.table.call_minpack_lmder, i64 0, i64 %87
  %switch.load = load i32, ptr %switch.gep, align 4
  tail call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %4, ptr noundef %5, i32 noundef %switch.load, ptr noundef nonnull @.str.7, i32 noundef %2) #4
  br label %88

88:                                               ; preds = %switch.hole_check, %79, %switch.lookup
  ret i32 0
}

declare i32 @lmder(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, double noundef, i32 noundef, ptr noundef, i32 noundef, double noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @enorm_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @set_universal_error_with_message(ptr noundef, ptr noundef, i32 noundef, ptr 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 = { nofree 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 #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, !7, i64 56}
!6 = !{!"Line_t", !7, i64 0, !10, i64 8, !12, i64 40, !12, i64 80, !14, i64 120, !7, i64 160, !7, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !15, i64 224, !15, i64 232, !15, i64 240, !15, i64 248, !15, i64 256, !15, i64 264, !15, i64 272, !15, i64 280, !15, i64 288, !15, i64 296, !15, i64 304, !15, i64 312, !16, i64 320, !7, i64 440, !7, i64 448, !13, i64 456, !13, i64 460, !13, i64 464, !13, i64 468, !13, i64 472}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !11, i64 8, !11, i64 9, !11, i64 10, !11, i64 11, !11, i64 12, !11, i64 13, !11, i64 14, !11, i64 15, !11, i64 16, !11, i64 17, !11, i64 18, !11, i64 19, !11, i64 20, !11, i64 21, !11, i64 22, !11, i64 23, !11, i64 24, !11, i64 25}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!"VarTypePtr_t", !7, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !13, i64 28, !13, i64 32}
!13 = !{!"int", !8, i64 0}
!14 = !{!"VarType_t", !7, i64 0, !7, i64 8, !15, i64 16, !11, i64 24, !11, i64 25, !13, i64 28, !13, i64 32}
!15 = !{!"double", !8, i64 0}
!16 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !7, i64 32, !13, i64 40, !13, i64 44, !13, i64 48, !7, i64 56, !17, i64 64}
!17 = !{!"list_attributes_s", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!18 = !{!15, !15, i64 0}
!19 = !{!6, !7, i64 96}
!20 = !{!6, !13, i64 464}
!21 = !{!6, !13, i64 468}
!22 = !{!23, !13, i64 228}
!23 = !{!"InnerSolveAttributes_t", !7, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !8, i64 32, !8, i64 48, !8, i64 64, !8, i64 96, !8, i64 112, !8, i64 128, !8, i64 144, !8, i64 160, !8, i64 176, !15, i64 192, !13, i64 200, !13, i64 204, !13, i64 208, !13, i64 212, !13, i64 216, !8, i64 220, !13, i64 228, !13, i64 232}
!24 = !{!23, !13, i64 232}
!25 = !{!23, !13, i64 204}
!26 = !{!23, !15, i64 8}
!27 = !{!23, !15, i64 24}
!28 = !{!23, !15, i64 16}
!29 = !{!23, !13, i64 200}
!30 = !{!23, !13, i64 208}
!31 = !{!23, !15, i64 192}
!32 = !{!23, !13, i64 212}
!33 = !{!23, !13, i64 216}
!34 = !{!6, !15, i64 264}
!35 = !{!6, !11, i64 32}
!36 = !{i8 0, i8 2}
!37 = !{}
!38 = !{!6, !13, i64 460}
!39 = !{!6, !13, i64 472}


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