; LLVM IR from golems/ach :: src (ach-bench)

; 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.ach_channel = type { %union.anon.3 }
%union.anon.3 = type { [16 x i64] }
%struct.timespec = type { i64, i64 }

@KERNDEV = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [60 x i8], align 1
@chan = external dso_local global %struct.ach_channel, align 8
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@__PRETTY_FUNCTION__.receiver_ach = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @make_realtime(i32 noundef) #0

; 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: noreturn nounwind
declare void @exit(i32 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 hidden { i64, i64 } @get_ticks() #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) #4

; Function Attrs: nounwind uwtable
declare hidden double @ticks_delta(i64, i64, i64, i64) #0

declare i32 @ach_get(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @receiver_ach(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca %struct.timespec, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.timespec, align 8
  %8 = alloca i64, align 8
  %9 = alloca %struct.timespec, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.timespec, align 8
  %12 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  %13 = load ptr, ptr @stderr, align 8, !tbaa !9
  %14 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str.8) #6
  call void @make_realtime(i32 noundef 99)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !11
  br label %15

15:                                               ; preds = %28, %1
  %16 = load i64, ptr %3, align 8, !tbaa !11
  %17 = icmp ult i64 %16, 5
  br i1 %17, label %18, label %31

18:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %19 = call i32 @ach_get(ptr noundef @chan, ptr noundef %4, i64 noundef 16, ptr noundef %5, ptr noundef null, i32 noundef 3)
  store i32 %19, ptr %6, align 4, !tbaa !5
  %20 = load i32, ptr %6, align 4, !tbaa !5
  switch i32 %20, label %22 [
    i32 0, label %21
    i32 6, label %21
  ]

21:                                               ; preds = %18, %18
  br label %27

22:                                               ; preds = %18
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = call ptr @ach_result_to_string(i32 noundef %24)
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.9, ptr noundef %25) #6
  call void @exit(i32 noundef 1) #7
  unreachable

27:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  br label %28

28:                                               ; preds = %27
  %29 = load i64, ptr %3, align 8, !tbaa !11
  %30 = add i64 %29, 1
  store i64 %30, ptr %3, align 8, !tbaa !11
  br label %15, !llvm.loop !13

31:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %32 = call { i64, i64 } @get_ticks()
  %33 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  %34 = extractvalue { i64, i64 } %32, 0
  store i64 %34, ptr %33, align 8
  %35 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  %36 = extractvalue { i64, i64 } %32, 1
  store i64 %36, ptr %35, align 8
  br label %37

37:                                               ; preds = %83, %31
  br label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %39 = load i32, ptr @KERNDEV, align 4, !tbaa !5
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %44

41:                                               ; preds = %38
  %42 = getelementptr inbounds %struct.timespec, ptr %9, i32 0, i32 0
  store i64 1, ptr %42, align 8, !tbaa !15
  %43 = getelementptr inbounds %struct.timespec, ptr %9, i32 0, i32 1
  store i64 0, ptr %43, align 8, !tbaa !17
  br label %48

44:                                               ; preds = %38
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %7, i64 16, i1 false), !tbaa.struct !18
  %45 = getelementptr inbounds %struct.timespec, ptr %9, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !15
  %47 = add nsw i64 %46, 1
  store i64 %47, ptr %45, align 8, !tbaa !15
  br label %48

48:                                               ; preds = %44, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %49 = call i32 @ach_get(ptr noundef @chan, ptr noundef %7, i64 noundef 16, ptr noundef %8, ptr noundef %9, i32 noundef 3)
  store i32 %49, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %50 = call { i64, i64 } @get_ticks()
  %51 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %52 = extractvalue { i64, i64 } %50, 0
  store i64 %52, ptr %51, align 8
  %53 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %54 = extractvalue { i64, i64 } %50, 1
  store i64 %54, ptr %53, align 8
  %55 = load i32, ptr %10, align 4, !tbaa !5
  %56 = icmp eq i32 7, %55
  br i1 %56, label %57, label %58

57:                                               ; preds = %48
  store i32 7, ptr %12, align 4
  br label %81

58:                                               ; preds = %48
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = icmp eq i32 0, %59
  br i1 %60, label %64, label %61

61:                                               ; preds = %58
  %62 = load i64, ptr %8, align 8, !tbaa !11
  %63 = icmp eq i64 16, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %61, %58
  br label %66

65:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.4, i32 noundef 235, ptr noundef @__PRETTY_FUNCTION__.receiver_ach) #7
  unreachable

66:                                               ; preds = %64
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %80

69:                                               ; preds = %66
  %70 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
  %71 = load i64, ptr %70, align 8
  %72 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
  %73 = load i64, ptr %72, align 8
  %74 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %75 = load i64, ptr %74, align 8
  %76 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %77 = load i64, ptr %76, align 8
  %78 = call double @ticks_delta(i64 %71, i64 %73, i64 %75, i64 %77)
  %79 = fptrunc double %78 to float
  call void @send_time(float noundef %79)
  br label %80

80:                                               ; preds = %69, %66
  store i32 0, ptr %12, align 4
  br label %81

81:                                               ; preds = %80, %57
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %82 = load i32, ptr %12, align 4
  switch i32 %82, label %85 [
    i32 0, label %83
    i32 7, label %84
  ]

83:                                               ; preds = %81
  br label %37

84:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void

85:                                               ; preds = %81
  unreachable
}

declare ptr @ach_result_to_string(i32 noundef) #5

; Function Attrs: nounwind uwtable
declare hidden void @send_time(float noundef) #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 = { 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 = { noreturn 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: readwrite) }
attributes #5 = { "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 #6 = { nounwind }
attributes #7 = { noreturn 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"timespec", !12, i64 0, !12, i64 8}
!17 = !{!16, !12, i64 8}
!18 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}


; 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.ach_channel = type { %union.anon.3 }
%union.anon.3 = type { [16 x i64] }
%struct.timespec = type { i64, i64 }

@KERNDEV = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [60 x i8], align 1
@chan = external dso_local global %struct.ach_channel, align 8
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@__PRETTY_FUNCTION__.receiver_ach = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) 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 hidden { i64, i64 } @get_ticks() local_unnamed_addr #0

; Function Attrs: mustprogress 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

; Function Attrs: nounwind uwtable
declare hidden double @ticks_delta(i64, i64, i64, i64) local_unnamed_addr #0

declare i32 @ach_get(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @receiver_ach(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.timespec, align 8
  %3 = alloca i64, align 8
  %4 = alloca %struct.timespec, align 8
  %5 = alloca i64, align 8
  %6 = alloca %struct.timespec, align 8
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.8) #6
  tail call void @make_realtime(i32 noundef 99)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %9 = call i32 @ach_get(ptr noundef nonnull @chan, ptr noundef nonnull %2, i64 noundef 16, ptr noundef nonnull %3, ptr noundef null, i32 noundef 3) #7
  switch i32 %9, label %10 [
    i32 0, label %14
    i32 6, label %14
  ]

10:                                               ; preds = %20, %18, %16, %14, %1
  %.lcssa = phi i32 [ %9, %1 ], [ %15, %14 ], [ %17, %16 ], [ %19, %18 ], [ %21, %20 ]
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = call ptr @ach_result_to_string(i32 noundef %.lcssa) #7
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.9, ptr noundef %12) #6
  call void @exit(i32 noundef 1) #8
  unreachable

14:                                               ; preds = %1, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %15 = call i32 @ach_get(ptr noundef nonnull @chan, ptr noundef nonnull %2, i64 noundef 16, ptr noundef nonnull %3, ptr noundef null, i32 noundef 3) #7
  switch i32 %15, label %10 [
    i32 0, label %16
    i32 6, label %16
  ]

16:                                               ; preds = %14, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %17 = call i32 @ach_get(ptr noundef nonnull @chan, ptr noundef nonnull %2, i64 noundef 16, ptr noundef nonnull %3, ptr noundef null, i32 noundef 3) #7
  switch i32 %17, label %10 [
    i32 0, label %18
    i32 6, label %18
  ]

18:                                               ; preds = %16, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %19 = call i32 @ach_get(ptr noundef nonnull @chan, ptr noundef nonnull %2, i64 noundef 16, ptr noundef nonnull %3, ptr noundef null, i32 noundef 3) #7
  switch i32 %19, label %10 [
    i32 0, label %20
    i32 6, label %20
  ]

20:                                               ; preds = %18, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %21 = call i32 @ach_get(ptr noundef nonnull @chan, ptr noundef nonnull %2, i64 noundef 16, ptr noundef nonnull %3, ptr noundef null, i32 noundef 3) #7
  switch i32 %21, label %10 [
    i32 0, label %22
    i32 6, label %22
  ]

22:                                               ; preds = %20, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %23 = call { i64, i64 } @get_ticks()
  %24 = extractvalue { i64, i64 } %23, 0
  store i64 %24, ptr %4, align 8
  %25 = getelementptr inbounds i8, ptr %4, i64 8
  %26 = extractvalue { i64, i64 } %23, 1
  store i64 %26, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr %6, i64 8
  %.not11 = icmp eq i32 %0, 0
  br i1 %.not11, label %.split.us, label %.split

.split.us:                                        ; preds = %22, %41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %28 = load i32, ptr @KERNDEV, align 4, !tbaa !9
  %.not.us = icmp eq i32 %28, 0
  br i1 %.not.us, label %30, label %29

29:                                               ; preds = %.split.us
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %33

30:                                               ; preds = %.split.us
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !14
  %31 = load i64, ptr %6, align 8, !tbaa !16
  %32 = add nsw i64 %31, 1
  br label %33

33:                                               ; preds = %30, %29
  %.sink = phi i64 [ %32, %30 ], [ 1, %29 ]
  store i64 %.sink, ptr %6, align 8
  %34 = call i32 @ach_get(ptr noundef nonnull @chan, ptr noundef nonnull %4, i64 noundef 16, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 3) #7
  %35 = call { i64, i64 } @get_ticks()
  %36 = icmp eq i32 %34, 7
  br i1 %36, label %.split16.us, label %37

37:                                               ; preds = %33
  %38 = icmp eq i32 %34, 0
  %39 = load i64, ptr %5, align 8
  %40 = icmp eq i64 %39, 16
  %or.cond.us = select i1 %38, i1 true, i1 %40
  br i1 %or.cond.us, label %41, label %.split18.us

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %.split.us

.split:                                           ; preds = %22, %57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %42 = load i32, ptr @KERNDEV, align 4, !tbaa !9
  %.not = icmp eq i32 %42, 0
  br i1 %.not, label %44, label %43

43:                                               ; preds = %.split
  store i64 0, ptr %27, align 8, !tbaa !11
  br label %47

44:                                               ; preds = %.split
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !14
  %45 = load i64, ptr %6, align 8, !tbaa !16
  %46 = add nsw i64 %45, 1
  br label %47

47:                                               ; preds = %44, %43
  %.sink22 = phi i64 [ %46, %44 ], [ 1, %43 ]
  store i64 %.sink22, ptr %6, align 8
  %48 = call i32 @ach_get(ptr noundef nonnull @chan, ptr noundef nonnull %4, i64 noundef 16, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 3) #7
  %49 = call { i64, i64 } @get_ticks()
  %50 = extractvalue { i64, i64 } %49, 0
  %51 = extractvalue { i64, i64 } %49, 1
  %52 = icmp eq i32 %48, 7
  br i1 %52, label %.split16.us, label %53

53:                                               ; preds = %47
  %54 = icmp eq i32 %48, 0
  %55 = load i64, ptr %5, align 8
  %56 = icmp eq i64 %55, 16
  %or.cond = select i1 %54, i1 true, i1 %56
  br i1 %or.cond, label %57, label %.split18.us

.split18.us:                                      ; preds = %53, %37
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.4, i32 noundef 235, ptr noundef nonnull @__PRETTY_FUNCTION__.receiver_ach) #8
  unreachable

57:                                               ; preds = %53
  %58 = load i64, ptr %4, align 8
  %59 = load i64, ptr %25, align 8
  %60 = call double @ticks_delta(i64 %58, i64 %59, i64 %50, i64 %51)
  %61 = fptrunc double %60 to float
  call void @send_time(float noundef %61)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %.split

.split16.us:                                      ; preds = %47, %33
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  ret void
}

declare ptr @ach_result_to_string(i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden void @send_time(float noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { noreturn 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 #6 = { cold nounwind }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"timespec", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{i64 0, i64 8, !15, i64 8, i64 8, !15}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass