; LLVM IR from jgaeddert/liquid-dsp :: src/audio/tests (cvsd_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"

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@liquid_autotest_verbose = external global i32, align 4
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 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 @cvsd_create(i32 noundef, float noundef, float noundef) #1

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

; Function Attrs: nounwind
declare float @sinf(float noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: nounwind
declare float @log10f(float noundef) #2

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

declare i32 @cvsd_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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_cvsd_rmse_sine8() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca [8 x float], align 16
  %10 = alloca [8 x float], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 256, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 3, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store float 1.500000e+00, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store float 0x3FECCCCCC0000000, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load float, ptr %3, align 4, !tbaa !9
  %17 = load float, ptr %4, align 4, !tbaa !9
  %18 = call ptr @cvsd_create(i32 noundef %15, float noundef %16, float noundef %17)
  store ptr %18, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load float, ptr %3, align 4, !tbaa !9
  %21 = load float, ptr %4, align 4, !tbaa !9
  %22 = call ptr @cvsd_create(i32 noundef %19, float noundef %20, float noundef %21)
  store ptr %22, ptr %6, align 8, !tbaa !11
  %23 = load ptr, ptr %5, align 8, !tbaa !11
  %24 = call i32 @cvsd_print(ptr noundef %23)
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %30

26:                                               ; preds = %0
  %27 = load ptr, ptr %5, align 8, !tbaa !11
  %28 = call i32 @cvsd_print(ptr noundef %27)
  %29 = sitofp i32 %28 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 75, ptr noundef @.str.1, double noundef %29, ptr noundef @.str.2, ptr noundef @.str.3, double noundef 0.000000e+00)
  br label %31

30:                                               ; preds = %0
  call void (...) @liquid_autotest_passed()
  br label %31

31:                                               ; preds = %30, %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store float 0.000000e+00, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store float 0x3FB99999A0000000, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store float 0.000000e+00, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %89, %31
  %33 = load i32, ptr %11, align 4, !tbaa !5
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = icmp ult i32 %33, %34
  br i1 %35, label %36, label %92

36:                                               ; preds = %32
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %50, %36
  %38 = load i32, ptr %12, align 4, !tbaa !5
  %39 = icmp ult i32 %38, 8
  br i1 %39, label %40, label %53

40:                                               ; preds = %37
  %41 = load float, ptr %7, align 4, !tbaa !9
  %42 = call float @sinf(float noundef %41) #5
  %43 = fmul float 5.000000e-01, %42
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds [8 x float], ptr %9, i64 0, i64 %45
  store float %43, ptr %46, align 4, !tbaa !9
  %47 = load float, ptr %8, align 4, !tbaa !9
  %48 = load float, ptr %7, align 4, !tbaa !9
  %49 = fadd float %48, %47
  store float %49, ptr %7, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %40
  %51 = load i32, ptr %12, align 4, !tbaa !5
  %52 = add i32 %51, 1
  store i32 %52, ptr %12, align 4, !tbaa !5
  br label %37, !llvm.loop !13

53:                                               ; preds = %37
  %54 = load ptr, ptr %5, align 8, !tbaa !11
  %55 = getelementptr inbounds [8 x float], ptr %9, i64 0, i64 0
  %56 = call i32 @cvsd_encode8(ptr noundef %54, ptr noundef %55, ptr noundef %13)
  %57 = load ptr, ptr %6, align 8, !tbaa !11
  %58 = load i8, ptr %13, align 1, !tbaa !15
  %59 = getelementptr inbounds [8 x float], ptr %10, i64 0, i64 0
  %60 = call i32 @cvsd_decode8(ptr noundef %57, i8 noundef zeroext %58, ptr noundef %59)
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %85, %53
  %62 = load i32, ptr %12, align 4, !tbaa !5
  %63 = icmp ult i32 %62, 8
  br i1 %63, label %64, label %88

64:                                               ; preds = %61
  %65 = load i32, ptr %12, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds [8 x float], ptr %9, i64 0, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds [8 x float], ptr %10, i64 0, i64 %70
  %72 = load float, ptr %71, align 4, !tbaa !9
  %73 = fsub float %68, %72
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [8 x float], ptr %9, i64 0, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !9
  %78 = load i32, ptr %12, align 4, !tbaa !5
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [8 x float], ptr %10, i64 0, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !9
  %82 = fsub float %77, %81
  %83 = load float, ptr %14, align 4, !tbaa !9
  %84 = call float @llvm.fmuladd.f32(float %73, float %82, float %83)
  store float %84, ptr %14, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %64
  %86 = load i32, ptr %12, align 4, !tbaa !5
  %87 = add i32 %86, 1
  store i32 %87, ptr %12, align 4, !tbaa !5
  br label %61, !llvm.loop !16

88:                                               ; preds = %61
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = add i32 %90, 1
  store i32 %91, ptr %11, align 4, !tbaa !5
  br label %32, !llvm.loop !17

92:                                               ; preds = %32
  %93 = load float, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %1, align 4, !tbaa !5
  %95 = mul i32 %94, 8
  %96 = uitofp i32 %95 to float
  %97 = fdiv float %93, %96
  %98 = call float @log10f(float noundef %97) #5
  %99 = fmul float 1.000000e+01, %98
  store float %99, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %106

102:                                              ; preds = %92
  %103 = load float, ptr %14, align 4, !tbaa !9
  %104 = fpext float %103 to double
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %104)
  br label %106

106:                                              ; preds = %102, %92
  %107 = load float, ptr %14, align 4, !tbaa !9
  %108 = fcmp oge float %107, -2.000000e+01
  br i1 %108, label %109, label %112

109:                                              ; preds = %106
  %110 = load float, ptr %14, align 4, !tbaa !9
  %111 = fpext float %110 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 100, ptr noundef @.str.5, double noundef %111, ptr noundef @.str.6, ptr noundef @.str.7, double noundef -2.000000e+01)
  br label %113

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

113:                                              ; preds = %112, %109
  %114 = load ptr, ptr %5, align 8, !tbaa !11
  %115 = call i32 @cvsd_destroy(ptr noundef %114)
  %116 = load ptr, ptr %6, align 8, !tbaa !11
  %117 = call i32 @cvsd_destroy(ptr noundef %116)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret void
}

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

declare i32 @cvsd_decode8(ptr noundef, i8 noundef zeroext, 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 "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 speculatable willreturn memory(none) }
attributes #4 = { 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 #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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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

@.str = external hidden unnamed_addr constant [86 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 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 @cvsd_create(i32 noundef, float noundef, float noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sinf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @log10f(float noundef) local_unnamed_addr #2

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

declare i32 @cvsd_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

; Function Attrs: nounwind uwtable
define dso_local void @autotest_cvsd_rmse_sine8() local_unnamed_addr #5 {
  %1 = alloca [8 x float], align 16
  %2 = alloca [8 x float], align 16
  %3 = alloca i8, align 1
  %4 = tail call ptr @cvsd_create(i32 noundef 3, float noundef 1.500000e+00, float noundef 0x3FECCCCCC0000000) #6
  %5 = tail call ptr @cvsd_create(i32 noundef 3, float noundef 1.500000e+00, float noundef 0x3FECCCCCC0000000) #6
  %6 = tail call i32 @cvsd_print(ptr noundef %4) #6
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %10, label %7

7:                                                ; preds = %0
  %8 = tail call i32 @cvsd_print(ptr noundef %4) #6
  %9 = sitofp i32 %8 to double
  tail call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 75, ptr noundef nonnull @.str.1, double noundef %9, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0.000000e+00) #6
  br label %11

10:                                               ; preds = %0
  tail call void (...) @liquid_autotest_passed() #6
  br label %11

11:                                               ; preds = %10, %7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  %12 = getelementptr inbounds i8, ptr %1, i64 4
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = getelementptr inbounds i8, ptr %1, i64 12
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = getelementptr inbounds i8, ptr %1, i64 20
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = getelementptr inbounds i8, ptr %1, i64 28
  %19 = getelementptr inbounds i8, ptr %2, i64 4
  %20 = getelementptr inbounds i8, ptr %2, i64 8
  %21 = getelementptr inbounds i8, ptr %2, i64 12
  %22 = getelementptr inbounds i8, ptr %2, i64 16
  %23 = getelementptr inbounds i8, ptr %2, i64 20
  %24 = getelementptr inbounds i8, ptr %2, i64 24
  %25 = getelementptr inbounds i8, ptr %2, i64 28
  br label %.preheader

.preheader:                                       ; preds = %11, %.preheader
  %.045 = phi float [ 0.000000e+00, %11 ], [ %83, %.preheader ]
  %.03444 = phi i32 [ 0, %11 ], [ %85, %.preheader ]
  %.03543 = phi float [ 0.000000e+00, %11 ], [ %84, %.preheader ]
  %26 = call float @sinf(float noundef %.03543) #6
  %27 = fmul float %26, 5.000000e-01
  store float %27, ptr %1, align 16, !tbaa !5
  %28 = fadd float %.03543, 0x3FB99999A0000000
  %29 = call float @sinf(float noundef %28) #6
  %30 = fmul float %29, 5.000000e-01
  store float %30, ptr %12, align 4, !tbaa !5
  %31 = fadd float %28, 0x3FB99999A0000000
  %32 = call float @sinf(float noundef %31) #6
  %33 = fmul float %32, 5.000000e-01
  store float %33, ptr %13, align 8, !tbaa !5
  %34 = fadd float %31, 0x3FB99999A0000000
  %35 = call float @sinf(float noundef %34) #6
  %36 = fmul float %35, 5.000000e-01
  store float %36, ptr %14, align 4, !tbaa !5
  %37 = fadd float %34, 0x3FB99999A0000000
  %38 = call float @sinf(float noundef %37) #6
  %39 = fmul float %38, 5.000000e-01
  store float %39, ptr %15, align 16, !tbaa !5
  %40 = fadd float %37, 0x3FB99999A0000000
  %41 = call float @sinf(float noundef %40) #6
  %42 = fmul float %41, 5.000000e-01
  store float %42, ptr %16, align 4, !tbaa !5
  %43 = fadd float %40, 0x3FB99999A0000000
  %44 = call float @sinf(float noundef %43) #6
  %45 = fmul float %44, 5.000000e-01
  store float %45, ptr %17, align 8, !tbaa !5
  %46 = fadd float %43, 0x3FB99999A0000000
  %47 = call float @sinf(float noundef %46) #6
  %48 = fmul float %47, 5.000000e-01
  store float %48, ptr %18, align 4, !tbaa !5
  %49 = call i32 @cvsd_encode8(ptr noundef %4, ptr noundef nonnull %1, ptr noundef nonnull %3) #6
  %50 = load i8, ptr %3, align 1, !tbaa !9
  %51 = call i32 @cvsd_decode8(ptr noundef %5, i8 noundef zeroext %50, ptr noundef nonnull %2) #6
  %52 = load float, ptr %1, align 16, !tbaa !5
  %53 = load float, ptr %2, align 16, !tbaa !5
  %54 = fsub float %52, %53
  %55 = call float @llvm.fmuladd.f32(float %54, float %54, float %.045)
  %56 = load float, ptr %12, align 4, !tbaa !5
  %57 = load float, ptr %19, align 4, !tbaa !5
  %58 = fsub float %56, %57
  %59 = call float @llvm.fmuladd.f32(float %58, float %58, float %55)
  %60 = load float, ptr %13, align 8, !tbaa !5
  %61 = load float, ptr %20, align 8, !tbaa !5
  %62 = fsub float %60, %61
  %63 = call float @llvm.fmuladd.f32(float %62, float %62, float %59)
  %64 = load float, ptr %14, align 4, !tbaa !5
  %65 = load float, ptr %21, align 4, !tbaa !5
  %66 = fsub float %64, %65
  %67 = call float @llvm.fmuladd.f32(float %66, float %66, float %63)
  %68 = load float, ptr %15, align 16, !tbaa !5
  %69 = load float, ptr %22, align 16, !tbaa !5
  %70 = fsub float %68, %69
  %71 = call float @llvm.fmuladd.f32(float %70, float %70, float %67)
  %72 = load float, ptr %16, align 4, !tbaa !5
  %73 = load float, ptr %23, align 4, !tbaa !5
  %74 = fsub float %72, %73
  %75 = call float @llvm.fmuladd.f32(float %74, float %74, float %71)
  %76 = load float, ptr %17, align 8, !tbaa !5
  %77 = load float, ptr %24, align 8, !tbaa !5
  %78 = fsub float %76, %77
  %79 = call float @llvm.fmuladd.f32(float %78, float %78, float %75)
  %80 = load float, ptr %18, align 4, !tbaa !5
  %81 = load float, ptr %25, align 4, !tbaa !5
  %82 = fsub float %80, %81
  %83 = call float @llvm.fmuladd.f32(float %82, float %82, float %79)
  %84 = fadd float %46, 0x3FB99999A0000000
  %85 = add nuw nsw i32 %.03444, 1
  %exitcond.not = icmp eq i32 %85, 256
  br i1 %exitcond.not, label %86, label %.preheader, !llvm.loop !10

86:                                               ; preds = %.preheader
  %87 = fmul float %83, 0x3F40000000000000
  %88 = call float @log10f(float noundef %87) #6
  %89 = fmul float %88, 1.000000e+01
  %90 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !12
  %.not38 = icmp eq i32 %90, 0
  br i1 %.not38, label %94, label %91

91:                                               ; preds = %86
  %92 = fpext float %89 to double
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %92)
  br label %94

94:                                               ; preds = %91, %86
  %95 = fcmp ult float %89, -2.000000e+01
  br i1 %95, label %98, label %96

96:                                               ; preds = %94
  %97 = fpext float %89 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 100, ptr noundef nonnull @.str.5, double noundef %97, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, double noundef -2.000000e+01) #6
  br label %99

98:                                               ; preds = %94
  call void (...) @liquid_autotest_passed() #6
  br label %99

99:                                               ; preds = %98, %96
  %100 = call i32 @cvsd_destroy(ptr noundef %4) #6
  %101 = call i32 @cvsd_destroy(ptr noundef %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #6
  ret void
}

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

declare i32 @cvsd_decode8(ptr noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #1

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 = { mustprogress nofree nounwind willreturn memory(write) "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 speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #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 = !{!"float", !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, !13, i64 0}
!13 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass