; LLVM IR from catid/Zpng :: zstd (zdict)

; 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.ZDICT_params_t = type { i32, i32, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @ZDICT_isError(i64 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i64 @ZDICT_finalizeDictionary(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef byval(%struct.ZDICT_params_t) align 8 %7) #0 {
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca [256 x i8], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca ptr, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i64 %1, ptr %11, align 8, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i64 %3, ptr %13, align 8, !tbaa !9
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store i32 %6, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 256, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %28 = getelementptr inbounds %struct.ZDICT_params_t, ptr %7, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %8
  br label %35

32:                                               ; preds = %8
  %33 = getelementptr inbounds %struct.ZDICT_params_t, ptr %7, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !13
  br label %35

35:                                               ; preds = %32, %31
  %36 = phi i32 [ 3, %31 ], [ %34, %32 ]
  store i32 %36, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %37 = getelementptr inbounds %struct.ZDICT_params_t, ptr %7, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !15
  store i32 %38, ptr %20, align 4, !tbaa !11
  %39 = load i64, ptr %11, align 8, !tbaa !9
  %40 = load i64, ptr %13, align 8, !tbaa !9
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %42, label %43

42:                                               ; preds = %35
  store i64 -70, ptr %9, align 8
  store i32 1, ptr %21, align 4
  br label %140

43:                                               ; preds = %35
  %44 = load i64, ptr %13, align 8, !tbaa !9
  %45 = icmp ult i64 %44, 128
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  store i64 -72, ptr %9, align 8
  store i32 1, ptr %21, align 4
  br label %140

47:                                               ; preds = %43
  %48 = load i64, ptr %11, align 8, !tbaa !9
  %49 = icmp ult i64 %48, 256
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  store i64 -70, ptr %9, align 8
  store i32 1, ptr %21, align 4
  br label %140

51:                                               ; preds = %47
  %52 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 0
  call void @MEM_writeLE32(ptr noundef %52, i32 noundef -332356553)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = load i64, ptr %13, align 8, !tbaa !9
  %55 = call i64 @XXH64(ptr noundef %53, i64 noundef %54, i64 noundef 0)
  store i64 %55, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %56 = load i64, ptr %22, align 8, !tbaa !9
  %57 = urem i64 %56, 2147450880
  %58 = add i64 %57, 32768
  %59 = trunc i64 %58 to i32
  store i32 %59, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %60 = getelementptr inbounds %struct.ZDICT_params_t, ptr %7, i32 0, i32 2
  %61 = load i32, ptr %60, align 8, !tbaa !16
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %51
  %64 = getelementptr inbounds %struct.ZDICT_params_t, ptr %7, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !16
  br label %68

66:                                               ; preds = %51
  %67 = load i32, ptr %23, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %66, %63
  %69 = phi i32 [ %65, %63 ], [ %67, %66 ]
  store i32 %69, ptr %24, align 4, !tbaa !11
  %70 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 0
  %71 = getelementptr inbounds i8, ptr %70, i64 4
  %72 = load i32, ptr %24, align 4, !tbaa !11
  call void @MEM_writeLE32(ptr noundef %71, i32 noundef %72)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  store i64 8, ptr %17, align 8, !tbaa !9
  %73 = load i32, ptr %20, align 4, !tbaa !11
  %74 = icmp uge i32 %73, 2
  br i1 %74, label %75, label %80

75:                                               ; preds = %68
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str, ptr noundef @.str.1) #6
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = call i32 @fflush(ptr noundef %78)
  br label %80

80:                                               ; preds = %75, %68
  %81 = load i32, ptr %20, align 4, !tbaa !11
  %82 = icmp uge i32 %81, 2
  br i1 %82, label %83, label %88

83:                                               ; preds = %80
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.2) #6
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = call i32 @fflush(ptr noundef %86)
  br label %88

88:                                               ; preds = %83, %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %89 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 0
  %90 = load i64, ptr %17, align 8, !tbaa !9
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  %92 = load i64, ptr %17, align 8, !tbaa !9
  %93 = sub i64 256, %92
  %94 = load i32, ptr %19, align 4, !tbaa !11
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load i32, ptr %16, align 4, !tbaa !11
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load i64, ptr %13, align 8, !tbaa !9
  %100 = load i32, ptr %20, align 4, !tbaa !11
  %101 = call i64 @ZDICT_analyzeEntropy(ptr noundef %91, i64 noundef %93, i32 noundef %94, ptr noundef %95, ptr noundef %96, i32 noundef %97, ptr noundef %98, i64 noundef %99, i32 noundef %100)
  store i64 %101, ptr %25, align 8, !tbaa !9
  %102 = load i64, ptr %25, align 8, !tbaa !9
  %103 = call i32 @ZDICT_isError(i64 noundef %102)
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %88
  %106 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %106, ptr %9, align 8
  store i32 1, ptr %21, align 4
  br label %111

107:                                              ; preds = %88
  %108 = load i64, ptr %25, align 8, !tbaa !9
  %109 = load i64, ptr %17, align 8, !tbaa !9
  %110 = add i64 %109, %108
  store i64 %110, ptr %17, align 8, !tbaa !9
  store i32 0, ptr %21, align 4
  br label %111

111:                                              ; preds = %107, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  %112 = load i32, ptr %21, align 4
  switch i32 %112, label %140 [
    i32 0, label %113
  ]

113:                                              ; preds = %111
  %114 = load i64, ptr %17, align 8, !tbaa !9
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = add i64 %114, %115
  %117 = load i64, ptr %11, align 8, !tbaa !9
  %118 = icmp ugt i64 %116, %117
  br i1 %118, label %119, label %123

119:                                              ; preds = %113
  %120 = load i64, ptr %11, align 8, !tbaa !9
  %121 = load i64, ptr %17, align 8, !tbaa !9
  %122 = sub i64 %120, %121
  store i64 %122, ptr %13, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %119, %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %124 = load i64, ptr %17, align 8, !tbaa !9
  %125 = load i64, ptr %13, align 8, !tbaa !9
  %126 = add i64 %124, %125
  store i64 %126, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = load i64, ptr %26, align 8, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %127, i64 %128
  store ptr %129, ptr %27, align 8, !tbaa !5
  %130 = load ptr, ptr %27, align 8, !tbaa !5
  %131 = load i64, ptr %13, align 8, !tbaa !9
  %132 = sub i64 0, %131
  %133 = getelementptr inbounds i8, ptr %130, i64 %132
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load i64, ptr %13, align 8, !tbaa !9
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %133, ptr align 1 %134, i64 %135, i1 false)
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 0
  %138 = load i64, ptr %17, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %136, ptr align 16 %137, i64 %138, i1 false)
  %139 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %139, ptr %9, align 8
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %140

140:                                              ; preds = %123, %111, %50, %46, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %141 = load i64, ptr %9, align 8
  ret i64 %141
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @MEM_writeLE32(ptr noundef, i32 noundef) #2

declare i64 @XXH64(ptr noundef, i64 noundef, i64 noundef) #3

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

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

declare i32 @fflush(ptr noundef) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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 = { inlinehint 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8}
!15 = !{!14, !12, i64 4}
!16 = !{!14, !12, i64 8}


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

%struct.ZDICT_params_t = type { i32, i32, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @ZDICT_isError(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i64 @ZDICT_finalizeDictionary(ptr nocapture noundef writeonly %0, i64 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, ptr nocapture noundef readonly byval(%struct.ZDICT_params_t) align 8 %7) local_unnamed_addr #0 {
  %9 = alloca [256 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %9) #6
  %10 = load i32, ptr %7, align 8
  %11 = icmp eq i32 %10, 0
  %12 = select i1 %11, i32 3, i32 %10
  %13 = getelementptr inbounds i8, ptr %7, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = icmp ult i64 %1, %3
  br i1 %15, label %49, label %16

16:                                               ; preds = %8
  %17 = icmp ult i64 %3, 128
  br i1 %17, label %49, label %18

18:                                               ; preds = %16
  %19 = icmp ult i64 %1, 256
  br i1 %19, label %49, label %20

20:                                               ; preds = %18
  call void @MEM_writeLE32(ptr noundef nonnull %9, i32 noundef -332356553)
  %21 = call i64 @XXH64(ptr noundef %2, i64 noundef %3, i64 noundef 0) #6
  %22 = urem i64 %21, 2147450880
  %23 = trunc nuw nsw i64 %22 to i32
  %24 = add nuw nsw i32 %23, 32768
  %25 = getelementptr inbounds i8, ptr %7, i64 8
  %26 = load i32, ptr %25, align 8
  %.not = icmp eq i32 %26, 0
  %27 = select i1 %.not, i32 %24, i32 %26
  %28 = getelementptr inbounds i8, ptr %9, i64 4
  call void @MEM_writeLE32(ptr noundef nonnull %28, i32 noundef %27)
  %29 = icmp ugt i32 %14, 1
  br i1 %29, label %30, label %.critedge

30:                                               ; preds = %20
  %31 = load ptr, ptr @stderr, align 8, !tbaa !10
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #7
  %33 = load ptr, ptr @stderr, align 8, !tbaa !10
  %34 = call i32 @fflush(ptr noundef %33)
  %35 = load ptr, ptr @stderr, align 8, !tbaa !10
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.2) #7
  %37 = load ptr, ptr @stderr, align 8, !tbaa !10
  %38 = call i32 @fflush(ptr noundef %37)
  br label %.critedge

.critedge:                                        ; preds = %20, %30
  %39 = getelementptr inbounds i8, ptr %9, i64 8
  %40 = call i64 @ZDICT_analyzeEntropy(ptr noundef nonnull %39, i64 noundef 248, i32 noundef %12, ptr noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %2, i64 noundef %3, i32 noundef %14)
  %41 = call i32 @ZDICT_isError(i64 noundef %40)
  %.not45 = icmp eq i32 %41, 0
  br i1 %.not45, label %42, label %49

42:                                               ; preds = %.critedge
  %43 = add i64 %40, 8
  %44 = add i64 %43, %3
  %45 = icmp ugt i64 %44, %1
  %46 = sub i64 %1, %43
  %spec.select = select i1 %45, i64 %46, i64 %3
  %47 = add i64 %spec.select, %43
  %48 = getelementptr inbounds i8, ptr %0, i64 %43
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %48, ptr align 1 %2, i64 %spec.select, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %0, ptr nonnull align 16 %9, i64 %43, i1 false)
  br label %49

49:                                               ; preds = %18, %16, %8, %.critedge, %42
  %.1 = phi i64 [ %47, %42 ], [ %40, %.critedge ], [ -70, %8 ], [ -72, %16 ], [ -70, %18 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #6
  ret i64 %.1
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @MEM_writeLE32(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i64 @XXH64(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #5

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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 = { inlinehint 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 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { cold 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 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}


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