; LLVM IR from clausecker/24puzzle :: test (bitpdbtest)

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

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@optarg = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@optind = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 1, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 231, ptr %13, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %44, %2
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !9
  %18 = call i32 @__posix_getopt(i32 noundef %16, ptr noundef %17, ptr noundef @.str) #4
  store i32 %18, ptr %12, align 4, !tbaa !5
  %19 = load i32, ptr %12, align 4, !tbaa !5
  %20 = icmp ne i32 %19, -1
  br i1 %20, label %21, label %45

21:                                               ; preds = %15
  %22 = load i32, ptr %12, align 4, !tbaa !5
  switch i32 %22, label %40 [
    i32 110, label %23
    i32 115, label %26
    i32 116, label %29
  ]

23:                                               ; preds = %21
  %24 = load ptr, ptr @optarg, align 8, !tbaa !9
  %25 = call i64 @strtol(ptr noundef %24, ptr noundef null, i32 noundef 0) #4
  store i64 %25, ptr %11, align 8, !tbaa !11
  br label %44

26:                                               ; preds = %21
  %27 = load ptr, ptr @optarg, align 8, !tbaa !9
  %28 = call i64 @strtoll(ptr noundef %27, ptr noundef null, i32 noundef 0) #4
  call void @set_seed(i64 noundef %28)
  br label %44

29:                                               ; preds = %21
  %30 = load ptr, ptr @optarg, align 8, !tbaa !9
  %31 = call i32 @tileset_parse(ptr noundef %13, ptr noundef %30)
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %39

33:                                               ; preds = %29
  %34 = load ptr, ptr @optarg, align 8, !tbaa !9
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %34)
  %36 = load ptr, ptr %5, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 0
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  call void @usage(ptr noundef %38)
  br label %39

39:                                               ; preds = %33, %29
  br label %44

40:                                               ; preds = %21
  %41 = load ptr, ptr %5, align 8, !tbaa !9
  %42 = getelementptr inbounds ptr, ptr %41, i64 0
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  call void @usage(ptr noundef %43)
  br label %44

44:                                               ; preds = %40, %39, %26, %23
  br label %15, !llvm.loop !13

45:                                               ; preds = %15
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = load i32, ptr @optind, align 4, !tbaa !5
  %48 = add nsw i32 %47, 2
  %49 = icmp ne i32 %46, %48
  br i1 %49, label %50, label %54

50:                                               ; preds = %45
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = getelementptr inbounds ptr, ptr %51, i64 0
  %53 = load ptr, ptr %52, align 8, !tbaa !9
  call void @usage(ptr noundef %53)
  br label %54

54:                                               ; preds = %50, %45
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = load i32, ptr @optind, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = call noalias ptr @fopen(ptr noundef %59, ptr noundef @.str.2)
  store ptr %60, ptr %8, align 8, !tbaa !9
  %61 = load ptr, ptr %8, align 8, !tbaa !9
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %69

63:                                               ; preds = %54
  %64 = load ptr, ptr %5, align 8, !tbaa !9
  %65 = load i32, ptr @optind, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds ptr, ptr %64, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  call void @perror(ptr noundef %68)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %132

69:                                               ; preds = %54
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = load i32, ptr @optind, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %70, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !9
  %76 = call noalias ptr @fopen(ptr noundef %75, ptr noundef @.str.2)
  store ptr %76, ptr %9, align 8, !tbaa !9
  %77 = load ptr, ptr %9, align 8, !tbaa !9
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %86

79:                                               ; preds = %69
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = load i32, ptr @optind, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %80, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %84, i64 1
  call void @perror(ptr noundef %85)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %132

86:                                               ; preds = %69
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !9
  %89 = call i32 @fileno(ptr noundef %88) #4
  %90 = call ptr @pdb_mmap(i32 noundef %87, i32 noundef %89, i32 noundef 0)
  store ptr %90, ptr %6, align 8, !tbaa !9
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %99

93:                                               ; preds = %86
  %94 = load ptr, ptr %5, align 8, !tbaa !9
  %95 = load i32, ptr @optind, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds ptr, ptr %94, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  call void @perror(ptr noundef %98)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %132

99:                                               ; preds = %86
  %100 = load ptr, ptr %8, align 8, !tbaa !9
  %101 = call i32 @fclose(ptr noundef %100)
  %102 = load i32, ptr %13, align 4, !tbaa !5
  %103 = load ptr, ptr %9, align 8, !tbaa !9
  %104 = call ptr @bitpdb_load(i32 noundef %102, ptr noundef %103)
  store ptr %104, ptr %7, align 8, !tbaa !9
  %105 = load ptr, ptr %7, align 8, !tbaa !9
  %106 = icmp eq ptr %105, null
  br i1 %106, label %107, label %114

107:                                              ; preds = %99
  %108 = load ptr, ptr %5, align 8, !tbaa !9
  %109 = load i32, ptr @optind, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %108, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  call void @perror(ptr noundef %113)
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %132

114:                                              ; preds = %99
  %115 = load ptr, ptr %9, align 8, !tbaa !9
  %116 = call i32 @fclose(ptr noundef %115)
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %117

117:                                              ; preds = %128, %114
  %118 = load i64, ptr %10, align 8, !tbaa !11
  %119 = load i64, ptr %11, align 8, !tbaa !11
  %120 = icmp slt i64 %118, %119
  br i1 %120, label %121, label %131

121:                                              ; preds = %117
  %122 = load ptr, ptr %6, align 8, !tbaa !9
  %123 = load ptr, ptr %7, align 8, !tbaa !9
  %124 = call i32 @compare_hvalues(ptr noundef %122, ptr noundef %123)
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %127

126:                                              ; preds = %121
  store i32 1, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %132

127:                                              ; preds = %121
  br label %128

128:                                              ; preds = %127
  %129 = load i64, ptr %10, align 8, !tbaa !11
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %10, align 8, !tbaa !11
  br label %117, !llvm.loop !15

131:                                              ; preds = %117
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %132

132:                                              ; preds = %131, %126, %107, %93, %79, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %133 = load i32, ptr %3, align 4
  ret i32 %133
}

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

; Function Attrs: nounwind
declare i32 @__posix_getopt(i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #2

declare void @set_seed(i64 noundef) #3

; Function Attrs: nounwind
declare i64 @strtoll(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @tileset_parse(ptr noundef, ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef) #0

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

declare void @perror(ptr noundef) #3

declare ptr @pdb_mmap(i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #2

declare i32 @fclose(ptr noundef) #3

declare ptr @bitpdb_load(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @compare_hvalues(ptr noundef, ptr noundef) #0

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; 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 [7 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@optind = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 231, ptr %3, align 4, !tbaa !5
  br label %.outer

.outer:                                           ; preds = %6, %2
  %.027.ph = phi i64 [ %8, %6 ], [ 1, %2 ]
  br label %4

4:                                                ; preds = %.backedge, %.outer
  %5 = call i32 @__posix_getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str) #6
  switch i32 %5, label %19 [
    i32 -1, label %21
    i32 110, label %6
    i32 115, label %9
    i32 116, label %12
  ]

6:                                                ; preds = %4
  %7 = load ptr, ptr @optarg, align 8, !tbaa !9
  %8 = call i64 @strtol(ptr nocapture noundef %7, ptr noundef null, i32 noundef 0) #6
  br label %.outer, !llvm.loop !11

9:                                                ; preds = %4
  %10 = load ptr, ptr @optarg, align 8, !tbaa !9
  %11 = call i64 @strtoll(ptr nocapture noundef %10, ptr noundef null, i32 noundef 0) #6
  call void @set_seed(i64 noundef %11) #6
  br label %.backedge

12:                                               ; preds = %4
  %13 = load ptr, ptr @optarg, align 8, !tbaa !9
  %14 = call i32 @tileset_parse(ptr noundef nonnull %3, ptr noundef %13) #6
  %.not36 = icmp eq i32 %14, 0
  br i1 %.not36, label %.backedge, label %15

.backedge:                                        ; preds = %12, %15, %19, %9
  br label %4, !llvm.loop !11

15:                                               ; preds = %12
  %16 = load ptr, ptr @optarg, align 8, !tbaa !9
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %16)
  %18 = load ptr, ptr %1, align 8, !tbaa !9
  call void @usage(ptr noundef %18)
  br label %.backedge

19:                                               ; preds = %4
  %20 = load ptr, ptr %1, align 8, !tbaa !9
  call void @usage(ptr noundef %20)
  br label %.backedge

21:                                               ; preds = %4
  %22 = load i32, ptr @optind, align 4, !tbaa !5
  %23 = add nsw i32 %22, 2
  %.not34 = icmp eq i32 %23, %0
  br i1 %.not34, label %26, label %24

24:                                               ; preds = %21
  %25 = load ptr, ptr %1, align 8, !tbaa !9
  call void @usage(ptr noundef %25)
  %.pre = load i32, ptr @optind, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %24, %21
  %27 = phi i32 [ %.pre, %24 ], [ %22, %21 ]
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds ptr, ptr %1, i64 %28
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = call noalias ptr @fopen(ptr noundef %30, ptr noundef nonnull @.str.2)
  %32 = icmp eq ptr %31, null
  %33 = load i32, ptr @optind, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr ptr, ptr %1, i64 %34
  br i1 %32, label %36, label %38

36:                                               ; preds = %26
  %37 = load ptr, ptr %35, align 8, !tbaa !9
  call void @perror(ptr noundef %37) #7
  br label %.loopexit

38:                                               ; preds = %26
  %39 = getelementptr i8, ptr %35, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = call noalias ptr @fopen(ptr noundef %40, ptr noundef nonnull @.str.2)
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %49

43:                                               ; preds = %38
  %44 = load i32, ptr @optind, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %1, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %47, i64 1
  call void @perror(ptr noundef nonnull %48) #7
  br label %.loopexit

49:                                               ; preds = %38
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = call i32 @fileno(ptr noundef nonnull %31) #6
  %52 = call ptr @pdb_mmap(i32 noundef %50, i32 noundef %51, i32 noundef 0) #6
  %53 = icmp eq ptr %52, null
  br i1 %53, label %54, label %59

54:                                               ; preds = %49
  %55 = load i32, ptr @optind, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %1, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  call void @perror(ptr noundef %58) #7
  br label %.loopexit

59:                                               ; preds = %49
  %60 = call i32 @fclose(ptr noundef nonnull %31)
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = call ptr @bitpdb_load(i32 noundef %61, ptr noundef nonnull %41) #6
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %70

64:                                               ; preds = %59
  %65 = load i32, ptr @optind, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr ptr, ptr %1, i64 %66
  %68 = getelementptr i8, ptr %67, i64 8
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  call void @perror(ptr noundef %69) #7
  br label %.loopexit

70:                                               ; preds = %59
  %71 = call i32 @fclose(ptr noundef nonnull %41)
  %72 = icmp sgt i64 %.027.ph, 0
  br i1 %72, label %.lr.ph, label %.loopexit

73:                                               ; preds = %.lr.ph
  %74 = add nuw nsw i64 %.02837, 1
  %exitcond.not = icmp eq i64 %74, %.027.ph
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !13

.lr.ph:                                           ; preds = %70, %73
  %.02837 = phi i64 [ %74, %73 ], [ 0, %70 ]
  %75 = call i32 @compare_hvalues(ptr noundef nonnull %52, ptr noundef nonnull %62)
  %.not35 = icmp eq i32 %75, 0
  br i1 %.not35, label %73, label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %73, %70, %64, %54, %43, %36
  %.0 = phi i32 [ 1, %36 ], [ 1, %43 ], [ 1, %54 ], [ 1, %64 ], [ 0, %70 ], [ 1, %.lr.ph ], [ 0, %73 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret i32 %.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: nounwind
declare i32 @__posix_getopt(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3

declare void @set_seed(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtoll(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #3

declare i32 @tileset_parse(ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare hidden void @usage(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #5

declare ptr @pdb_mmap(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

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

declare ptr @bitpdb_load(i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @compare_hvalues(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass