; LLVM IR from EntityFX/anybench :: src/benchmarks/generic/busspeedil (busspeed)

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

@andsumx = external dso_local global i32, align 4
@wordBytes = external dso_local global i32, align 4
@runSecs = external dso_local global double, align 8
@secs = external global double, align 8
@passes1 = external dso_local global i32, align 4
@memoryKBytes = external dso_local global [20 x i32], align 16
@mbpersec = external dso_local global [20 x i32], align 16
@ipass = external dso_local global i32, align 4
@memoryWords = external dso_local global i32, align 4
@memoryMB = external dso_local global double, align 8
@andsum1 = external dso_local global i32, align 4
@array = external dso_local global [16779000 x i32], align 16
@wordsToTest = external dso_local global i32, align 4
@testToRun = external dso_local global i32, align 4
@resultchars = external dso_local global [1000 x i8], align 16
@.str = external hidden unnamed_addr constant [53 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @checkTime() #0

; Function Attrs: nounwind uwtable
define dso_local i32 @calcPass() #0 {
  %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 i32, align 4
  %7 = alloca [10 x double], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #4
  %8 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 0
  store double 3.200000e+01, ptr %8, align 16, !tbaa !5
  %9 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 1
  store double 1.600000e+01, ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 2
  store double 8.000000e+00, ptr %10, align 16, !tbaa !5
  %11 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 3
  store double 4.000000e+00, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 4
  store double 2.000000e+00, ptr %12, align 16, !tbaa !5
  %13 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 5
  store double 1.000000e+00, ptr %13, align 8, !tbaa !5
  store i32 16, ptr @memoryKBytes, align 16, !tbaa !9
  store i32 32, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 1), align 4, !tbaa !9
  store i32 64, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 2), align 8, !tbaa !9
  store i32 128, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 3), align 4, !tbaa !9
  store i32 256, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 4), align 16, !tbaa !9
  store i32 512, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 5), align 4, !tbaa !9
  store i32 1024, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 6), align 8, !tbaa !9
  store i32 4096, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 7), align 4, !tbaa !9
  store i32 16384, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 8), align 16, !tbaa !9
  store i32 65536, ptr getelementptr inbounds ([20 x i32], ptr @memoryKBytes, i64 0, i64 9), align 4, !tbaa !9
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %21, %0
  %15 = load i32, ptr %1, align 4, !tbaa !9
  %16 = icmp slt i32 %15, 20
  br i1 %16, label %17, label %24

17:                                               ; preds = %14
  %18 = load i32, ptr %1, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [20 x i32], ptr @mbpersec, i64 0, i64 %19
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %17
  %22 = load i32, ptr %1, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %1, align 4, !tbaa !9
  br label %14, !llvm.loop !11

24:                                               ; preds = %14
  %25 = load i32, ptr @ipass, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [20 x i32], ptr @memoryKBytes, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = uitofp i32 %28 to double
  %30 = fmul double %29, 1.024000e+03
  %31 = load i32, ptr @wordBytes, align 4, !tbaa !9
  %32 = uitofp i32 %31 to double
  %33 = fdiv double %30, %32
  %34 = fptosi double %33 to i32
  store i32 %34, ptr @memoryWords, align 4, !tbaa !9
  %35 = load i32, ptr @ipass, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [20 x i32], ptr @memoryKBytes, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = uitofp i32 %38 to double
  %40 = fmul double %39, 1.024000e+03
  %41 = fdiv double %40, 1.000000e+06
  store double %41, ptr @memoryMB, align 8, !tbaa !5
  store i32 1431655765, ptr @andsum1, align 4, !tbaa !9
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %52, %24
  %43 = load i32, ptr %1, align 4, !tbaa !9
  %44 = load i32, ptr @memoryWords, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1000
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %47, label %55

47:                                               ; preds = %42
  %48 = load i32, ptr @andsum1, align 4, !tbaa !9
  %49 = load i32, ptr %1, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [16779000 x i32], ptr @array, i64 0, i64 %50
  store i32 %48, ptr %51, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %47
  %53 = load i32, ptr %1, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %1, align 4, !tbaa !9
  br label %42, !llvm.loop !13

55:                                               ; preds = %42
  store i32 7, ptr %6, align 4, !tbaa !9
  %56 = load i32, ptr @memoryWords, align 4, !tbaa !9
  store volatile i32 %56, ptr @wordsToTest, align 4, !tbaa !9
  store volatile i32 1, ptr @testToRun, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %85, %55
  %58 = load volatile i32, ptr @testToRun, align 4, !tbaa !9
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %61, label %88

61:                                               ; preds = %57
  %62 = load volatile i32, ptr @testToRun, align 4, !tbaa !9
  %63 = sub nsw i32 %62, 1
  store i32 %63, ptr %5, align 4, !tbaa !9
  store volatile i32 1, ptr @passes1, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %65, %61
  call void (...) @start_time()
  call void @runAll()
  call void (...) @end_time()
  call void @checkTime()
  br label %65

65:                                               ; preds = %64
  %66 = load double, ptr @secs, align 8, !tbaa !5
  %67 = load double, ptr @runSecs, align 8, !tbaa !5
  %68 = fcmp olt double %66, %67
  br i1 %68, label %64, label %69, !llvm.loop !14

69:                                               ; preds = %65
  %70 = load volatile i32, ptr @passes1, align 4, !tbaa !9
  %71 = sitofp i32 %70 to double
  %72 = load double, ptr @memoryMB, align 8, !tbaa !5
  %73 = fmul double %71, %72
  %74 = load double, ptr @secs, align 8, !tbaa !5
  %75 = fdiv double %73, %74
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [10 x double], ptr %7, i64 0, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = fdiv double %75, %79
  %81 = fptosi double %80 to i32
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [20 x i32], ptr @mbpersec, i64 0, i64 %83
  store i32 %81, ptr %84, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %69
  %86 = load volatile i32, ptr @testToRun, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store volatile i32 %87, ptr @testToRun, align 4, !tbaa !9
  br label %57, !llvm.loop !15

88:                                               ; preds = %57
  %89 = load i32, ptr @andsum1, align 4, !tbaa !9
  %90 = load i32, ptr @andsumx, align 4, !tbaa !9
  %91 = icmp ne i32 %89, %90
  br i1 %91, label %92, label %101

92:                                               ; preds = %88
  %93 = load i32, ptr @andsumx, align 4, !tbaa !9
  %94 = load i32, ptr @andsum1, align 4, !tbaa !9
  %95 = load i32, ptr @ipass, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [20 x i32], ptr @memoryKBytes, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef @resultchars, ptr noundef @.str, i32 noundef %93, i32 noundef %94, i32 noundef %98) #4
  %100 = load i32, ptr @andsumx, align 4, !tbaa !9
  store i32 %100, ptr @andsum1, align 4, !tbaa !9
  br label %113

101:                                              ; preds = %88
  %102 = load i32, ptr @ipass, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [20 x i32], ptr @memoryKBytes, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = load i32, ptr @mbpersec, align 16, !tbaa !9
  %107 = load i32, ptr getelementptr inbounds ([20 x i32], ptr @mbpersec, i64 0, i64 1), align 4, !tbaa !9
  %108 = load i32, ptr getelementptr inbounds ([20 x i32], ptr @mbpersec, i64 0, i64 2), align 8, !tbaa !9
  %109 = load i32, ptr getelementptr inbounds ([20 x i32], ptr @mbpersec, i64 0, i64 3), align 4, !tbaa !9
  %110 = load i32, ptr getelementptr inbounds ([20 x i32], ptr @mbpersec, i64 0, i64 4), align 16, !tbaa !9
  %111 = load i32, ptr getelementptr inbounds ([20 x i32], ptr @mbpersec, i64 0, i64 5), align 4, !tbaa !9
  %112 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef @resultchars, ptr noundef @.str.1, i32 noundef %105, i32 noundef %106, i32 noundef %107, i32 noundef %108, i32 noundef %109, i32 noundef %110, i32 noundef %111) #4
  br label %113

113:                                              ; preds = %101, %92
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret i32 1
}

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

declare void @start_time(...) #2

declare void @end_time(...) #2

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, 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 uwtable
declare dso_local void @runAll() #0

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 = { "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 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

@andsumx = external dso_local local_unnamed_addr global i32, align 4
@wordBytes = external dso_local local_unnamed_addr global i32, align 4
@runSecs = external dso_local local_unnamed_addr global double, align 8
@secs = external local_unnamed_addr global double, align 8
@passes1 = external dso_local global i32, align 4
@memoryKBytes = external dso_local local_unnamed_addr global [20 x i32], align 16
@mbpersec = external dso_local local_unnamed_addr global [20 x i32], align 16
@ipass = external dso_local local_unnamed_addr global i32, align 4
@memoryWords = external dso_local local_unnamed_addr global i32, align 4
@memoryMB = external dso_local local_unnamed_addr global double, align 8
@andsum1 = external dso_local local_unnamed_addr global i32, align 4
@array = external dso_local local_unnamed_addr global [16779000 x i32], align 16
@wordsToTest = external dso_local global i32, align 4
@testToRun = external dso_local global i32, align 4
@resultchars = external dso_local global [1000 x i8], align 16
@.str = external hidden unnamed_addr constant [53 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @checkTime() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @calcPass() local_unnamed_addr #0 {
  %1 = alloca [10 x double], align 16
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #6
  store <2 x double> <double 3.200000e+01, double 1.600000e+01>, ptr %1, align 16, !tbaa !5
  %2 = getelementptr inbounds i8, ptr %1, i64 16
  store <2 x double> <double 8.000000e+00, double 4.000000e+00>, ptr %2, align 16, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %1, i64 32
  store <2 x double> <double 2.000000e+00, double 1.000000e+00>, ptr %3, align 16, !tbaa !5
  store <4 x i32> <i32 16, i32 32, i32 64, i32 128>, ptr @memoryKBytes, align 16, !tbaa !9
  store <4 x i32> <i32 256, i32 512, i32 1024, i32 4096>, ptr getelementptr inbounds (i8, ptr @memoryKBytes, i64 16), align 16, !tbaa !9
  store i32 16384, ptr getelementptr inbounds (i8, ptr @memoryKBytes, i64 32), align 16, !tbaa !9
  store i32 65536, ptr getelementptr inbounds (i8, ptr @memoryKBytes, i64 36), align 4, !tbaa !9
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) @mbpersec, i8 0, i64 80, i1 false), !tbaa !9
  %4 = load i32, ptr @ipass, align 4, !tbaa !9
  %5 = sext i32 %4 to i64
  %6 = getelementptr inbounds [20 x i32], ptr @memoryKBytes, i64 0, i64 %5
  %7 = load i32, ptr %6, align 4, !tbaa !9
  %8 = uitofp i32 %7 to double
  %9 = fmul double %8, 1.024000e+03
  %10 = load i32, ptr @wordBytes, align 4, !tbaa !9
  %11 = uitofp i32 %10 to double
  %12 = fdiv double %9, %11
  %13 = fptosi double %12 to i32
  store i32 %13, ptr @memoryWords, align 4, !tbaa !9
  %14 = fdiv double %9, 1.000000e+06
  store double %14, ptr @memoryMB, align 8, !tbaa !5
  store i32 1431655765, ptr @andsum1, align 4, !tbaa !9
  %15 = icmp sgt i32 %13, -1000
  br i1 %15, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %16 = add i32 %13, 999
  %smax = tail call i32 @llvm.smax.i32(i32 %16, i32 0)
  %17 = zext nneg i32 %smax to i64
  %18 = shl nuw nsw i64 %17, 2
  %19 = add nuw nsw i64 %18, 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) @array, i8 85, i64 %19, i1 false), !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %0
  store volatile i32 %13, ptr @wordsToTest, align 4, !tbaa !9
  store volatile i32 1, ptr @testToRun, align 4, !tbaa !9
  %20 = load volatile i32, ptr @testToRun, align 4, !tbaa !9
  %21 = icmp slt i32 %20, 7
  br i1 %21, label %.lr.ph14, label %._crit_edge15

.lr.ph14:                                         ; preds = %._crit_edge, %27
  %22 = load volatile i32, ptr @testToRun, align 4, !tbaa !9
  store volatile i32 1, ptr @passes1, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %23, %.lr.ph14
  tail call void (...) @start_time() #6
  tail call void @runAll()
  tail call void (...) @end_time() #6
  tail call void @checkTime()
  %24 = load double, ptr @secs, align 8, !tbaa !5
  %25 = load double, ptr @runSecs, align 8, !tbaa !5
  %26 = fcmp olt double %24, %25
  br i1 %26, label %23, label %27, !llvm.loop !11

27:                                               ; preds = %23
  %28 = add nsw i32 %22, -1
  %29 = load volatile i32, ptr @passes1, align 4, !tbaa !9
  %30 = sitofp i32 %29 to double
  %31 = load double, ptr @memoryMB, align 8, !tbaa !5
  %32 = fmul double %31, %30
  %33 = fdiv double %32, %24
  %34 = sext i32 %28 to i64
  %35 = getelementptr inbounds [10 x double], ptr %1, i64 0, i64 %34
  %36 = load double, ptr %35, align 8, !tbaa !5
  %37 = fdiv double %33, %36
  %38 = fptosi double %37 to i32
  %39 = getelementptr inbounds [20 x i32], ptr @mbpersec, i64 0, i64 %34
  store i32 %38, ptr %39, align 4, !tbaa !9
  %40 = load volatile i32, ptr @testToRun, align 4, !tbaa !9
  %41 = add nsw i32 %40, 1
  store volatile i32 %41, ptr @testToRun, align 4, !tbaa !9
  %42 = load volatile i32, ptr @testToRun, align 4, !tbaa !9
  %43 = icmp slt i32 %42, 7
  br i1 %43, label %.lr.ph14, label %._crit_edge15.loopexit, !llvm.loop !13

._crit_edge15.loopexit:                           ; preds = %27
  %.pre = load i32, ptr @andsum1, align 4, !tbaa !9
  br label %._crit_edge15

._crit_edge15:                                    ; preds = %._crit_edge15.loopexit, %._crit_edge
  %44 = phi i32 [ %.pre, %._crit_edge15.loopexit ], [ 1431655765, %._crit_edge ]
  %45 = load i32, ptr @andsumx, align 4, !tbaa !9
  %.not = icmp eq i32 %44, %45
  %46 = load i32, ptr @ipass, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [20 x i32], ptr @memoryKBytes, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !9
  br i1 %.not, label %53, label %50

50:                                               ; preds = %._crit_edge15
  %51 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) @resultchars, ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %45, i32 noundef %44, i32 noundef %49) #6
  %52 = load i32, ptr @andsumx, align 4, !tbaa !9
  store i32 %52, ptr @andsum1, align 4, !tbaa !9
  br label %61

53:                                               ; preds = %._crit_edge15
  %54 = load i32, ptr @mbpersec, align 16, !tbaa !9
  %55 = load i32, ptr getelementptr inbounds (i8, ptr @mbpersec, i64 4), align 4, !tbaa !9
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @mbpersec, i64 8), align 8, !tbaa !9
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @mbpersec, i64 12), align 4, !tbaa !9
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @mbpersec, i64 16), align 16, !tbaa !9
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @mbpersec, i64 20), align 4, !tbaa !9
  %60 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) @resultchars, ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %49, i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %57, i32 noundef %58, i32 noundef %59) #6
  br label %61

61:                                               ; preds = %53, %50
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #6
  ret i32 1
}

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

declare void @start_time(...) local_unnamed_addr #2

declare void @end_time(...) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @runAll() local_unnamed_addr #0

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

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

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 = { mustprogress nocallback nofree nosync 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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass