; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (framesync64_autotest)

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

@.str = external hidden unnamed_addr constant [95 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@__const.testbench_framesync64_debug.prefix = external hidden unnamed_addr constant [26 x i8], align 16
@.str.32 = external hidden unnamed_addr constant [66 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@__const.testbench_framesync64_debug.header = external hidden unnamed_addr constant [8 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [32 x i8], align 1

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

declare ptr @framegen64_create(...) #1

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

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

declare float @randnf(...) #1

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

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) #1

declare void @liquid_autotest_passed(...) #1

declare void @framesync64_get_framedatastats(ptr dead_on_unwind writable sret(%struct.framedatastats_s) align 8, ptr noundef) #1

declare i32 @framegen64_destroy(ptr noundef) #1

declare i32 @framesync64_destroy(ptr noundef) #1

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

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_framesync64_debug(i32 noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [26 x i8], align 16
  %6 = alloca [1440 x { float, float }], align 16
  %7 = alloca [8 x i8], align 1
  %8 = alloca [64 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca %struct.framedatastats_s, align 8
  %11 = alloca ptr, align 8
  %12 = alloca [256 x i8], align 16
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %15 = call ptr (...) @framegen64_create()
  store ptr %15, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %16 = call ptr @framesync64_create(ptr noundef @callback_framesync64_autotest_debug, ptr noundef %2)
  store ptr %16, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 26, ptr %5) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.testbench_framesync64_debug.prefix, i64 26, i1 false)
  %17 = load ptr, ptr %4, align 8, !tbaa !9
  %18 = getelementptr inbounds [26 x i8], ptr %5, i64 0, i64 0
  %19 = call i32 @framesync64_set_prefix(ptr noundef %17, ptr noundef %18)
  %20 = load ptr, ptr %4, align 8, !tbaa !9
  %21 = call ptr @framesync64_get_prefix(ptr noundef %20)
  %22 = getelementptr inbounds [26 x i8], ptr %5, i64 0, i64 0
  %23 = call i32 @liquid_autotest_same_data(ptr noundef %21, ptr noundef %22, i32 noundef 25)
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %33, label %25

25:                                               ; preds = %1
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 193, ptr noundef @.str.32)
  %26 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %32

28:                                               ; preds = %25
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  %30 = call ptr @framesync64_get_prefix(ptr noundef %29)
  call void @liquid_autotest_print_array(ptr noundef %30, i32 noundef 25)
  %31 = getelementptr inbounds [26 x i8], ptr %5, i64 0, i64 0
  call void @liquid_autotest_print_array(ptr noundef %31, i32 noundef 25)
  br label %32

32:                                               ; preds = %28, %25
  br label %34

33:                                               ; preds = %1
  call void (...) @liquid_autotest_passed()
  br label %34

34:                                               ; preds = %33, %32
  call void @llvm.lifetime.start.p0(i64 11520, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.testbench_framesync64_debug.header, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 64, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %45, %34
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = icmp ult i32 %36, 64
  br i1 %37, label %38, label %48

38:                                               ; preds = %35
  %39 = call i32 @rand() #7
  %40 = and i32 %39, 255
  %41 = trunc i32 %40 to i8
  %42 = load i32, ptr %9, align 4, !tbaa !5
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 %43
  store i8 %41, ptr %44, align 1, !tbaa !11
  br label %45

45:                                               ; preds = %38
  %46 = load i32, ptr %9, align 4, !tbaa !5
  %47 = add i32 %46, 1
  store i32 %47, ptr %9, align 4, !tbaa !5
  br label %35, !llvm.loop !12

48:                                               ; preds = %35
  %49 = load ptr, ptr %3, align 8, !tbaa !9
  %50 = getelementptr inbounds [8 x i8], ptr %7, i64 0, i64 0
  %51 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
  %52 = getelementptr inbounds [1440 x { float, float }], ptr %6, i64 0, i64 0
  %53 = call i32 @framegen64_execute(ptr noundef %49, ptr noundef %50, ptr noundef %51, ptr noundef %52)
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %84, %48
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = icmp ult i32 %55, 1440
  br i1 %56, label %57, label %87

57:                                               ; preds = %54
  %58 = call float (...) @randnf()
  %59 = call float (...) @randnf()
  %60 = fmul float 0.000000e+00, %59
  %61 = fmul float 1.000000e+00, %59
  %62 = fadd float %58, %60
  %63 = fmul float 0x3F847AE140000000, %62
  %64 = fmul float 0x3F847AE140000000, %61
  %65 = fpext float %63 to double
  %66 = fpext float %64 to double
  %67 = fmul double %65, 0x3FE6A09E667F3BCD
  %68 = fmul double %66, 0x3FE6A09E667F3BCD
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds [1440 x { float, float }], ptr %6, i64 0, i64 %70
  %72 = getelementptr inbounds { float, float }, ptr %71, i32 0, i32 0
  %73 = load float, ptr %72, align 8
  %74 = getelementptr inbounds { float, float }, ptr %71, i32 0, i32 1
  %75 = load float, ptr %74, align 4
  %76 = fpext float %73 to double
  %77 = fpext float %75 to double
  %78 = fadd double %76, %67
  %79 = fadd double %77, %68
  %80 = fptrunc double %78 to float
  %81 = fptrunc double %79 to float
  %82 = getelementptr inbounds { float, float }, ptr %71, i32 0, i32 0
  %83 = getelementptr inbounds { float, float }, ptr %71, i32 0, i32 1
  store float %80, ptr %82, align 8
  store float %81, ptr %83, align 4
  br label %84

84:                                               ; preds = %57
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = add i32 %85, 1
  store i32 %86, ptr %9, align 4, !tbaa !5
  br label %54, !llvm.loop !14

87:                                               ; preds = %54
  %88 = load ptr, ptr %4, align 8, !tbaa !9
  %89 = getelementptr inbounds [1440 x { float, float }], ptr %6, i64 0, i64 0
  %90 = call i32 @framesync64_execute(ptr noundef %88, ptr noundef %89, i32 noundef 1440)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  %91 = load ptr, ptr %4, align 8, !tbaa !9
  call void @framesync64_get_framedatastats(ptr dead_on_unwind writable sret(%struct.framedatastats_s) align 8 %10, ptr noundef %91)
  %92 = getelementptr inbounds %struct.framedatastats_s, ptr %10, i32 0, i32 0
  %93 = load i32, ptr %92, align 8, !tbaa !15
  %94 = icmp ne i32 %93, 1
  br i1 %94, label %95, label %99

95:                                               ; preds = %87
  %96 = getelementptr inbounds %struct.framedatastats_s, ptr %10, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !15
  %98 = uitofp i32 %97 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 213, ptr noundef @.str.4, double noundef %98, ptr noundef @.str.2, ptr noundef @.str.5, double noundef 1.000000e+00)
  br label %100

99:                                               ; preds = %87
  call void (...) @liquid_autotest_passed()
  br label %100

100:                                              ; preds = %99, %95
  %101 = getelementptr inbounds %struct.framedatastats_s, ptr %10, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = icmp ne i32 %102, 1
  br i1 %103, label %104, label %108

104:                                              ; preds = %100
  %105 = getelementptr inbounds %struct.framedatastats_s, ptr %10, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !18
  %107 = uitofp i32 %106 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 214, ptr noundef @.str.6, double noundef %107, ptr noundef @.str.2, ptr noundef @.str.5, double noundef 1.000000e+00)
  br label %109

108:                                              ; preds = %100
  call void (...) @liquid_autotest_passed()
  br label %109

109:                                              ; preds = %108, %104
  %110 = getelementptr inbounds %struct.framedatastats_s, ptr %10, i32 0, i32 2
  %111 = load i32, ptr %110, align 8, !tbaa !19
  %112 = icmp ne i32 %111, 1
  br i1 %112, label %113, label %117

113:                                              ; preds = %109
  %114 = getelementptr inbounds %struct.framedatastats_s, ptr %10, i32 0, i32 2
  %115 = load i32, ptr %114, align 8, !tbaa !19
  %116 = uitofp i32 %115 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 215, ptr noundef @.str.7, double noundef %116, ptr noundef @.str.2, ptr noundef @.str.5, double noundef 1.000000e+00)
  br label %118

117:                                              ; preds = %109
  call void (...) @liquid_autotest_passed()
  br label %118

118:                                              ; preds = %117, %113
  %119 = getelementptr inbounds %struct.framedatastats_s, ptr %10, i32 0, i32 3
  %120 = load i64, ptr %119, align 8, !tbaa !20
  %121 = icmp ne i64 %120, 64
  br i1 %121, label %122, label %126

122:                                              ; preds = %118
  %123 = getelementptr inbounds %struct.framedatastats_s, ptr %10, i32 0, i32 3
  %124 = load i64, ptr %123, align 8, !tbaa !20
  %125 = uitofp i64 %124 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 216, ptr noundef @.str.8, double noundef %125, ptr noundef @.str.2, ptr noundef @.str.9, double noundef 6.400000e+01)
  br label %127

126:                                              ; preds = %118
  call void (...) @liquid_autotest_passed()
  br label %127

127:                                              ; preds = %126, %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %128 = load ptr, ptr %4, align 8, !tbaa !9
  %129 = call ptr @framesync64_get_filename(ptr noundef %128)
  store ptr %129, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %12) #7
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 256, i1 false)
  %130 = getelementptr inbounds [256 x i8], ptr %12, i64 0, i64 0
  %131 = load ptr, ptr %11, align 8, !tbaa !9
  %132 = icmp eq ptr %131, null
  br i1 %132, label %133, label %134

133:                                              ; preds = %127
  br label %136

134:                                              ; preds = %127
  %135 = load ptr, ptr %11, align 8, !tbaa !9
  br label %136

136:                                              ; preds = %134, %133
  %137 = phi ptr [ @.str.34, %133 ], [ %135, %134 ]
  %138 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %130, i64 noundef 255, ptr noundef @.str.33, ptr noundef %137) #7
  %139 = getelementptr inbounds [256 x i8], ptr %12, i64 0, i64 0
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, ptr noundef %139)
  %141 = load ptr, ptr %3, align 8, !tbaa !9
  %142 = call i32 @framegen64_destroy(ptr noundef %141)
  %143 = load ptr, ptr %4, align 8, !tbaa !9
  %144 = call i32 @framesync64_destroy(ptr noundef %143)
  %145 = getelementptr inbounds [256 x i8], ptr %12, i64 0, i64 0
  %146 = call i64 @strlen(ptr noundef %145) #8
  %147 = icmp eq i64 %146, 0
  br i1 %147, label %148, label %154

148:                                              ; preds = %136
  %149 = load i32, ptr %2, align 4, !tbaa !5
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %152

151:                                              ; preds = %148
  call void (...) @liquid_autotest_passed()
  br label %153

152:                                              ; preds = %148
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 234, ptr noundef @.str.36)
  br label %153

153:                                              ; preds = %152, %151
  store i32 1, ptr %13, align 4
  br label %164

154:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %155 = getelementptr inbounds [256 x i8], ptr %12, i64 0, i64 0
  %156 = call noalias ptr @fopen(ptr noundef %155, ptr noundef @.str.37)
  store ptr %156, ptr %14, align 8, !tbaa !9
  %157 = load ptr, ptr %14, align 8, !tbaa !9
  %158 = icmp eq ptr %157, null
  br i1 %158, label %159, label %160

159:                                              ; preds = %154
  call void @liquid_autotest_failed_msg(ptr noundef @.str, i32 noundef 242, ptr noundef @.str.38)
  store i32 1, ptr %13, align 4
  br label %163

160:                                              ; preds = %154
  %161 = load ptr, ptr %14, align 8, !tbaa !9
  %162 = call i32 @fclose(ptr noundef %161)
  store i32 0, ptr %13, align 4
  br label %163

163:                                              ; preds = %160, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %164

164:                                              ; preds = %163, %153
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 11520, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 26, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  %165 = load i32, ptr %13, align 4
  switch i32 %165, label %167 [
    i32 0, label %166
    i32 1, label %166
  ]

166:                                              ; preds = %164, %164
  ret void

167:                                              ; preds = %164
  unreachable
}

; Function Attrs: nounwind uwtable
declare hidden i32 @callback_framesync64_autotest_debug(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef byval(%struct.framesyncstats_s) align 8, ptr noundef) #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

declare i32 @framesync64_set_prefix(ptr noundef, ptr noundef) #1

declare i32 @liquid_autotest_same_data(ptr noundef, ptr noundef, i32 noundef) #1

declare ptr @framesync64_get_prefix(ptr noundef) #1

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) #1

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

declare ptr @framesync64_get_filename(ptr noundef) #1

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #4

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #6

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !6, i64 0}
!16 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !17, i64 16}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !6, i64 4}
!19 = !{!16, !6, i64 8}
!20 = !{!16, !17, i64 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.framedatastats_s = type { i32, i32, i32, i64 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [95 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [3 x i8], align 1
@__const.testbench_framesync64_debug.prefix = external hidden unnamed_addr constant [26 x i8], align 16
@.str.32 = external hidden unnamed_addr constant [66 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@__const.testbench_framesync64_debug.header = external hidden unnamed_addr constant [8 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

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

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

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

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

declare void @liquid_autotest_failed_expr(ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, double noundef) local_unnamed_addr #1

declare void @liquid_autotest_passed(...) local_unnamed_addr #1

declare void @framesync64_get_framedatastats(ptr dead_on_unwind writable sret(%struct.framedatastats_s) align 8, ptr noundef) local_unnamed_addr #1

declare i32 @framegen64_destroy(ptr noundef) local_unnamed_addr #1

declare i32 @framesync64_destroy(ptr noundef) local_unnamed_addr #1

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

declare void @liquid_autotest_failed_msg(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_framesync64_debug(i32 noundef %0) local_unnamed_addr #2 {
  %2 = alloca i32, align 4
  %3 = alloca [26 x i8], align 16
  %4 = alloca [1440 x { float, float }], align 16
  %5 = alloca [8 x i8], align 8
  %6 = alloca [64 x i8], align 16
  %7 = alloca %struct.framedatastats_s, align 8
  %8 = alloca [256 x i8], align 16
  store i32 %0, ptr %2, align 4, !tbaa !5
  %9 = tail call ptr (...) @framegen64_create() #7
  %10 = call ptr @framesync64_create(ptr noundef nonnull @callback_framesync64_autotest_debug, ptr noundef nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 26, ptr nonnull %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(26) %3, ptr noundef nonnull align 16 dereferenceable(26) @__const.testbench_framesync64_debug.prefix, i64 26, i1 false)
  %11 = call i32 @framesync64_set_prefix(ptr noundef %10, ptr noundef nonnull %3) #7
  %12 = call ptr @framesync64_get_prefix(ptr noundef %10) #7
  %13 = call i32 @liquid_autotest_same_data(ptr noundef %12, ptr noundef nonnull %3, i32 noundef 25) #7
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %14, label %18

14:                                               ; preds = %1
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 193, ptr noundef nonnull @.str.32) #7
  %15 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not23 = icmp eq i32 %15, 0
  br i1 %.not23, label %19, label %16

16:                                               ; preds = %14
  %17 = call ptr @framesync64_get_prefix(ptr noundef %10) #7
  call void @liquid_autotest_print_array(ptr noundef %17, i32 noundef 25) #7
  call void @liquid_autotest_print_array(ptr noundef nonnull %3, i32 noundef 25) #7
  br label %19

18:                                               ; preds = %1
  call void (...) @liquid_autotest_passed() #7
  br label %19

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

213:                                              ; preds = %19, %213
  %indvars.iv = phi i64 [ 0, %19 ], [ %indvars.iv.next, %213 ]
  %214 = call float (...) @randnf() #7
  %215 = call float (...) @randnf() #7
  %216 = fmul float %215, 0.000000e+00
  %217 = fadd float %214, %216
  %218 = getelementptr inbounds [1440 x { float, float }], ptr %4, i64 0, i64 %indvars.iv
  %219 = insertelement <2 x float> poison, float %217, i64 0
  %220 = insertelement <2 x float> %219, float %215, i64 1
  %221 = fmul <2 x float> %220, <float 0x3F847AE140000000, float 0x3F847AE140000000>
  %222 = fpext <2 x float> %221 to <2 x double>
  %223 = fmul <2 x double> %222, <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>
  %224 = load <2 x float>, ptr %218, align 8
  %225 = fpext <2 x float> %224 to <2 x double>
  %226 = fadd <2 x double> %223, %225
  %227 = fptrunc <2 x double> %226 to <2 x float>
  store <2 x float> %227, ptr %218, align 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1440
  br i1 %exitcond.not, label %228, label %213, !llvm.loop !10

228:                                              ; preds = %213
  %229 = call i32 @framesync64_execute(ptr noundef %10, ptr noundef nonnull %4, i32 noundef 1440) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @framesync64_get_framedatastats(ptr dead_on_unwind nonnull writable sret(%struct.framedatastats_s) align 8 %7, ptr noundef %10) #7
  %230 = load i32, ptr %7, align 8, !tbaa !12
  %.not24 = icmp eq i32 %230, 1
  br i1 %.not24, label %233, label %231

231:                                              ; preds = %228
  %232 = uitofp i32 %230 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 213, ptr noundef nonnull @.str.4, double noundef %232, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.5, double noundef 1.000000e+00) #7
  br label %234

233:                                              ; preds = %228
  call void (...) @liquid_autotest_passed() #7
  br label %234

234:                                              ; preds = %233, %231
  %235 = getelementptr inbounds i8, ptr %7, i64 4
  %236 = load i32, ptr %235, align 4, !tbaa !15
  %.not25 = icmp eq i32 %236, 1
  br i1 %.not25, label %239, label %237

237:                                              ; preds = %234
  %238 = uitofp i32 %236 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 214, ptr noundef nonnull @.str.6, double noundef %238, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.5, double noundef 1.000000e+00) #7
  br label %240

239:                                              ; preds = %234
  call void (...) @liquid_autotest_passed() #7
  br label %240

240:                                              ; preds = %239, %237
  %241 = getelementptr inbounds i8, ptr %7, i64 8
  %242 = load i32, ptr %241, align 8, !tbaa !16
  %.not26 = icmp eq i32 %242, 1
  br i1 %.not26, label %245, label %243

243:                                              ; preds = %240
  %244 = uitofp i32 %242 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 215, ptr noundef nonnull @.str.7, double noundef %244, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.5, double noundef 1.000000e+00) #7
  br label %246

245:                                              ; preds = %240
  call void (...) @liquid_autotest_passed() #7
  br label %246

246:                                              ; preds = %245, %243
  %247 = getelementptr inbounds i8, ptr %7, i64 16
  %248 = load i64, ptr %247, align 8, !tbaa !17
  %.not27 = icmp eq i64 %248, 64
  br i1 %.not27, label %251, label %249

249:                                              ; preds = %246
  %250 = uitofp i64 %248 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 216, ptr noundef nonnull @.str.8, double noundef %250, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.9, double noundef 6.400000e+01) #7
  br label %252

251:                                              ; preds = %246
  call void (...) @liquid_autotest_passed() #7
  br label %252

252:                                              ; preds = %251, %249
  %253 = call ptr @framesync64_get_filename(ptr noundef %10) #7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %8, i8 0, i64 256, i1 false)
  %254 = icmp eq ptr %253, null
  %255 = select i1 %254, ptr @.str.34, ptr %253
  %256 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %8, i64 noundef 255, ptr noundef nonnull @.str.33, ptr noundef nonnull %255) #7
  %257 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, ptr noundef nonnull %8)
  %258 = call i32 @framegen64_destroy(ptr noundef %9) #7
  %259 = call i32 @framesync64_destroy(ptr noundef %10) #7
  %char0 = load i8, ptr %8, align 16
  %260 = icmp eq i8 %char0, 0
  br i1 %260, label %261, label %266

261:                                              ; preds = %252
  %262 = load i32, ptr %2, align 4, !tbaa !5
  %263 = icmp eq i32 %262, 0
  br i1 %263, label %264, label %265

264:                                              ; preds = %261
  call void (...) @liquid_autotest_passed() #7
  br label %272

265:                                              ; preds = %261
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 234, ptr noundef nonnull @.str.36) #7
  br label %272

266:                                              ; preds = %252
  %267 = call noalias ptr @fopen(ptr noundef nonnull %8, ptr noundef nonnull @.str.37)
  %268 = icmp eq ptr %267, null
  br i1 %268, label %269, label %270

269:                                              ; preds = %266
  call void @liquid_autotest_failed_msg(ptr noundef nonnull @.str, i32 noundef 242, ptr noundef nonnull @.str.38) #7
  br label %272

270:                                              ; preds = %266
  %271 = call i32 @fclose(ptr noundef nonnull %267)
  br label %272

272:                                              ; preds = %269, %270, %264, %265
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 11520, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 26, ptr nonnull %3) #7
  ret void
}

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

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

declare i32 @framesync64_set_prefix(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @liquid_autotest_same_data(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @framesync64_get_prefix(ptr noundef) local_unnamed_addr #1

declare void @liquid_autotest_print_array(ptr noundef, i32 noundef) local_unnamed_addr #1

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

declare ptr @framesync64_get_filename(ptr noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #3 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #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 = !{!"int", !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 = !{!13, !6, i64 0}
!13 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !14, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !6, i64 4}
!16 = !{!13, !6, i64 8}
!17 = !{!13, !14, i64 16}


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