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

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

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

32:                                               ; preds = %4
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = load i32, ptr %7, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %33, ptr noundef %34, i32 noundef 42, ptr noundef @.str.9, i32 noundef %35)
  store double 0xC08F3F3333333333, ptr %5, align 8
  store i32 1, ptr %20, align 4
  br label %106

36:                                               ; preds = %4
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.Line_t, ptr %37, i32 0, i32 2
  %39 = getelementptr inbounds %struct.VarTypePtr_t, ptr %38, i32 0, i32 2
  %40 = load ptr, ptr %39, align 8, !tbaa !17
  %41 = load double, ptr %40, align 8, !tbaa !13
  store double %41, ptr %12, align 8, !tbaa !13
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Line_t, ptr %42, i32 0, i32 3
  %44 = getelementptr inbounds %struct.VarTypePtr_t, ptr %43, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !24
  %46 = load double, ptr %45, align 8, !tbaa !13
  store double %46, ptr %13, align 8, !tbaa !13
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.Line_t, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !25
  %50 = getelementptr inbounds %struct.CableLibrary_t, ptr %49, i32 0, i32 2
  %51 = load double, ptr %50, align 8, !tbaa !26
  store double %51, ptr %14, align 8, !tbaa !13
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.Line_t, ptr %52, i32 0, i32 4
  %54 = getelementptr inbounds %struct.VarType_t, ptr %53, i32 0, i32 2
  %55 = load double, ptr %54, align 8, !tbaa !28
  store double %55, ptr %15, align 8, !tbaa !13
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.Line_t, ptr %56, i32 0, i32 12
  %58 = load double, ptr %57, align 8, !tbaa !29
  store double %58, ptr %16, align 8, !tbaa !13
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.Line_t, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !25
  %62 = getelementptr inbounds %struct.CableLibrary_t, ptr %61, i32 0, i32 3
  %63 = load double, ptr %62, align 8, !tbaa !30
  store double %63, ptr %17, align 8, !tbaa !13
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.Line_t, ptr %64, i32 0, i32 1
  %66 = getelementptr inbounds %struct.LineOptions, ptr %65, i32 0, i32 21
  %67 = load i8, ptr %66, align 1, !tbaa !31, !range !32, !noundef !33
  %68 = trunc i8 %67 to i1
  %69 = zext i1 %68 to i8
  store i8 %69, ptr %19, align 1, !tbaa !15
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Line_t, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !25
  %73 = getelementptr inbounds %struct.CableLibrary_t, ptr %72, i32 0, i32 5
  %74 = load double, ptr %73, align 8, !tbaa !34
  store double %74, ptr %18, align 8, !tbaa !13
  %75 = load i8, ptr %19, align 1, !tbaa !15, !range !32, !noundef !33
  %76 = trunc i8 %75 to i1
  %77 = zext i1 %76 to i32
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %89, label %79

79:                                               ; preds = %36
  %80 = load double, ptr %17, align 8, !tbaa !13
  %81 = fcmp olt double %80, 0.000000e+00
  br i1 %81, label %89, label %82

82:                                               ; preds = %79
  %83 = load double, ptr %13, align 8, !tbaa !13
  %84 = load double, ptr %17, align 8, !tbaa !13
  %85 = load double, ptr %15, align 8, !tbaa !13
  %86 = fneg double %84
  %87 = call double @llvm.fmuladd.f64(double %86, double %85, double %83)
  %88 = fcmp ogt double %87, 0.000000e+00
  br i1 %88, label %89, label %97

89:                                               ; preds = %82, %79, %36
  %90 = load double, ptr %13, align 8, !tbaa !13
  %91 = load double, ptr %12, align 8, !tbaa !13
  %92 = load double, ptr %17, align 8, !tbaa !13
  %93 = load double, ptr %15, align 8, !tbaa !13
  %94 = load double, ptr %14, align 8, !tbaa !13
  %95 = load double, ptr %16, align 8, !tbaa !13
  %96 = call double @residual_function_height_no_contact(double noundef %90, double noundef %91, double noundef %92, double noundef %93, double noundef %94, double noundef %95)
  store double %96, ptr %5, align 8
  store i32 1, ptr %20, align 4
  br label %106

97:                                               ; preds = %82
  %98 = load double, ptr %13, align 8, !tbaa !13
  %99 = load double, ptr %12, align 8, !tbaa !13
  %100 = load double, ptr %17, align 8, !tbaa !13
  %101 = load double, ptr %15, align 8, !tbaa !13
  %102 = load double, ptr %14, align 8, !tbaa !13
  %103 = load double, ptr %16, align 8, !tbaa !13
  %104 = load double, ptr %18, align 8, !tbaa !13
  %105 = call double @residual_function_height_contact(double noundef %98, double noundef %99, double noundef %100, double noundef %101, double noundef %102, double noundef %103, double noundef %104)
  store double %105, ptr %5, align 8
  store i32 1, ptr %20, align 4
  br label %106

106:                                              ; preds = %97, %89, %32
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %107 = load double, ptr %5, align 8
  ret double %107
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !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, !16, i64 0}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!18, !6, i64 56}
!18 = !{!"Line_t", !6, i64 0, !19, i64 8, !20, i64 40, !20, i64 80, !21, 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, !22, i64 320, !6, i64 440, !6, i64 448, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472}
!19 = !{!"", !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}
!20 = !{!"VarTypePtr_t", !6, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !10, i64 28, !10, i64 32}
!21 = !{!"VarType_t", !6, i64 0, !6, i64 8, !14, i64 16, !16, i64 24, !16, i64 25, !10, i64 28, !10, i64 32}
!22 = !{!"", !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, !23, i64 64}
!23 = !{!"list_attributes_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!24 = !{!18, !6, i64 96}
!25 = !{!18, !6, i64 0}
!26 = !{!27, !14, i64 16}
!27 = !{!"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}
!28 = !{!18, !14, i64 136}
!29 = !{!18, !14, i64 216}
!30 = !{!27, !14, i64 24}
!31 = !{!18, !16, i64 29}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!27, !14, i64 40}


; 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

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

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

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

10:                                               ; preds = %4
  %11 = getelementptr inbounds i8, ptr %7, i64 56
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = load double, ptr %12, align 8, !tbaa !20
  %14 = getelementptr inbounds i8, ptr %7, i64 96
  %15 = load ptr, ptr %14, align 8, !tbaa !21
  %16 = load double, ptr %15, align 8, !tbaa !20
  %17 = load ptr, ptr %7, align 8, !tbaa !22
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = load double, ptr %18, align 8, !tbaa !23
  %20 = getelementptr inbounds i8, ptr %7, i64 136
  %21 = load double, ptr %20, align 8, !tbaa !25
  %22 = getelementptr inbounds i8, ptr %7, i64 216
  %23 = load double, ptr %22, align 8, !tbaa !26
  %24 = getelementptr inbounds i8, ptr %17, i64 24
  %25 = load double, ptr %24, align 8, !tbaa !27
  %26 = getelementptr inbounds i8, ptr %7, i64 29
  %27 = load i8, ptr %26, align 1, !tbaa !28, !range !29, !noundef !30
  %28 = trunc nuw i8 %27 to i1
  %29 = getelementptr inbounds i8, ptr %17, i64 40
  %30 = load double, ptr %29, align 8, !tbaa !31
  %31 = fcmp olt double %25, 0.000000e+00
  %or.cond = select i1 %28, i1 true, i1 %31
  br i1 %or.cond, label %36, label %32

32:                                               ; preds = %10
  %33 = fneg double %25
  %34 = tail call double @llvm.fmuladd.f64(double %33, double %21, double %16)
  %35 = fcmp ogt double %34, 0.000000e+00
  br i1 %35, label %36, label %38

36:                                               ; preds = %32, %10
  %37 = tail call double @residual_function_height_no_contact(double noundef %16, double noundef %13, double noundef %25, double noundef %21, double noundef %19, double noundef %23) #3
  br label %40

38:                                               ; preds = %32
  %39 = tail call double @residual_function_height_contact(double noundef %16, double noundef %13, double noundef %25, double noundef %21, double noundef %19, double noundef %23, double noundef %30) #3
  br label %40

40:                                               ; preds = %38, %36, %9
  %.0 = phi double [ 0xC08F3F3333333333, %9 ], [ %37, %36 ], [ %39, %38 ]
  ret double %.0
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !7, i64 56}
!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 = !{!17, !17, i64 0}
!21 = !{!12, !7, i64 96}
!22 = !{!12, !7, i64 0}
!23 = !{!24, !17, i64 16}
!24 = !{!"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}
!25 = !{!12, !17, i64 136}
!26 = !{!12, !17, i64 216}
!27 = !{!24, !17, i64 24}
!28 = !{!12, !14, i64 29}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!24, !17, i64 40}


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