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

; 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_InputType = type { ptr, ptr, i32, ptr, i32, ptr, 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 }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1

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

declare void @set_universal_error(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @set_vessel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  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 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %14 = load ptr, ptr %7, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.MAP_InputType, ptr %14, i32 0, i32 2
  %16 = load i32, ptr %15, align 8, !tbaa !11
  store i32 %16, ptr %12, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %4
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.Vessel_t, ptr %18, i32 0, i32 4
  %20 = getelementptr inbounds %struct.Point_t, ptr %19, i32 0, i32 0
  %21 = call i32 @set_vartype_float(ptr noundef @.str, ptr noundef @.str.1, i32 noundef -999, ptr noundef %20, double noundef 0.000000e+00)
  store i32 %21, ptr %10, align 4, !tbaa !9
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %27

24:                                               ; preds = %17
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %25, ptr noundef %26, i32 noundef 68)
  br label %109

27:                                               ; preds = %17
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.Vessel_t, ptr %28, i32 0, i32 4
  %30 = getelementptr inbounds %struct.Point_t, ptr %29, i32 0, i32 1
  %31 = call i32 @set_vartype_float(ptr noundef @.str, ptr noundef @.str.2, i32 noundef -999, ptr noundef %30, double noundef 0.000000e+00)
  store i32 %31, ptr %10, align 4, !tbaa !9
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %27
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %35, ptr noundef %36, i32 noundef 68)
  br label %109

37:                                               ; preds = %27
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.Vessel_t, ptr %38, i32 0, i32 4
  %40 = getelementptr inbounds %struct.Point_t, ptr %39, i32 0, i32 2
  %41 = call i32 @set_vartype_float(ptr noundef @.str, ptr noundef @.str.3, i32 noundef -999, ptr noundef %40, double noundef 0.000000e+00)
  store i32 %41, ptr %10, align 4, !tbaa !9
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %47

44:                                               ; preds = %37
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %45, ptr noundef %46, i32 noundef 68)
  br label %109

47:                                               ; preds = %37
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.Vessel_t, ptr %48, i32 0, i32 6
  %50 = getelementptr inbounds %struct.Force_t, ptr %49, i32 0, i32 0
  %51 = call i32 @set_vartype_float(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef -999, ptr noundef %50, double noundef 0.000000e+00)
  store i32 %51, ptr %10, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %57

54:                                               ; preds = %47
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %55, ptr noundef %56, i32 noundef 68)
  br label %109

57:                                               ; preds = %47
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.Vessel_t, ptr %58, i32 0, i32 6
  %60 = getelementptr inbounds %struct.Force_t, ptr %59, i32 0, i32 1
  %61 = call i32 @set_vartype_float(ptr noundef @.str.4, ptr noundef @.str.6, i32 noundef -999, ptr noundef %60, double noundef 0.000000e+00)
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %57
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %65, ptr noundef %66, i32 noundef 68)
  br label %109

67:                                               ; preds = %57
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.Vessel_t, ptr %68, i32 0, i32 6
  %70 = getelementptr inbounds %struct.Force_t, ptr %69, i32 0, i32 2
  %71 = call i32 @set_vartype_float(ptr noundef @.str.4, ptr noundef @.str.7, i32 noundef -999, ptr noundef %70, double noundef 0.000000e+00)
  store i32 %71, ptr %10, align 4, !tbaa !9
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %77

74:                                               ; preds = %67
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %75, ptr noundef %76, i32 noundef 68)
  br label %109

77:                                               ; preds = %67
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.Vessel_t, ptr %78, i32 0, i32 0
  %80 = getelementptr inbounds %struct.EulerAngle_t, ptr %79, i32 0, i32 0
  %81 = call i32 @set_vartype_float(ptr noundef @.str.8, ptr noundef @.str.9, i32 noundef -999, ptr noundef %80, double noundef 0.000000e+00)
  store i32 %81, ptr %10, align 4, !tbaa !9
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %77
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %85, ptr noundef %86, i32 noundef 68)
  br label %109

87:                                               ; preds = %77
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Vessel_t, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.EulerAngle_t, ptr %89, i32 0, i32 1
  %91 = call i32 @set_vartype_float(ptr noundef @.str.8, ptr noundef @.str.10, i32 noundef -999, ptr noundef %90, double noundef 0.000000e+00)
  store i32 %91, ptr %10, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %97

94:                                               ; preds = %87
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %95, ptr noundef %96, i32 noundef 68)
  br label %109

97:                                               ; preds = %87
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Vessel_t, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds %struct.EulerAngle_t, ptr %99, i32 0, i32 2
  %101 = call i32 @set_vartype_float(ptr noundef @.str.8, ptr noundef @.str.11, i32 noundef -999, ptr noundef %100, double noundef 0.000000e+00)
  store i32 %101, ptr %10, align 4, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %107

104:                                              ; preds = %97
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %105, ptr noundef %106, i32 noundef 68)
  br label %109

107:                                              ; preds = %97
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108, %104, %94, %84, %74, %64, %54, %44, %34, %24
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = mul i64 %111, 8
  %113 = call noalias ptr @malloc(i64 noundef %112) #5
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Vessel_t, ptr %114, i32 0, i32 1
  store ptr %113, ptr %115, align 8, !tbaa !13
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = mul i64 %117, 8
  %119 = call noalias ptr @malloc(i64 noundef %118) #5
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.Vessel_t, ptr %120, i32 0, i32 2
  store ptr %119, ptr %121, align 8, !tbaa !21
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = mul i64 %123, 8
  %125 = call noalias ptr @malloc(i64 noundef %124) #5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.Vessel_t, ptr %126, i32 0, i32 3
  store ptr %125, ptr %127, align 8, !tbaa !22
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.Vessel_t, ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !13
  %131 = icmp eq ptr %130, null
  br i1 %131, label %142, label %132

132:                                              ; preds = %109
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.Vessel_t, ptr %133, i32 0, i32 2
  %135 = load ptr, ptr %134, align 8, !tbaa !21
  %136 = icmp eq ptr %135, null
  br i1 %136, label %142, label %137

137:                                              ; preds = %132
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.Vessel_t, ptr %138, i32 0, i32 3
  %140 = load ptr, ptr %139, align 8, !tbaa !22
  %141 = icmp eq ptr %140, null
  br i1 %141, label %142, label %143

142:                                              ; preds = %137, %132, %109
  store i32 3, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %192

143:                                              ; preds = %137
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %188, %143
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %191

148:                                              ; preds = %144
  %149 = load ptr, ptr %7, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.MAP_InputType, ptr %149, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !23
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !24
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.Vessel_t, ptr %156, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8, !tbaa !13
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  store double %155, ptr %161, align 8, !tbaa !24
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.MAP_InputType, ptr %162, i32 0, i32 3
  %164 = load ptr, ptr %163, align 8, !tbaa !25
  %165 = load i32, ptr %11, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !24
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.Vessel_t, ptr %169, i32 0, i32 2
  %171 = load ptr, ptr %170, align 8, !tbaa !21
  %172 = load i32, ptr %11, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  store double %168, ptr %174, align 8, !tbaa !24
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.MAP_InputType, ptr %175, i32 0, i32 5
  %177 = load ptr, ptr %176, align 8, !tbaa !26
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %177, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !24
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.Vessel_t, ptr %182, i32 0, i32 3
  %184 = load ptr, ptr %183, align 8, !tbaa !22
  %185 = load i32, ptr %11, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  store double %181, ptr %187, align 8, !tbaa !24
  br label %188

188:                                              ; preds = %148
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %11, align 4, !tbaa !9
  br label %144, !llvm.loop !27

191:                                              ; preds = %144
  store i32 0, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %192

192:                                              ; preds = %191, %142
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %193 = load i32, ptr %5, align 4
  ret i32 %193
}

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @set_vartype_float(ptr noundef, ptr noundef, i32 noundef, ptr noundef, double noundef) #2

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
attributes #5 = { 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, !10, i64 16}
!12 = !{!"MAP_InputType", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !10, i64 48}
!13 = !{!14, !6, i64 120}
!14 = !{!"Vessel_t", !15, i64 0, !6, i64 120, !6, i64 128, !6, i64 136, !19, i64 144, !19, i64 264, !20, i64 384}
!15 = !{!"EulerAngle_t", !16, i64 0, !16, i64 40, !16, i64 80}
!16 = !{!"VarType_t", !6, i64 0, !6, i64 8, !17, i64 16, !18, i64 24, !18, i64 25, !10, i64 28, !10, i64 32}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"Point_t", !16, i64 0, !16, i64 40, !16, i64 80}
!20 = !{!"Force_t", !16, i64 0, !16, i64 40, !16, i64 80}
!21 = !{!14, !6, i64 128}
!22 = !{!14, !6, i64 136}
!23 = !{!12, !6, i64 8}
!24 = !{!17, !17, i64 0}
!25 = !{!12, !6, i64 24}
!26 = !{!12, !6, i64 40}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; 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 [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 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 #0

declare void @set_universal_error(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @set_vessel(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 144
  %8 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef -999, ptr noundef nonnull %7, double noundef 0.000000e+00)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %9, label %.sink.split

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str, ptr noundef nonnull @.str.2, i32 noundef -999, ptr noundef nonnull %10, double noundef 0.000000e+00)
  %.not62 = icmp eq i32 %11, 0
  br i1 %.not62, label %12, label %.sink.split

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 224
  %14 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str, ptr noundef nonnull @.str.3, i32 noundef -999, ptr noundef nonnull %13, double noundef 0.000000e+00)
  %.not63 = icmp eq i32 %14, 0
  br i1 %.not63, label %15, label %.sink.split

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 384
  %17 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef -999, ptr noundef nonnull %16, double noundef 0.000000e+00)
  %.not64 = icmp eq i32 %17, 0
  br i1 %.not64, label %18, label %.sink.split

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 424
  %20 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.6, i32 noundef -999, ptr noundef nonnull %19, double noundef 0.000000e+00)
  %.not65 = icmp eq i32 %20, 0
  br i1 %.not65, label %21, label %.sink.split

21:                                               ; preds = %18
  %22 = getelementptr inbounds i8, ptr %0, i64 464
  %23 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, i32 noundef -999, ptr noundef nonnull %22, double noundef 0.000000e+00)
  %.not66 = icmp eq i32 %23, 0
  br i1 %.not66, label %24, label %.sink.split

24:                                               ; preds = %21
  %25 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.9, i32 noundef -999, ptr noundef %0, double noundef 0.000000e+00)
  %.not67 = icmp eq i32 %25, 0
  br i1 %.not67, label %26, label %.sink.split

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.10, i32 noundef -999, ptr noundef nonnull %27, double noundef 0.000000e+00)
  %.not68 = icmp eq i32 %28, 0
  br i1 %.not68, label %29, label %.sink.split

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 80
  %31 = tail call i32 @set_vartype_float(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.11, i32 noundef -999, ptr noundef nonnull %30, double noundef 0.000000e+00)
  %.not69 = icmp eq i32 %31, 0
  br i1 %.not69, label %32, label %.sink.split

.sink.split:                                      ; preds = %29, %26, %24, %21, %18, %15, %12, %9, %4
  tail call void @set_universal_error(ptr noundef %2, ptr noundef %3, i32 noundef 68) #3
  br label %32

32:                                               ; preds = %.sink.split, %29
  %33 = sext i32 %6 to i64
  %34 = shl nsw i64 %33, 3
  %35 = tail call noalias ptr @malloc(i64 noundef %34) #4
  %36 = ptrtoint ptr %35 to i64
  %37 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %35, ptr %37, align 8, !tbaa !11
  %38 = tail call noalias ptr @malloc(i64 noundef %34) #4
  %39 = ptrtoint ptr %38 to i64
  %40 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %38, ptr %40, align 8, !tbaa !19
  %41 = tail call noalias ptr @malloc(i64 noundef %34) #4
  %42 = ptrtoint ptr %41 to i64
  %43 = getelementptr inbounds i8, ptr %0, i64 136
  store ptr %41, ptr %43, align 8, !tbaa !20
  %44 = icmp eq ptr %35, null
  br i1 %44, label %.loopexit, label %45

45:                                               ; preds = %32
  %46 = icmp eq ptr %38, null
  %47 = icmp eq ptr %41, null
  %or.cond = or i1 %46, %47
  br i1 %or.cond, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %45
  %48 = icmp sgt i32 %6, 0
  br i1 %48, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader
  %49 = getelementptr inbounds i8, ptr %1, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %1, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  %53 = getelementptr inbounds i8, ptr %1, i64 40
  %54 = load ptr, ptr %53, align 8, !tbaa !23
  %wide.trip.count = zext nneg i32 %6 to i64
  %min.iters.check = icmp ult i32 %6, 44
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %55 = ptrtoint ptr %54 to i64
  %56 = ptrtoint ptr %52 to i64
  %57 = ptrtoint ptr %50 to i64
  %58 = sub i64 %39, %36
  %diff.check = icmp ult i64 %58, 32
  %59 = sub i64 %42, %36
  %diff.check72 = icmp ult i64 %59, 32
  %conflict.rdx = or i1 %diff.check, %diff.check72
  %60 = sub i64 %36, %57
  %diff.check73 = icmp ult i64 %60, 32
  %conflict.rdx74 = or i1 %conflict.rdx, %diff.check73
  %61 = sub i64 %56, %36
  %diff.check75 = icmp ult i64 %61, 32
  %conflict.rdx76 = or i1 %conflict.rdx74, %diff.check75
  %62 = sub i64 %55, %36
  %diff.check77 = icmp ult i64 %62, 32
  %conflict.rdx78 = or i1 %conflict.rdx76, %diff.check77
  %63 = sub i64 %42, %39
  %diff.check79 = icmp ult i64 %63, 32
  %conflict.rdx80 = or i1 %conflict.rdx78, %diff.check79
  %64 = sub i64 %39, %57
  %diff.check81 = icmp ult i64 %64, 32
  %conflict.rdx82 = or i1 %conflict.rdx80, %diff.check81
  %65 = sub i64 %39, %56
  %diff.check83 = icmp ult i64 %65, 32
  %conflict.rdx84 = or i1 %conflict.rdx82, %diff.check83
  %66 = sub i64 %55, %39
  %diff.check85 = icmp ult i64 %66, 32
  %conflict.rdx86 = or i1 %conflict.rdx84, %diff.check85
  %67 = sub i64 %42, %57
  %diff.check87 = icmp ult i64 %67, 32
  %conflict.rdx88 = or i1 %conflict.rdx86, %diff.check87
  %68 = sub i64 %42, %56
  %diff.check89 = icmp ult i64 %68, 32
  %conflict.rdx90 = or i1 %conflict.rdx88, %diff.check89
  %69 = sub i64 %42, %55
  %diff.check91 = icmp ult i64 %69, 32
  %conflict.rdx92 = or i1 %conflict.rdx90, %diff.check91
  br i1 %conflict.rdx92, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %70 = getelementptr inbounds double, ptr %50, i64 %index
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load = load <2 x double>, ptr %70, align 8, !tbaa !24
  %wide.load93 = load <2 x double>, ptr %71, align 8, !tbaa !24
  %72 = getelementptr inbounds double, ptr %35, i64 %index
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  store <2 x double> %wide.load, ptr %72, align 8, !tbaa !24
  store <2 x double> %wide.load93, ptr %73, align 8, !tbaa !24
  %74 = getelementptr inbounds double, ptr %52, i64 %index
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %wide.load94 = load <2 x double>, ptr %74, align 8, !tbaa !24
  %wide.load95 = load <2 x double>, ptr %75, align 8, !tbaa !24
  %76 = getelementptr inbounds double, ptr %38, i64 %index
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  store <2 x double> %wide.load94, ptr %76, align 8, !tbaa !24
  store <2 x double> %wide.load95, ptr %77, align 8, !tbaa !24
  %78 = getelementptr inbounds double, ptr %54, i64 %index
  %79 = getelementptr inbounds i8, ptr %78, i64 16
  %wide.load96 = load <2 x double>, ptr %78, align 8, !tbaa !24
  %wide.load97 = load <2 x double>, ptr %79, align 8, !tbaa !24
  %80 = getelementptr inbounds double, ptr %41, i64 %index
  %81 = getelementptr inbounds i8, ptr %80, i64 16
  store <2 x double> %wide.load96, ptr %80, align 8, !tbaa !24
  store <2 x double> %wide.load97, ptr %81, align 8, !tbaa !24
  %index.next = add nuw i64 %index, 4
  %82 = icmp eq i64 %index.next, %n.vec
  br i1 %82, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %83 = getelementptr inbounds double, ptr %50, i64 %indvars.iv.ph
  %84 = load double, ptr %83, align 8, !tbaa !24
  %85 = getelementptr inbounds double, ptr %35, i64 %indvars.iv.ph
  store double %84, ptr %85, align 8, !tbaa !24
  %86 = getelementptr inbounds double, ptr %52, i64 %indvars.iv.ph
  %87 = load double, ptr %86, align 8, !tbaa !24
  %88 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.ph
  store double %87, ptr %88, align 8, !tbaa !24
  %89 = getelementptr inbounds double, ptr %54, i64 %indvars.iv.ph
  %90 = load double, ptr %89, align 8, !tbaa !24
  %91 = getelementptr inbounds double, ptr %41, i64 %indvars.iv.ph
  store double %90, ptr %91, align 8, !tbaa !24
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %92 = add nsw i64 %wide.trip.count, -1
  %93 = icmp eq i64 %indvars.iv.ph, %92
  br i1 %93, label %.loopexit, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %94 = getelementptr inbounds double, ptr %50, i64 %indvars.iv
  %95 = load double, ptr %94, align 8, !tbaa !24
  %96 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  store double %95, ptr %96, align 8, !tbaa !24
  %97 = getelementptr inbounds double, ptr %52, i64 %indvars.iv
  %98 = load double, ptr %97, align 8, !tbaa !24
  %99 = getelementptr inbounds double, ptr %38, i64 %indvars.iv
  store double %98, ptr %99, align 8, !tbaa !24
  %100 = getelementptr inbounds double, ptr %54, i64 %indvars.iv
  %101 = load double, ptr %100, align 8, !tbaa !24
  %102 = getelementptr inbounds double, ptr %41, i64 %indvars.iv
  store double %101, ptr %102, align 8, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %103 = getelementptr inbounds double, ptr %50, i64 %indvars.iv.next
  %104 = load double, ptr %103, align 8, !tbaa !24
  %105 = getelementptr inbounds double, ptr %35, i64 %indvars.iv.next
  store double %104, ptr %105, align 8, !tbaa !24
  %106 = getelementptr inbounds double, ptr %52, i64 %indvars.iv.next
  %107 = load double, ptr %106, align 8, !tbaa !24
  %108 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next
  store double %107, ptr %108, align 8, !tbaa !24
  %109 = getelementptr inbounds double, ptr %54, i64 %indvars.iv.next
  %110 = load double, ptr %109, align 8, !tbaa !24
  %111 = getelementptr inbounds double, ptr %41, i64 %indvars.iv.next
  store double %110, ptr %111, align 8, !tbaa !24
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %.loopexit, label %scalar.ph, !llvm.loop !29

.loopexit:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %.preheader, %32, %45
  %.0 = phi i32 [ 3, %45 ], [ 3, %32 ], [ 0, %.preheader ], [ 0, %middle.block ], [ 0, %scalar.ph ], [ 0, %scalar.ph.prol.loopexit ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @set_vartype_float(ptr noundef, ptr noundef, i32 noundef, ptr noundef, double noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { 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, !10, i64 16}
!6 = !{!"MAP_InputType", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !7, i64 40, !10, i64 48}
!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 120}
!12 = !{!"Vessel_t", !13, i64 0, !7, i64 120, !7, i64 128, !7, i64 136, !17, i64 144, !17, i64 264, !18, i64 384}
!13 = !{!"EulerAngle_t", !14, i64 0, !14, i64 40, !14, i64 80}
!14 = !{!"VarType_t", !7, i64 0, !7, i64 8, !15, i64 16, !16, i64 24, !16, i64 25, !10, i64 28, !10, i64 32}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_Bool", !8, i64 0}
!17 = !{!"Point_t", !14, i64 0, !14, i64 40, !14, i64 80}
!18 = !{!"Force_t", !14, i64 0, !14, i64 40, !14, i64 80}
!19 = !{!12, !7, i64 128}
!20 = !{!12, !7, i64 136}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !7, i64 24}
!23 = !{!6, !7, i64 40}
!24 = !{!15, !15, i64 0}
!25 = distinct !{!25, !26, !27, !28}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!"llvm.loop.isvectorized", i32 1}
!28 = !{!"llvm.loop.unroll.runtime.disable"}
!29 = distinct !{!29, !26, !27}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass