; LLVM IR from giacomo-ascari/dichotomic-compression :: legacy (main)

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

@error = external dso_local global ptr, align 8
@help = external dso_local global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@optarg = external global ptr, align 8
@stderr = external global ptr, align 8

; 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 [200 x i8], align 16
  %7 = alloca [200 x i8], align 16
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %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 200, ptr %6) #7
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 200, i1 false)
  call void @llvm.lifetime.start.p0(i64 200, ptr %7) #7
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 200, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #7
  store i8 31, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 0, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 2, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr @.str.2, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr @.str.3, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, 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 @getopt(i32 noundef %16, ptr noundef %17, ptr noundef @.str.4) #7
  store i32 %18, ptr %14, align 4, !tbaa !5
  %19 = icmp ne i32 %18, -1
  br i1 %19, label %20, label %45

20:                                               ; preds = %15
  %21 = load i32, ptr %14, align 4, !tbaa !5
  switch i32 %21, label %40 [
    i32 104, label %22
    i32 99, label %25
    i32 100, label %26
    i32 86, label %27
    i32 102, label %28
    i32 116, label %32
    i32 118, label %36
  ]

22:                                               ; preds = %20
  %23 = load ptr, ptr @help, align 8, !tbaa !9
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %23)
  call void @exit(i32 noundef 0) #8
  unreachable

25:                                               ; preds = %20
  store i8 99, ptr %9, align 1, !tbaa !11
  br label %44

26:                                               ; preds = %20
  store i8 100, ptr %9, align 1, !tbaa !11
  br label %44

27:                                               ; preds = %20
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %44

28:                                               ; preds = %20
  %29 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %30 = load ptr, ptr @optarg, align 8, !tbaa !9
  %31 = call ptr @strcpy(ptr noundef %29, ptr noundef %30) #7
  br label %44

32:                                               ; preds = %20
  %33 = load ptr, ptr @optarg, align 8, !tbaa !9
  %34 = call i64 @strtol(ptr noundef %33, ptr noundef null, i32 noundef 10) #7
  %35 = trunc i64 %34 to i8
  store i8 %35, ptr %8, align 1, !tbaa !11
  br label %44

36:                                               ; preds = %20
  %37 = load ptr, ptr @optarg, align 8, !tbaa !9
  %38 = call i64 @strtol(ptr noundef %37, ptr noundef null, i32 noundef 10) #7
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %11, align 4, !tbaa !5
  br label %44

40:                                               ; preds = %20
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = load ptr, ptr @error, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.5, ptr noundef %42) #7
  call void @exit(i32 noundef 1) #8
  unreachable

44:                                               ; preds = %36, %32, %28, %27, %26, %25
  br label %15, !llvm.loop !12

45:                                               ; preds = %15
  %46 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %47 = load i8, ptr %46, align 16, !tbaa !11
  %48 = sext i8 %47 to i32
  %49 = icmp eq i32 %48, 45
  br i1 %49, label %64, label %50

50:                                               ; preds = %45
  %51 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %52 = call i64 @strlen(ptr noundef %51) #9
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %64, label %54

54:                                               ; preds = %50
  %55 = load i8, ptr %9, align 1, !tbaa !11
  %56 = sext i8 %55 to i32
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %64, label %58

58:                                               ; preds = %54
  %59 = load i32, ptr %11, align 4, !tbaa !5
  %60 = icmp slt i32 %59, 1
  br i1 %60, label %64, label %61

61:                                               ; preds = %58
  %62 = load i32, ptr %11, align 4, !tbaa !5
  %63 = icmp sgt i32 %62, 2
  br i1 %63, label %64, label %68

64:                                               ; preds = %61, %58, %54, %50, %45
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = load ptr, ptr @error, align 8, !tbaa !9
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.5, ptr noundef %66) #7
  call void @exit(i32 noundef 1) #8
  unreachable

68:                                               ; preds = %61
  %69 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
  %70 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %71 = call ptr @strcpy(ptr noundef %69, ptr noundef %70) #7
  %72 = load i8, ptr %9, align 1, !tbaa !11
  %73 = sext i8 %72 to i32
  %74 = icmp eq i32 %73, 99
  br i1 %74, label %75, label %79

75:                                               ; preds = %68
  %76 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
  %77 = load ptr, ptr %12, align 8, !tbaa !9
  %78 = call ptr @strcat(ptr noundef %76, ptr noundef %77) #7
  br label %83

79:                                               ; preds = %68
  %80 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
  %81 = load ptr, ptr %13, align 8, !tbaa !9
  %82 = call ptr @strcat(ptr noundef %80, ptr noundef %81) #7
  br label %83

83:                                               ; preds = %79, %75
  %84 = load i8, ptr %9, align 1, !tbaa !11
  %85 = sext i8 %84 to i32
  %86 = icmp eq i32 %85, 99
  br i1 %86, label %87, label %94

87:                                               ; preds = %83
  %88 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %89 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
  %90 = load i8, ptr %8, align 1, !tbaa !11
  %91 = load i32, ptr %10, align 4, !tbaa !5
  %92 = load i32, ptr %11, align 4, !tbaa !5
  %93 = trunc i32 %92 to i8
  call void @dc_compress(ptr noundef %88, ptr noundef %89, i8 noundef zeroext %90, i32 noundef %91, i8 noundef zeroext %93)
  br label %98

94:                                               ; preds = %83
  %95 = getelementptr inbounds [200 x i8], ptr %6, i64 0, i64 0
  %96 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
  %97 = load i32, ptr %10, align 4, !tbaa !5
  call void @dc_decompress(ptr noundef %95, ptr noundef %96, i32 noundef %97)
  br label %98

98:                                               ; preds = %94, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %6) #7
  ret i32 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

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

declare void @dc_compress(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef, i8 noundef zeroext) #4

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

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

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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

@error = external dso_local local_unnamed_addr global ptr, align 8
@help = external dso_local local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@optarg = external local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [200 x i8], align 16
  %4 = alloca [200 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %3) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) %3, i8 0, i64 200, i1 false)
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %4) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200) %4, i8 0, i64 200, i1 false)
  br label %.outer

.outer:                                           ; preds = %11, %2
  %.023.ph = phi i32 [ 1, %11 ], [ 0, %2 ]
  %.021.ph = phi i32 [ %.021.ph60, %11 ], [ 2, %2 ]
  %.019.ph = phi i8 [ %.019.ph64, %11 ], [ 0, %2 ]
  %.0.ph = phi i8 [ %.0.ph67, %11 ], [ 31, %2 ]
  br label %.outer59

.outer59:                                         ; preds = %.outer, %19
  %.021.ph60 = phi i32 [ %.021.ph, %.outer ], [ %22, %19 ]
  %.019.ph61 = phi i8 [ %.019.ph, %.outer ], [ %.019.ph64, %19 ]
  %.0.ph62 = phi i8 [ %.0.ph, %.outer ], [ %.0.ph67, %19 ]
  br label %.outer63

.outer63:                                         ; preds = %.outer63.backedge, %.outer59
  %.019.ph64 = phi i8 [ %.019.ph61, %.outer59 ], [ %.019.ph64.be, %.outer63.backedge ]
  %.0.ph65 = phi i8 [ %.0.ph62, %.outer59 ], [ %.0.ph67, %.outer63.backedge ]
  br label %.outer66

.outer66:                                         ; preds = %.outer63, %15
  %.0.ph67 = phi i8 [ %.0.ph65, %.outer63 ], [ %18, %15 ]
  br label %5

5:                                                ; preds = %.outer66, %12
  %6 = call i32 @getopt(i32 noundef %0, ptr noundef %1, ptr noundef nonnull @.str.4) #9
  switch i32 %6, label %23 [
    i32 -1, label %27
    i32 104, label %7
    i32 99, label %.outer63.backedge
    i32 100, label %10
    i32 86, label %11
    i32 102, label %12
    i32 116, label %15
    i32 118, label %19
  ], !llvm.loop !5

7:                                                ; preds = %5
  %8 = load ptr, ptr @help, align 8, !tbaa !7
  %9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %8)
  call void @exit(i32 noundef 0) #10
  unreachable

10:                                               ; preds = %5
  br label %.outer63.backedge

.outer63.backedge:                                ; preds = %5, %10
  %.019.ph64.be = phi i8 [ 100, %10 ], [ 99, %5 ]
  br label %.outer63, !llvm.loop !5

11:                                               ; preds = %5
  br label %.outer, !llvm.loop !5

12:                                               ; preds = %5
  %13 = load ptr, ptr @optarg, align 8, !tbaa !7
  %14 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %13) #9
  br label %5, !llvm.loop !5

15:                                               ; preds = %5
  %16 = load ptr, ptr @optarg, align 8, !tbaa !7
  %17 = call i64 @strtol(ptr nocapture noundef %16, ptr noundef null, i32 noundef 10) #9
  %18 = trunc i64 %17 to i8
  br label %.outer66, !llvm.loop !5

19:                                               ; preds = %5
  %20 = load ptr, ptr @optarg, align 8, !tbaa !7
  %21 = call i64 @strtol(ptr nocapture noundef %20, ptr noundef null, i32 noundef 10) #9
  %22 = trunc i64 %21 to i32
  br label %.outer59, !llvm.loop !5

23:                                               ; preds = %5
  %24 = load ptr, ptr @stderr, align 8, !tbaa !7
  %25 = load ptr, ptr @error, align 8, !tbaa !7
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.5, ptr noundef %25) #11
  call void @exit(i32 noundef 1) #10
  unreachable

27:                                               ; preds = %5
  %28 = load i8, ptr %3, align 16
  %29 = icmp eq i8 %28, 45
  br i1 %29, label %35, label %30

30:                                               ; preds = %27
  %31 = icmp eq i8 %28, 0
  %32 = icmp eq i8 %.019.ph64, 0
  %or.cond = select i1 %31, i1 true, i1 %32
  %33 = add i32 %.021.ph60, -3
  %34 = icmp ult i32 %33, -2
  %or.cond6 = select i1 %or.cond, i1 true, i1 %34
  br i1 %or.cond6, label %35, label %39

35:                                               ; preds = %30, %27
  %36 = load ptr, ptr @stderr, align 8, !tbaa !7
  %37 = load ptr, ptr @error, align 8, !tbaa !7
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.5, ptr noundef %37) #11
  call void @exit(i32 noundef 1) #10
  unreachable

39:                                               ; preds = %30
  %40 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) %3) #9
  %41 = icmp eq i8 %.019.ph64, 99
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  %43 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.2) #9
  %44 = trunc nuw nsw i32 %.021.ph60 to i8
  call void @dc_compress(ptr noundef nonnull %3, ptr noundef nonnull %4, i8 noundef zeroext %.0.ph67, i32 noundef %.023.ph, i8 noundef zeroext %44) #9
  br label %47

45:                                               ; preds = %39
  %46 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %4, ptr noundef nonnull dereferenceable(1) @.str.3) #9
  call void @dc_decompress(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef %.023.ph) #9
  br label %47

47:                                               ; preds = %45, %42
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %3) #9
  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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #6

declare void @dc_compress(ptr noundef, ptr noundef, i8 noundef zeroext, i32 noundef, i8 noundef zeroext) local_unnamed_addr #8

declare void @dc_decompress(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #8

; 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #7 = { 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 #8 = { "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 #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}


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