; LLVM IR from kmxz/overlayfs-tools :: mount (ovl_check_mount)

; 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.ovl_mnt_entry = type { ptr, i32, ptr, ptr }
%struct.ovl_fs = type { %struct.ovl_layer, ptr, i32, %struct.ovl_layer }
%struct.ovl_layer = type { ptr, i32, i32, i32, i32 }

@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1

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

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

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

17:                                               ; preds = %2
  %18 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %18, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %160

19:                                               ; preds = %2
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %147, %19
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %24, label %150

24:                                               ; preds = %20
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %77, %24
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load i32, ptr %9, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %27, i64 %29
  %31 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = icmp slt i32 %26, %32
  br i1 %33, label %34, label %80

34:                                               ; preds = %25
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %73, %34
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ovl_fs, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = icmp slt i32 %36, %39
  br i1 %40, label %41, label %76

41:                                               ; preds = %35
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ovl_fs, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds %struct.ovl_layer, ptr %44, i64 %46
  %48 = getelementptr inbounds %struct.ovl_layer, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !17
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %50, i64 %52
  %54 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds ptr, ptr %55, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = call i32 @strcmp(ptr noundef %49, ptr noundef %59) #5
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %72, label %62

62:                                               ; preds = %41
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ovl_fs, ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !16
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds %struct.ovl_layer, ptr %65, i64 %67
  %69 = getelementptr inbounds %struct.ovl_layer, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  store ptr %70, ptr %8, align 8, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %71, align 1, !tbaa !19
  br label %151

72:                                               ; preds = %41
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %11, align 4, !tbaa !9
  br label %35, !llvm.loop !21

76:                                               ; preds = %35
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %10, align 4, !tbaa !9
  br label %25, !llvm.loop !23

80:                                               ; preds = %25
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ovl_fs, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %struct.ovl_layer, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !24
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %113

86:                                               ; preds = %80
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %87, i64 %89
  %91 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !25
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %113

94:                                               ; preds = %86
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ovl_fs, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds %struct.ovl_layer, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !24
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i32, ptr %9, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %99, i64 %101
  %103 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !25
  %105 = call i32 @strcmp(ptr noundef %98, ptr noundef %104) #5
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %113, label %107

107:                                              ; preds = %94
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ovl_fs, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %struct.ovl_layer, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  store ptr %111, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %112, align 1, !tbaa !19
  br label %151

113:                                              ; preds = %94, %86, %80
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ovl_fs, ptr %114, i32 0, i32 3
  %116 = getelementptr inbounds %struct.ovl_layer, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !26
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %146

119:                                              ; preds = %113
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %120, i64 %122
  %124 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %123, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !27
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %146

127:                                              ; preds = %119
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ovl_fs, ptr %128, i32 0, i32 3
  %130 = getelementptr inbounds %struct.ovl_layer, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !26
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %135, i32 0, i32 3
  %137 = load ptr, ptr %136, align 8, !tbaa !27
  %138 = call i32 @strcmp(ptr noundef %131, ptr noundef %137) #5
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %146, label %140

140:                                              ; preds = %127
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ovl_fs, ptr %141, i32 0, i32 3
  %143 = getelementptr inbounds %struct.ovl_layer, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !26
  store ptr %144, ptr %8, align 8, !tbaa !5
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %145, align 1, !tbaa !19
  br label %151

146:                                              ; preds = %127, %119, %113
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %9, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %9, align 4, !tbaa !9
  br label %20, !llvm.loop !28

150:                                              ; preds = %20
  br label %151

151:                                              ; preds = %150, %140, %107, %62
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = load i32, ptr %7, align 4, !tbaa !9
  call void @ovl_scan_mount_exit(ptr noundef %152, i32 noundef %153)
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = load i8, ptr %154, align 1, !tbaa !19, !range !29, !noundef !30
  %156 = trunc i8 %155 to i1
  br i1 %156, label %157, label %159

157:                                              ; preds = %151
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  call void (ptr, ...) @print_info(ptr noundef @.str.7, ptr noundef %158)
  br label %159

159:                                              ; preds = %157, %151
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %160

160:                                              ; preds = %159, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %161 = load i32, ptr %3, align 4
  ret i32 %161
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @ovl_scan_mount_exit(ptr noundef, i32 noundef) #1

declare void @print_info(ptr noundef, ...) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"ovl_mnt_entry", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!14, !10, i64 32}
!14 = !{!"ovl_fs", !15, i64 0, !6, i64 24, !10, i64 32, !15, i64 40}
!15 = !{!"ovl_layer", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!16 = !{!14, !6, i64 24}
!17 = !{!15, !6, i64 0}
!18 = !{!12, !6, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_Bool", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!14, !6, i64 0}
!25 = !{!12, !6, i64 16}
!26 = !{!14, !6, i64 40}
!27 = !{!12, !6, i64 24}
!28 = distinct !{!28, !22}
!29 = !{i8 0, i8 2}
!30 = !{}


; 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.ovl_mnt_entry = type { ptr, i32, ptr, ptr }
%struct.ovl_layer = type { ptr, i32, i32, i32, i32 }

@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ovl_check_mount(ptr nocapture noundef readonly %0, ptr nocapture noundef %1) local_unnamed_addr #1 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  %5 = call i32 @ovl_scan_mount_init(ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %.preheader48, label %43

.preheader48:                                     ; preds = %2
  %6 = load i32, ptr %4, align 4, !tbaa !9
  %7 = icmp sgt i32 %6, 0
  %.pre = load ptr, ptr %3, align 8, !tbaa !5
  br i1 %7, label %.preheader47.lr.ph, label %.loopexit

.preheader47.lr.ph:                               ; preds = %.preheader48
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %wide.trip.count88 = zext nneg i32 %6 to i64
  br label %.preheader47

.preheader47:                                     ; preds = %.preheader47.lr.ph, %39
  %indvars.iv85 = phi i64 [ 0, %.preheader47.lr.ph ], [ %indvars.iv.next86, %39 ]
  %11 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %.pre, i64 %indvars.iv85
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !11
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.preheader.lr.ph, label %._crit_edge64

.preheader.lr.ph:                                 ; preds = %.preheader47
  %15 = load i32, ptr %8, align 8, !tbaa !13
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.preheader.lr.ph.split.us, label %._crit_edge64

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %17 = load ptr, ptr %9, align 8, !tbaa !16
  %18 = load ptr, ptr %11, align 8, !tbaa !17
  %wide.trip.count83 = zext nneg i32 %13 to i64
  %wide.trip.count = zext nneg i32 %15 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split.us
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %._crit_edge.us ], [ 0, %.preheader.lr.ph.split.us ]
  %19 = getelementptr inbounds ptr, ptr %18, i64 %indvars.iv80
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  br label %22

21:                                               ; preds = %22
  %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.us, label %22, !llvm.loop !18

22:                                               ; preds = %.preheader.us, %21
  %indvars.iv = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next, %21 ]
  %23 = getelementptr inbounds %struct.ovl_layer, ptr %17, i64 %indvars.iv
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %25 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) %20) #5
  %.not46.us = icmp eq i32 %25, 0
  br i1 %.not46.us, label %.loopexit.sink.split, label %21

._crit_edge.us:                                   ; preds = %21
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next81, %wide.trip.count83
  br i1 %exitcond84.not, label %._crit_edge64, label %.preheader.us, !llvm.loop !21

._crit_edge64:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph, %.preheader47
  %26 = load ptr, ptr %0, align 8, !tbaa !22
  %.not40 = icmp eq ptr %26, null
  br i1 %.not40, label %32, label %27

27:                                               ; preds = %._crit_edge64
  %28 = getelementptr inbounds i8, ptr %11, i64 16
  %29 = load ptr, ptr %28, align 8, !tbaa !23
  %.not41 = icmp eq ptr %29, null
  br i1 %.not41, label %32, label %30

30:                                               ; preds = %27
  %31 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) %29) #5
  %.not42 = icmp eq i32 %31, 0
  br i1 %.not42, label %.loopexit.sink.split, label %32

32:                                               ; preds = %30, %27, %._crit_edge64
  %33 = load ptr, ptr %10, align 8, !tbaa !24
  %.not43 = icmp eq ptr %33, null
  br i1 %.not43, label %39, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds %struct.ovl_mnt_entry, ptr %.pre, i64 %indvars.iv85, i32 3
  %36 = load ptr, ptr %35, align 8, !tbaa !25
  %.not44 = icmp eq ptr %36, null
  br i1 %.not44, label %39, label %37

37:                                               ; preds = %34
  %38 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %33, ptr noundef nonnull dereferenceable(1) %36) #5
  %.not45 = icmp eq i32 %38, 0
  br i1 %.not45, label %.loopexit.sink.split, label %39

39:                                               ; preds = %32, %34, %37
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %exitcond89.not = icmp eq i64 %indvars.iv.next86, %wide.trip.count88
  br i1 %exitcond89.not, label %.loopexit, label %.preheader47, !llvm.loop !26

.loopexit.sink.split:                             ; preds = %37, %30, %22
  %.034.ph = phi ptr [ %24, %22 ], [ %26, %30 ], [ %33, %37 ]
  store i8 1, ptr %1, align 1, !tbaa !27
  br label %.loopexit

.loopexit:                                        ; preds = %39, %.loopexit.sink.split, %.preheader48
  %.034 = phi ptr [ null, %.preheader48 ], [ %.034.ph, %.loopexit.sink.split ], [ null, %39 ]
  call void @ovl_scan_mount_exit(ptr noundef %.pre, i32 noundef %6)
  %40 = load i8, ptr %1, align 1, !tbaa !27, !range !29, !noundef !30
  %41 = trunc nuw i8 %40 to i1
  br i1 %41, label %42, label %43

42:                                               ; preds = %.loopexit
  call void (ptr, ...) @print_info(ptr noundef nonnull @.str.7, ptr noundef %.034) #4
  br label %43

43:                                               ; preds = %.loopexit, %42, %2
  %.0 = phi i32 [ %5, %2 ], [ 0, %42 ], [ 0, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i32 %.0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @ovl_scan_mount_exit(ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @print_info(ptr noundef, ...) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(argmem: 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 #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 }
attributes #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"ovl_mnt_entry", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!14, !10, i64 32}
!14 = !{!"ovl_fs", !15, i64 0, !6, i64 24, !10, i64 32, !15, i64 40}
!15 = !{!"ovl_layer", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!16 = !{!14, !6, i64 24}
!17 = !{!12, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!15, !6, i64 0}
!21 = distinct !{!21, !19}
!22 = !{!14, !6, i64 0}
!23 = !{!12, !6, i64 16}
!24 = !{!14, !6, i64 40}
!25 = !{!12, !6, i64 24}
!26 = distinct !{!26, !19}
!27 = !{!28, !28, i64 0}
!28 = !{!"_Bool", !7, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}


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