; LLVM IR from jgaeddert/liquid-dsp :: src/framing/tests (gmskframe_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 }

@liquid_autotest_verbose = external global i32, align 4
@.str = external hidden unnamed_addr constant [93 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_gmskframesync_process() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca [8 x i8], align 1
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.framedatastats_s, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 40, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 6, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %16 = call ptr (...) @gmskframegen_create()
  store ptr %16, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %17 = call ptr @gmskframesync_create(ptr noundef @framing_autotest_callback, ptr noundef %5)
  store ptr %17, ptr %7, align 8, !tbaa !9
  %18 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %25

20:                                               ; preds = %0
  %21 = load ptr, ptr %6, align 8, !tbaa !9
  %22 = call i32 @gmskframegen_print(ptr noundef %21)
  %23 = load ptr, ptr %7, align 8, !tbaa !9
  %24 = call i32 @gmskframesync_print(ptr noundef %23)
  br label %25

25:                                               ; preds = %20, %0
  %26 = load ptr, ptr %6, align 8, !tbaa !9
  %27 = call i32 @gmskframegen_is_assembled(ptr noundef %26)
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %25
  %30 = load ptr, ptr %6, align 8, !tbaa !9
  %31 = call i32 @gmskframegen_is_assembled(ptr noundef %30)
  %32 = sitofp i32 %31 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 51, ptr noundef @.str.1, double noundef %32, ptr noundef @.str.2, ptr noundef @.str.3, double noundef 0.000000e+00)
  br label %34

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

34:                                               ; preds = %33, %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = zext i32 %35 to i64
  %37 = call ptr @llvm.stacksave.p0()
  store ptr %37, ptr %10, align 8
  %38 = alloca i8, i64 %36, align 16
  store i64 %36, ptr %11, align 8
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %39

39:                                               ; preds = %48, %34
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = icmp ult i32 %40, 8
  br i1 %41, label %42, label %51

42:                                               ; preds = %39
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = trunc i32 %43 to i8
  %45 = load i32, ptr %8, align 4, !tbaa !5
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 %46
  store i8 %44, ptr %47, align 1, !tbaa !11
  br label %48

48:                                               ; preds = %42
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = add i32 %49, 1
  store i32 %50, ptr %8, align 4, !tbaa !5
  br label %39, !llvm.loop !12

51:                                               ; preds = %39
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %63, %51
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = icmp ult i32 %53, %54
  br i1 %55, label %56, label %66

56:                                               ; preds = %52
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = and i32 %57, 255
  %59 = trunc i32 %58 to i8
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds i8, ptr %38, i64 %61
  store i8 %59, ptr %62, align 1, !tbaa !11
  br label %63

63:                                               ; preds = %56
  %64 = load i32, ptr %8, align 4, !tbaa !5
  %65 = add i32 %64, 1
  store i32 %65, ptr %8, align 4, !tbaa !5
  br label %52, !llvm.loop !14

66:                                               ; preds = %52
  %67 = load ptr, ptr %6, align 8, !tbaa !9
  %68 = getelementptr inbounds [8 x i8], ptr %9, i64 0, i64 0
  %69 = load i32, ptr %1, align 4, !tbaa !5
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = call i32 @gmskframegen_assemble(ptr noundef %67, ptr noundef %68, ptr noundef %38, i32 noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72)
  %74 = load ptr, ptr %6, align 8, !tbaa !9
  %75 = call i32 @gmskframegen_is_assembled(ptr noundef %74)
  %76 = icmp ne i32 %75, 1
  br i1 %76, label %77, label %81

77:                                               ; preds = %66
  %78 = load ptr, ptr %6, align 8, !tbaa !9
  %79 = call i32 @gmskframegen_is_assembled(ptr noundef %78)
  %80 = sitofp i32 %79 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 58, ptr noundef @.str.1, double noundef %80, ptr noundef @.str.2, ptr noundef @.str.4, double noundef 1.000000e+00)
  br label %82

81:                                               ; preds = %66
  call void (...) @liquid_autotest_passed()
  br label %82

82:                                               ; preds = %81, %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 53, ptr %12, align 4, !tbaa !5
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = alloca { float, float }, i64 %84, align 16
  store i64 %84, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %90, %82
  %87 = load i32, ptr %14, align 4, !tbaa !5
  %88 = icmp ne i32 %87, 0
  %89 = xor i1 %88, true
  br i1 %89, label %90, label %97

90:                                               ; preds = %86
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  %92 = load i32, ptr %12, align 4, !tbaa !5
  %93 = call i32 @gmskframegen_write(ptr noundef %91, ptr noundef %85, i32 noundef %92)
  store i32 %93, ptr %14, align 4, !tbaa !5
  %94 = load ptr, ptr %7, align 8, !tbaa !9
  %95 = load i32, ptr %12, align 4, !tbaa !5
  %96 = call i32 @gmskframesync_execute(ptr noundef %94, ptr noundef %85, i32 noundef %95)
  br label %86, !llvm.loop !15

97:                                               ; preds = %86
  %98 = load ptr, ptr %7, align 8, !tbaa !9
  %99 = call i32 @gmskframesync_is_frame_open(ptr noundef %98)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %105

101:                                              ; preds = %97
  %102 = load ptr, ptr %7, align 8, !tbaa !9
  %103 = call i32 @gmskframesync_is_frame_open(ptr noundef %102)
  %104 = sitofp i32 %103 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 70, ptr noundef @.str.5, double noundef %104, ptr noundef @.str.2, ptr noundef @.str.3, double noundef 0.000000e+00)
  br label %106

105:                                              ; preds = %97
  call void (...) @liquid_autotest_passed()
  br label %106

106:                                              ; preds = %105, %101
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = icmp ne i32 %107, 19088743
  br i1 %108, label %109, label %112

109:                                              ; preds = %106
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = uitofp i32 %110 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 73, ptr noundef @.str.6, double noundef %111, ptr noundef @.str.2, ptr noundef @.str.7, double noundef 0x4172345670000000)
  br label %113

112:                                              ; preds = %106
  call void (...) @liquid_autotest_passed()
  br label %113

113:                                              ; preds = %112, %109
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  %114 = load ptr, ptr %7, align 8, !tbaa !9
  call void @gmskframesync_get_framedatastats(ptr dead_on_unwind writable sret(%struct.framedatastats_s) align 8 %15, ptr noundef %114)
  %115 = getelementptr inbounds %struct.framedatastats_s, ptr %15, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !16
  %117 = icmp ne i32 %116, 1
  br i1 %117, label %118, label %122

118:                                              ; preds = %113
  %119 = getelementptr inbounds %struct.framedatastats_s, ptr %15, i32 0, i32 0
  %120 = load i32, ptr %119, align 8, !tbaa !16
  %121 = uitofp i32 %120 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 77, ptr noundef @.str.8, double noundef %121, ptr noundef @.str.2, ptr noundef @.str.4, double noundef 1.000000e+00)
  br label %123

122:                                              ; preds = %113
  call void (...) @liquid_autotest_passed()
  br label %123

123:                                              ; preds = %122, %118
  %124 = getelementptr inbounds %struct.framedatastats_s, ptr %15, i32 0, i32 1
  %125 = load i32, ptr %124, align 4, !tbaa !19
  %126 = icmp ne i32 %125, 1
  br i1 %126, label %127, label %131

127:                                              ; preds = %123
  %128 = getelementptr inbounds %struct.framedatastats_s, ptr %15, i32 0, i32 1
  %129 = load i32, ptr %128, align 4, !tbaa !19
  %130 = uitofp i32 %129 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 78, ptr noundef @.str.9, double noundef %130, ptr noundef @.str.2, ptr noundef @.str.4, double noundef 1.000000e+00)
  br label %132

131:                                              ; preds = %123
  call void (...) @liquid_autotest_passed()
  br label %132

132:                                              ; preds = %131, %127
  %133 = getelementptr inbounds %struct.framedatastats_s, ptr %15, i32 0, i32 2
  %134 = load i32, ptr %133, align 8, !tbaa !20
  %135 = icmp ne i32 %134, 1
  br i1 %135, label %136, label %140

136:                                              ; preds = %132
  %137 = getelementptr inbounds %struct.framedatastats_s, ptr %15, i32 0, i32 2
  %138 = load i32, ptr %137, align 8, !tbaa !20
  %139 = uitofp i32 %138 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 79, ptr noundef @.str.10, double noundef %139, ptr noundef @.str.2, ptr noundef @.str.4, double noundef 1.000000e+00)
  br label %141

140:                                              ; preds = %132
  call void (...) @liquid_autotest_passed()
  br label %141

141:                                              ; preds = %140, %136
  %142 = getelementptr inbounds %struct.framedatastats_s, ptr %15, i32 0, i32 3
  %143 = load i64, ptr %142, align 8, !tbaa !21
  %144 = load i32, ptr %1, align 4, !tbaa !5
  %145 = zext i32 %144 to i64
  %146 = icmp ne i64 %143, %145
  br i1 %146, label %147, label %153

147:                                              ; preds = %141
  %148 = getelementptr inbounds %struct.framedatastats_s, ptr %15, i32 0, i32 3
  %149 = load i64, ptr %148, align 8, !tbaa !21
  %150 = uitofp i64 %149 to double
  %151 = load i32, ptr %1, align 4, !tbaa !5
  %152 = uitofp i32 %151 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 80, ptr noundef @.str.11, double noundef %150, ptr noundef @.str.2, ptr noundef @.str.12, double noundef %152)
  br label %154

153:                                              ; preds = %141
  call void (...) @liquid_autotest_passed()
  br label %154

154:                                              ; preds = %153, %147
  %155 = load ptr, ptr %6, align 8, !tbaa !9
  %156 = call i32 @gmskframegen_destroy(ptr noundef %155)
  %157 = load ptr, ptr %7, align 8, !tbaa !9
  %158 = call i32 @gmskframesync_destroy(ptr noundef %157)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %159 = load ptr, ptr %10, align 8
  call void @llvm.stackrestore.p0(ptr %159)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

declare ptr @gmskframegen_create(...) #2

declare ptr @gmskframesync_create(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

declare i32 @gmskframegen_print(ptr noundef) #2

declare i32 @gmskframesync_print(ptr noundef) #2

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

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

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

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

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

declare i32 @gmskframesync_is_frame_open(ptr noundef) #2

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

declare i32 @gmskframegen_destroy(ptr noundef) #2

declare i32 @gmskframesync_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) #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 = { 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 nosync nounwind willreturn }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = distinct !{!15, !13}
!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}


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

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [93 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_gmskframesync_process() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [8 x i8], align 8
  %3 = alloca %struct.framedatastats_s, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  %4 = tail call ptr (...) @gmskframegen_create() #4
  %5 = call ptr @gmskframesync_create(ptr noundef nonnull @framing_autotest_callback, ptr noundef nonnull %1) #4
  %6 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %10, label %7

7:                                                ; preds = %0
  %8 = call i32 @gmskframegen_print(ptr noundef %4) #4
  %9 = call i32 @gmskframesync_print(ptr noundef %5) #4
  br label %10

10:                                               ; preds = %7, %0
  %11 = call i32 @gmskframegen_is_assembled(ptr noundef %4) #4
  %.not40 = icmp eq i32 %11, 0
  br i1 %.not40, label %15, label %12

12:                                               ; preds = %10
  %13 = call i32 @gmskframegen_is_assembled(ptr noundef %4) #4
  %14 = sitofp i32 %13 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 51, ptr noundef nonnull @.str.1, double noundef %14, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0.000000e+00) #4
  br label %.preheader.preheader

15:                                               ; preds = %10
  call void (...) @liquid_autotest_passed() #4
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %15, %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %16 = call ptr @llvm.stacksave.p0()
  %17 = alloca [40 x i8], align 16
  store <8 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7>, ptr %2, align 8, !tbaa !9
  store <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, ptr %17, align 16, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  store <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, ptr %18, align 16, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %17, i64 32
  store <8 x i8> <i8 32, i8 33, i8 34, i8 35, i8 36, i8 37, i8 38, i8 39>, ptr %19, align 16, !tbaa !9
  %20 = call i32 @gmskframegen_assemble(ptr noundef %4, ptr noundef nonnull %2, ptr noundef nonnull %17, i32 noundef 40, i32 noundef 6, i32 noundef 1, i32 noundef 1) #4
  %21 = call i32 @gmskframegen_is_assembled(ptr noundef %4) #4
  %.not41 = icmp eq i32 %21, 1
  br i1 %.not41, label %25, label %22

22:                                               ; preds = %.preheader.preheader
  %23 = call i32 @gmskframegen_is_assembled(ptr noundef %4) #4
  %24 = sitofp i32 %23 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1, double noundef %24, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.4, double noundef 1.000000e+00) #4
  br label %26

25:                                               ; preds = %.preheader.preheader
  call void (...) @liquid_autotest_passed() #4
  br label %26

26:                                               ; preds = %25, %22
  %27 = alloca [53 x { float, float }], align 16
  br label %28

28:                                               ; preds = %26, %28
  %29 = call i32 @gmskframegen_write(ptr noundef %4, ptr noundef nonnull %27, i32 noundef 53) #4
  %30 = call i32 @gmskframesync_execute(ptr noundef %5, ptr noundef nonnull %27, i32 noundef 53) #4
  %.not42 = icmp eq i32 %29, 0
  br i1 %.not42, label %28, label %31, !llvm.loop !10

31:                                               ; preds = %28
  %32 = call i32 @gmskframesync_is_frame_open(ptr noundef %5) #4
  %.not43 = icmp eq i32 %32, 0
  br i1 %.not43, label %36, label %33

33:                                               ; preds = %31
  %34 = call i32 @gmskframesync_is_frame_open(ptr noundef %5) #4
  %35 = sitofp i32 %34 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 70, ptr noundef nonnull @.str.5, double noundef %35, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0.000000e+00) #4
  br label %37

36:                                               ; preds = %31
  call void (...) @liquid_autotest_passed() #4
  br label %37

37:                                               ; preds = %36, %33
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %.not44 = icmp eq i32 %38, 19088743
  br i1 %.not44, label %41, label %39

39:                                               ; preds = %37
  %40 = uitofp i32 %38 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 73, ptr noundef nonnull @.str.6, double noundef %40, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.7, double noundef 0x4172345670000000) #4
  br label %42

41:                                               ; preds = %37
  call void (...) @liquid_autotest_passed() #4
  br label %42

42:                                               ; preds = %41, %39
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #4
  call void @gmskframesync_get_framedatastats(ptr dead_on_unwind nonnull writable sret(%struct.framedatastats_s) align 8 %3, ptr noundef %5) #4
  %43 = load i32, ptr %3, align 8, !tbaa !12
  %.not45 = icmp eq i32 %43, 1
  br i1 %.not45, label %46, label %44

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

46:                                               ; preds = %42
  call void (...) @liquid_autotest_passed() #4
  br label %47

47:                                               ; preds = %46, %44
  %48 = getelementptr inbounds i8, ptr %3, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !15
  %.not46 = icmp eq i32 %49, 1
  br i1 %.not46, label %52, label %50

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

52:                                               ; preds = %47
  call void (...) @liquid_autotest_passed() #4
  br label %53

53:                                               ; preds = %52, %50
  %54 = getelementptr inbounds i8, ptr %3, i64 8
  %55 = load i32, ptr %54, align 8, !tbaa !16
  %.not47 = icmp eq i32 %55, 1
  br i1 %.not47, label %58, label %56

56:                                               ; preds = %53
  %57 = uitofp i32 %55 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 79, ptr noundef nonnull @.str.10, double noundef %57, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.4, double noundef 1.000000e+00) #4
  br label %59

58:                                               ; preds = %53
  call void (...) @liquid_autotest_passed() #4
  br label %59

59:                                               ; preds = %58, %56
  %60 = getelementptr inbounds i8, ptr %3, i64 16
  %61 = load i64, ptr %60, align 8, !tbaa !17
  %.not48 = icmp eq i64 %61, 40
  br i1 %.not48, label %64, label %62

62:                                               ; preds = %59
  %63 = uitofp i64 %61 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 80, ptr noundef nonnull @.str.11, double noundef %63, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.12, double noundef 4.000000e+01) #4
  br label %65

64:                                               ; preds = %59
  call void (...) @liquid_autotest_passed() #4
  br label %65

65:                                               ; preds = %64, %62
  %66 = call i32 @gmskframegen_destroy(ptr noundef %4) #4
  %67 = call i32 @gmskframesync_destroy(ptr noundef %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  call void @llvm.stackrestore.p0(ptr %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  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 @gmskframegen_create(...) local_unnamed_addr #2

declare ptr @gmskframesync_create(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

declare i32 @gmskframegen_print(ptr noundef) local_unnamed_addr #2

declare i32 @gmskframesync_print(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

declare i32 @gmskframesync_is_frame_open(ptr noundef) local_unnamed_addr #2

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

declare i32 @gmskframegen_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @gmskframesync_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 = { 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,LoopSimplifyPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass