; LLVM IR from recp/ds :: test (runner)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@tests = external hidden global [9 x %struct.test_entry_t], align 16
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [144 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.test_status_t, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.test_status_t, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  store i32 9, ptr %9, align 4, !tbaa !5
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str, ptr noundef @.str.1) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %40, %2
  %22 = load i32, ptr %8, align 4, !tbaa !5
  %23 = load i32, ptr %9, align 4, !tbaa !5
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %25, label %43

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds %struct.test_entry_t, ptr @tests, i64 %27
  store ptr %28, ptr %6, align 8, !tbaa !9
  %29 = load ptr, ptr %6, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.test_entry_t, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = call i64 @strlen(ptr noundef %31) #6
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %17, align 4, !tbaa !5
  %34 = load i32, ptr %17, align 4, !tbaa !5
  %35 = load i32, ptr %12, align 4, !tbaa !5
  %36 = icmp sgt i32 %34, %35
  br i1 %36, label %37, label %39

37:                                               ; preds = %25
  %38 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %38, ptr %12, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %37, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %40

40:                                               ; preds = %39
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %8, align 4, !tbaa !5
  br label %21, !llvm.loop !15

43:                                               ; preds = %21
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = add nsw i32 %44, 5
  store i32 %45, ptr %12, align 4, !tbaa !5
  %46 = load ptr, ptr @stderr, align 8, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !5
  %48 = load i32, ptr %12, align 4, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.2, i32 noundef %47, ptr noundef @.str.3, i32 noundef %48, ptr noundef @.str.4) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %121, %43
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %54, label %124

54:                                               ; preds = %50
  %55 = load i32, ptr %8, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds %struct.test_entry_t, ptr @tests, i64 %56
  store ptr %57, ptr %6, align 8, !tbaa !9
  %58 = call i64 @clock() #5
  %59 = sitofp i64 %58 to double
  store double %59, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %60 = load ptr, ptr %6, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.test_entry_t, ptr %60, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = call { ptr, i32 } %62()
  %64 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %65 = extractvalue { ptr, i32 } %63, 0
  store ptr %65, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %67 = extractvalue { ptr, i32 } %63, 1
  store i32 %67, ptr %66, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  %68 = call i64 @clock() #5
  %69 = sitofp i64 %68 to double
  store double %69, ptr %14, align 8, !tbaa !11
  %70 = load double, ptr %14, align 8, !tbaa !11
  %71 = load double, ptr %13, align 8, !tbaa !11
  %72 = fsub double %70, %71
  %73 = fdiv double %72, 1.000000e+06
  store double %73, ptr %15, align 8, !tbaa !11
  %74 = load double, ptr %15, align 8, !tbaa !11
  %75 = load double, ptr %16, align 8, !tbaa !11
  %76 = fadd double %75, %74
  store double %76, ptr %16, align 8, !tbaa !11
  %77 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 1
  %78 = load i32, ptr %77, align 8, !tbaa !19
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %99, label %80

80:                                               ; preds = %54
  %81 = load ptr, ptr @stderr, align 8, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.test_entry_t, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.5, ptr noundef %84) #5
  %86 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !21
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %94

89:                                               ; preds = %80
  %90 = load ptr, ptr @stderr, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.6, ptr noundef %92) #5
  br label %94

94:                                               ; preds = %89, %80
  %95 = load ptr, ptr @stderr, align 8, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.7) #5
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %11, align 4, !tbaa !5
  br label %120

99:                                               ; preds = %54
  %100 = load ptr, ptr @stderr, align 8, !tbaa !9
  %101 = load i32, ptr %12, align 4, !tbaa !5
  %102 = load ptr, ptr %6, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.test_entry_t, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.8, i32 noundef %101, ptr noundef %104) #5
  %106 = load double, ptr %15, align 8, !tbaa !11
  %107 = fcmp ogt double %106, 1.000000e-02
  br i1 %107, label %108, label %112

108:                                              ; preds = %99
  %109 = load ptr, ptr @stderr, align 8, !tbaa !9
  %110 = load double, ptr %15, align 8, !tbaa !11
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.9, double noundef %110) #5
  br label %115

112:                                              ; preds = %99
  %113 = load ptr, ptr @stderr, align 8, !tbaa !9
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.10) #5
  br label %115

115:                                              ; preds = %112, %108
  %116 = load ptr, ptr @stderr, align 8, !tbaa !9
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.11) #5
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %10, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %115, %94
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %8, align 4, !tbaa !5
  br label %50, !llvm.loop !22

124:                                              ; preds = %50
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %124
  %128 = load ptr, ptr @stderr, align 8, !tbaa !9
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.12) #5
  br label %130

130:                                              ; preds = %127, %124
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = load double, ptr %16, align 8, !tbaa !11
  %133 = load i32, ptr %9, align 4, !tbaa !5
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = icmp sgt i32 %135, 1
  %137 = zext i1 %136 to i64
  %138 = select i1 %136, ptr @.str.14, ptr @.str.15
  %139 = load i32, ptr %11, align 4, !tbaa !5
  %140 = load i32, ptr %11, align 4, !tbaa !5
  %141 = icmp sgt i32 %140, 1
  %142 = zext i1 %141 to i64
  %143 = select i1 %141, ptr @.str.14, ptr @.str.15
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str.13, ptr noundef @.str.1, double noundef %132, i32 noundef %133, i32 noundef %134, ptr noundef %138, i32 noundef %139, ptr noundef %143) #5
  %145 = load i32, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  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 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  ret i32 %145
}

; 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 willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

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

; Function Attrs: nounwind
declare i64 @clock() #2

; 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) #4

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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"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 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"test_entry_t", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 20}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!14, !10, i64 8}
!18 = !{i64 0, i64 8, !9, i64 8, i64 4, !5}
!19 = !{!20, !6, i64 8}
!20 = !{!"test_status_t", !10, i64 0, !6, i64 8}
!21 = !{!20, !10, i64 0}
!22 = distinct !{!22, !16}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@tests = external hidden local_unnamed_addr global [9 x %struct.test_entry_t], align 16
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [144 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = load ptr, ptr @stderr, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #5
  %5 = load ptr, ptr @tests, align 16, !tbaa !9
  %6 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #6
  %7 = trunc i64 %6 to i32
  %8 = load ptr, ptr getelementptr inbounds (i8, ptr @tests, i64 24), align 8, !tbaa !9
  %9 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %8) #6
  %10 = trunc i64 %9 to i32
  %spec.select = tail call i32 @llvm.smax.i32(i32 %7, i32 %10)
  %11 = load ptr, ptr getelementptr inbounds (i8, ptr @tests, i64 48), align 16, !tbaa !9
  %12 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %11) #6
  %13 = trunc i64 %12 to i32
  %spec.select.1 = tail call i32 @llvm.smax.i32(i32 %spec.select, i32 %13)
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @tests, i64 72), align 8, !tbaa !9
  %15 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %16 = trunc i64 %15 to i32
  %spec.select.2 = tail call i32 @llvm.smax.i32(i32 %spec.select.1, i32 %16)
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @tests, i64 96), align 16, !tbaa !9
  %18 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %17) #6
  %19 = trunc i64 %18 to i32
  %spec.select.3 = tail call i32 @llvm.smax.i32(i32 %spec.select.2, i32 %19)
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @tests, i64 120), align 8, !tbaa !9
  %21 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %20) #6
  %22 = trunc i64 %21 to i32
  %spec.select.4 = tail call i32 @llvm.smax.i32(i32 %spec.select.3, i32 %22)
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @tests, i64 144), align 16, !tbaa !9
  %24 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %23) #6
  %25 = trunc i64 %24 to i32
  %spec.select.5 = tail call i32 @llvm.smax.i32(i32 %spec.select.4, i32 %25)
  %26 = load ptr, ptr getelementptr inbounds (i8, ptr @tests, i64 168), align 8, !tbaa !9
  %27 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %26) #6
  %28 = trunc i64 %27 to i32
  %spec.select.6 = tail call i32 @llvm.smax.i32(i32 %spec.select.5, i32 %28)
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @tests, i64 192), align 16, !tbaa !9
  %30 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %29) #6
  %31 = trunc i64 %30 to i32
  %spec.select.7 = tail call i32 @llvm.smax.i32(i32 %spec.select.6, i32 %31)
  %spec.select.8 = tail call i32 @llvm.smax.i32(i32 %spec.select.7, i32 0)
  %32 = add nuw nsw i32 %spec.select.8, 5
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.2, i32 noundef %32, ptr noundef nonnull @.str.3, i32 noundef %32, ptr noundef nonnull @.str.4) #5
  br label %35

35:                                               ; preds = %2, %72
  %indvars.iv = phi i64 [ 0, %2 ], [ %indvars.iv.next, %72 ]
  %.03752 = phi i32 [ 0, %2 ], [ %.138, %72 ]
  %.03951 = phi i32 [ 0, %2 ], [ %.140, %72 ]
  %.04150 = phi double [ 0.000000e+00, %2 ], [ %48, %72 ]
  %36 = getelementptr inbounds %struct.test_entry_t, ptr @tests, i64 %indvars.iv
  %37 = tail call i64 @clock() #7
  %38 = sitofp i64 %37 to double
  %39 = getelementptr inbounds i8, ptr %36, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  %41 = tail call { ptr, i32 } %40() #7
  %42 = extractvalue { ptr, i32 } %41, 0
  %43 = extractvalue { ptr, i32 } %41, 1
  %44 = tail call i64 @clock() #7
  %45 = sitofp i64 %44 to double
  %46 = fsub double %45, %38
  %47 = fdiv double %46, 1.000000e+06
  %48 = fadd double %.04150, %47
  %.not = icmp eq i32 %43, 0
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = load ptr, ptr %36, align 8, !tbaa !9
  br i1 %.not, label %51, label %60

51:                                               ; preds = %35
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.5, ptr noundef %50) #5
  %.not47 = icmp eq ptr %42, null
  br i1 %.not47, label %56, label %53

53:                                               ; preds = %51
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.6, ptr noundef nonnull %42) #5
  br label %56

56:                                               ; preds = %53, %51
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.7) #5
  %59 = add nsw i32 %.03951, 1
  br label %72

60:                                               ; preds = %35
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.8, i32 noundef %32, ptr noundef %50) #5
  %62 = fcmp ogt double %47, 1.000000e-02
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  br i1 %62, label %64, label %66

64:                                               ; preds = %60
  %65 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.9, double noundef %47) #5
  br label %68

66:                                               ; preds = %60
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.10) #5
  br label %68

68:                                               ; preds = %66, %64
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.11) #5
  %71 = add nsw i32 %.03752, 1
  br label %72

72:                                               ; preds = %56, %68
  %.140 = phi i32 [ %.03951, %68 ], [ %59, %56 ]
  %.138 = phi i32 [ %71, %68 ], [ %.03752, %56 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 9
  br i1 %exitcond.not, label %73, label %35, !llvm.loop !13

73:                                               ; preds = %72
  %74 = icmp eq i32 %.140, 0
  br i1 %74, label %75, label %78

75:                                               ; preds = %73
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.12) #5
  br label %78

78:                                               ; preds = %75, %73
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = icmp sgt i32 %.138, 1
  %81 = select i1 %80, ptr @.str.14, ptr @.str.15
  %82 = icmp sgt i32 %.140, 1
  %83 = select i1 %82, ptr @.str.14, ptr @.str.15
  %84 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, double noundef %48, i32 noundef 9, i32 noundef %.138, ptr noundef nonnull %81, i32 noundef %.140, ptr noundef nonnull %83) #5
  ret i32 %.140
}

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

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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 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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { cold nounwind }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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 = !{!"test_entry_t", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass