; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (ofdmflexframe_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.ofdmflexframegenprops_s = type { i32, i32, i32, i32 }
%struct.framedatastats_s = type { i32, i32, i32, i64 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

@__const.testbench_ofdmflexframe.header = external hidden unnamed_addr constant [8 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 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 [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_ofdmflexframe(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.ofdmflexframegenprops_s, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca [8 x i8], align 1
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.framedatastats_s, align 8
  store i32 %0, ptr %6, align 4, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %22 = call i32 @ofdmflexframegenprops_init_default(ptr noundef %12)
  %23 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %12, i32 0, i32 0
  store i32 6, ptr %23, align 4, !tbaa !9
  %24 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %12, i32 0, i32 1
  store i32 1, ptr %24, align 4, !tbaa !11
  %25 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %12, i32 0, i32 2
  store i32 1, ptr %25, align 4, !tbaa !12
  %26 = load i32, ptr %10, align 4, !tbaa !5
  %27 = getelementptr inbounds %struct.ofdmflexframegenprops_s, ptr %12, i32 0, i32 3
  store i32 %26, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %31 = call ptr @ofdmflexframegen_create(i32 noundef %28, i32 noundef %29, i32 noundef %30, ptr noundef null, ptr noundef %12)
  store ptr %31, ptr %13, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = load i32, ptr %8, align 4, !tbaa !5
  %35 = call ptr @ofdmflexframesync_create(i32 noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef null, ptr noundef @framing_autotest_callback, ptr noundef %11)
  store ptr %35, ptr %14, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %15, ptr align 1 @__const.testbench_ofdmflexframe.header, i64 8, i1 false)
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = call ptr @llvm.stacksave.p0()
  store ptr %38, ptr %16, align 8
  %39 = alloca i8, i64 %37, align 16
  store i64 %37, ptr %17, align 8
  %40 = load i32, ptr %9, align 4, !tbaa !5
  %41 = zext i32 %40 to i64
  call void @llvm.memset.p0.i64(ptr align 16 %39, i8 0, i64 %41, i1 false)
  %42 = load ptr, ptr %13, align 8, !tbaa !14
  %43 = getelementptr inbounds [8 x i8], ptr %15, i64 0, i64 0
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = call i32 @ofdmflexframegen_assemble(ptr noundef %42, ptr noundef %43, ptr noundef %39, i32 noundef %44)
  %46 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %5
  %49 = load ptr, ptr %13, align 8, !tbaa !14
  %50 = call i32 @ofdmflexframegen_print(ptr noundef %49)
  br label %51

51:                                               ; preds = %48, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 1024, ptr %18, align 4, !tbaa !5
  %52 = load i32, ptr %18, align 4, !tbaa !5
  %53 = zext i32 %52 to i64
  %54 = alloca { float, float }, i64 %53, align 16
  store i64 %53, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %59, %51
  %56 = load i32, ptr %20, align 4, !tbaa !5
  %57 = icmp ne i32 %56, 0
  %58 = xor i1 %57, true
  br i1 %58, label %59, label %66

59:                                               ; preds = %55
  %60 = load ptr, ptr %13, align 8, !tbaa !14
  %61 = load i32, ptr %18, align 4, !tbaa !5
  %62 = call i32 @ofdmflexframegen_write(ptr noundef %60, ptr noundef %54, i32 noundef %61)
  store i32 %62, ptr %20, align 4, !tbaa !5
  %63 = load ptr, ptr %14, align 8, !tbaa !14
  %64 = load i32, ptr %18, align 4, !tbaa !5
  %65 = call i32 @ofdmflexframesync_execute(ptr noundef %63, ptr noundef %54, i32 noundef %64)
  br label %55, !llvm.loop !16

66:                                               ; preds = %55
  %67 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %72

69:                                               ; preds = %66
  %70 = load ptr, ptr %14, align 8, !tbaa !14
  %71 = call i32 @ofdmflexframesync_print(ptr noundef %70)
  br label %72

72:                                               ; preds = %69, %66
  %73 = load i32, ptr %11, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 19088743
  br i1 %74, label %75, label %78

75:                                               ; preds = %72
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = uitofp i32 %76 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 72, ptr noundef @.str.1, double noundef %77, ptr noundef @.str.2, ptr noundef @.str.3, double noundef 0x4172345670000000)
  br label %79

78:                                               ; preds = %72
  call void (...) @liquid_autotest_passed()
  br label %79

79:                                               ; preds = %78, %75
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %80 = load ptr, ptr %14, align 8, !tbaa !14
  call void @ofdmflexframesync_get_framedatastats(ptr dead_on_unwind writable sret(%struct.framedatastats_s) align 8 %21, ptr noundef %80)
  %81 = getelementptr inbounds %struct.framedatastats_s, ptr %21, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !18
  %83 = icmp ne i32 %82, 1
  br i1 %83, label %84, label %88

84:                                               ; preds = %79
  %85 = getelementptr inbounds %struct.framedatastats_s, ptr %21, i32 0, i32 0
  %86 = load i32, ptr %85, align 8, !tbaa !18
  %87 = uitofp i32 %86 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 76, ptr noundef @.str.4, double noundef %87, ptr noundef @.str.2, ptr noundef @.str.5, double noundef 1.000000e+00)
  br label %89

88:                                               ; preds = %79
  call void (...) @liquid_autotest_passed()
  br label %89

89:                                               ; preds = %88, %84
  %90 = getelementptr inbounds %struct.framedatastats_s, ptr %21, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !21
  %92 = icmp ne i32 %91, 1
  br i1 %92, label %93, label %97

93:                                               ; preds = %89
  %94 = getelementptr inbounds %struct.framedatastats_s, ptr %21, i32 0, i32 1
  %95 = load i32, ptr %94, align 4, !tbaa !21
  %96 = uitofp i32 %95 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 77, ptr noundef @.str.6, double noundef %96, ptr noundef @.str.2, ptr noundef @.str.5, double noundef 1.000000e+00)
  br label %98

97:                                               ; preds = %89
  call void (...) @liquid_autotest_passed()
  br label %98

98:                                               ; preds = %97, %93
  %99 = getelementptr inbounds %struct.framedatastats_s, ptr %21, i32 0, i32 2
  %100 = load i32, ptr %99, align 8, !tbaa !22
  %101 = icmp ne i32 %100, 1
  br i1 %101, label %102, label %106

102:                                              ; preds = %98
  %103 = getelementptr inbounds %struct.framedatastats_s, ptr %21, i32 0, i32 2
  %104 = load i32, ptr %103, align 8, !tbaa !22
  %105 = uitofp i32 %104 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 78, ptr noundef @.str.7, double noundef %105, ptr noundef @.str.2, ptr noundef @.str.5, double noundef 1.000000e+00)
  br label %107

106:                                              ; preds = %98
  call void (...) @liquid_autotest_passed()
  br label %107

107:                                              ; preds = %106, %102
  %108 = getelementptr inbounds %struct.framedatastats_s, ptr %21, i32 0, i32 3
  %109 = load i64, ptr %108, align 8, !tbaa !23
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = zext i32 %110 to i64
  %112 = icmp ne i64 %109, %111
  br i1 %112, label %113, label %119

113:                                              ; preds = %107
  %114 = getelementptr inbounds %struct.framedatastats_s, ptr %21, i32 0, i32 3
  %115 = load i64, ptr %114, align 8, !tbaa !23
  %116 = uitofp i64 %115 to double
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = uitofp i32 %117 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 79, ptr noundef @.str.8, double noundef %116, ptr noundef @.str.2, ptr noundef @.str.9, double noundef %118)
  br label %120

119:                                              ; preds = %107
  call void (...) @liquid_autotest_passed()
  br label %120

120:                                              ; preds = %119, %113
  %121 = load ptr, ptr %13, align 8, !tbaa !14
  %122 = call i32 @ofdmflexframegen_destroy(ptr noundef %121)
  %123 = load ptr, ptr %14, align 8, !tbaa !14
  %124 = call i32 @ofdmflexframesync_destroy(ptr noundef %123)
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  %125 = load ptr, ptr %16, align 8
  call void @llvm.stackrestore.p0(ptr %125)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

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

declare i32 @ofdmflexframegenprops_init_default(ptr noundef) #2

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

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

declare i32 @framing_autotest_callback(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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #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 i32 @ofdmflexframegen_assemble(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @ofdmflexframegen_print(ptr noundef) #2

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

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

declare i32 @ofdmflexframesync_print(ptr noundef) #2

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

declare void @liquid_autotest_passed(...) #2

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

declare i32 @ofdmflexframegen_destroy(ptr noundef) #2

declare i32 @ofdmflexframesync_destroy(ptr noundef) #2

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 12}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !20, i64 16}
!20 = !{!"long", !7, i64 0}
!21 = !{!19, !6, i64 4}
!22 = !{!19, !6, i64 8}
!23 = !{!19, !20, 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.ofdmflexframegenprops_s = type { i32, i32, i32, i32 }
%struct.framedatastats_s = type { i32, i32, i32, i64 }
%struct.framesyncstats_s = type { float, float, float, ptr, i32, i32, i32, i32, i32, i32 }

@__const.testbench_ofdmflexframe.header = external hidden unnamed_addr constant [8 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [11 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 [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @testbench_ofdmflexframe(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = alloca i32, align 4
  %7 = alloca %struct.ofdmflexframegenprops_s, align 4
  %8 = alloca [8 x i8], align 8
  %9 = alloca %struct.framedatastats_s, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %10 = call i32 @ofdmflexframegenprops_init_default(ptr noundef nonnull %7) #5
  store i32 6, ptr %7, align 4, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 1, ptr %11, align 4, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %7, i64 8
  store i32 1, ptr %12, align 4, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %7, i64 12
  store i32 %4, ptr %13, align 4, !tbaa !13
  %14 = call ptr @ofdmflexframegen_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef null, ptr noundef nonnull %7) #5
  %15 = call ptr @ofdmflexframesync_create(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef null, ptr noundef nonnull @framing_autotest_callback, ptr noundef nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %16 = load i64, ptr @__const.testbench_ofdmflexframe.header, align 1
  store i64 %16, ptr %8, align 8
  %17 = zext i32 %3 to i64
  %18 = call ptr @llvm.stacksave.p0()
  %19 = alloca i8, i64 %17, align 16
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %19, i8 0, i64 %17, i1 false)
  %20 = call i32 @ofdmflexframegen_assemble(ptr noundef %14, ptr noundef nonnull %8, ptr noundef nonnull %19, i32 noundef %3) #5
  %21 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %24, label %22

22:                                               ; preds = %5
  %23 = call i32 @ofdmflexframegen_print(ptr noundef %14) #5
  br label %24

24:                                               ; preds = %22, %5
  %25 = alloca [1024 x { float, float }], align 16
  br label %26

26:                                               ; preds = %24, %26
  %27 = call i32 @ofdmflexframegen_write(ptr noundef %14, ptr noundef nonnull %25, i32 noundef 1024) #5
  %28 = call i32 @ofdmflexframesync_execute(ptr noundef %15, ptr noundef nonnull %25, i32 noundef 1024) #5
  %.not29 = icmp eq i32 %27, 0
  br i1 %.not29, label %26, label %29, !llvm.loop !14

29:                                               ; preds = %26
  %30 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not30 = icmp eq i32 %30, 0
  br i1 %.not30, label %33, label %31

31:                                               ; preds = %29
  %32 = call i32 @ofdmflexframesync_print(ptr noundef %15) #5
  br label %33

33:                                               ; preds = %31, %29
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %.not31 = icmp eq i32 %34, 19088743
  br i1 %.not31, label %37, label %35

35:                                               ; preds = %33
  %36 = uitofp i32 %34 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 72, ptr noundef nonnull @.str.1, double noundef %36, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x4172345670000000) #5
  br label %38

37:                                               ; preds = %33
  call void (...) @liquid_autotest_passed() #5
  br label %38

38:                                               ; preds = %37, %35
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @ofdmflexframesync_get_framedatastats(ptr dead_on_unwind nonnull writable sret(%struct.framedatastats_s) align 8 %9, ptr noundef %15) #5
  %39 = load i32, ptr %9, align 8, !tbaa !16
  %.not32 = icmp eq i32 %39, 1
  br i1 %.not32, label %42, label %40

40:                                               ; preds = %38
  %41 = uitofp i32 %39 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 76, ptr noundef nonnull @.str.4, double noundef %41, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.5, double noundef 1.000000e+00) #5
  br label %43

42:                                               ; preds = %38
  call void (...) @liquid_autotest_passed() #5
  br label %43

43:                                               ; preds = %42, %40
  %44 = getelementptr inbounds i8, ptr %9, i64 4
  %45 = load i32, ptr %44, align 4, !tbaa !19
  %.not33 = icmp eq i32 %45, 1
  br i1 %.not33, label %48, label %46

46:                                               ; preds = %43
  %47 = uitofp i32 %45 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 77, ptr noundef nonnull @.str.6, double noundef %47, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.5, double noundef 1.000000e+00) #5
  br label %49

48:                                               ; preds = %43
  call void (...) @liquid_autotest_passed() #5
  br label %49

49:                                               ; preds = %48, %46
  %50 = getelementptr inbounds i8, ptr %9, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !20
  %.not34 = icmp eq i32 %51, 1
  br i1 %.not34, label %54, label %52

52:                                               ; preds = %49
  %53 = uitofp i32 %51 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 78, ptr noundef nonnull @.str.7, double noundef %53, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.5, double noundef 1.000000e+00) #5
  br label %55

54:                                               ; preds = %49
  call void (...) @liquid_autotest_passed() #5
  br label %55

55:                                               ; preds = %54, %52
  %56 = getelementptr inbounds i8, ptr %9, i64 16
  %57 = load i64, ptr %56, align 8, !tbaa !21
  %.not35 = icmp eq i64 %57, %17
  br i1 %.not35, label %61, label %58

58:                                               ; preds = %55
  %59 = uitofp i64 %57 to double
  %60 = uitofp i32 %3 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 79, ptr noundef nonnull @.str.8, double noundef %59, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.9, double noundef %60) #5
  br label %62

61:                                               ; preds = %55
  call void (...) @liquid_autotest_passed() #5
  br label %62

62:                                               ; preds = %61, %58
  %63 = call i32 @ofdmflexframegen_destroy(ptr noundef %14) #5
  %64 = call i32 @ofdmflexframesync_destroy(ptr noundef %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.stackrestore.p0(ptr %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  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 i32 @ofdmflexframegenprops_init_default(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @framing_autotest_callback(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 nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #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 i32 @ofdmflexframegen_assemble(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @ofdmflexframegen_print(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @ofdmflexframesync_print(ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @ofdmflexframegen_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @ofdmflexframesync_destroy(ptr noundef) local_unnamed_addr #2

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass