; LLVM IR from jgaeddert/liquid-dsp :: src/framing/bench (framesync64_benchmark)

; 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.framedata = type { i32, i32, i32 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

@__const.benchmark_framesync64.header = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @benchmark_framesync64(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [8 x i8], align 1
  %10 = alloca [64 x i8], align 16
  %11 = alloca %struct.framedata, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = udiv i64 %17, 128
  store i64 %18, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %19 = call ptr (...) @framegen64_create()
  store ptr %19, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.benchmark_framesync64.header, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #7
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %29, %3
  %21 = load i64, ptr %7, align 8, !tbaa !9
  %22 = icmp ult i64 %21, 64
  br i1 %22, label %23, label %32

23:                                               ; preds = %20
  %24 = call i32 @rand() #7
  %25 = and i32 %24, 255
  %26 = trunc i32 %25 to i8
  %27 = load i64, ptr %7, align 8, !tbaa !9
  %28 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 %27
  store i8 %26, ptr %28, align 1, !tbaa !11
  br label %29

29:                                               ; preds = %23
  %30 = load i64, ptr %7, align 8, !tbaa !9
  %31 = add i64 %30, 1
  store i64 %31, ptr %7, align 8, !tbaa !9
  br label %20, !llvm.loop !12

32:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #7
  call void @llvm.memset.p0.i64(ptr align 4 %11, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %33 = call ptr @framesync64_create(ptr noundef @callback, ptr noundef %11)
  store ptr %33, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1440, ptr %13, align 4, !tbaa !14
  %34 = load i32, ptr %13, align 4, !tbaa !14
  %35 = zext i32 %34 to i64
  %36 = call ptr @llvm.stacksave.p0()
  store ptr %36, ptr %14, align 8
  %37 = alloca { float, float }, i64 %35, align 16
  store i64 %35, ptr %15, align 8
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
  %40 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %41 = call i32 @framegen64_execute(ptr noundef %38, ptr noundef %39, ptr noundef %40, ptr noundef %37)
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %42

42:                                               ; preds = %73, %32
  %43 = load i64, ptr %7, align 8, !tbaa !9
  %44 = load i32, ptr %13, align 4, !tbaa !14
  %45 = zext i32 %44 to i64
  %46 = icmp ult i64 %43, %45
  br i1 %46, label %47, label %76

47:                                               ; preds = %42
  %48 = call float (...) @randnf()
  %49 = call float (...) @randnf()
  %50 = fmul float 0.000000e+00, %49
  %51 = fmul float 1.000000e+00, %49
  %52 = fadd float %48, %50
  %53 = fmul float 0x3F847AE140000000, %52
  %54 = fmul float 0x3F847AE140000000, %51
  %55 = fpext float %53 to double
  %56 = fpext float %54 to double
  %57 = fmul double %55, 0x3FE6A09E667F3BCD
  %58 = fmul double %56, 0x3FE6A09E667F3BCD
  %59 = load i64, ptr %7, align 8, !tbaa !9
  %60 = getelementptr inbounds { float, float }, ptr %37, i64 %59
  %61 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 0
  %62 = load float, ptr %61, align 8
  %63 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 1
  %64 = load float, ptr %63, align 4
  %65 = fpext float %62 to double
  %66 = fpext float %64 to double
  %67 = fadd double %65, %57
  %68 = fadd double %66, %58
  %69 = fptrunc double %67 to float
  %70 = fptrunc double %68 to float
  %71 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 0
  %72 = getelementptr inbounds { float, float }, ptr %60, i32 0, i32 1
  store float %69, ptr %71, align 8
  store float %70, ptr %72, align 4
  br label %73

73:                                               ; preds = %47
  %74 = load i64, ptr %7, align 8, !tbaa !9
  %75 = add i64 %74, 1
  store i64 %75, ptr %7, align 8, !tbaa !9
  br label %42, !llvm.loop !16

76:                                               ; preds = %42
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call i32 @getrusage(i32 noundef 0, ptr noundef %77) #7
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %88, %76
  %80 = load i64, ptr %7, align 8, !tbaa !9
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = icmp ult i64 %80, %82
  br i1 %83, label %84, label %91

84:                                               ; preds = %79
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = load i32, ptr %13, align 4, !tbaa !14
  %87 = call i32 @framesync64_execute(ptr noundef %85, ptr noundef %37, i32 noundef %86)
  br label %88

88:                                               ; preds = %84
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = add i64 %89, 1
  store i64 %90, ptr %7, align 8, !tbaa !9
  br label %79, !llvm.loop !17

91:                                               ; preds = %79
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = call i32 @getrusage(i32 noundef 0, ptr noundef %92) #7
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = call i32 @framegen64_destroy(ptr noundef %94)
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = call i32 @framesync64_destroy(ptr noundef %96)
  %98 = load ptr, ptr %14, align 8
  call void @llvm.stackrestore.p0(ptr %98)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void
}

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

declare ptr @framegen64_create(...) #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) #3

; Function Attrs: nounwind
declare i32 @rand() #4

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

declare ptr @framesync64_create(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @callback(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.framesyncstats_s) align 8, ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #6

declare i32 @framegen64_execute(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare float @randnf(...) #2

; Function Attrs: nounwind
declare i32 @getrusage(i32 noundef, ptr noundef) #4

declare i32 @framesync64_execute(ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @framegen64_destroy(ptr noundef) #2

declare i32 @framesync64_destroy(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind willreturn }
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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}


; 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.framedata = type { i32, i32, i32 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

@__const.benchmark_framesync64.header = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @benchmark_framesync64(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2) local_unnamed_addr #0 {
  %4 = alloca [8 x i8], align 8
  %5 = alloca [64 x i8], align 16
  %6 = alloca %struct.framedata, align 4
  %7 = load i64, ptr %2, align 8, !tbaa !5
  %8 = lshr i64 %7, 7
  store i64 %8, ptr %2, align 8, !tbaa !5
  %9 = tail call ptr (...) @framegen64_create() #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %10 = load i64, ptr @__const.benchmark_framesync64.header, align 1
  store i64 %10, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #6
  %11 = tail call i32 @rand() #6
  %12 = trunc i32 %11 to i8
  store i8 %12, ptr %5, align 16, !tbaa !9
  %13 = tail call i32 @rand() #6
  %14 = trunc i32 %13 to i8
  %15 = getelementptr inbounds i8, ptr %5, i64 1
  store i8 %14, ptr %15, align 1, !tbaa !9
  %16 = tail call i32 @rand() #6
  %17 = trunc i32 %16 to i8
  %18 = getelementptr inbounds i8, ptr %5, i64 2
  store i8 %17, ptr %18, align 2, !tbaa !9
  %19 = tail call i32 @rand() #6
  %20 = trunc i32 %19 to i8
  %21 = getelementptr inbounds i8, ptr %5, i64 3
  store i8 %20, ptr %21, align 1, !tbaa !9
  %22 = tail call i32 @rand() #6
  %23 = trunc i32 %22 to i8
  %24 = getelementptr inbounds i8, ptr %5, i64 4
  store i8 %23, ptr %24, align 4, !tbaa !9
  %25 = tail call i32 @rand() #6
  %26 = trunc i32 %25 to i8
  %27 = getelementptr inbounds i8, ptr %5, i64 5
  store i8 %26, ptr %27, align 1, !tbaa !9
  %28 = tail call i32 @rand() #6
  %29 = trunc i32 %28 to i8
  %30 = getelementptr inbounds i8, ptr %5, i64 6
  store i8 %29, ptr %30, align 2, !tbaa !9
  %31 = tail call i32 @rand() #6
  %32 = trunc i32 %31 to i8
  %33 = getelementptr inbounds i8, ptr %5, i64 7
  store i8 %32, ptr %33, align 1, !tbaa !9
  %34 = tail call i32 @rand() #6
  %35 = trunc i32 %34 to i8
  %36 = getelementptr inbounds i8, ptr %5, i64 8
  store i8 %35, ptr %36, align 8, !tbaa !9
  %37 = tail call i32 @rand() #6
  %38 = trunc i32 %37 to i8
  %39 = getelementptr inbounds i8, ptr %5, i64 9
  store i8 %38, ptr %39, align 1, !tbaa !9
  %40 = tail call i32 @rand() #6
  %41 = trunc i32 %40 to i8
  %42 = getelementptr inbounds i8, ptr %5, i64 10
  store i8 %41, ptr %42, align 2, !tbaa !9
  %43 = tail call i32 @rand() #6
  %44 = trunc i32 %43 to i8
  %45 = getelementptr inbounds i8, ptr %5, i64 11
  store i8 %44, ptr %45, align 1, !tbaa !9
  %46 = tail call i32 @rand() #6
  %47 = trunc i32 %46 to i8
  %48 = getelementptr inbounds i8, ptr %5, i64 12
  store i8 %47, ptr %48, align 4, !tbaa !9
  %49 = tail call i32 @rand() #6
  %50 = trunc i32 %49 to i8
  %51 = getelementptr inbounds i8, ptr %5, i64 13
  store i8 %50, ptr %51, align 1, !tbaa !9
  %52 = tail call i32 @rand() #6
  %53 = trunc i32 %52 to i8
  %54 = getelementptr inbounds i8, ptr %5, i64 14
  store i8 %53, ptr %54, align 2, !tbaa !9
  %55 = tail call i32 @rand() #6
  %56 = trunc i32 %55 to i8
  %57 = getelementptr inbounds i8, ptr %5, i64 15
  store i8 %56, ptr %57, align 1, !tbaa !9
  %58 = tail call i32 @rand() #6
  %59 = trunc i32 %58 to i8
  %60 = getelementptr inbounds i8, ptr %5, i64 16
  store i8 %59, ptr %60, align 16, !tbaa !9
  %61 = tail call i32 @rand() #6
  %62 = trunc i32 %61 to i8
  %63 = getelementptr inbounds i8, ptr %5, i64 17
  store i8 %62, ptr %63, align 1, !tbaa !9
  %64 = tail call i32 @rand() #6
  %65 = trunc i32 %64 to i8
  %66 = getelementptr inbounds i8, ptr %5, i64 18
  store i8 %65, ptr %66, align 2, !tbaa !9
  %67 = tail call i32 @rand() #6
  %68 = trunc i32 %67 to i8
  %69 = getelementptr inbounds i8, ptr %5, i64 19
  store i8 %68, ptr %69, align 1, !tbaa !9
  %70 = tail call i32 @rand() #6
  %71 = trunc i32 %70 to i8
  %72 = getelementptr inbounds i8, ptr %5, i64 20
  store i8 %71, ptr %72, align 4, !tbaa !9
  %73 = tail call i32 @rand() #6
  %74 = trunc i32 %73 to i8
  %75 = getelementptr inbounds i8, ptr %5, i64 21
  store i8 %74, ptr %75, align 1, !tbaa !9
  %76 = tail call i32 @rand() #6
  %77 = trunc i32 %76 to i8
  %78 = getelementptr inbounds i8, ptr %5, i64 22
  store i8 %77, ptr %78, align 2, !tbaa !9
  %79 = tail call i32 @rand() #6
  %80 = trunc i32 %79 to i8
  %81 = getelementptr inbounds i8, ptr %5, i64 23
  store i8 %80, ptr %81, align 1, !tbaa !9
  %82 = tail call i32 @rand() #6
  %83 = trunc i32 %82 to i8
  %84 = getelementptr inbounds i8, ptr %5, i64 24
  store i8 %83, ptr %84, align 8, !tbaa !9
  %85 = tail call i32 @rand() #6
  %86 = trunc i32 %85 to i8
  %87 = getelementptr inbounds i8, ptr %5, i64 25
  store i8 %86, ptr %87, align 1, !tbaa !9
  %88 = tail call i32 @rand() #6
  %89 = trunc i32 %88 to i8
  %90 = getelementptr inbounds i8, ptr %5, i64 26
  store i8 %89, ptr %90, align 2, !tbaa !9
  %91 = tail call i32 @rand() #6
  %92 = trunc i32 %91 to i8
  %93 = getelementptr inbounds i8, ptr %5, i64 27
  store i8 %92, ptr %93, align 1, !tbaa !9
  %94 = tail call i32 @rand() #6
  %95 = trunc i32 %94 to i8
  %96 = getelementptr inbounds i8, ptr %5, i64 28
  store i8 %95, ptr %96, align 4, !tbaa !9
  %97 = tail call i32 @rand() #6
  %98 = trunc i32 %97 to i8
  %99 = getelementptr inbounds i8, ptr %5, i64 29
  store i8 %98, ptr %99, align 1, !tbaa !9
  %100 = tail call i32 @rand() #6
  %101 = trunc i32 %100 to i8
  %102 = getelementptr inbounds i8, ptr %5, i64 30
  store i8 %101, ptr %102, align 2, !tbaa !9
  %103 = tail call i32 @rand() #6
  %104 = trunc i32 %103 to i8
  %105 = getelementptr inbounds i8, ptr %5, i64 31
  store i8 %104, ptr %105, align 1, !tbaa !9
  %106 = tail call i32 @rand() #6
  %107 = trunc i32 %106 to i8
  %108 = getelementptr inbounds i8, ptr %5, i64 32
  store i8 %107, ptr %108, align 16, !tbaa !9
  %109 = tail call i32 @rand() #6
  %110 = trunc i32 %109 to i8
  %111 = getelementptr inbounds i8, ptr %5, i64 33
  store i8 %110, ptr %111, align 1, !tbaa !9
  %112 = tail call i32 @rand() #6
  %113 = trunc i32 %112 to i8
  %114 = getelementptr inbounds i8, ptr %5, i64 34
  store i8 %113, ptr %114, align 2, !tbaa !9
  %115 = tail call i32 @rand() #6
  %116 = trunc i32 %115 to i8
  %117 = getelementptr inbounds i8, ptr %5, i64 35
  store i8 %116, ptr %117, align 1, !tbaa !9
  %118 = tail call i32 @rand() #6
  %119 = trunc i32 %118 to i8
  %120 = getelementptr inbounds i8, ptr %5, i64 36
  store i8 %119, ptr %120, align 4, !tbaa !9
  %121 = tail call i32 @rand() #6
  %122 = trunc i32 %121 to i8
  %123 = getelementptr inbounds i8, ptr %5, i64 37
  store i8 %122, ptr %123, align 1, !tbaa !9
  %124 = tail call i32 @rand() #6
  %125 = trunc i32 %124 to i8
  %126 = getelementptr inbounds i8, ptr %5, i64 38
  store i8 %125, ptr %126, align 2, !tbaa !9
  %127 = tail call i32 @rand() #6
  %128 = trunc i32 %127 to i8
  %129 = getelementptr inbounds i8, ptr %5, i64 39
  store i8 %128, ptr %129, align 1, !tbaa !9
  %130 = tail call i32 @rand() #6
  %131 = trunc i32 %130 to i8
  %132 = getelementptr inbounds i8, ptr %5, i64 40
  store i8 %131, ptr %132, align 8, !tbaa !9
  %133 = tail call i32 @rand() #6
  %134 = trunc i32 %133 to i8
  %135 = getelementptr inbounds i8, ptr %5, i64 41
  store i8 %134, ptr %135, align 1, !tbaa !9
  %136 = tail call i32 @rand() #6
  %137 = trunc i32 %136 to i8
  %138 = getelementptr inbounds i8, ptr %5, i64 42
  store i8 %137, ptr %138, align 2, !tbaa !9
  %139 = tail call i32 @rand() #6
  %140 = trunc i32 %139 to i8
  %141 = getelementptr inbounds i8, ptr %5, i64 43
  store i8 %140, ptr %141, align 1, !tbaa !9
  %142 = tail call i32 @rand() #6
  %143 = trunc i32 %142 to i8
  %144 = getelementptr inbounds i8, ptr %5, i64 44
  store i8 %143, ptr %144, align 4, !tbaa !9
  %145 = tail call i32 @rand() #6
  %146 = trunc i32 %145 to i8
  %147 = getelementptr inbounds i8, ptr %5, i64 45
  store i8 %146, ptr %147, align 1, !tbaa !9
  %148 = tail call i32 @rand() #6
  %149 = trunc i32 %148 to i8
  %150 = getelementptr inbounds i8, ptr %5, i64 46
  store i8 %149, ptr %150, align 2, !tbaa !9
  %151 = tail call i32 @rand() #6
  %152 = trunc i32 %151 to i8
  %153 = getelementptr inbounds i8, ptr %5, i64 47
  store i8 %152, ptr %153, align 1, !tbaa !9
  %154 = tail call i32 @rand() #6
  %155 = trunc i32 %154 to i8
  %156 = getelementptr inbounds i8, ptr %5, i64 48
  store i8 %155, ptr %156, align 16, !tbaa !9
  %157 = tail call i32 @rand() #6
  %158 = trunc i32 %157 to i8
  %159 = getelementptr inbounds i8, ptr %5, i64 49
  store i8 %158, ptr %159, align 1, !tbaa !9
  %160 = tail call i32 @rand() #6
  %161 = trunc i32 %160 to i8
  %162 = getelementptr inbounds i8, ptr %5, i64 50
  store i8 %161, ptr %162, align 2, !tbaa !9
  %163 = tail call i32 @rand() #6
  %164 = trunc i32 %163 to i8
  %165 = getelementptr inbounds i8, ptr %5, i64 51
  store i8 %164, ptr %165, align 1, !tbaa !9
  %166 = tail call i32 @rand() #6
  %167 = trunc i32 %166 to i8
  %168 = getelementptr inbounds i8, ptr %5, i64 52
  store i8 %167, ptr %168, align 4, !tbaa !9
  %169 = tail call i32 @rand() #6
  %170 = trunc i32 %169 to i8
  %171 = getelementptr inbounds i8, ptr %5, i64 53
  store i8 %170, ptr %171, align 1, !tbaa !9
  %172 = tail call i32 @rand() #6
  %173 = trunc i32 %172 to i8
  %174 = getelementptr inbounds i8, ptr %5, i64 54
  store i8 %173, ptr %174, align 2, !tbaa !9
  %175 = tail call i32 @rand() #6
  %176 = trunc i32 %175 to i8
  %177 = getelementptr inbounds i8, ptr %5, i64 55
  store i8 %176, ptr %177, align 1, !tbaa !9
  %178 = tail call i32 @rand() #6
  %179 = trunc i32 %178 to i8
  %180 = getelementptr inbounds i8, ptr %5, i64 56
  store i8 %179, ptr %180, align 8, !tbaa !9
  %181 = tail call i32 @rand() #6
  %182 = trunc i32 %181 to i8
  %183 = getelementptr inbounds i8, ptr %5, i64 57
  store i8 %182, ptr %183, align 1, !tbaa !9
  %184 = tail call i32 @rand() #6
  %185 = trunc i32 %184 to i8
  %186 = getelementptr inbounds i8, ptr %5, i64 58
  store i8 %185, ptr %186, align 2, !tbaa !9
  %187 = tail call i32 @rand() #6
  %188 = trunc i32 %187 to i8
  %189 = getelementptr inbounds i8, ptr %5, i64 59
  store i8 %188, ptr %189, align 1, !tbaa !9
  %190 = tail call i32 @rand() #6
  %191 = trunc i32 %190 to i8
  %192 = getelementptr inbounds i8, ptr %5, i64 60
  store i8 %191, ptr %192, align 4, !tbaa !9
  %193 = tail call i32 @rand() #6
  %194 = trunc i32 %193 to i8
  %195 = getelementptr inbounds i8, ptr %5, i64 61
  store i8 %194, ptr %195, align 1, !tbaa !9
  %196 = tail call i32 @rand() #6
  %197 = trunc i32 %196 to i8
  %198 = getelementptr inbounds i8, ptr %5, i64 62
  store i8 %197, ptr %198, align 2, !tbaa !9
  %199 = tail call i32 @rand() #6
  %200 = trunc i32 %199 to i8
  %201 = getelementptr inbounds i8, ptr %5, i64 63
  store i8 %200, ptr %201, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, i8 0, i64 12, i1 false)
  %202 = call ptr @framesync64_create(ptr noundef nonnull @callback, ptr noundef nonnull %6) #6
  %203 = call ptr @llvm.stacksave.p0()
  %204 = alloca [1440 x { float, float }], align 16
  %205 = call i32 @framegen64_execute(ptr noundef %9, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %204) #6
  br label %206

206:                                              ; preds = %3, %206
  %.120 = phi i64 [ 0, %3 ], [ %221, %206 ]
  %207 = call float (...) @randnf() #6
  %208 = call float (...) @randnf() #6
  %209 = fmul float %208, 0.000000e+00
  %210 = fadd float %207, %209
  %211 = getelementptr inbounds { float, float }, ptr %204, i64 %.120
  %212 = insertelement <2 x float> poison, float %210, i64 0
  %213 = insertelement <2 x float> %212, float %208, i64 1
  %214 = fmul <2 x float> %213, <float 0x3F847AE140000000, float 0x3F847AE140000000>
  %215 = fpext <2 x float> %214 to <2 x double>
  %216 = fmul <2 x double> %215, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %217 = load <2 x float>, ptr %211, align 8
  %218 = fpext <2 x float> %217 to <2 x double>
  %219 = fadd <2 x double> %216, %218
  %220 = fptrunc <2 x double> %219 to <2 x float>
  store <2 x float> %220, ptr %211, align 8
  %221 = add nuw nsw i64 %.120, 1
  %exitcond.not = icmp eq i64 %221, 1440
  br i1 %exitcond.not, label %222, label %206, !llvm.loop !10

222:                                              ; preds = %206
  %223 = call i32 @getrusage(i32 noundef 0, ptr noundef %0) #6
  %224 = load i64, ptr %2, align 8, !tbaa !5
  %.not = icmp eq i64 %224, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %222, %.lr.ph
  %.221 = phi i64 [ %226, %.lr.ph ], [ 0, %222 ]
  %225 = call i32 @framesync64_execute(ptr noundef %202, ptr noundef nonnull %204, i32 noundef 1440) #6
  %226 = add nuw i64 %.221, 1
  %227 = load i64, ptr %2, align 8, !tbaa !5
  %228 = icmp ult i64 %226, %227
  br i1 %228, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %.lr.ph, %222
  %229 = call i32 @getrusage(i32 noundef 0, ptr noundef %1) #6
  %230 = call i32 @framegen64_destroy(ptr noundef %9) #6
  %231 = call i32 @framesync64_destroy(ptr noundef %202) #6
  call void @llvm.stackrestore.p0(ptr %203)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void
}

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

declare ptr @framegen64_create(...) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

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

declare ptr @framesync64_create(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @callback(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.framesyncstats_s) align 8, ptr noundef) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

declare i32 @framegen64_execute(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare float @randnf(...) local_unnamed_addr #2

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

declare i32 @framesync64_execute(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @framegen64_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @framesync64_destroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass