; LLVM IR from interpretml/interpret :: shared/libebm/dataset_shared.ll (ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_)

; 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.NAMESPACE_MAIN::HeaderDataSetShared" = type { i64, i64, i64, i64, i64, [1 x i64] }

@.str = external hidden unnamed_addr constant [88 x i8], align 1
@__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_ = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_ = external hidden unnamed_addr constant [140 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @CheckDataSet(i64 noundef, ptr noundef) #0

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImmEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef) #2

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %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 i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  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
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = icmp ne ptr null, %18
  br i1 %19, label %22, label %20

20:                                               ; preds = %5
  call void @LogAssertFailure(i64 noundef 1879, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.15)
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str, i32 noundef 1879, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

21:                                               ; No predecessors!
  br label %22

22:                                               ; preds = %21, %5
  %23 = phi i1 [ true, %5 ], [ false, %21 ]
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = icmp ne ptr null, %24
  br i1 %25, label %28, label %26

26:                                               ; preds = %22
  call void @LogAssertFailure(i64 noundef 1880, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.17)
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str, i32 noundef 1880, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

27:                                               ; No predecessors!
  br label %28

28:                                               ; preds = %27, %22
  %29 = phi i1 [ true, %22 ], [ false, %27 ]
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = icmp ne ptr null, %30
  br i1 %31, label %34, label %32

32:                                               ; preds = %28
  call void @LogAssertFailure(i64 noundef 1881, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.19)
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str, i32 noundef 1881, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

33:                                               ; No predecessors!
  br label %34

34:                                               ; preds = %33, %28
  %35 = phi i1 [ true, %28 ], [ false, %33 ]
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = icmp ne ptr null, %36
  br i1 %37, label %40, label %38

38:                                               ; preds = %34
  call void @LogAssertFailure(i64 noundef 1882, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.21)
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str, i32 noundef 1882, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39, %34
  %41 = phi i1 [ true, %34 ], [ false, %39 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = call i32 @CheckDataSet(i64 noundef 0, ptr noundef %42)
  store i32 %43, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = icmp ne i32 0, %44
  br i1 %45, label %46, label %48

46:                                               ; preds = %40
  %47 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %47, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %101

48:                                               ; preds = %40
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = icmp ne ptr null, %49
  br i1 %50, label %53, label %51

51:                                               ; preds = %48
  call void @LogAssertFailure(i64 noundef 1888, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.23)
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str, i32 noundef 1888, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52, %48
  %54 = phi i1 [ true, %48 ], [ false, %52 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %55, ptr %14, align 8, !tbaa !5
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.NAMESPACE_MAIN::HeaderDataSetShared", ptr %56, i32 0, i32 0
  %58 = load i64, ptr %57, align 8, !tbaa !11
  %59 = icmp eq i64 25059, %58
  br i1 %59, label %62, label %60

60:                                               ; preds = %53
  call void @LogAssertFailure(i64 noundef 1891, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.25)
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str, i32 noundef 1891, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

61:                                               ; No predecessors!
  br label %62

62:                                               ; preds = %61, %53
  %63 = phi i1 [ true, %53 ], [ false, %61 ]
  %64 = load ptr, ptr %14, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.NAMESPACE_MAIN::HeaderDataSetShared", ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !14
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 %66, ptr %67, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.NAMESPACE_MAIN::HeaderDataSetShared", ptr %68, i32 0, i32 2
  %70 = load i64, ptr %69, align 8, !tbaa !16
  store i64 %70, ptr %15, align 8, !tbaa !15
  %71 = load i64, ptr %15, align 8, !tbaa !15
  %72 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImmEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %71) #6
  br i1 %72, label %73, label %75

73:                                               ; preds = %62
  call void @LogAssertFailure(i64 noundef 1897, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.27)
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str, i32 noundef 1897, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

74:                                               ; No predecessors!
  br label %75

75:                                               ; preds = %74, %62
  %76 = phi i1 [ true, %62 ], [ false, %74 ]
  %77 = load i64, ptr %15, align 8, !tbaa !15
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %77, ptr %78, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.NAMESPACE_MAIN::HeaderDataSetShared", ptr %79, i32 0, i32 3
  %81 = load i64, ptr %80, align 8, !tbaa !17
  store i64 %81, ptr %16, align 8, !tbaa !15
  %82 = load i64, ptr %16, align 8, !tbaa !15
  %83 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImmEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %82) #6
  br i1 %83, label %84, label %86

84:                                               ; preds = %75
  call void @LogAssertFailure(i64 noundef 1901, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.29)
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str, i32 noundef 1901, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

85:                                               ; No predecessors!
  br label %86

86:                                               ; preds = %85, %75
  %87 = phi i1 [ true, %75 ], [ false, %85 ]
  %88 = load i64, ptr %16, align 8, !tbaa !15
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 %88, ptr %89, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.NAMESPACE_MAIN::HeaderDataSetShared", ptr %90, i32 0, i32 4
  %92 = load i64, ptr %91, align 8, !tbaa !18
  store i64 %92, ptr %17, align 8, !tbaa !15
  %93 = load i64, ptr %17, align 8, !tbaa !15
  %94 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImmEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %93) #6
  br i1 %94, label %95, label %97

95:                                               ; preds = %86
  call void @LogAssertFailure(i64 noundef 1905, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef @.str.31)
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str, i32 noundef 1905, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #5
  unreachable

96:                                               ; No predecessors!
  br label %97

97:                                               ; preds = %96, %86
  %98 = phi i1 [ true, %86 ], [ false, %96 ]
  %99 = load i64, ptr %17, align 8, !tbaa !15
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %99, ptr %100, align 8, !tbaa !15
  store i32 0, ptr %6, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %101

101:                                              ; preds = %97, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %102 = load i32, ptr %6, align 4
  ret i32 %102
}

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress 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 = { "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 = { noreturn 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 #5 = { noreturn nounwind }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN14NAMESPACE_MAIN19HeaderDataSetSharedE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !7, i64 40}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !13, i64 16}
!17 = !{!12, !13, i64 24}
!18 = !{!12, !13, i64 32}


; 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 [88 x i8], align 1
@__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_ = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_ = external hidden unnamed_addr constant [140 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [41 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @CheckDataSet(i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImmEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef) local_unnamed_addr #1

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_(ptr noundef %0, ptr noundef writeonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3, ptr noundef writeonly %4) local_unnamed_addr #0 {
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %6, label %7

6:                                                ; preds = %5
  tail call void @LogAssertFailure(i64 noundef 1879, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.15)
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str, i32 noundef 1879, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

7:                                                ; preds = %5
  %.not30 = icmp eq ptr %2, null
  br i1 %.not30, label %8, label %9

8:                                                ; preds = %7
  tail call void @LogAssertFailure(i64 noundef 1880, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.17)
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str, i32 noundef 1880, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

9:                                                ; preds = %7
  %.not31 = icmp eq ptr %3, null
  br i1 %.not31, label %10, label %11

10:                                               ; preds = %9
  tail call void @LogAssertFailure(i64 noundef 1881, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.19)
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str, i32 noundef 1881, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

11:                                               ; preds = %9
  %.not32 = icmp eq ptr %4, null
  br i1 %.not32, label %12, label %13

12:                                               ; preds = %11
  tail call void @LogAssertFailure(i64 noundef 1882, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.21)
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str, i32 noundef 1882, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

13:                                               ; preds = %11
  %14 = tail call i32 @CheckDataSet(i64 noundef 0, ptr noundef %0)
  %.not33 = icmp eq i32 %14, 0
  br i1 %.not33, label %15, label %39

15:                                               ; preds = %13
  %.not34 = icmp eq ptr %0, null
  br i1 %.not34, label %16, label %17

16:                                               ; preds = %15
  tail call void @LogAssertFailure(i64 noundef 1888, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.23)
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str, i32 noundef 1888, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

17:                                               ; preds = %15
  %18 = load i64, ptr %0, align 8, !tbaa !5
  %19 = icmp eq i64 %18, 25059
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  tail call void @LogAssertFailure(i64 noundef 1891, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.25)
  tail call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str, i32 noundef 1891, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i64, ptr %22, align 8, !tbaa !10
  store i64 %23, ptr %1, align 8, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load i64, ptr %24, align 8, !tbaa !12
  %26 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImmEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %25) #5
  br i1 %26, label %27, label %28

27:                                               ; preds = %21
  tail call void @LogAssertFailure(i64 noundef 1897, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.27)
  tail call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str, i32 noundef 1897, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

28:                                               ; preds = %21
  store i64 %25, ptr %2, align 8, !tbaa !11
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  %30 = load i64, ptr %29, align 8, !tbaa !13
  %31 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImmEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %30) #5
  br i1 %31, label %32, label %33

32:                                               ; preds = %28
  tail call void @LogAssertFailure(i64 noundef 1901, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.29)
  tail call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str, i32 noundef 1901, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

33:                                               ; preds = %28
  store i64 %30, ptr %3, align 8, !tbaa !11
  %34 = getelementptr inbounds i8, ptr %0, i64 32
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImmEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %35) #5
  br i1 %36, label %37, label %38

37:                                               ; preds = %33
  tail call void @LogAssertFailure(i64 noundef 1905, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_, ptr noundef nonnull @.str.31)
  tail call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str, i32 noundef 1905, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN22GetDataSetSharedHeaderEPKhPmS2_S2_S2_) #4
  unreachable

38:                                               ; preds = %33
  store i64 %35, ptr %4, align 8, !tbaa !11
  br label %39

39:                                               ; preds = %13, %38
  ret i32 %14
}

attributes #0 = { mustprogress 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 = { inlinehint mustprogress 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 = { "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 = { noreturn 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 = { noreturn nounwind }
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, !7, i64 0}
!6 = !{!"_ZTSN14NAMESPACE_MAIN19HeaderDataSetSharedE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !8, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 32}


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