; LLVM IR from ERGO-Code/HiGHS :: src/util/HSet.ll (ZNK4HSet5printEv)

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

%class.HSet = type { i32, %"class.std::vector", i8, i8, i8, i8, ptr, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  %9 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 2
  %10 = load i8, ptr %9, align 8, !tbaa !9, !range !17, !noundef !18
  %11 = trunc i8 %10 to i1
  br i1 %11, label %13, label %12

12:                                               ; preds = %1
  br label %136

13:                                               ; preds = %1
  %14 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %15 = load ptr, ptr %14, align 8, !tbaa !19
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %13
  br label %136

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %19 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 1
  %20 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %21 = trunc i64 %20 to i32
  store i32 %21, ptr %3, align 4, !tbaa !20
  %22 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %23 = load ptr, ptr %22, align 8, !tbaa !19
  %24 = load i32, ptr %3, align 4, !tbaa !20
  %25 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 7
  %26 = load i32, ptr %25, align 8, !tbaa !21
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.13, i32 noundef %24, i32 noundef %26) #3
  %28 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %29 = load ptr, ptr %28, align 8, !tbaa !19
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !20
  br label %31

31:                                               ; preds = %54, %18
  %32 = load i32, ptr %4, align 4, !tbaa !20
  %33 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 7
  %34 = load i32, ptr %33, align 8, !tbaa !21
  %35 = icmp sle i32 %32, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %57

37:                                               ; preds = %31
  %38 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 8
  %39 = load i32, ptr %4, align 4, !tbaa !20
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %40) #3
  %42 = load i32, ptr %41, align 4, !tbaa !20
  %43 = icmp ne i32 %42, -1
  br i1 %43, label %44, label %53

44:                                               ; preds = %37
  %45 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %46 = load ptr, ptr %45, align 8, !tbaa !19
  %47 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 8
  %48 = load i32, ptr %4, align 4, !tbaa !20
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %49) #3
  %51 = load i32, ptr %50, align 4, !tbaa !20
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.15, i32 noundef %51) #3
  br label %53

53:                                               ; preds = %44, %37
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %4, align 4, !tbaa !20
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %4, align 4, !tbaa !20
  br label %31, !llvm.loop !22

57:                                               ; preds = %36
  %58 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !19
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.16) #3
  %61 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %62 = load ptr, ptr %61, align 8, !tbaa !19
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !20
  br label %64

64:                                               ; preds = %83, %57
  %65 = load i32, ptr %5, align 4, !tbaa !20
  %66 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 7
  %67 = load i32, ptr %66, align 8, !tbaa !21
  %68 = icmp sle i32 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %86

70:                                               ; preds = %64
  %71 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 8
  %72 = load i32, ptr %5, align 4, !tbaa !20
  %73 = sext i32 %72 to i64
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %73) #3
  %75 = load i32, ptr %74, align 4, !tbaa !20
  %76 = icmp ne i32 %75, -1
  br i1 %76, label %77, label %82

77:                                               ; preds = %70
  %78 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %79 = load ptr, ptr %78, align 8, !tbaa !19
  %80 = load i32, ptr %5, align 4, !tbaa !20
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str.15, i32 noundef %80) #3
  br label %82

82:                                               ; preds = %77, %70
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %5, align 4, !tbaa !20
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %5, align 4, !tbaa !20
  br label %64, !llvm.loop !24

86:                                               ; preds = %69
  %87 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %88 = load ptr, ptr %87, align 8, !tbaa !19
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.16) #3
  %90 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !19
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !20
  br label %93

93:                                               ; preds = %104, %86
  %94 = load i32, ptr %6, align 4, !tbaa !20
  %95 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !25
  %97 = icmp slt i32 %94, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %107

99:                                               ; preds = %93
  %100 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = load i32, ptr %6, align 4, !tbaa !20
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.15, i32 noundef %102) #3
  br label %104

104:                                              ; preds = %99
  %105 = load i32, ptr %6, align 4, !tbaa !20
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %6, align 4, !tbaa !20
  br label %93, !llvm.loop !26

107:                                              ; preds = %98
  %108 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !19
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.16) #3
  %111 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %112 = load ptr, ptr %111, align 8, !tbaa !19
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !20
  br label %114

114:                                              ; preds = %129, %107
  %115 = load i32, ptr %7, align 4, !tbaa !20
  %116 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 0
  %117 = load i32, ptr %116, align 8, !tbaa !25
  %118 = icmp slt i32 %115, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %132

120:                                              ; preds = %114
  %121 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %122 = load ptr, ptr %121, align 8, !tbaa !19
  %123 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 1
  %124 = load i32, ptr %7, align 4, !tbaa !20
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %125) #3
  %127 = load i32, ptr %126, align 4, !tbaa !20
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.15, i32 noundef %127) #3
  br label %129

129:                                              ; preds = %120
  %130 = load i32, ptr %7, align 4, !tbaa !20
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %7, align 4, !tbaa !20
  br label %114, !llvm.loop !27

132:                                              ; preds = %119
  %133 = getelementptr inbounds %class.HSet, ptr %8, i32 0, i32 6
  %134 = load ptr, ptr %133, align 8, !tbaa !19
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %136

136:                                              ; preds = %132, %17, %12
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !16, i64 32}
!10 = !{!"_ZTS4HSet", !11, i64 0, !12, i64 8, !16, i64 32, !16, i64 33, !16, i64 34, !16, i64 35, !6, i64 40, !11, i64 48, !12, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!10, !6, i64 40}
!20 = !{!11, !11, i64 0}
!21 = !{!10, !11, i64 48}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!10, !11, i64 0}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}


; 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.13 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK4HSet5printEv(ptr noundef nonnull align 8 dereferenceable(80) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 32
  %3 = load i8, ptr %2, align 8, !tbaa !5, !range !16, !noundef !17
  %4 = trunc nuw i8 %3 to i1
  br i1 %4, label %5, label %74

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = load ptr, ptr %6, align 8, !tbaa !18
  %8 = icmp eq ptr %7, null
  br i1 %8, label %74, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #2
  %12 = trunc i64 %11 to i32
  %13 = load ptr, ptr %6, align 8, !tbaa !18
  %14 = getelementptr inbounds i8, ptr %0, i64 48
  %15 = load i32, ptr %14, align 8, !tbaa !19
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.13, i32 noundef %12, i32 noundef %15) #2
  %17 = load ptr, ptr %6, align 8, !tbaa !18
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.14) #2
  %19 = load i32, ptr %14, align 8, !tbaa !19
  %.not21 = icmp slt i32 %19, 0
  br i1 %.not21, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %20 = getelementptr inbounds i8, ptr %0, i64 56
  br label %27

._crit_edge:                                      ; preds = %35, %9
  %21 = load ptr, ptr %6, align 8, !tbaa !18
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.16) #2
  %23 = load ptr, ptr %6, align 8, !tbaa !18
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.17) #2
  %25 = load i32, ptr %14, align 8, !tbaa !19
  %.not1823 = icmp slt i32 %25, 0
  br i1 %.not1823, label %._crit_edge27, label %.lr.ph26

.lr.ph26:                                         ; preds = %._crit_edge
  %26 = getelementptr inbounds i8, ptr %0, i64 56
  br label %44

27:                                               ; preds = %.lr.ph, %35
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %35 ]
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv) #2
  %29 = load i32, ptr %28, align 4, !tbaa !20
  %.not20 = icmp eq i32 %29, -1
  br i1 %.not20, label %35, label %30

30:                                               ; preds = %27
  %31 = load ptr, ptr %6, align 8, !tbaa !18
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv) #2
  %33 = load i32, ptr %32, align 4, !tbaa !20
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.15, i32 noundef %33) #2
  br label %35

35:                                               ; preds = %27, %30
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = load i32, ptr %14, align 8, !tbaa !19
  %37 = sext i32 %36 to i64
  %.not.not = icmp slt i64 %indvars.iv, %37
  br i1 %.not.not, label %27, label %._crit_edge, !llvm.loop !21

._crit_edge27:                                    ; preds = %51, %._crit_edge
  %38 = load ptr, ptr %6, align 8, !tbaa !18
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.16) #2
  %40 = load ptr, ptr %6, align 8, !tbaa !18
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.18) #2
  %42 = load i32, ptr %0, align 8, !tbaa !23
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph30, label %._crit_edge31

44:                                               ; preds = %.lr.ph26, %51
  %indvars.iv37 = phi i64 [ 0, %.lr.ph26 ], [ %indvars.iv.next38, %51 ]
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv37) #2
  %46 = load i32, ptr %45, align 4, !tbaa !20
  %.not19 = icmp eq i32 %46, -1
  br i1 %.not19, label %51, label %47

47:                                               ; preds = %44
  %48 = load ptr, ptr %6, align 8, !tbaa !18
  %49 = trunc nuw nsw i64 %indvars.iv37 to i32
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull @.str.15, i32 noundef %49) #2
  br label %51

51:                                               ; preds = %44, %47
  %indvars.iv.next38 = add nuw nsw i64 %indvars.iv37, 1
  %52 = load i32, ptr %14, align 8, !tbaa !19
  %53 = sext i32 %52 to i64
  %.not18.not = icmp slt i64 %indvars.iv37, %53
  br i1 %.not18.not, label %44, label %._crit_edge27, !llvm.loop !24

._crit_edge31:                                    ; preds = %.lr.ph30, %._crit_edge27
  %54 = load ptr, ptr %6, align 8, !tbaa !18
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.16) #2
  %56 = load ptr, ptr %6, align 8, !tbaa !18
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.17) #2
  %58 = load i32, ptr %0, align 8, !tbaa !23
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph34, label %._crit_edge35

.lr.ph30:                                         ; preds = %._crit_edge27, %.lr.ph30
  %.01528 = phi i32 [ %62, %.lr.ph30 ], [ 0, %._crit_edge27 ]
  %60 = load ptr, ptr %6, align 8, !tbaa !18
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.15, i32 noundef %.01528) #2
  %62 = add nuw nsw i32 %.01528, 1
  %63 = load i32, ptr %0, align 8, !tbaa !23
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %.lr.ph30, label %._crit_edge31, !llvm.loop !25

._crit_edge35:                                    ; preds = %.lr.ph34, %._crit_edge31
  %65 = load ptr, ptr %6, align 8, !tbaa !18
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.16) #2
  br label %74

.lr.ph34:                                         ; preds = %._crit_edge31, %.lr.ph34
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %.lr.ph34 ], [ 0, %._crit_edge31 ]
  %67 = load ptr, ptr %6, align 8, !tbaa !18
  %68 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv40) #2
  %69 = load i32, ptr %68, align 4, !tbaa !20
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.15, i32 noundef %69) #2
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %71 = load i32, ptr %0, align 8, !tbaa !23
  %72 = sext i32 %71 to i64
  %73 = icmp slt i64 %indvars.iv.next41, %72
  br i1 %73, label %.lr.ph34, label %._crit_edge35, !llvm.loop !26

74:                                               ; preds = %5, %1, %._crit_edge35
  ret void
}

attributes #0 = { mustprogress 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 = { 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, !15, i64 32}
!6 = !{!"_ZTS4HSet", !7, i64 0, !10, i64 8, !15, i64 32, !15, i64 33, !15, i64 34, !15, i64 35, !14, i64 40, !7, i64 48, !10, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIiSaIiEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"bool", !8, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!6, !14, i64 40}
!19 = !{!6, !7, i64 48}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !7, i64 0}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}


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