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

@liquid_autotest_verbose = external global i32, align 4
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @gasearch_autotest_peak_callback(ptr noundef, ptr noundef) #0

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

declare float @chromosome_valuef(ptr noundef, i32 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: nounwind uwtable
define dso_local void @autotest_gasearch_peak() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 16, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 6, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 8000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 16, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store float 0x3FC99999A0000000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store float 0x3FB99999A0000000, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = call ptr @chromosome_create_basic(i32 noundef %13, i32 noundef %14)
  store ptr %15, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %16 = load ptr, ptr %9, align 8, !tbaa !11
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = load float, ptr %5, align 4, !tbaa !9
  %19 = call ptr @gasearch_create_advanced(ptr noundef @gasearch_autotest_peak_callback, ptr noundef null, ptr noundef %16, i32 noundef 1, i32 noundef %17, float noundef %18)
  store ptr %19, ptr %10, align 8, !tbaa !11
  %20 = load ptr, ptr %10, align 8, !tbaa !11
  %21 = load i32, ptr %3, align 4, !tbaa !5
  %22 = call float @gasearch_run(ptr noundef %20, i32 noundef %21, float noundef 1.000000e+06)
  store float %22, ptr %8, align 4, !tbaa !9
  %23 = load ptr, ptr %10, align 8, !tbaa !11
  %24 = load ptr, ptr %9, align 8, !tbaa !11
  %25 = call i32 @gasearch_getopt(ptr noundef %23, ptr noundef %24, ptr noundef %8)
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = zext i32 %26 to i64
  %28 = call ptr @llvm.stacksave.p0()
  store ptr %28, ptr %11, align 8
  %29 = alloca float, i64 %27, align 16
  store i64 %27, ptr %12, align 8
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %41, %0
  %31 = load i32, ptr %7, align 4, !tbaa !5
  %32 = load i32, ptr %1, align 4, !tbaa !5
  %33 = icmp ult i32 %31, %32
  br i1 %33, label %34, label %44

34:                                               ; preds = %30
  %35 = load ptr, ptr %9, align 8, !tbaa !11
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = call float @chromosome_valuef(ptr noundef %35, i32 noundef %36)
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds float, ptr %29, i64 %39
  store float %37, ptr %40, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %34
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = add i32 %42, 1
  store i32 %43, ptr %7, align 4, !tbaa !5
  br label %30, !llvm.loop !13

44:                                               ; preds = %30
  %45 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !5
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %55

47:                                               ; preds = %44
  %48 = load ptr, ptr %10, align 8, !tbaa !11
  %49 = call i32 @gasearch_print(ptr noundef %48)
  %50 = load float, ptr %8, align 4, !tbaa !9
  %51 = fpext float %50 to double
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %51)
  %53 = load ptr, ptr %9, align 8, !tbaa !11
  %54 = call i32 @chromosome_printf(ptr noundef %53)
  br label %55

55:                                               ; preds = %47, %44
  %56 = load ptr, ptr %9, align 8, !tbaa !11
  %57 = call i32 @chromosome_destroy(ptr noundef %56)
  %58 = load ptr, ptr %10, align 8, !tbaa !11
  %59 = call i32 @gasearch_destroy(ptr noundef %58)
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %141, %55
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = icmp ult i32 %61, %62
  br i1 %63, label %64, label %144

64:                                               ; preds = %60
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds float, ptr %29, i64 %66
  %68 = load float, ptr %67, align 4, !tbaa !9
  %69 = fpext float %68 to double
  %70 = fsub double %69, 0x3FE6A09E667F3BCD
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds float, ptr %29, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !9
  %75 = fpext float %74 to double
  %76 = fsub double %75, 0x3FE6A09E667F3BCD
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds float, ptr %29, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !9
  %81 = fpext float %80 to double
  %82 = fsub double %81, 0x3FE6A09E667F3BCD
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %29, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !9
  %87 = fpext float %86 to double
  %88 = fsub double %87, 0x3FE6A09E667F3BCD
  %89 = call double @llvm.fmuladd.f64(double %70, double %76, double 0.000000e+00)
  %90 = call double @sqrt(double noundef %89) #6
  %91 = load float, ptr %6, align 4, !tbaa !9
  %92 = fpext float %91 to double
  %93 = fcmp ogt double %90, %92
  br i1 %93, label %110, label %94

94:                                               ; preds = %64
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %29, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !9
  %99 = call i1 @llvm.is.fpclass.f32(float %98, i32 3)
  br i1 %99, label %110, label %100

100:                                              ; preds = %94
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %29, i64 %102
  %104 = load float, ptr %103, align 4, !tbaa !9
  %105 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %105, label %110, label %106

106:                                              ; preds = %100
  %107 = call i1 @llvm.is.fpclass.f32(float 0x3FE6A09E60000000, i32 3)
  br i1 %107, label %110, label %108

108:                                              ; preds = %106
  %109 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %109, label %110, label %139

110:                                              ; preds = %108, %106, %100, %94, %64
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds float, ptr %29, i64 %112
  %114 = load float, ptr %113, align 4, !tbaa !9
  %115 = fpext float %114 to double
  %116 = fsub double %115, 0x3FE6A09E667F3BCD
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds float, ptr %29, i64 %118
  %120 = load float, ptr %119, align 4, !tbaa !9
  %121 = fpext float %120 to double
  %122 = fsub double %121, 0x3FE6A09E667F3BCD
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = zext i32 %123 to i64
  %125 = getelementptr inbounds float, ptr %29, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !9
  %127 = fpext float %126 to double
  %128 = fsub double %127, 0x3FE6A09E667F3BCD
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds float, ptr %29, i64 %130
  %132 = load float, ptr %131, align 4, !tbaa !9
  %133 = fpext float %132 to double
  %134 = fsub double %133, 0x3FE6A09E667F3BCD
  %135 = call double @llvm.fmuladd.f64(double %116, double %122, double 0.000000e+00)
  %136 = call double @sqrt(double noundef %135) #6
  %137 = load float, ptr %6, align 4, !tbaa !9
  %138 = fpext float %137 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 91, ptr noundef @.str.2, double noundef %136, ptr noundef @.str.3, ptr noundef @.str.4, double noundef %138)
  br label %140

139:                                              ; preds = %108
  call void (...) @liquid_autotest_passed()
  br label %140

140:                                              ; preds = %139, %110
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %7, align 4, !tbaa !5
  %143 = add i32 %142, 1
  store i32 %143, ptr %7, align 4, !tbaa !5
  br label %60, !llvm.loop !15

144:                                              ; preds = %60
  %145 = load float, ptr %8, align 4, !tbaa !9
  %146 = fcmp ole float %145, 0x3FE6666660000000
  br i1 %146, label %147, label %150

147:                                              ; preds = %144
  %148 = load float, ptr %8, align 4, !tbaa !9
  %149 = fpext float %148 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str.1, i32 noundef 94, ptr noundef @.str.5, double noundef %149, ptr noundef @.str.6, ptr noundef @.str.7, double noundef 0x3FE6666660000000)
  br label %151

150:                                              ; preds = %144
  call void (...) @liquid_autotest_passed()
  br label %151

151:                                              ; preds = %150, %147
  %152 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %152)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

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

declare ptr @gasearch_create_advanced(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, float noundef) #2

declare float @gasearch_run(ptr noundef, i32 noundef, float noundef) #2

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

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

declare i32 @gasearch_print(ptr noundef) #2

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

declare i32 @chromosome_printf(ptr noundef) #2

declare i32 @chromosome_destroy(ptr noundef) #2

declare i32 @gasearch_destroy(ptr noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f32(float, i32 immarg) #5

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 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 "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 nosync nounwind speculatable willreturn memory(none) }
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, !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 = distinct !{!15, !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"

@liquid_autotest_verbose = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local float @gasearch_autotest_peak_callback(ptr noundef, ptr noundef) #0

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

declare float @chromosome_valuef(ptr noundef, i32 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: nounwind uwtable
define dso_local void @autotest_gasearch_peak() local_unnamed_addr #0 {
  %1 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %2 = tail call ptr @chromosome_create_basic(i32 noundef 16, i32 noundef 6) #7
  %3 = tail call ptr @gasearch_create_advanced(ptr noundef nonnull @gasearch_autotest_peak_callback, ptr noundef null, ptr noundef %2, i32 noundef 1, i32 noundef 16, float noundef 0x3FC99999A0000000) #7
  %4 = tail call float @gasearch_run(ptr noundef %3, i32 noundef 8000, float noundef 1.000000e+06) #7
  store float %4, ptr %1, align 4, !tbaa !5
  %5 = call i32 @gasearch_getopt(ptr noundef %3, ptr noundef %2, ptr noundef nonnull %1) #7
  %6 = call ptr @llvm.stacksave.p0()
  %7 = alloca [16 x float], align 16
  %8 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 0) #7
  store float %8, ptr %7, align 16, !tbaa !5
  %9 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 1) #7
  %10 = getelementptr inbounds i8, ptr %7, i64 4
  store float %9, ptr %10, align 4, !tbaa !5
  %11 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 2) #7
  %12 = getelementptr inbounds i8, ptr %7, i64 8
  store float %11, ptr %12, align 8, !tbaa !5
  %13 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 3) #7
  %14 = getelementptr inbounds i8, ptr %7, i64 12
  store float %13, ptr %14, align 4, !tbaa !5
  %15 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 4) #7
  %16 = getelementptr inbounds i8, ptr %7, i64 16
  store float %15, ptr %16, align 16, !tbaa !5
  %17 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 5) #7
  %18 = getelementptr inbounds i8, ptr %7, i64 20
  store float %17, ptr %18, align 4, !tbaa !5
  %19 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 6) #7
  %20 = getelementptr inbounds i8, ptr %7, i64 24
  store float %19, ptr %20, align 8, !tbaa !5
  %21 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 7) #7
  %22 = getelementptr inbounds i8, ptr %7, i64 28
  store float %21, ptr %22, align 4, !tbaa !5
  %23 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 8) #7
  %24 = getelementptr inbounds i8, ptr %7, i64 32
  store float %23, ptr %24, align 16, !tbaa !5
  %25 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 9) #7
  %26 = getelementptr inbounds i8, ptr %7, i64 36
  store float %25, ptr %26, align 4, !tbaa !5
  %27 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 10) #7
  %28 = getelementptr inbounds i8, ptr %7, i64 40
  store float %27, ptr %28, align 8, !tbaa !5
  %29 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 11) #7
  %30 = getelementptr inbounds i8, ptr %7, i64 44
  store float %29, ptr %30, align 4, !tbaa !5
  %31 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 12) #7
  %32 = getelementptr inbounds i8, ptr %7, i64 48
  store float %31, ptr %32, align 16, !tbaa !5
  %33 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 13) #7
  %34 = getelementptr inbounds i8, ptr %7, i64 52
  store float %33, ptr %34, align 4, !tbaa !5
  %35 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 14) #7
  %36 = getelementptr inbounds i8, ptr %7, i64 56
  store float %35, ptr %36, align 8, !tbaa !5
  %37 = call float @chromosome_valuef(ptr noundef %2, i32 noundef 15) #7
  %38 = getelementptr inbounds i8, ptr %7, i64 60
  store float %37, ptr %38, align 4, !tbaa !5
  %39 = load i32, ptr @liquid_autotest_verbose, align 4, !tbaa !9
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %46, label %40

40:                                               ; preds = %0
  %41 = call i32 @gasearch_print(ptr noundef %3) #7
  %42 = load float, ptr %1, align 4, !tbaa !5
  %43 = fpext float %42 to double
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %43)
  %45 = call i32 @chromosome_printf(ptr noundef %2) #7
  br label %46

46:                                               ; preds = %40, %0
  %47 = call i32 @chromosome_destroy(ptr noundef %2) #7
  %48 = call i32 @gasearch_destroy(ptr noundef %3) #7
  br label %49

49:                                               ; preds = %46, %59
  %indvars.iv = phi i64 [ 0, %46 ], [ %indvars.iv.next, %59 ]
  %50 = getelementptr inbounds float, ptr %7, i64 %indvars.iv
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = fpext float %51 to double
  %53 = fadd double %52, 0xBFE6A09E667F3BCD
  %54 = call double @llvm.fmuladd.f64(double %53, double %53, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %54)
  %55 = fcmp ogt double %sqrt, 0x3FB99999A0000000
  %56 = fcmp uno float %51, 0.000000e+00
  %or.cond = select i1 %55, i1 true, i1 %56
  br i1 %or.cond, label %57, label %58

57:                                               ; preds = %49
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 91, ptr noundef nonnull @.str.2, double noundef %sqrt, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, double noundef 0x3FB99999A0000000) #7
  br label %59

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

59:                                               ; preds = %57, %58
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 16
  br i1 %exitcond.not, label %60, label %49, !llvm.loop !11

60:                                               ; preds = %59
  %61 = load float, ptr %1, align 4, !tbaa !5
  %62 = fcmp ugt float %61, 0x3FE6666660000000
  br i1 %62, label %65, label %63

63:                                               ; preds = %60
  %64 = fpext float %61 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str.1, i32 noundef 94, ptr noundef nonnull @.str.5, double noundef %64, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, double noundef 0x3FE6666660000000) #7
  br label %66

65:                                               ; preds = %60
  call void (...) @liquid_autotest_passed() #7
  br label %66

66:                                               ; preds = %65, %63
  call void @llvm.stackrestore.p0(ptr %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret void
}

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

declare ptr @gasearch_create_advanced(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #2

declare float @gasearch_run(ptr noundef, i32 noundef, float noundef) local_unnamed_addr #2

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

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

declare i32 @gasearch_print(ptr noundef) local_unnamed_addr #2

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

declare i32 @chromosome_printf(ptr noundef) local_unnamed_addr #2

declare i32 @chromosome_destroy(ptr noundef) local_unnamed_addr #2

declare i32 @gasearch_destroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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 void @llvm.stackrestore.p0(ptr) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #6

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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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