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

; 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.InitializationData_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.tagbstring = type { i32, i32, ptr }
%struct.MAP_ParameterType = type { ptr, double, double, double, double, 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 }

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [65 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
define dso_local i32 @write_summary_file(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca [64 x i8], align 16
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %19 = call i64 @time(ptr noundef %16) #5
  %20 = call ptr @localtime(ptr noundef %16) #5
  store ptr %20, ptr %17, align 8, !tbaa !5
  %21 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
  %22 = load ptr, ptr %17, align 8, !tbaa !5
  %23 = call i64 @strftime(ptr noundef %21, i64 noundef 64, ptr noundef @.str, ptr noundef %22) #5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.InitializationData_t, ptr %24, i32 0, i32 6
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %struct.tagbstring, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = call i32 @fopen_s(ptr noundef %13, ptr noundef %28, ptr noundef @.str.1)
  store i32 %29, ptr %14, align 4, !tbaa !9
  %30 = load i32, ptr %14, align 4, !tbaa !9
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %40

32:                                               ; preds = %5
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.InitializationData_t, ptr %35, i32 0, i32 6
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.tagbstring, ptr %37, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !13
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %33, ptr noundef %34, i32 noundef 95, ptr noundef @.str.2, ptr noundef %39)
  store i32 3, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %136

40:                                               ; preds = %5
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %51

43:                                               ; preds = %40
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.InitializationData_t, ptr %46, i32 0, i32 6
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds %struct.tagbstring, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !13
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %44, ptr noundef %45, i32 noundef 38, ptr noundef @.str.2, ptr noundef %50)
  store i32 3, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %136

51:                                               ; preds = %40
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.3, ptr noundef @.str.4) #5
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds [64 x i8], ptr %15, i64 0, i64 0
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str.5, ptr noundef %55) #5
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MAP_ParameterType, ptr %58, i32 0, i32 1
  %60 = load double, ptr %59, align 8, !tbaa !15
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.6, double noundef %60) #5
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.MAP_ParameterType, ptr %63, i32 0, i32 3
  %65 = load double, ptr %64, align 8, !tbaa !18
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.7, double noundef %65) #5
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.MAP_ParameterType, ptr %68, i32 0, i32 2
  %70 = load double, ptr %69, align 8, !tbaa !19
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.8, double noundef %70) #5
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Domain_t, ptr %73, i32 0, i32 5
  %75 = getelementptr inbounds %struct.Vessel_t, ptr %74, i32 0, i32 5
  %76 = getelementptr inbounds %struct.Point_t, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %struct.VarType_t, ptr %76, i32 0, i32 2
  %78 = load double, ptr %77, align 8, !tbaa !20
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Domain_t, ptr %79, i32 0, i32 5
  %81 = getelementptr inbounds %struct.Vessel_t, ptr %80, i32 0, i32 5
  %82 = getelementptr inbounds %struct.Point_t, ptr %81, i32 0, i32 1
  %83 = getelementptr inbounds %struct.VarType_t, ptr %82, i32 0, i32 2
  %84 = load double, ptr %83, align 8, !tbaa !33
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Domain_t, ptr %85, i32 0, i32 5
  %87 = getelementptr inbounds %struct.Vessel_t, ptr %86, i32 0, i32 5
  %88 = getelementptr inbounds %struct.Point_t, ptr %87, i32 0, i32 2
  %89 = getelementptr inbounds %struct.VarType_t, ptr %88, i32 0, i32 2
  %90 = load double, ptr %89, align 8, !tbaa !34
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.9, double noundef %78, double noundef %84, double noundef %90) #5
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = call i32 @write_cable_library_information_to_summary_file(ptr noundef %92, ptr noundef %93)
  store i32 %94, ptr %12, align 4, !tbaa !9
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %100

97:                                               ; preds = %51
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %98, ptr noundef %99, i32 noundef 104)
  br label %100

100:                                              ; preds = %97, %51
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = call i32 @write_node_information_to_summary_file(ptr noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %104)
  store i32 %105, ptr %12, align 4, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %111

108:                                              ; preds = %100
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %109, ptr noundef %110, i32 noundef 105)
  br label %111

111:                                              ; preds = %108, %100
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = call i32 @write_line_information_to_summary_file(ptr noundef %112, ptr noundef %113)
  store i32 %114, ptr %12, align 4, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %120

117:                                              ; preds = %111
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  call void @set_universal_error(ptr noundef %118, ptr noundef %119, i32 noundef 106)
  br label %120

120:                                              ; preds = %117, %111
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = call i32 @write_expanded_input_file_to_summary_file(ptr noundef %121, ptr noundef %122)
  store i32 %123, ptr %12, align 4, !tbaa !9
  %124 = load ptr, ptr %13, align 8, !tbaa !5
  %125 = call i32 @fclose(ptr noundef %124)
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %120
  store i32 0, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %136

130:                                              ; preds = %120
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = icmp eq i32 %132, 2
  br i1 %133, label %134, label %135

134:                                              ; preds = %130
  store i32 2, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %136

135:                                              ; preds = %130
  store i32 3, ptr %6, align 4
  store i32 1, ptr %18, align 4
  br label %136

136:                                              ; preds = %135, %134, %129, %43, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %137 = load i32, ptr %6, align 4
  ret i32 %137
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #3

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) #3

; Function Attrs: nounwind
declare i64 @strftime(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

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

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

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

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

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

declare i32 @fclose(ptr noundef) #4

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 nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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 48}
!12 = !{!"InitializationData_t", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!13 = !{!14, !6, i64 8}
!14 = !{!"tagbstring", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!16, !17, i64 8}
!16 = !{!"MAP_ParameterType", !6, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !10, i64 40}
!17 = !{!"double", !7, i64 0}
!18 = !{!16, !17, i64 24}
!19 = !{!16, !17, i64 16}
!20 = !{!21, !17, i64 744}
!21 = !{!"Domain_t", !22, i64 0, !23, i64 240, !25, i64 408, !6, i64 448, !10, i64 456, !26, i64 464, !31, i64 968, !31, i64 1088, !31, i64 1208, !31, i64 1328, !6, i64 1448}
!22 = !{!"InnerSolveAttributes_t", !6, i64 0, !17, i64 8, !17, i64 16, !17, 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, !17, 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}
!23 = !{!"OuterSolveAttributes_t", !10, 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, !6, i64 80, !6, i64 88, !6, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !24, i64 152, !24, i64 153, !24, i64 154, !10, i64 156, !10, i64 160, !10, i64 164}
!24 = !{!"_Bool", !7, i64 0}
!25 = !{!"DomainOptions_t", !6, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !24, i64 32, !24, i64 33, !10, i64 36}
!26 = !{!"Vessel_t", !27, i64 0, !6, i64 120, !6, i64 128, !6, i64 136, !29, i64 144, !29, i64 264, !30, i64 384}
!27 = !{!"EulerAngle_t", !28, i64 0, !28, i64 40, !28, i64 80}
!28 = !{!"VarType_t", !6, i64 0, !6, i64 8, !17, i64 16, !24, i64 24, !24, i64 25, !10, i64 28, !10, i64 32}
!29 = !{!"Point_t", !28, i64 0, !28, i64 40, !28, i64 80}
!30 = !{!"Force_t", !28, i64 0, !28, i64 40, !28, i64 80}
!31 = !{!"", !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, !32, i64 64}
!32 = !{!"list_attributes_s", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!33 = !{!21, !17, i64 784}
!34 = !{!21, !17, i64 824}


; 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 [27 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [65 x i8], align 1

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

; Function Attrs: mustprogress 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 range(i32 0, 4) i32 @write_summary_file(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca ptr, align 8
  %7 = alloca [64 x i8], align 16
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %9 = call i64 @time(ptr noundef nonnull %8) #6
  %10 = call ptr @localtime(ptr noundef nonnull %8) #6
  %11 = call i64 @strftime(ptr noundef nonnull %7, i64 noundef 64, ptr noundef nonnull @.str, ptr noundef %10) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 48
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !10
  %16 = call i32 @fopen_s(ptr noundef nonnull %6, ptr noundef %15, ptr noundef nonnull @.str.1)
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %21, label %17

17:                                               ; preds = %5
  %18 = load ptr, ptr %12, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !10
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %3, ptr noundef %4, i32 noundef 95, ptr noundef nonnull @.str.2, ptr noundef %20) #6
  br label %69

21:                                               ; preds = %5
  %22 = load ptr, ptr %6, align 8, !tbaa !13
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %28

24:                                               ; preds = %21
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !10
  call void (ptr, ptr, i32, ptr, ...) @set_universal_error_with_message(ptr noundef %3, ptr noundef %4, i32 noundef 38, ptr noundef nonnull @.str.2, ptr noundef %27) #6
  br label %69

28:                                               ; preds = %21
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %22, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4) #6
  %30 = load ptr, ptr %6, align 8, !tbaa !13
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.5, ptr noundef nonnull %7) #6
  %32 = load ptr, ptr %6, align 8, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  %34 = load double, ptr %33, align 8, !tbaa !14
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.6, double noundef %34) #6
  %36 = load ptr, ptr %6, align 8, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %1, i64 24
  %38 = load double, ptr %37, align 8, !tbaa !17
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.7, double noundef %38) #6
  %40 = load ptr, ptr %6, align 8, !tbaa !13
  %41 = getelementptr inbounds i8, ptr %1, i64 16
  %42 = load double, ptr %41, align 8, !tbaa !18
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.8, double noundef %42) #6
  %44 = load ptr, ptr %6, align 8, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %2, i64 744
  %46 = load double, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds i8, ptr %2, i64 784
  %48 = load double, ptr %47, align 8, !tbaa !32
  %49 = getelementptr inbounds i8, ptr %2, i64 824
  %50 = load double, ptr %49, align 8, !tbaa !33
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.9, double noundef %46, double noundef %48, double noundef %50) #6
  %52 = load ptr, ptr %6, align 8, !tbaa !13
  %53 = call i32 @write_cable_library_information_to_summary_file(ptr noundef %52, ptr noundef %2)
  %.not34 = icmp eq i32 %53, 0
  br i1 %.not34, label %55, label %54

54:                                               ; preds = %28
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 104) #6
  br label %55

55:                                               ; preds = %54, %28
  %56 = load ptr, ptr %6, align 8, !tbaa !13
  %57 = call i32 @write_node_information_to_summary_file(ptr noundef %56, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4)
  %.not35 = icmp eq i32 %57, 0
  br i1 %.not35, label %59, label %58

58:                                               ; preds = %55
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 105) #6
  br label %59

59:                                               ; preds = %58, %55
  %60 = load ptr, ptr %6, align 8, !tbaa !13
  %61 = call i32 @write_line_information_to_summary_file(ptr noundef %60, ptr noundef nonnull %2)
  %.not36 = icmp eq i32 %61, 0
  br i1 %.not36, label %63, label %62

62:                                               ; preds = %59
  call void @set_universal_error(ptr noundef %3, ptr noundef %4, i32 noundef 106) #6
  br label %63

63:                                               ; preds = %62, %59
  %64 = load ptr, ptr %6, align 8, !tbaa !13
  %65 = call i32 @write_expanded_input_file_to_summary_file(ptr noundef %64, ptr noundef nonnull %0)
  %66 = load ptr, ptr %6, align 8, !tbaa !13
  %67 = call i32 @fclose(ptr noundef %66)
  %68 = load i32, ptr %4, align 4, !tbaa !34
  %switch.selectcmp = icmp eq i32 %68, 2
  %switch.select = select i1 %switch.selectcmp, i32 2, i32 3
  %switch.selectcmp37 = icmp eq i32 %68, 0
  %switch.select38 = select i1 %switch.selectcmp37, i32 0, i32 %switch.select
  br label %69

69:                                               ; preds = %63, %24, %17
  %.0 = phi i32 [ 3, %17 ], [ 3, %24 ], [ %switch.select38, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  ret i32 %.0
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare ptr @localtime(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @strftime(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 48}
!6 = !{!"InitializationData_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 8}
!11 = !{!"tagbstring", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 8}
!15 = !{!"MAP_ParameterType", !7, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !12, i64 40}
!16 = !{!"double", !8, i64 0}
!17 = !{!15, !16, i64 24}
!18 = !{!15, !16, i64 16}
!19 = !{!20, !16, i64 744}
!20 = !{!"Domain_t", !21, i64 0, !22, i64 240, !24, i64 408, !7, i64 448, !12, i64 456, !25, i64 464, !30, i64 968, !30, i64 1088, !30, i64 1208, !30, i64 1328, !7, i64 1448}
!21 = !{!"InnerSolveAttributes_t", !7, i64 0, !16, i64 8, !16, i64 16, !16, 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, !16, i64 192, !12, i64 200, !12, i64 204, !12, i64 208, !12, i64 212, !12, i64 216, !8, i64 220, !12, i64 228, !12, i64 232}
!22 = !{!"OuterSolveAttributes_t", !12, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !23, i64 152, !23, i64 153, !23, i64 154, !12, i64 156, !12, i64 160, !12, i64 164}
!23 = !{!"_Bool", !8, i64 0}
!24 = !{!"DomainOptions_t", !7, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !23, i64 32, !23, i64 33, !12, i64 36}
!25 = !{!"Vessel_t", !26, i64 0, !7, i64 120, !7, i64 128, !7, i64 136, !28, i64 144, !28, i64 264, !29, i64 384}
!26 = !{!"EulerAngle_t", !27, i64 0, !27, i64 40, !27, i64 80}
!27 = !{!"VarType_t", !7, i64 0, !7, i64 8, !16, i64 16, !23, i64 24, !23, i64 25, !12, i64 28, !12, i64 32}
!28 = !{!"Point_t", !27, i64 0, !27, i64 40, !27, i64 80}
!29 = !{!"Force_t", !27, i64 0, !27, i64 40, !27, i64 80}
!30 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !12, i64 24, !7, i64 32, !12, i64 40, !12, i64 44, !12, i64 48, !7, i64 56, !31, i64 64}
!31 = !{!"list_attributes_s", !7, i64 0, !7, i64 8, !7, i64 16, !12, i64 24, !7, i64 32, !7, i64 40, !7, i64 48}
!32 = !{!20, !16, i64 784}
!33 = !{!20, !16, i64 824}
!34 = !{!12, !12, i64 0}


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