; LLVM IR from dpt/Containers :: libraries/datastruct/critbit (show-viz)

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

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @critbit_show_viz(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca %struct.critbit__show_viz_args, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [200 x i32], align 16
  %19 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 800, ptr %18) #4
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.critbit__show_viz_args, ptr %15, i32 0, i32 0
  store ptr %20, ptr %21, align 8, !tbaa !9
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.critbit__show_viz_args, ptr %15, i32 0, i32 1
  store ptr %22, ptr %23, align 8, !tbaa !12
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.critbit__show_viz_args, ptr %15, i32 0, i32 2
  store ptr %24, ptr %25, align 8, !tbaa !13
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.critbit__show_viz_args, ptr %15, i32 0, i32 3
  store ptr %26, ptr %27, align 8, !tbaa !14
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.critbit__show_viz_args, ptr %15, i32 0, i32 4
  store ptr %28, ptr %29, align 8, !tbaa !15
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str) #4
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.1) #4
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.2) #4
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = call i32 @critbit__max_rank(ptr noundef %36)
  store i32 %37, ptr %16, align 4, !tbaa !16
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = load i32, ptr %16, align 4, !tbaa !16
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.3, i32 noundef %39) #4
  store i32 0, ptr %17, align 4, !tbaa !16
  br label %41

41:                                               ; preds = %59, %6
  %42 = load i32, ptr %17, align 4, !tbaa !16
  %43 = load i32, ptr %16, align 4, !tbaa !16
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %45, label %62

45:                                               ; preds = %41
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = load i32, ptr %17, align 4, !tbaa !16
  %48 = call i32 @critbit__count_for_rank(ptr noundef %46, i32 noundef %47)
  %49 = load i32, ptr %17, align 4, !tbaa !16
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [200 x i32], ptr %18, i64 0, i64 %50
  store i32 %48, ptr %51, align 4, !tbaa !16
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = load i32, ptr %17, align 4, !tbaa !16
  %54 = load i32, ptr %17, align 4, !tbaa !16
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [200 x i32], ptr %18, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !16
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.4, i32 noundef %53, i32 noundef %57) #4
  br label %59

59:                                               ; preds = %45
  %60 = load i32, ptr %17, align 4, !tbaa !16
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %17, align 4, !tbaa !16
  br label %41, !llvm.loop !17

62:                                               ; preds = %41
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.1) #4
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str.5) #4
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str.6) #4
  store i32 0, ptr %17, align 4, !tbaa !16
  br label %69

69:                                               ; preds = %84, %62
  %70 = load i32, ptr %17, align 4, !tbaa !16
  %71 = load i32, ptr %16, align 4, !tbaa !16
  %72 = icmp sle i32 %70, %71
  br i1 %72, label %73, label %87

73:                                               ; preds = %69
  %74 = load i32, ptr %17, align 4, !tbaa !16
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [200 x i32], ptr %18, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !16
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %83

79:                                               ; preds = %73
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = load i32, ptr %17, align 4, !tbaa !16
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.7, i32 noundef %81) #4
  br label %83

83:                                               ; preds = %79, %73
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %17, align 4, !tbaa !16
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %17, align 4, !tbaa !16
  br label %69, !llvm.loop !19

87:                                               ; preds = %69
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.8) #4
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.9) #4
  store i32 -1, ptr %17, align 4, !tbaa !16
  br label %92

92:                                               ; preds = %122, %87
  %93 = load i32, ptr %17, align 4, !tbaa !16
  %94 = load i32, ptr %16, align 4, !tbaa !16
  %95 = icmp sle i32 %93, %94
  br i1 %95, label %96, label %125

96:                                               ; preds = %92
  %97 = load i32, ptr %17, align 4, !tbaa !16
  %98 = icmp sge i32 %97, 0
  br i1 %98, label %99, label %106

99:                                               ; preds = %96
  %100 = load i32, ptr %17, align 4, !tbaa !16
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [200 x i32], ptr %18, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !16
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %99
  br label %122

106:                                              ; preds = %99, %96
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = load i32, ptr %17, align 4, !tbaa !16
  %109 = load i32, ptr %17, align 4, !tbaa !16
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.10, i32 noundef %108, i32 noundef %109) #4
  %111 = load i32, ptr %17, align 4, !tbaa !16
  %112 = getelementptr inbounds %struct.critbit__show_viz_args, ptr %15, i32 0, i32 5
  store i32 %111, ptr %112, align 8, !tbaa !20
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = call i64 @critbit__walk_internal(ptr noundef %113, i32 noundef 8, ptr noundef @critbit__node_show_viz_rank, ptr noundef %15)
  store i64 %114, ptr %14, align 8, !tbaa !21
  %115 = load i64, ptr %14, align 8, !tbaa !21
  %116 = icmp ne i64 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %106
  %118 = load i64, ptr %14, align 8, !tbaa !21
  store i64 %118, ptr %7, align 8
  store i32 1, ptr %19, align 4
  br label %146

119:                                              ; preds = %106
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str.9) #4
  br label %122

122:                                              ; preds = %119, %105
  %123 = load i32, ptr %17, align 4, !tbaa !16
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %17, align 4, !tbaa !16
  br label %92, !llvm.loop !23

125:                                              ; preds = %92
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.11) #4
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = call i64 @critbit__walk_internal(ptr noundef %128, i32 noundef 4, ptr noundef @critbit__node_show_viz_rank_leaves, ptr noundef %15)
  store i64 %129, ptr %14, align 8, !tbaa !21
  %130 = load i64, ptr %14, align 8, !tbaa !21
  %131 = icmp ne i64 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %125
  %133 = load i64, ptr %14, align 8, !tbaa !21
  store i64 %133, ptr %7, align 8
  store i32 1, ptr %19, align 4
  br label %146

134:                                              ; preds = %125
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.9) #4
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = call i64 @critbit__walk_internal(ptr noundef %137, i32 noundef 12, ptr noundef @critbit__node_show_viz_link, ptr noundef %15)
  store i64 %138, ptr %14, align 8, !tbaa !21
  %139 = load i64, ptr %14, align 8, !tbaa !21
  %140 = icmp ne i64 %139, 0
  br i1 %140, label %141, label %143

141:                                              ; preds = %134
  %142 = load i64, ptr %14, align 8, !tbaa !21
  store i64 %142, ptr %7, align 8
  store i32 1, ptr %19, align 4
  br label %146

143:                                              ; preds = %134
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef @.str.12) #4
  store i64 0, ptr %7, align 8
  store i32 1, ptr %19, align 4
  br label %146

146:                                              ; preds = %143, %141, %132, %117
  call void @llvm.lifetime.end.p0(i64 800, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %147 = load i64, ptr %7, align 8
  ret i64 %147
}

; 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 @fprintf(ptr noundef, ptr noundef, ...) #2

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

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

declare i64 @critbit__walk_internal(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

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

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

; Function Attrs: nounwind uwtable
declare hidden i64 @critbit__node_show_viz_link(ptr noundef, i32 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"critbit__show_viz_args", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !11, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!10, !11, i64 40}
!21 = !{!22, !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = distinct !{!23, !18}


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

@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @critbit_show_viz(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = alloca %struct.critbit__show_viz_args, align 8
  %8 = alloca [200 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %8) #4
  store ptr %1, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %7, i64 8
  store ptr %2, ptr %9, align 8, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %7, i64 16
  store ptr %3, ptr %10, align 8, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %7, i64 24
  store ptr %4, ptr %11, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %5, ptr %12, align 8, !tbaa !14
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str) #4
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.1) #4
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.2) #4
  %16 = tail call i32 @critbit__max_rank(ptr noundef %0)
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.3, i32 noundef %16) #4
  %.not64 = icmp slt i32 %16, 0
  br i1 %.not64, label %._crit_edge70.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %6
  %18 = add nuw i32 %16, 1
  %wide.trip.count = zext i32 %18 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %19 = trunc nuw nsw i64 %indvars.iv to i32
  %20 = tail call i32 @critbit__count_for_rank(ptr noundef %0, i32 noundef %19)
  %21 = getelementptr inbounds [200 x i32], ptr %8, i64 0, i64 %indvars.iv
  store i32 %20, ptr %21, align 4, !tbaa !15
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.4, i32 noundef %19, i32 noundef %20) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %.lr.ph
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.1) #4
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.5) #4
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.6) #4
  br i1 %.not64, label %._crit_edge70, label %.lr.ph69.preheader

.lr.ph69.preheader:                               ; preds = %._crit_edge
  %26 = add nuw i32 %16, 1
  %wide.trip.count80 = zext i32 %26 to i64
  br label %.lr.ph69

.lr.ph69:                                         ; preds = %.lr.ph69.preheader, %32
  %indvars.iv77 = phi i64 [ 0, %.lr.ph69.preheader ], [ %indvars.iv.next78, %32 ]
  %27 = getelementptr inbounds [200 x i32], ptr %8, i64 0, i64 %indvars.iv77
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %.not63 = icmp eq i32 %28, 0
  br i1 %.not63, label %32, label %29

29:                                               ; preds = %.lr.ph69
  %30 = trunc nuw nsw i64 %indvars.iv77 to i32
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.7, i32 noundef %30) #4
  br label %32

32:                                               ; preds = %.lr.ph69, %29
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond81.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count80
  br i1 %exitcond81.not, label %._crit_edge70, label %.lr.ph69, !llvm.loop !18

._crit_edge70.critedge:                           ; preds = %6
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.1) #4
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.5) #4
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.6) #4
  br label %._crit_edge70

._crit_edge70:                                    ; preds = %32, %._crit_edge70.critedge, %._crit_edge
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.8) #4
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.9) #4
  %.not5971 = icmp slt i32 %16, -1
  br i1 %.not5971, label %._crit_edge75, label %38

38:                                               ; preds = %._crit_edge70
  %39 = getelementptr inbounds i8, ptr %7, i64 40
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.10, i32 noundef -1, i32 noundef -1) #4
  store i32 -1, ptr %39, align 8, !tbaa !19
  %41 = call i64 @critbit__walk_internal(ptr noundef %0, i32 noundef 8, ptr noundef nonnull @critbit__node_show_viz_rank, ptr noundef nonnull %7) #4
  %.not62.peel = icmp eq i64 %41, 0
  br i1 %.not62.peel, label %42, label %.loopexit

42:                                               ; preds = %38
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.9) #4
  %exitcond82.peel.not = icmp eq i32 %16, -1
  br i1 %exitcond82.peel.not, label %._crit_edge75, label %.peel.next

.peel.next:                                       ; preds = %42, %55
  %.272 = phi i32 [ %56, %55 ], [ 0, %42 ]
  %44 = icmp sgt i32 %.272, -1
  br i1 %44, label %45, label %50

45:                                               ; preds = %.peel.next
  %46 = zext nneg i32 %.272 to i64
  %47 = getelementptr inbounds [200 x i32], ptr %8, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !15
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %55, label %50

50:                                               ; preds = %45, %.peel.next
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.10, i32 noundef %.272, i32 noundef %.272) #4
  store i32 %.272, ptr %39, align 8, !tbaa !19
  %52 = call i64 @critbit__walk_internal(ptr noundef %0, i32 noundef 8, ptr noundef nonnull @critbit__node_show_viz_rank, ptr noundef nonnull %7) #4
  %.not62 = icmp eq i64 %52, 0
  br i1 %.not62, label %53, label %.loopexit

53:                                               ; preds = %50
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.9) #4
  br label %55

55:                                               ; preds = %45, %53
  %56 = add nuw i32 %.272, 1
  %exitcond82.not = icmp eq i32 %.272, %16
  br i1 %exitcond82.not, label %._crit_edge75, label %.peel.next, !llvm.loop !20

._crit_edge75:                                    ; preds = %55, %42, %._crit_edge70
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.11) #4
  %58 = call i64 @critbit__walk_internal(ptr noundef %0, i32 noundef 4, ptr noundef nonnull @critbit__node_show_viz_rank_leaves, ptr noundef nonnull %7) #4
  %.not60 = icmp eq i64 %58, 0
  br i1 %.not60, label %59, label %.loopexit

59:                                               ; preds = %._crit_edge75
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.9) #4
  %61 = call i64 @critbit__walk_internal(ptr noundef %0, i32 noundef 12, ptr noundef nonnull @critbit__node_show_viz_link, ptr noundef nonnull %7) #4
  %.not61 = icmp eq i64 %61, 0
  br i1 %.not61, label %62, label %.loopexit

62:                                               ; preds = %59
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.12) #4
  br label %.loopexit

.loopexit:                                        ; preds = %50, %38, %59, %._crit_edge75, %62
  %.053 = phi i64 [ 0, %62 ], [ %58, %._crit_edge75 ], [ %61, %59 ], [ %41, %38 ], [ %52, %50 ]
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #4
  ret i64 %.053
}

; 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 noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

declare i64 @critbit__walk_internal(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare hidden i64 @critbit__node_show_viz_link(ptr noundef, i32 noundef, ptr noundef) #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 = { 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 = { "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, !7, i64 0}
!6 = !{!"critbit__show_viz_args", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !10, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 32}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!6, !10, i64 40}
!20 = distinct !{!20, !17, !21}
!21 = !{!"llvm.loop.peeled.count", i32 1}


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