; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z17hmt_run_all_testsv)

; 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.hmt_category_struct = type { ptr, i32, ptr }
%struct.hmt_test_struct = type { ptr, ptr }
%struct.hmt_testresult_struct = type { i32, i32 }

@_hmt_num_categories = external dso_local global i32, align 4
@_hmt_categories = external dso_local global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z17hmt_run_all_testsv() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.hmt_category_struct, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.hmt_test_struct, align 8
  %11 = alloca %struct.hmt_testresult_struct, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %93, %0
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = load i32, ptr @_hmt_num_categories, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %96

17:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  %18 = load ptr, ptr @_hmt_categories, align 8, !tbaa !9
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds %struct.hmt_category_struct, ptr %18, i64 %20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  %22 = getelementptr inbounds %struct.hmt_category_struct, ptr %6, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  %24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %71, %17
  %26 = load i32, ptr %9, align 4, !tbaa !5
  %27 = getelementptr inbounds %struct.hmt_category_struct, ptr %6, i32 0, i32 1
  %28 = load i32, ptr %27, align 8, !tbaa !14
  %29 = icmp slt i32 %26, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %74

31:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %32 = getelementptr inbounds %struct.hmt_category_struct, ptr %6, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds %struct.hmt_test_struct, ptr %33, i64 %35
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %36, i64 16, i1 false), !tbaa.struct !16
  %37 = getelementptr inbounds %struct.hmt_test_struct, ptr %10, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 4 %11, i8 0, i64 8, i1 false)
  %40 = getelementptr inbounds %struct.hmt_test_struct, ptr %10, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  call void %41(ptr noundef %11)
  %42 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %11, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !20
  %44 = load i32, ptr %8, align 4, !tbaa !5
  %45 = add nsw i32 %44, %43
  store i32 %45, ptr %8, align 4, !tbaa !5
  %46 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %11, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !20
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %49, label %61

49:                                               ; preds = %31
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %7, align 4, !tbaa !5
  %52 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %11, i32 0, i32 0
  %53 = load i32, ptr %52, align 4, !tbaa !22
  %54 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %11, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !20
  %56 = sub nsw i32 %53, %55
  %57 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %11, i32 0, i32 0
  %58 = load i32, ptr %57, align 4, !tbaa !22
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %56, i32 noundef %58)
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %70

61:                                               ; preds = %31
  %62 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %11, i32 0, i32 0
  %63 = load i32, ptr %62, align 4, !tbaa !22
  %64 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %11, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !20
  %66 = sub nsw i32 %63, %65
  %67 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %11, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %66, i32 noundef %68)
  br label %70

70:                                               ; preds = %61, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %9, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %9, align 4, !tbaa !5
  br label %25, !llvm.loop !23

74:                                               ; preds = %30
  %75 = getelementptr inbounds %struct.hmt_category_struct, ptr %6, i32 0, i32 1
  %76 = load i32, ptr %75, align 8, !tbaa !14
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = add nsw i32 %77, %76
  store i32 %78, ptr %1, align 4, !tbaa !5
  %79 = load i32, ptr %7, align 4, !tbaa !5
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = add nsw i32 %80, %79
  store i32 %81, ptr %2, align 4, !tbaa !5
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = add nsw i32 %83, %82
  store i32 %84, ptr %3, align 4, !tbaa !5
  %85 = getelementptr inbounds %struct.hmt_category_struct, ptr %6, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !14
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = sub nsw i32 %86, %87
  %89 = getelementptr inbounds %struct.hmt_category_struct, ptr %6, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !14
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %88, i32 noundef %90, i32 noundef %91)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  br label %93

93:                                               ; preds = %74
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %4, align 4, !tbaa !5
  br label %12, !llvm.loop !25

96:                                               ; preds = %16
  %97 = load i32, ptr %2, align 4, !tbaa !5
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %96
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %103

101:                                              ; preds = %96
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %103

103:                                              ; preds = %101, %99
  %104 = load i32, ptr %1, align 4, !tbaa !5
  %105 = load i32, ptr %2, align 4, !tbaa !5
  %106 = sub nsw i32 %104, %105
  %107 = load i32, ptr %1, align 4, !tbaa !5
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %106, i32 noundef %107, i32 noundef %108)
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %111 = load i32, ptr %2, align 4, !tbaa !5
  %112 = icmp sgt i32 %111, 0
  %113 = zext i1 %112 to i32
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %113
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 8, !9, i64 8, i64 4, !5, i64 16, i64 8, !9}
!12 = !{!13, !10, i64 0}
!13 = !{!"_ZTS19hmt_category_struct", !10, i64 0, !6, i64 8, !10, i64 16}
!14 = !{!13, !6, i64 8}
!15 = !{!13, !10, i64 16}
!16 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTS15hmt_test_struct", !10, i64 0, !10, i64 8}
!19 = !{!18, !10, i64 8}
!20 = !{!21, !6, i64 4}
!21 = !{!"_ZTS21hmt_testresult_struct", !6, i64 0, !6, i64 4}
!22 = !{!21, !6, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


; 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.hmt_testresult_struct = type { i32, i32 }
%struct.hmt_category_struct = type { ptr, i32, ptr }
%struct.hmt_test_struct = type { ptr, ptr }

@_hmt_num_categories = external dso_local local_unnamed_addr global i32, align 4
@_hmt_categories = external dso_local local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z17hmt_run_all_testsv() local_unnamed_addr #2 {
  %1 = alloca %struct.hmt_testresult_struct, align 8
  %2 = load i32, ptr @_hmt_num_categories, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.lr.ph44, label %._crit_edge45.thread

.lr.ph44:                                         ; preds = %0
  %4 = getelementptr inbounds i8, ptr %1, i64 4
  br label %7

._crit_edge45:                                    ; preds = %._crit_edge
  %5 = icmp sgt i32 %13, 0
  %spec.select = select i1 %5, ptr @.str.7, ptr @.str.8
  %6 = zext i1 %5 to i32
  br label %._crit_edge45.thread

7:                                                ; preds = %.lr.ph44, %._crit_edge
  %indvars.iv53 = phi i64 [ 0, %.lr.ph44 ], [ %indvars.iv.next54, %._crit_edge ]
  %.042 = phi i32 [ 0, %.lr.ph44 ], [ %12, %._crit_edge ]
  %.02741 = phi i32 [ 0, %.lr.ph44 ], [ %13, %._crit_edge ]
  %.03140 = phi i32 [ 0, %.lr.ph44 ], [ %14, %._crit_edge ]
  %8 = load ptr, ptr @_hmt_categories, align 8, !tbaa !9
  %9 = getelementptr inbounds %struct.hmt_category_struct, ptr %8, i64 %indvars.iv53
  %.sroa.09.0.copyload = load ptr, ptr %9, align 8, !tbaa !9
  %.sroa.410.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  %.sroa.410.0.copyload = load i32, ptr %.sroa.410.0..sroa_idx, align 8, !tbaa !5
  %.sroa.814.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 16
  %.sroa.814.0.copyload = load ptr, ptr %.sroa.814.0..sroa_idx, align 8, !tbaa !9
  %10 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %.sroa.09.0.copyload)
  %11 = icmp sgt i32 %.sroa.410.0.copyload, 0
  br i1 %11, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %7
  %wide.trip.count = zext nneg i32 %.sroa.410.0.copyload to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %35, %7
  %.030.lcssa = phi i32 [ 0, %7 ], [ %.1, %35 ]
  %.029.lcssa = phi i32 [ 0, %7 ], [ %23, %35 ]
  %12 = add nsw i32 %.sroa.410.0.copyload, %.042
  %13 = add nsw i32 %.030.lcssa, %.02741
  %14 = add nsw i32 %.029.lcssa, %.03140
  %15 = sub nsw i32 %.sroa.410.0.copyload, %.030.lcssa
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %15, i32 noundef %.sroa.410.0.copyload, i32 noundef %.029.lcssa)
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %17 = load i32, ptr @_hmt_num_categories, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = icmp slt i64 %indvars.iv.next54, %18
  br i1 %19, label %7, label %._crit_edge45, !llvm.loop !11

.lr.ph:                                           ; preds = %.lr.ph.preheader, %35
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %35 ]
  %.02936 = phi i32 [ 0, %.lr.ph.preheader ], [ %23, %35 ]
  %.03035 = phi i32 [ 0, %.lr.ph.preheader ], [ %.1, %35 ]
  %20 = getelementptr inbounds %struct.hmt_test_struct, ptr %.sroa.814.0.copyload, i64 %indvars.iv
  %.sroa.0.0.copyload = load ptr, ptr %20, align 8, !tbaa !9
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %20, i64 8
  %.sroa.4.0.copyload = load ptr, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %.sroa.0.0.copyload)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
  store i64 0, ptr %1, align 8
  call void %.sroa.4.0.copyload(ptr noundef nonnull %1)
  %22 = load i32, ptr %4, align 4, !tbaa !13
  %23 = add nsw i32 %22, %.02936
  %24 = icmp sgt i32 %22, 0
  br i1 %24, label %25, label %31

25:                                               ; preds = %.lr.ph
  %26 = add nsw i32 %.03035, 1
  %27 = load i32, ptr %1, align 8, !tbaa !15
  %28 = sub nsw i32 %27, %22
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %28, i32 noundef %27)
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %35

31:                                               ; preds = %.lr.ph
  %32 = load i32, ptr %1, align 8, !tbaa !15
  %33 = sub nsw i32 %32, %22
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %33, i32 noundef %32)
  br label %35

35:                                               ; preds = %31, %25
  %.1 = phi i32 [ %26, %25 ], [ %.03035, %31 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
  %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_edge45.thread:                             ; preds = %._crit_edge45, %0
  %.str.8.sink = phi ptr [ @.str.8, %0 ], [ %spec.select, %._crit_edge45 ]
  %36 = phi i32 [ 0, %0 ], [ %6, %._crit_edge45 ]
  %.0.lcssa63 = phi i32 [ 0, %0 ], [ %12, %._crit_edge45 ]
  %.027.lcssa61 = phi i32 [ 0, %0 ], [ %13, %._crit_edge45 ]
  %.031.lcssa59 = phi i32 [ 0, %0 ], [ %14, %._crit_edge45 ]
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.8.sink)
  %38 = sub nsw i32 %.0.lcssa63, %.027.lcssa61
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %38, i32 noundef %.0.lcssa63, i32 noundef %.031.lcssa59)
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  ret i32 %36
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !6, i64 4}
!14 = !{!"_ZTS21hmt_testresult_struct", !6, i64 0, !6, i64 4}
!15 = !{!14, !6, i64 0}
!16 = distinct !{!16, !12}


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