; LLVM IR from vul337/PrIntFuzz :: config/linux/firmware/carl9170fw/tools/carlu/src (debug)

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

@debug_level = external dso_local global i32, align 4
@print_message_debug_level = external dso_local global i8, align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @dbg_lvl_to_fh(i32 noundef) #0

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

; Function Attrs: nounwind uwtable
define dso_local void @print_hex_dump_bytes(i32 noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca [58 x i8], align 16
  %10 = alloca [17 x i8], align 16
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  store i64 %3, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 58, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 17, ptr %10) #5
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 17, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %15 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %15, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %16 = getelementptr inbounds [58 x i8], ptr %9, i64 0, i64 0
  store ptr %16, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %17

17:                                               ; preds = %109, %4
  %18 = load i64, ptr %13, align 8, !tbaa !11
  %19 = load i64, ptr %8, align 8, !tbaa !11
  %20 = icmp ult i64 %18, %19
  br i1 %20, label %21, label %112

21:                                               ; preds = %17
  %22 = load i64, ptr %13, align 8, !tbaa !11
  %23 = urem i64 %22, 16
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %25, label %64

25:                                               ; preds = %21
  %26 = load ptr, ptr %12, align 8, !tbaa !9
  %27 = getelementptr inbounds [58 x i8], ptr %9, i64 0, i64 0
  %28 = icmp ne ptr %26, %27
  br i1 %28, label %29, label %57

29:                                               ; preds = %25
  br label %30

30:                                               ; preds = %29
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = load i32, ptr @debug_level, align 4, !tbaa !5
  %33 = icmp ule i32 %31, %32
  br i1 %33, label %34, label %53

34:                                               ; preds = %30
  %35 = load i8, ptr @print_message_debug_level, align 1, !tbaa !13, !range !15, !noundef !16
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %45

37:                                               ; preds = %34
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = call ptr @dbg_lvl_to_fh(i32 noundef %38)
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = load ptr, ptr %6, align 8, !tbaa !9
  %42 = getelementptr inbounds [58 x i8], ptr %9, i64 0, i64 0
  %43 = getelementptr inbounds [17 x i8], ptr %10, i64 0, i64 0
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.3, i32 noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43) #5
  br label %52

45:                                               ; preds = %34
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = call ptr @dbg_lvl_to_fh(i32 noundef %46)
  %48 = load ptr, ptr %6, align 8, !tbaa !9
  %49 = getelementptr inbounds [58 x i8], ptr %9, i64 0, i64 0
  %50 = getelementptr inbounds [17 x i8], ptr %10, i64 0, i64 0
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.4, ptr noundef %48, ptr noundef %49, ptr noundef %50) #5
  br label %52

52:                                               ; preds = %45, %37
  br label %53

53:                                               ; preds = %52, %30
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = getelementptr inbounds [58 x i8], ptr %9, i64 0, i64 0
  store ptr %56, ptr %12, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %55, %25
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  %59 = load i64, ptr %13, align 8, !tbaa !11
  %60 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %58, ptr noundef @.str.5, i64 noundef %59) #5
  %61 = load ptr, ptr %12, align 8, !tbaa !9
  %62 = sext i32 %60 to i64
  %63 = getelementptr inbounds i8, ptr %61, i64 %62
  store ptr %63, ptr %12, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %57, %21
  %65 = load ptr, ptr %12, align 8, !tbaa !9
  %66 = load ptr, ptr %11, align 8, !tbaa !9
  %67 = load i64, ptr %13, align 8, !tbaa !11
  %68 = getelementptr inbounds i8, ptr %66, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !17
  %70 = zext i8 %69 to i32
  %71 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %65, ptr noundef @.str.6, i32 noundef %70) #5
  %72 = load ptr, ptr %12, align 8, !tbaa !9
  %73 = sext i32 %71 to i64
  %74 = getelementptr inbounds i8, ptr %72, i64 %73
  store ptr %74, ptr %12, align 8, !tbaa !9
  %75 = call ptr @__ctype_b_loc() #6
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = load ptr, ptr %11, align 8, !tbaa !9
  %78 = load i64, ptr %13, align 8, !tbaa !11
  %79 = getelementptr inbounds i8, ptr %77, i64 %78
  %80 = load i8, ptr %79, align 1, !tbaa !17
  %81 = zext i8 %80 to i32
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i16, ptr %76, i64 %82
  %84 = load i16, ptr %83, align 2, !tbaa !18
  %85 = zext i16 %84 to i32
  %86 = and i32 %85, 16384
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %102

88:                                               ; preds = %64
  %89 = load ptr, ptr %11, align 8, !tbaa !9
  %90 = load i64, ptr %13, align 8, !tbaa !11
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !17
  %93 = zext i8 %92 to i32
  %94 = and i32 %93, -128
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %102

96:                                               ; preds = %88
  %97 = load ptr, ptr %11, align 8, !tbaa !9
  %98 = load i64, ptr %13, align 8, !tbaa !11
  %99 = getelementptr inbounds i8, ptr %97, i64 %98
  %100 = load i8, ptr %99, align 1, !tbaa !17
  %101 = zext i8 %100 to i32
  br label %103

102:                                              ; preds = %88, %64
  br label %103

103:                                              ; preds = %102, %96
  %104 = phi i32 [ %101, %96 ], [ 46, %102 ]
  %105 = trunc i32 %104 to i8
  %106 = load i64, ptr %13, align 8, !tbaa !11
  %107 = urem i64 %106, 16
  %108 = getelementptr inbounds [17 x i8], ptr %10, i64 0, i64 %107
  store i8 %105, ptr %108, align 1, !tbaa !17
  br label %109

109:                                              ; preds = %103
  %110 = load i64, ptr %13, align 8, !tbaa !11
  %111 = add i64 %110, 1
  store i64 %111, ptr %13, align 8, !tbaa !11
  br label %17, !llvm.loop !20

112:                                              ; preds = %17
  %113 = load ptr, ptr %12, align 8, !tbaa !9
  %114 = getelementptr inbounds [58 x i8], ptr %9, i64 0, i64 0
  %115 = icmp ne ptr %113, %114
  br i1 %115, label %116, label %167

116:                                              ; preds = %112
  %117 = load i64, ptr %13, align 8, !tbaa !11
  %118 = urem i64 %117, 16
  %119 = icmp ne i64 %118, 0
  br i1 %119, label %120, label %140

120:                                              ; preds = %116
  %121 = load i64, ptr %13, align 8, !tbaa !11
  %122 = urem i64 %121, 16
  %123 = getelementptr inbounds [17 x i8], ptr %10, i64 0, i64 %122
  store i8 0, ptr %123, align 1, !tbaa !17
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %124

124:                                              ; preds = %136, %120
  %125 = load i64, ptr %14, align 8, !tbaa !11
  %126 = load i64, ptr %13, align 8, !tbaa !11
  %127 = urem i64 %126, 16
  %128 = sub i64 16, %127
  %129 = icmp ult i64 %125, %128
  br i1 %129, label %130, label %139

130:                                              ; preds = %124
  %131 = load ptr, ptr %12, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %131, ptr noundef @.str.7) #5
  %133 = load ptr, ptr %12, align 8, !tbaa !9
  %134 = sext i32 %132 to i64
  %135 = getelementptr inbounds i8, ptr %133, i64 %134
  store ptr %135, ptr %12, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %130
  %137 = load i64, ptr %14, align 8, !tbaa !11
  %138 = add i64 %137, 1
  store i64 %138, ptr %14, align 8, !tbaa !11
  br label %124, !llvm.loop !22

139:                                              ; preds = %124
  br label %140

140:                                              ; preds = %139, %116
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %5, align 4, !tbaa !5
  %143 = load i32, ptr @debug_level, align 4, !tbaa !5
  %144 = icmp ule i32 %142, %143
  br i1 %144, label %145, label %164

145:                                              ; preds = %141
  %146 = load i8, ptr @print_message_debug_level, align 1, !tbaa !13, !range !15, !noundef !16
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %156

148:                                              ; preds = %145
  %149 = load i32, ptr %5, align 4, !tbaa !5
  %150 = call ptr @dbg_lvl_to_fh(i32 noundef %149)
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = load ptr, ptr %6, align 8, !tbaa !9
  %153 = getelementptr inbounds [58 x i8], ptr %9, i64 0, i64 0
  %154 = getelementptr inbounds [17 x i8], ptr %10, i64 0, i64 0
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.3, i32 noundef %151, ptr noundef %152, ptr noundef %153, ptr noundef %154) #5
  br label %163

156:                                              ; preds = %145
  %157 = load i32, ptr %5, align 4, !tbaa !5
  %158 = call ptr @dbg_lvl_to_fh(i32 noundef %157)
  %159 = load ptr, ptr %6, align 8, !tbaa !9
  %160 = getelementptr inbounds [58 x i8], ptr %9, i64 0, i64 0
  %161 = getelementptr inbounds [17 x i8], ptr %10, i64 0, i64 0
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str.4, ptr noundef %159, ptr noundef %160, ptr noundef %161) #5
  br label %163

163:                                              ; preds = %156, %148
  br label %164

164:                                              ; preds = %163, %141
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 17, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 58, ptr %9) #5
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #4

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

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind willreturn memory(none) "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 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


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

@debug_level = external dso_local local_unnamed_addr global i32, align 4
@print_message_debug_level = external dso_local local_unnamed_addr global i8, align 1
@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @print_hex_dump_bytes(i32 noundef %0, ptr noundef %1, ptr nocapture noundef readonly %2, i64 noundef %3) local_unnamed_addr #0 {
  %5 = alloca [58 x i8], align 16
  %6 = alloca [17 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 58, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 17, ptr nonnull %6) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(17) %6, i8 0, i64 17, i1 false)
  %.not56 = icmp eq i64 %3, 0
  br i1 %.not56, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %4, %23
  %.03952 = phi i64 [ %40, %23 ], [ 0, %4 ]
  %.04051 = phi ptr [ %29, %23 ], [ %5, %4 ]
  %7 = and i64 %.03952, 15
  %8 = icmp eq i64 %7, 0
  br i1 %8, label %9, label %23

9:                                                ; preds = %.lr.ph
  %.not48 = icmp eq ptr %.04051, %5
  %10 = load i32, ptr @debug_level, align 4
  %.not49 = icmp ult i32 %10, %0
  %or.cond62 = select i1 %.not48, i1 true, i1 %.not49
  br i1 %or.cond62, label %19, label %11

11:                                               ; preds = %9
  %12 = load i8, ptr @print_message_debug_level, align 1, !tbaa !5, !range !9, !noundef !10
  %13 = trunc nuw i8 %12 to i1
  %14 = call ptr @dbg_lvl_to_fh(i32 noundef %0)
  br i1 %13, label %15, label %17

15:                                               ; preds = %11
  %16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.3, i32 noundef %0, ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  br label %19

17:                                               ; preds = %11
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.4, ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  br label %19

19:                                               ; preds = %17, %15, %9
  %20 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %.03952) #5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i8, ptr %5, i64 %21
  br label %23

23:                                               ; preds = %19, %.lr.ph
  %.2 = phi ptr [ %22, %19 ], [ %.04051, %.lr.ph ]
  %24 = getelementptr inbounds i8, ptr %2, i64 %.03952
  %25 = load i8, ptr %24, align 1, !tbaa !11
  %26 = zext i8 %25 to i32
  %27 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.2, ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %26) #5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i8, ptr %.2, i64 %28
  %30 = tail call ptr @__ctype_b_loc() #6
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  %32 = load i8, ptr %24, align 1, !tbaa !11
  %33 = zext i8 %32 to i64
  %34 = getelementptr inbounds i16, ptr %31, i64 %33
  %35 = load i16, ptr %34, align 2, !tbaa !14
  %36 = and i16 %35, 16384
  %.not50 = icmp ne i16 %36, 0
  %37 = icmp sgt i8 %32, -1
  %or.cond = and i1 %37, %.not50
  %38 = select i1 %or.cond, i8 %32, i8 46
  %39 = getelementptr inbounds [17 x i8], ptr %6, i64 0, i64 %7
  store i8 %38, ptr %39, align 1, !tbaa !11
  %40 = add nuw i64 %.03952, 1
  %exitcond.not = icmp eq i64 %40, %3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge:                                      ; preds = %23
  %41 = and i64 %3, 15
  %.not = icmp eq ptr %29, %5
  br i1 %.not, label %._crit_edge.thread, label %42

42:                                               ; preds = %._crit_edge
  %.not46 = icmp eq i64 %41, 0
  br i1 %.not46, label %.loopexit, label %43

43:                                               ; preds = %42
  %44 = getelementptr inbounds [17 x i8], ptr %6, i64 0, i64 %41
  store i8 0, ptr %44, align 1, !tbaa !11
  %45 = sub nuw nsw i64 16, %41
  br label %46

46:                                               ; preds = %43, %46
  %.055 = phi i64 [ 0, %43 ], [ %50, %46 ]
  %.354 = phi ptr [ %29, %43 ], [ %49, %46 ]
  %47 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %.354, ptr noundef nonnull dereferenceable(1) @.str.7) #5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %.354, i64 %48
  %50 = add nuw nsw i64 %.055, 1
  %exitcond58.not = icmp eq i64 %50, %45
  br i1 %exitcond58.not, label %.loopexit, label %46, !llvm.loop !18

.loopexit:                                        ; preds = %46, %42
  %51 = load i32, ptr @debug_level, align 4, !tbaa !19
  %.not47 = icmp ult i32 %51, %0
  br i1 %.not47, label %._crit_edge.thread, label %52

52:                                               ; preds = %.loopexit
  %53 = load i8, ptr @print_message_debug_level, align 1, !tbaa !5, !range !9, !noundef !10
  %54 = trunc nuw i8 %53 to i1
  %55 = call ptr @dbg_lvl_to_fh(i32 noundef %0)
  br i1 %54, label %56, label %58

56:                                               ; preds = %52
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.3, i32 noundef %0, ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  br label %._crit_edge.thread

58:                                               ; preds = %52
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.4, ptr noundef %1, ptr noundef nonnull %5, ptr noundef nonnull %6) #5
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %4, %.loopexit, %58, %56, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 17, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 58, ptr nonnull %5) #5
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #4

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

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" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}


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