; LLVM IR from jgaeddert/liquid-dsp :: src/optim/tests (qnsearch_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 [90 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_qnsearch_rosenbrock() #0 {
  %1 = alloca float, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store float 0x3F847AE140000000, 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 !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 4000, ptr %3, align 4, !tbaa !9
  %9 = load i32, ptr %2, align 4, !tbaa !9
  %10 = zext i32 %9 to i64
  %11 = call ptr @llvm.stacksave.p0()
  store ptr %11, ptr %4, align 8
  %12 = alloca float, i64 %10, align 16
  store i64 %10, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %13

13:                                               ; preds = %21, %0
  %14 = load i32, ptr %6, align 4, !tbaa !9
  %15 = load i32, ptr %2, align 4, !tbaa !9
  %16 = icmp ult i32 %14, %15
  br i1 %16, label %17, label %24

17:                                               ; preds = %13
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = getelementptr inbounds float, ptr %12, i64 %19
  store float 0.000000e+00, ptr %20, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %17
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = add i32 %22, 1
  store i32 %23, ptr %6, align 4, !tbaa !9
  br label %13, !llvm.loop !11

24:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %25 = load i32, ptr %2, align 4, !tbaa !9
  %26 = call ptr @qnsearch_create(ptr noundef null, ptr noundef %12, i32 noundef %25, ptr noundef @liquid_rosenbrock, i32 noundef 0)
  store ptr %26, ptr %7, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %27 = load ptr, ptr %7, align 8, !tbaa !13
  %28 = load i32, ptr %3, align 4, !tbaa !9
  %29 = call float @qnsearch_execute(ptr noundef %27, i32 noundef %28, float noundef 0.000000e+00)
  store float %29, ptr %8, align 4, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !13
  %31 = call i32 @qnsearch_destroy(ptr noundef %30)
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %113, %24
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = load i32, ptr %2, align 4, !tbaa !9
  %35 = icmp ult i32 %33, %34
  br i1 %35, label %36, label %116

36:                                               ; preds = %32
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds float, ptr %12, i64 %38
  %40 = load float, ptr %39, align 4, !tbaa !5
  %41 = fsub float %40, 1.000000e+00
  %42 = fpext float %41 to double
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds float, ptr %12, i64 %44
  %46 = load float, ptr %45, align 4, !tbaa !5
  %47 = fsub float %46, 1.000000e+00
  %48 = fpext float %47 to double
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds float, ptr %12, i64 %50
  %52 = load float, ptr %51, align 4, !tbaa !5
  %53 = fsub float %52, 1.000000e+00
  %54 = fpext float %53 to double
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %12, i64 %56
  %58 = load float, ptr %57, align 4, !tbaa !5
  %59 = fsub float %58, 1.000000e+00
  %60 = fpext float %59 to double
  %61 = call double @llvm.fmuladd.f64(double %42, double %48, double 0.000000e+00)
  %62 = call double @sqrt(double noundef %61) #6
  %63 = load float, ptr %1, align 4, !tbaa !5
  %64 = fpext float %63 to double
  %65 = fcmp ogt double %62, %64
  br i1 %65, label %82, label %66

66:                                               ; preds = %36
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds float, ptr %12, i64 %68
  %70 = load float, ptr %69, align 4, !tbaa !5
  %71 = call i1 @llvm.is.fpclass.f32(float %70, i32 3)
  br i1 %71, label %82, label %72

72:                                               ; preds = %66
  %73 = load i32, ptr %6, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds float, ptr %12, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !5
  %77 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %77, label %82, label %78

78:                                               ; preds = %72
  %79 = call i1 @llvm.is.fpclass.f32(float 1.000000e+00, i32 3)
  br i1 %79, label %82, label %80

80:                                               ; preds = %78
  %81 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %81, label %82, label %111

82:                                               ; preds = %80, %78, %72, %66, %36
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %12, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !5
  %87 = fsub float %86, 1.000000e+00
  %88 = fpext float %87 to double
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds float, ptr %12, i64 %90
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = fsub float %92, 1.000000e+00
  %94 = fpext float %93 to double
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %12, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !5
  %99 = fsub float %98, 1.000000e+00
  %100 = fpext float %99 to double
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %12, i64 %102
  %104 = load float, ptr %103, align 4, !tbaa !5
  %105 = fsub float %104, 1.000000e+00
  %106 = fpext float %105 to double
  %107 = call double @llvm.fmuladd.f64(double %88, double %94, double 0.000000e+00)
  %108 = call double @sqrt(double noundef %107) #6
  %109 = load float, ptr %1, align 4, !tbaa !5
  %110 = fpext float %109 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 58, ptr noundef @.str.1, double noundef %108, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %110)
  br label %112

111:                                              ; preds = %80
  call void (...) @liquid_autotest_passed()
  br label %112

112:                                              ; preds = %111, %82
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %6, align 4, !tbaa !9
  %115 = add i32 %114, 1
  store i32 %115, ptr %6, align 4, !tbaa !9
  br label %32, !llvm.loop !15

116:                                              ; preds = %32
  %117 = load i32, ptr %2, align 4, !tbaa !9
  %118 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %117)
  %119 = fsub float %118, 0.000000e+00
  %120 = fpext float %119 to double
  %121 = load i32, ptr %2, align 4, !tbaa !9
  %122 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %121)
  %123 = fsub float %122, 0.000000e+00
  %124 = fpext float %123 to double
  %125 = load i32, ptr %2, align 4, !tbaa !9
  %126 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %125)
  %127 = fsub float %126, 0.000000e+00
  %128 = fpext float %127 to double
  %129 = load i32, ptr %2, align 4, !tbaa !9
  %130 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %129)
  %131 = fsub float %130, 0.000000e+00
  %132 = fpext float %131 to double
  %133 = call double @llvm.fmuladd.f64(double %120, double %124, double 0.000000e+00)
  %134 = call double @sqrt(double noundef %133) #6
  %135 = load float, ptr %1, align 4, !tbaa !5
  %136 = fpext float %135 to double
  %137 = fcmp ogt double %134, %136
  br i1 %137, label %150, label %138

138:                                              ; preds = %116
  %139 = load i32, ptr %2, align 4, !tbaa !9
  %140 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %139)
  %141 = call i1 @llvm.is.fpclass.f32(float %140, i32 3)
  br i1 %141, label %150, label %142

142:                                              ; preds = %138
  %143 = load i32, ptr %2, align 4, !tbaa !9
  %144 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %143)
  %145 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %145, label %150, label %146

146:                                              ; preds = %142
  %147 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %147, label %150, label %148

148:                                              ; preds = %146
  %149 = call i1 @llvm.is.fpclass.f32(float 0.000000e+00, i32 3)
  br i1 %149, label %150, label %171

150:                                              ; preds = %148, %146, %142, %138, %116
  %151 = load i32, ptr %2, align 4, !tbaa !9
  %152 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %151)
  %153 = fsub float %152, 0.000000e+00
  %154 = fpext float %153 to double
  %155 = load i32, ptr %2, align 4, !tbaa !9
  %156 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %155)
  %157 = fsub float %156, 0.000000e+00
  %158 = fpext float %157 to double
  %159 = load i32, ptr %2, align 4, !tbaa !9
  %160 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %159)
  %161 = fsub float %160, 0.000000e+00
  %162 = fpext float %161 to double
  %163 = load i32, ptr %2, align 4, !tbaa !9
  %164 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef %12, i32 noundef %163)
  %165 = fsub float %164, 0.000000e+00
  %166 = fpext float %165 to double
  %167 = call double @llvm.fmuladd.f64(double %154, double %158, double 0.000000e+00)
  %168 = call double @sqrt(double noundef %167) #6
  %169 = load float, ptr %1, align 4, !tbaa !5
  %170 = fpext float %169 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 61, ptr noundef @.str.4, double noundef %168, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %170)
  br label %172

171:                                              ; preds = %148
  call void (...) @liquid_autotest_passed()
  br label %172

172:                                              ; preds = %171, %150
  %173 = load float, ptr %8, align 4, !tbaa !5
  %174 = load float, ptr %1, align 4, !tbaa !5
  %175 = fcmp oge float %173, %174
  br i1 %175, label %176, label %181

176:                                              ; preds = %172
  %177 = load float, ptr %8, align 4, !tbaa !5
  %178 = fpext float %177 to double
  %179 = load float, ptr %1, align 4, !tbaa !5
  %180 = fpext float %179 to double
  call void @liquid_autotest_failed_expr(ptr noundef @.str, i32 noundef 62, ptr noundef @.str.5, double noundef %178, ptr noundef @.str.2, ptr noundef @.str.3, double noundef %180)
  br label %182

181:                                              ; preds = %172
  call void (...) @liquid_autotest_passed()
  br label %182

182:                                              ; preds = %181, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %183 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %183)
  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
}

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

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

declare ptr @qnsearch_create(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3

declare float @liquid_rosenbrock(ptr noundef, ptr noundef, i32 noundef) #3

declare float @qnsearch_execute(ptr noundef, i32 noundef, float noundef) #3

declare i32 @qnsearch_destroy(ptr noundef) #3

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

declare void @liquid_autotest_passed(...) #3

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

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 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { "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 #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 = !{!"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"}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !12}


; 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 [90 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @autotest_qnsearch_rosenbrock() local_unnamed_addr #0 {
  %1 = alloca [6 x float], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %1, i8 0, i64 24, i1 false), !tbaa !5
  %2 = call ptr @qnsearch_create(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6, ptr noundef nonnull @liquid_rosenbrock, i32 noundef 0) #6
  %3 = call float @qnsearch_execute(ptr noundef %2, i32 noundef 4000, float noundef 0.000000e+00) #6
  %4 = call i32 @qnsearch_destroy(ptr noundef %2) #6
  %5 = load float, ptr %1, align 16, !tbaa !5
  %6 = fadd float %5, -1.000000e+00
  %7 = fpext float %6 to double
  %8 = call double @llvm.fmuladd.f64(double %7, double %7, double 0.000000e+00)
  %sqrt = call double @llvm.sqrt.f64(double %8)
  %9 = fcmp ogt double %sqrt, 0x3F847AE140000000
  %10 = fcmp uno float %5, 0.000000e+00
  %or.cond = select i1 %9, i1 true, i1 %10
  br i1 %or.cond, label %11, label %12

11:                                               ; preds = %0
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1, double noundef %sqrt, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #6
  br label %13

12:                                               ; preds = %0
  call void (...) @liquid_autotest_passed() #6
  br label %13

13:                                               ; preds = %11, %12
  %14 = getelementptr inbounds i8, ptr %1, i64 4
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = fadd float %15, -1.000000e+00
  %17 = fpext float %16 to double
  %18 = call double @llvm.fmuladd.f64(double %17, double %17, double 0.000000e+00)
  %sqrt.1 = call double @llvm.sqrt.f64(double %18)
  %19 = fcmp ogt double %sqrt.1, 0x3F847AE140000000
  %20 = fcmp uno float %15, 0.000000e+00
  %or.cond46 = select i1 %19, i1 true, i1 %20
  br i1 %or.cond46, label %22, label %21

21:                                               ; preds = %13
  call void (...) @liquid_autotest_passed() #6
  br label %23

22:                                               ; preds = %13
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1, double noundef %sqrt.1, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #6
  br label %23

23:                                               ; preds = %22, %21
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = load float, ptr %24, align 8, !tbaa !5
  %26 = fadd float %25, -1.000000e+00
  %27 = fpext float %26 to double
  %28 = call double @llvm.fmuladd.f64(double %27, double %27, double 0.000000e+00)
  %sqrt.2 = call double @llvm.sqrt.f64(double %28)
  %29 = fcmp ogt double %sqrt.2, 0x3F847AE140000000
  %30 = fcmp uno float %25, 0.000000e+00
  %or.cond47 = select i1 %29, i1 true, i1 %30
  br i1 %or.cond47, label %32, label %31

31:                                               ; preds = %23
  call void (...) @liquid_autotest_passed() #6
  br label %33

32:                                               ; preds = %23
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1, double noundef %sqrt.2, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #6
  br label %33

33:                                               ; preds = %32, %31
  %34 = getelementptr inbounds i8, ptr %1, i64 12
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = fadd float %35, -1.000000e+00
  %37 = fpext float %36 to double
  %38 = call double @llvm.fmuladd.f64(double %37, double %37, double 0.000000e+00)
  %sqrt.3 = call double @llvm.sqrt.f64(double %38)
  %39 = fcmp ogt double %sqrt.3, 0x3F847AE140000000
  %40 = fcmp uno float %35, 0.000000e+00
  %or.cond48 = select i1 %39, i1 true, i1 %40
  br i1 %or.cond48, label %42, label %41

41:                                               ; preds = %33
  call void (...) @liquid_autotest_passed() #6
  br label %43

42:                                               ; preds = %33
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1, double noundef %sqrt.3, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #6
  br label %43

43:                                               ; preds = %42, %41
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  %45 = load float, ptr %44, align 16, !tbaa !5
  %46 = fadd float %45, -1.000000e+00
  %47 = fpext float %46 to double
  %48 = call double @llvm.fmuladd.f64(double %47, double %47, double 0.000000e+00)
  %sqrt.4 = call double @llvm.sqrt.f64(double %48)
  %49 = fcmp ogt double %sqrt.4, 0x3F847AE140000000
  %50 = fcmp uno float %45, 0.000000e+00
  %or.cond49 = select i1 %49, i1 true, i1 %50
  br i1 %or.cond49, label %52, label %51

51:                                               ; preds = %43
  call void (...) @liquid_autotest_passed() #6
  br label %53

52:                                               ; preds = %43
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1, double noundef %sqrt.4, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #6
  br label %53

53:                                               ; preds = %52, %51
  %54 = getelementptr inbounds i8, ptr %1, i64 20
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = fadd float %55, -1.000000e+00
  %57 = fpext float %56 to double
  %58 = call double @llvm.fmuladd.f64(double %57, double %57, double 0.000000e+00)
  %sqrt.5 = call double @llvm.sqrt.f64(double %58)
  %59 = fcmp ogt double %sqrt.5, 0x3F847AE140000000
  %60 = fcmp uno float %55, 0.000000e+00
  %or.cond50 = select i1 %59, i1 true, i1 %60
  br i1 %or.cond50, label %62, label %61

61:                                               ; preds = %53
  call void (...) @liquid_autotest_passed() #6
  br label %63

62:                                               ; preds = %53
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 58, ptr noundef nonnull @.str.1, double noundef %sqrt.5, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #6
  br label %63

63:                                               ; preds = %62, %61
  %64 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %65 = fpext float %64 to double
  %66 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %67 = fpext float %66 to double
  %68 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %69 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %70 = call double @llvm.fmuladd.f64(double %65, double %67, double 0.000000e+00)
  %71 = call double @sqrt(double noundef %70) #6
  %72 = fcmp ogt double %71, 0x3F847AE140000000
  br i1 %72, label %78, label %73

73:                                               ; preds = %63
  %74 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %75 = fcmp uno float %74, 0.000000e+00
  br i1 %75, label %78, label %76

76:                                               ; preds = %73
  %77 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  call void (...) @liquid_autotest_passed() #6
  br label %87

78:                                               ; preds = %73, %63
  %79 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %80 = fpext float %79 to double
  %81 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %82 = fpext float %81 to double
  %83 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %84 = call float @liquid_rosenbrock(ptr noundef null, ptr noundef nonnull %1, i32 noundef 6) #6
  %85 = call double @llvm.fmuladd.f64(double %80, double %82, double 0.000000e+00)
  %86 = call double @sqrt(double noundef %85) #6
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 61, ptr noundef nonnull @.str.4, double noundef %86, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #6
  br label %87

87:                                               ; preds = %76, %78
  %88 = fcmp ult float %3, 0x3F847AE140000000
  br i1 %88, label %91, label %89

89:                                               ; preds = %87
  %90 = fpext float %3 to double
  call void @liquid_autotest_failed_expr(ptr noundef nonnull @.str, i32 noundef 62, ptr noundef nonnull @.str.5, double noundef %90, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, double noundef 0x3F847AE140000000) #6
  br label %92

91:                                               ; preds = %87
  call void (...) @liquid_autotest_passed() #6
  br label %92

92:                                               ; preds = %91, %89
  ret void
}

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

declare float @liquid_rosenbrock(ptr noundef, ptr noundef, i32 noundef) #1

declare float @qnsearch_execute(ptr noundef, i32 noundef, float noundef) local_unnamed_addr #1

declare i32 @qnsearch_destroy(ptr noundef) local_unnamed_addr #1

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

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

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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #4

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

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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


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