; LLVM IR from CerebusOSS/CereLink :: cbhwlib/CCFUtilsBinary.ll (ZN14CCFUtilsBinary7ReadCCFEPKcb)

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

%class.CCFUtils = type <{ ptr, ptr, i8, [7 x i8], ptr, i8, [7 x i8], ptr, i32, i32, i32, [4 x i8], ptr, i8, i8, [6 x i8] }>

@.str = external hidden unnamed_addr constant [3 x i8], align 1

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14CCFUtilsBinary7ReadCCFEPKcb(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef %1, i1 noundef zeroext %2) unnamed_addr #3 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [7 x i8], align 1
  %12 = alloca [11 x i8], align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %13 = zext i1 %2 to i8
  store i8 %13, ptr %7, align 1, !tbaa !9
  %14 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %14, align 8, !tbaa !13
  %17 = getelementptr inbounds ptr, ptr %16, i64 4
  %18 = load ptr, ptr %17, align 8
  %19 = call noundef i32 %18(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %15)
  store i32 %19, ptr %8, align 4, !tbaa !11
  %20 = load i32, ptr %8, align 4, !tbaa !11
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %3
  %23 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %23, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %99

24:                                               ; preds = %3
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %class.CCFUtils, ptr %14, i32 0, i32 12
  store ptr %25, ptr %26, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = call noalias ptr @fopen(ptr noundef %27, ptr noundef @.str)
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %24
  store i32 -5, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %98

32:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 7, ptr %11) #4
  call void @llvm.memset.p0.i64(ptr align 1 %11, i8 0, i64 7, i1 false)
  call void @llvm.lifetime.start.p0(i64 11, ptr %12) #4
  call void @llvm.memset.p0.i64(ptr align 1 %12, i8 0, i64 11, i1 false)
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = call i64 @fread(ptr noundef %11, i64 noundef 6, i64 noundef 1, ptr noundef %33)
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = call i64 @fread(ptr noundef %12, i64 noundef 10, i64 noundef 1, ptr noundef %35)
  %37 = getelementptr inbounds %class.CCFUtils, ptr %14, i32 0, i32 9
  %38 = load i32, ptr %37, align 4, !tbaa !18
  %39 = icmp sge i32 %38, 1
  br i1 %39, label %40, label %52

40:                                               ; preds = %32
  %41 = getelementptr inbounds %class.CCFUtils, ptr %14, i32 0, i32 9
  %42 = load i32, ptr %41, align 4, !tbaa !18
  %43 = icmp sle i32 %42, 11
  br i1 %43, label %44, label %52

44:                                               ; preds = %40
  %45 = load i8, ptr %7, align 1, !tbaa !9, !range !19, !noundef !20
  %46 = trunc i8 %45 to i1
  br i1 %46, label %51, label %47

47:                                               ; preds = %44
  store i32 1, ptr %8, align 4, !tbaa !11
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = call i32 @fclose(ptr noundef %48)
  %50 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %50, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %97

51:                                               ; preds = %44
  br label %52

52:                                               ; preds = %51, %40, %32
  %53 = getelementptr inbounds %class.CCFUtils, ptr %14, i32 0, i32 9
  %54 = load i32, ptr %53, align 4, !tbaa !18
  switch i32 %54, label %92 [
    i32 0, label %55
    i32 1, label %56
    i32 2, label %59
    i32 3, label %62
    i32 4, label %65
    i32 5, label %68
    i32 6, label %71
    i32 7, label %74
    i32 8, label %77
    i32 9, label %80
    i32 10, label %83
    i32 11, label %86
    i32 12, label %89
  ]

55:                                               ; preds = %52
  store i32 -3, ptr %8, align 4, !tbaa !11
  br label %93

56:                                               ; preds = %52
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2003_10EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %57)
  store i32 %58, ptr %8, align 4, !tbaa !11
  br label %93

59:                                               ; preds = %52
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_25EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %60)
  store i32 %61, ptr %8, align 4, !tbaa !11
  br label %93

62:                                               ; preds = %52
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_30EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %63)
  store i32 %64, ptr %8, align 4, !tbaa !11
  br label %93

65:                                               ; preds = %52
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %66)
  store i32 %67, ptr %8, align 4, !tbaa !11
  br label %93

68:                                               ; preds = %52
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %69)
  store i32 %70, ptr %8, align 4, !tbaa !11
  br label %93

71:                                               ; preds = %52
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %72)
  store i32 %73, ptr %8, align 4, !tbaa !11
  br label %93

74:                                               ; preds = %52
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_34EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %75)
  store i32 %76, ptr %8, align 4, !tbaa !11
  br label %93

77:                                               ; preds = %52
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_35EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %78)
  store i32 %79, ptr %8, align 4, !tbaa !11
  br label %93

80:                                               ; preds = %52
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_36EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %81)
  store i32 %82, ptr %8, align 4, !tbaa !11
  br label %93

83:                                               ; preds = %52
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_37EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %84)
  store i32 %85, ptr %8, align 4, !tbaa !11
  br label %93

86:                                               ; preds = %52
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_37EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %87)
  store i32 %88, ptr %8, align 4, !tbaa !11
  br label %93

89:                                               ; preds = %52
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = call noundef i32 @_ZN14CCFUtilsBinary22ReadCCFData_cb2005_310EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %14, ptr noundef %90)
  store i32 %91, ptr %8, align 4, !tbaa !11
  br label %93

92:                                               ; preds = %52
  store i32 -3, ptr %8, align 4, !tbaa !11
  br label %93

93:                                               ; preds = %92, %89, %86, %83, %80, %77, %74, %71, %68, %65, %62, %59, %56, %55
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = call i32 @fclose(ptr noundef %94)
  %96 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %96, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %97

97:                                               ; preds = %93, %47
  call void @llvm.lifetime.end.p0(i64 11, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 7, ptr %11) #4
  br label %98

98:                                               ; preds = %97, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %99

99:                                               ; preds = %98, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %100 = load i32, ptr %4, align 4
  ret i32 %100
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2003_10EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_25EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_30EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_34EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_35EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_36EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_37EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary22ReadCCFData_cb2005_310EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) #3 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3ccf10_ccfResultE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = !{!16, !6, i64 64}
!16 = !{!"_ZTS8CCFUtils", !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !17, i64 48, !17, i64 52, !17, i64 56, !6, i64 64, !10, i64 72, !10, i64 73}
!17 = !{!"int", !7, i64 0}
!18 = !{!16, !17, i64 52}
!19 = !{i8 0, i8 2}
!20 = !{}


; 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 [3 x i8], align 1

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14CCFUtilsBinary7ReadCCFEPKcb(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef %1, i1 noundef zeroext %2) unnamed_addr #3 align 2 {
  %4 = alloca [7 x i8], align 1
  %5 = alloca [11 x i8], align 1
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 32
  %8 = load ptr, ptr %7, align 8
  %9 = tail call noundef i32 %8(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef %1)
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %10, label %47

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %1, ptr %11, align 8, !tbaa !8
  %12 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str)
  %13 = icmp eq ptr %12, null
  br i1 %13, label %47, label %14

14:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 7, ptr nonnull %4) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(7) %4, i8 0, i64 7, i1 false)
  call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %5) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(11) %5, i8 0, i64 11, i1 false)
  %15 = call i64 @fread(ptr noundef nonnull %4, i64 noundef 6, i64 noundef 1, ptr noundef nonnull %12)
  %16 = call i64 @fread(ptr noundef nonnull %5, i64 noundef 10, i64 noundef 1, ptr noundef nonnull %12)
  %17 = getelementptr inbounds i8, ptr %0, i64 52
  %18 = load i32, ptr %17, align 4, !tbaa !14
  %19 = add i32 %18, -12
  %or.cond = icmp ult i32 %19, -11
  %brmerge = or i1 %or.cond, %2
  br i1 %brmerge, label %20, label %45

20:                                               ; preds = %14
  switch i32 %18, label %45 [
    i32 12, label %43
    i32 1, label %21
    i32 2, label %23
    i32 3, label %25
    i32 4, label %27
    i32 5, label %29
    i32 6, label %31
    i32 7, label %33
    i32 8, label %35
    i32 9, label %37
    i32 10, label %39
    i32 11, label %41
  ]

21:                                               ; preds = %20
  %22 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2003_10EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

23:                                               ; preds = %20
  %24 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_25EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

25:                                               ; preds = %20
  %26 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_30EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

27:                                               ; preds = %20
  %28 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

29:                                               ; preds = %20
  %30 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

31:                                               ; preds = %20
  %32 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

33:                                               ; preds = %20
  %34 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_34EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

35:                                               ; preds = %20
  %36 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_35EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

37:                                               ; preds = %20
  %38 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_36EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

39:                                               ; preds = %20
  %40 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_37EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

41:                                               ; preds = %20
  %42 = tail call noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_37EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

43:                                               ; preds = %20
  %44 = tail call noundef i32 @_ZN14CCFUtilsBinary22ReadCCFData_cb2005_310EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696) %0, ptr noundef nonnull %12)
  br label %45

45:                                               ; preds = %21, %23, %25, %27, %29, %31, %33, %35, %37, %39, %41, %43, %20, %14
  %.0 = phi i32 [ 1, %14 ], [ %44, %43 ], [ %42, %41 ], [ %40, %39 ], [ %38, %37 ], [ %36, %35 ], [ %34, %33 ], [ %32, %31 ], [ %30, %29 ], [ %28, %27 ], [ %26, %25 ], [ %24, %23 ], [ %22, %21 ], [ -3, %20 ]
  %46 = tail call i32 @fclose(ptr noundef nonnull %12)
  call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 7, ptr nonnull %4) #4
  br label %47

47:                                               ; preds = %45, %10, %3
  %.2 = phi i32 [ %9, %3 ], [ %.0, %45 ], [ -5, %10 ]
  ret i32 %.2
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2003_10EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_25EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_30EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_31EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_34EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_35EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_36EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary21ReadCCFData_cb2005_37EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14CCFUtilsBinary22ReadCCFData_cb2005_310EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(189696), ptr noundef) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 64}
!9 = !{!"_ZTS8CCFUtils", !10, i64 8, !12, i64 16, !10, i64 24, !12, i64 32, !10, i64 40, !13, i64 48, !13, i64 52, !13, i64 56, !10, i64 64, !12, i64 72, !12, i64 73}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"bool", !11, i64 0}
!13 = !{!"int", !11, i64 0}
!14 = !{!9, !13, i64 52}


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