; LLVM IR from clausecker/24puzzle :: util (rankgen)

; 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 [55 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

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

8:                                                ; preds = %17, %0
  %9 = load i64, ptr %2, align 8, !tbaa !5
  %10 = icmp ult i64 %9, 2048
  br i1 %10, label %11, label %20

11:                                               ; preds = %8
  %12 = load i64, ptr %2, align 8, !tbaa !5
  %13 = trunc i64 %12 to i32
  %14 = call i32 @rank(i32 noundef %13)
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %16 = trunc i64 %15 to i32
  call void @print_entry(i32 noundef %14, i32 noundef %16)
  br label %17

17:                                               ; preds = %11
  %18 = load i64, ptr %2, align 8, !tbaa !5
  %19 = add i64 %18, 1
  store i64 %19, ptr %2, align 8, !tbaa !5
  br label %8, !llvm.loop !9

20:                                               ; preds = %8
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i64 0, ptr %2, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %52, %20
  %24 = load i64, ptr %2, align 8, !tbaa !5
  %25 = icmp ult i64 %24, 12
  br i1 %25, label %26, label %55

26:                                               ; preds = %23
  store i64 0, ptr %3, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %43, %26
  %28 = load i64, ptr %3, align 8, !tbaa !5
  %29 = icmp ult i64 %28, 128
  br i1 %29, label %30, label %46

30:                                               ; preds = %27
  %31 = load i64, ptr %3, align 8, !tbaa !5
  %32 = shl i64 %31, 11
  %33 = load i64, ptr %2, align 8, !tbaa !5
  %34 = trunc i64 %33 to i32
  %35 = shl i32 1, %34
  %36 = sub nsw i32 %35, 1
  %37 = sext i32 %36 to i64
  %38 = or i64 %32, %37
  %39 = trunc i64 %38 to i32
  %40 = call i32 @rank(i32 noundef %39)
  %41 = load i64, ptr %3, align 8, !tbaa !5
  %42 = trunc i64 %41 to i32
  call void @print_entry(i32 noundef %40, i32 noundef %42)
  br label %43

43:                                               ; preds = %30
  %44 = load i64, ptr %3, align 8, !tbaa !5
  %45 = add i64 %44, 1
  store i64 %45, ptr %3, align 8, !tbaa !5
  br label %27, !llvm.loop !11

46:                                               ; preds = %27
  %47 = load i64, ptr %2, align 8, !tbaa !5
  %48 = icmp eq i64 %47, 11
  %49 = zext i1 %48 to i64
  %50 = select i1 %48, ptr @.str.7, ptr @.str.8
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %50)
  br label %52

52:                                               ; preds = %46
  %53 = load i64, ptr %2, align 8, !tbaa !5
  %54 = add i64 %53, 1
  store i64 %54, ptr %2, align 8, !tbaa !5
  br label %23, !llvm.loop !12

55:                                               ; preds = %23
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i64 0, ptr %2, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %86, %55
  %58 = load i64, ptr %2, align 8, !tbaa !5
  %59 = icmp ult i64 %58, 19
  br i1 %59, label %60, label %89

60:                                               ; preds = %57
  store i64 0, ptr %3, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %77, %60
  %62 = load i64, ptr %3, align 8, !tbaa !5
  %63 = icmp ult i64 %62, 128
  br i1 %63, label %64, label %80

64:                                               ; preds = %61
  %65 = load i64, ptr %3, align 8, !tbaa !5
  %66 = shl i64 %65, 18
  %67 = load i64, ptr %2, align 8, !tbaa !5
  %68 = trunc i64 %67 to i32
  %69 = shl i32 1, %68
  %70 = sub nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = or i64 %66, %71
  %73 = trunc i64 %72 to i32
  %74 = call i32 @rank(i32 noundef %73)
  %75 = load i64, ptr %3, align 8, !tbaa !5
  %76 = trunc i64 %75 to i32
  call void @print_entry(i32 noundef %74, i32 noundef %76)
  br label %77

77:                                               ; preds = %64
  %78 = load i64, ptr %3, align 8, !tbaa !5
  %79 = add i64 %78, 1
  store i64 %79, ptr %3, align 8, !tbaa !5
  br label %61, !llvm.loop !13

80:                                               ; preds = %61
  %81 = load i64, ptr %2, align 8, !tbaa !5
  %82 = icmp eq i64 %81, 18
  %83 = zext i1 %82 to i64
  %84 = select i1 %82, ptr @.str.10, ptr @.str.8
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %84)
  br label %86

86:                                               ; preds = %80
  %87 = load i64, ptr %2, align 8, !tbaa !5
  %88 = add i64 %87, 1
  store i64 %88, ptr %2, align 8, !tbaa !5
  br label %57, !llvm.loop !14

89:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  ret i32 0
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @rank(i32 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 = { "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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; 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 [55 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %5

5:                                                ; preds = %0, %5
  %.02024 = phi i64 [ 0, %0 ], [ %8, %5 ]
  %6 = trunc nuw nsw i64 %.02024 to i32
  %7 = tail call i32 @rank(i32 noundef %6)
  tail call void @print_entry(i32 noundef %7, i32 noundef %6)
  %8 = add nuw nsw i64 %.02024, 1
  %exitcond.not = icmp eq i64 %8, 2048
  br i1 %exitcond.not, label %.preheader23, label %5, !llvm.loop !5

.preheader23:                                     ; preds = %5
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %11

11:                                               ; preds = %.preheader23, %11
  %.025 = phi i64 [ 0, %.preheader23 ], [ %14, %11 ]
  %.0.tr = trunc nuw i64 %.025 to i32
  %12 = shl nuw nsw i32 %.0.tr, 11
  %13 = tail call i32 @rank(i32 noundef %12)
  tail call void @print_entry(i32 noundef %13, i32 noundef %.0.tr)
  %14 = add nuw nsw i64 %.025, 1
  %exitcond29.not = icmp eq i64 %14, 128
  br i1 %exitcond29.not, label %.preheader23.1, label %11, !llvm.loop !7

.preheader23.1:                                   ; preds = %11
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %16

16:                                               ; preds = %16, %.preheader23.1
  %.025.1 = phi i64 [ 0, %.preheader23.1 ], [ %20, %16 ]
  %.0.tr.1 = trunc nuw i64 %.025.1 to i32
  %17 = shl nuw nsw i32 %.0.tr.1, 11
  %18 = or disjoint i32 %17, 1
  %19 = tail call i32 @rank(i32 noundef %18)
  tail call void @print_entry(i32 noundef %19, i32 noundef %.0.tr.1)
  %20 = add nuw nsw i64 %.025.1, 1
  %exitcond29.1.not = icmp eq i64 %20, 128
  br i1 %exitcond29.1.not, label %.preheader23.2, label %16, !llvm.loop !7

.preheader23.2:                                   ; preds = %16
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %22

22:                                               ; preds = %22, %.preheader23.2
  %.025.2 = phi i64 [ 0, %.preheader23.2 ], [ %26, %22 ]
  %.0.tr.2 = trunc nuw i64 %.025.2 to i32
  %23 = shl nuw nsw i32 %.0.tr.2, 11
  %24 = or disjoint i32 %23, 3
  %25 = tail call i32 @rank(i32 noundef %24)
  tail call void @print_entry(i32 noundef %25, i32 noundef %.0.tr.2)
  %26 = add nuw nsw i64 %.025.2, 1
  %exitcond29.2.not = icmp eq i64 %26, 128
  br i1 %exitcond29.2.not, label %.preheader23.3, label %22, !llvm.loop !7

.preheader23.3:                                   ; preds = %22
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %28

28:                                               ; preds = %28, %.preheader23.3
  %.025.3 = phi i64 [ 0, %.preheader23.3 ], [ %32, %28 ]
  %.0.tr.3 = trunc nuw i64 %.025.3 to i32
  %29 = shl nuw nsw i32 %.0.tr.3, 11
  %30 = or disjoint i32 %29, 7
  %31 = tail call i32 @rank(i32 noundef %30)
  tail call void @print_entry(i32 noundef %31, i32 noundef %.0.tr.3)
  %32 = add nuw nsw i64 %.025.3, 1
  %exitcond29.3.not = icmp eq i64 %32, 128
  br i1 %exitcond29.3.not, label %.preheader23.4, label %28, !llvm.loop !7

.preheader23.4:                                   ; preds = %28
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %34

34:                                               ; preds = %34, %.preheader23.4
  %.025.4 = phi i64 [ 0, %.preheader23.4 ], [ %38, %34 ]
  %.0.tr.4 = trunc nuw i64 %.025.4 to i32
  %35 = shl nuw nsw i32 %.0.tr.4, 11
  %36 = or disjoint i32 %35, 15
  %37 = tail call i32 @rank(i32 noundef %36)
  tail call void @print_entry(i32 noundef %37, i32 noundef %.0.tr.4)
  %38 = add nuw nsw i64 %.025.4, 1
  %exitcond29.4.not = icmp eq i64 %38, 128
  br i1 %exitcond29.4.not, label %.preheader23.5, label %34, !llvm.loop !7

.preheader23.5:                                   ; preds = %34
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %40

40:                                               ; preds = %40, %.preheader23.5
  %.025.5 = phi i64 [ 0, %.preheader23.5 ], [ %44, %40 ]
  %.0.tr.5 = trunc nuw i64 %.025.5 to i32
  %41 = shl nuw nsw i32 %.0.tr.5, 11
  %42 = or disjoint i32 %41, 31
  %43 = tail call i32 @rank(i32 noundef %42)
  tail call void @print_entry(i32 noundef %43, i32 noundef %.0.tr.5)
  %44 = add nuw nsw i64 %.025.5, 1
  %exitcond29.5.not = icmp eq i64 %44, 128
  br i1 %exitcond29.5.not, label %.preheader23.6, label %40, !llvm.loop !7

.preheader23.6:                                   ; preds = %40
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %46

46:                                               ; preds = %46, %.preheader23.6
  %.025.6 = phi i64 [ 0, %.preheader23.6 ], [ %50, %46 ]
  %.0.tr.6 = trunc nuw i64 %.025.6 to i32
  %47 = shl nuw nsw i32 %.0.tr.6, 11
  %48 = or disjoint i32 %47, 63
  %49 = tail call i32 @rank(i32 noundef %48)
  tail call void @print_entry(i32 noundef %49, i32 noundef %.0.tr.6)
  %50 = add nuw nsw i64 %.025.6, 1
  %exitcond29.6.not = icmp eq i64 %50, 128
  br i1 %exitcond29.6.not, label %.preheader23.7, label %46, !llvm.loop !7

.preheader23.7:                                   ; preds = %46
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %52

52:                                               ; preds = %52, %.preheader23.7
  %.025.7 = phi i64 [ 0, %.preheader23.7 ], [ %56, %52 ]
  %.0.tr.7 = trunc nuw i64 %.025.7 to i32
  %53 = shl nuw nsw i32 %.0.tr.7, 11
  %54 = or disjoint i32 %53, 127
  %55 = tail call i32 @rank(i32 noundef %54)
  tail call void @print_entry(i32 noundef %55, i32 noundef %.0.tr.7)
  %56 = add nuw nsw i64 %.025.7, 1
  %exitcond29.7.not = icmp eq i64 %56, 128
  br i1 %exitcond29.7.not, label %.preheader23.8, label %52, !llvm.loop !7

.preheader23.8:                                   ; preds = %52
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %58

58:                                               ; preds = %58, %.preheader23.8
  %.025.8 = phi i64 [ 0, %.preheader23.8 ], [ %62, %58 ]
  %.0.tr.8 = trunc nuw i64 %.025.8 to i32
  %59 = shl nuw nsw i32 %.0.tr.8, 11
  %60 = or disjoint i32 %59, 255
  %61 = tail call i32 @rank(i32 noundef %60)
  tail call void @print_entry(i32 noundef %61, i32 noundef %.0.tr.8)
  %62 = add nuw nsw i64 %.025.8, 1
  %exitcond29.8.not = icmp eq i64 %62, 128
  br i1 %exitcond29.8.not, label %.preheader23.9, label %58, !llvm.loop !7

.preheader23.9:                                   ; preds = %58
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %64

64:                                               ; preds = %64, %.preheader23.9
  %.025.9 = phi i64 [ 0, %.preheader23.9 ], [ %68, %64 ]
  %.0.tr.9 = trunc nuw i64 %.025.9 to i32
  %65 = shl nuw nsw i32 %.0.tr.9, 11
  %66 = or disjoint i32 %65, 511
  %67 = tail call i32 @rank(i32 noundef %66)
  tail call void @print_entry(i32 noundef %67, i32 noundef %.0.tr.9)
  %68 = add nuw nsw i64 %.025.9, 1
  %exitcond29.9.not = icmp eq i64 %68, 128
  br i1 %exitcond29.9.not, label %.preheader23.10, label %64, !llvm.loop !7

.preheader23.10:                                  ; preds = %64
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %70

70:                                               ; preds = %70, %.preheader23.10
  %.025.10 = phi i64 [ 0, %.preheader23.10 ], [ %74, %70 ]
  %.0.tr.10 = trunc nuw i64 %.025.10 to i32
  %71 = shl nuw nsw i32 %.0.tr.10, 11
  %72 = or disjoint i32 %71, 1023
  %73 = tail call i32 @rank(i32 noundef %72)
  tail call void @print_entry(i32 noundef %73, i32 noundef %.0.tr.10)
  %74 = add nuw nsw i64 %.025.10, 1
  %exitcond29.10.not = icmp eq i64 %74, 128
  br i1 %exitcond29.10.not, label %.preheader23.11, label %70, !llvm.loop !7

.preheader23.11:                                  ; preds = %70
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.8)
  br label %76

76:                                               ; preds = %76, %.preheader23.11
  %.025.11 = phi i64 [ 0, %.preheader23.11 ], [ %80, %76 ]
  %.0.tr.11 = trunc nuw i64 %.025.11 to i32
  %77 = shl nuw nsw i32 %.0.tr.11, 11
  %78 = or disjoint i32 %77, 2047
  %79 = tail call i32 @rank(i32 noundef %78)
  tail call void @print_entry(i32 noundef %79, i32 noundef %.0.tr.11)
  %80 = add nuw nsw i64 %.025.11, 1
  %exitcond29.11.not = icmp eq i64 %80, 128
  br i1 %exitcond29.11.not, label %81, label %76, !llvm.loop !7

81:                                               ; preds = %76
  %82 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull @.str.7)
  %83 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  br label %.preheader

.preheader:                                       ; preds = %81, %91
  %.228 = phi i64 [ 0, %81 ], [ %95, %91 ]
  %84 = trunc nuw nsw i64 %.228 to i32
  %notmask = shl nsw i32 -1, %84
  %85 = xor i32 %notmask, -1
  br label %86

86:                                               ; preds = %.preheader, %86
  %.127 = phi i64 [ 0, %.preheader ], [ %90, %86 ]
  %.1.tr = trunc nuw i64 %.127 to i32
  %87 = shl nuw nsw i32 %.1.tr, 18
  %88 = or i32 %87, %85
  %89 = tail call i32 @rank(i32 noundef %88)
  tail call void @print_entry(i32 noundef %89, i32 noundef %.1.tr)
  %90 = add nuw nsw i64 %.127, 1
  %exitcond31.not = icmp eq i64 %90, 128
  br i1 %exitcond31.not, label %91, label %86, !llvm.loop !8

91:                                               ; preds = %86
  %92 = icmp eq i64 %.228, 18
  %93 = select i1 %92, ptr @.str.10, ptr @.str.8
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef nonnull %93)
  %95 = add nuw nsw i64 %.228, 1
  %exitcond32.not = icmp eq i64 %95, 19
  br i1 %exitcond32.not, label %96, label %.preheader, !llvm.loop !9

96:                                               ; preds = %91
  ret i32 0
}

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

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

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

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 = { 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" }

!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 = distinct !{!7, !6}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass