; LLVM IR from jgaeddert/liquid-dsp :: src/optim/src (gasearch)

; 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.gasearch_s = type { ptr, i32, i32, float, i32, i32, ptr, ptr, ptr, float, ptr, ptr, i32 }
%struct.chromosome_s = type { i32, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [79 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @gasearch_create_advanced(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store float %5, ptr %13, align 4, !tbaa !11
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %20

18:                                               ; preds = %6
  %19 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 68, ptr noundef @.str.1)
  store ptr %19, ptr %7, align 8
  br label %157

20:                                               ; preds = %6
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  %24 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 70, ptr noundef @.str.2)
  store ptr %24, ptr %7, align 8
  br label %157

25:                                               ; preds = %20
  %26 = load i32, ptr %12, align 4, !tbaa !9
  %27 = icmp ult i32 %26, 2
  br i1 %27, label %28, label %30

28:                                               ; preds = %25
  %29 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 72, ptr noundef @.str.3)
  store ptr %29, ptr %7, align 8
  br label %157

30:                                               ; preds = %25
  %31 = load i32, ptr %12, align 4, !tbaa !9
  %32 = icmp ugt i32 %31, 1024
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 74, ptr noundef @.str.4, i32 noundef 1024)
  store ptr %34, ptr %7, align 8
  br label %157

35:                                               ; preds = %30
  %36 = load float, ptr %13, align 4, !tbaa !11
  %37 = fcmp olt float %36, 0.000000e+00
  br i1 %37, label %41, label %38

38:                                               ; preds = %35
  %39 = load float, ptr %13, align 4, !tbaa !11
  %40 = fcmp ogt float %39, 1.000000e+00
  br i1 %40, label %41, label %43

41:                                               ; preds = %38, %35
  %42 = call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef @.str, i32 noundef 76, ptr noundef @.str.5)
  store ptr %42, ptr %7, align 8
  br label %157

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %44 = call noalias ptr @malloc(i64 noundef 88) #6
  store ptr %44, ptr %14, align 8, !tbaa !5
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.gasearch_s, ptr %46, i32 0, i32 11
  store ptr %45, ptr %47, align 8, !tbaa !13
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.chromosome_s, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !15
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.gasearch_s, ptr %51, i32 0, i32 4
  store i32 %50, ptr %52, align 4, !tbaa !17
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.gasearch_s, ptr %54, i32 0, i32 1
  store i32 %53, ptr %55, align 8, !tbaa !18
  %56 = load float, ptr %13, align 4, !tbaa !11
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.gasearch_s, ptr %57, i32 0, i32 3
  store float %56, ptr %58, align 8, !tbaa !19
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.gasearch_s, ptr %60, i32 0, i32 10
  store ptr %59, ptr %61, align 8, !tbaa !20
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = icmp eq i32 %62, 0
  %64 = zext i1 %63 to i64
  %65 = select i1 %63, i32 1, i32 0
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.gasearch_s, ptr %66, i32 0, i32 12
  store i32 %65, ptr %67, align 8, !tbaa !21
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.chromosome_s, ptr %68, i32 0, i32 4
  %70 = load i32, ptr %69, align 8, !tbaa !22
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.gasearch_s, ptr %71, i32 0, i32 5
  store i32 %70, ptr %72, align 8, !tbaa !23
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.gasearch_s, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 8, !tbaa !18
  %76 = lshr i32 %75, 2
  %77 = icmp ult i32 %76, 2
  br i1 %77, label %78, label %79

78:                                               ; preds = %43
  br label %84

79:                                               ; preds = %43
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.gasearch_s, ptr %80, i32 0, i32 1
  %82 = load i32, ptr %81, align 8, !tbaa !18
  %83 = lshr i32 %82, 2
  br label %84

84:                                               ; preds = %79, %78
  %85 = phi i32 [ 2, %78 ], [ %83, %79 ]
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.gasearch_s, ptr %86, i32 0, i32 2
  store i32 %85, ptr %87, align 4, !tbaa !24
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.gasearch_s, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !18
  %91 = zext i32 %90 to i64
  %92 = mul i64 8, %91
  %93 = call noalias ptr @malloc(i64 noundef %92) #6
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.gasearch_s, ptr %94, i32 0, i32 0
  store ptr %93, ptr %95, align 8, !tbaa !25
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.gasearch_s, ptr %96, i32 0, i32 1
  %98 = load i32, ptr %97, align 8, !tbaa !18
  %99 = zext i32 %98 to i64
  %100 = call noalias ptr @calloc(i64 noundef 4, i64 noundef %99) #7
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.gasearch_s, ptr %101, i32 0, i32 6
  store ptr %100, ptr %102, align 8, !tbaa !26
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = call ptr @chromosome_create_clone(ptr noundef %103)
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.gasearch_s, ptr %105, i32 0, i32 8
  store ptr %104, ptr %106, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %122, %84
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.gasearch_s, ptr %109, i32 0, i32 1
  %111 = load i32, ptr %110, align 8, !tbaa !18
  %112 = icmp ult i32 %108, %111
  br i1 %112, label %113, label %125

113:                                              ; preds = %107
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = call ptr @chromosome_create_clone(ptr noundef %114)
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.gasearch_s, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !25
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds ptr, ptr %118, i64 %120
  store ptr %115, ptr %121, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %113
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = add i32 %123, 1
  store i32 %124, ptr %15, align 4, !tbaa !9
  br label %107, !llvm.loop !28

125:                                              ; preds = %107
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %141, %125
  %127 = load i32, ptr %15, align 4, !tbaa !9
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.gasearch_s, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 8, !tbaa !18
  %131 = icmp ult i32 %127, %130
  br i1 %131, label %132, label %144

132:                                              ; preds = %126
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.gasearch_s, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !25
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds ptr, ptr %135, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = call i32 @chromosome_init_random(ptr noundef %139)
  br label %141

141:                                              ; preds = %132
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = add i32 %142, 1
  store i32 %143, ptr %15, align 4, !tbaa !9
  br label %126, !llvm.loop !30

144:                                              ; preds = %126
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = call i32 @gasearch_evaluate(ptr noundef %145)
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  %148 = call i32 @gasearch_rank(ptr noundef %147)
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.gasearch_s, ptr %149, i32 0, i32 6
  %151 = load ptr, ptr %150, align 8, !tbaa !26
  %152 = getelementptr inbounds float, ptr %151, i64 0
  %153 = load float, ptr %152, align 4, !tbaa !11
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.gasearch_s, ptr %154, i32 0, i32 9
  store float %153, ptr %155, align 8, !tbaa !31
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %156, ptr %7, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %157

157:                                              ; preds = %144, %41, %33, %28, %23, %18
  %158 = load ptr, ptr %7, align 8
  ret ptr %158
}

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #4

declare ptr @chromosome_create_clone(ptr noundef) #1

declare i32 @chromosome_init_random(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @gasearch_evaluate(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @gasearch_rank(ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind allocsize(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 #4 = { nounwind allocsize(0,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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind allocsize(0,1) }

!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 = !{!"any pointer", !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 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 72}
!14 = !{!"gasearch_s", !6, i64 0, !10, i64 8, !10, i64 12, !12, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !6, i64 64, !6, i64 72, !10, i64 80}
!15 = !{!16, !10, i64 0}
!16 = !{!"chromosome_s", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32}
!17 = !{!14, !10, i64 20}
!18 = !{!14, !10, i64 8}
!19 = !{!14, !12, i64 16}
!20 = !{!14, !6, i64 64}
!21 = !{!14, !10, i64 80}
!22 = !{!16, !10, i64 32}
!23 = !{!14, !10, i64 24}
!24 = !{!14, !10, i64 12}
!25 = !{!14, !6, i64 0}
!26 = !{!14, !6, i64 32}
!27 = !{!14, !6, i64 48}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = !{!14, !12, i64 56}


; 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 [79 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [50 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @gasearch_create_advanced(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5) local_unnamed_addr #0 {
  %7 = icmp eq ptr %0, null
  br i1 %7, label %8, label %10

8:                                                ; preds = %6
  %9 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 68, ptr noundef nonnull @.str.1) #4
  br label %62

10:                                               ; preds = %6
  %11 = icmp eq ptr %2, null
  br i1 %11, label %12, label %14

12:                                               ; preds = %10
  %13 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 70, ptr noundef nonnull @.str.2) #4
  br label %62

14:                                               ; preds = %10
  %15 = icmp ult i32 %4, 2
  br i1 %15, label %16, label %18

16:                                               ; preds = %14
  %17 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 72, ptr noundef nonnull @.str.3) #4
  br label %62

18:                                               ; preds = %14
  %19 = icmp ugt i32 %4, 1024
  br i1 %19, label %20, label %22

20:                                               ; preds = %18
  %21 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 74, ptr noundef nonnull @.str.4, i32 noundef 1024) #4
  br label %62

22:                                               ; preds = %18
  %23 = fcmp olt float %5, 0.000000e+00
  %24 = fcmp ogt float %5, 1.000000e+00
  %or.cond = or i1 %23, %24
  br i1 %or.cond, label %25, label %.lr.ph.preheader

25:                                               ; preds = %22
  %26 = tail call ptr (ptr, i32, ptr, ...) @liquid_error_config_fl(ptr noundef nonnull @.str, i32 noundef 76, ptr noundef nonnull @.str.5) #4
  br label %62

.lr.ph.preheader:                                 ; preds = %22
  %27 = tail call noalias dereferenceable_or_null(88) ptr @malloc(i64 noundef 88) #5
  %28 = getelementptr inbounds i8, ptr %27, i64 72
  store ptr %1, ptr %28, align 8, !tbaa !5
  %29 = load i32, ptr %2, align 8, !tbaa !12
  %30 = getelementptr inbounds i8, ptr %27, i64 20
  store i32 %29, ptr %30, align 4, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %27, i64 8
  store i32 %4, ptr %31, align 8, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %27, i64 16
  store float %5, ptr %32, align 8, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %27, i64 64
  store ptr %0, ptr %33, align 8, !tbaa !17
  %34 = icmp eq i32 %3, 0
  %35 = zext i1 %34 to i32
  %36 = getelementptr inbounds i8, ptr %27, i64 80
  store i32 %35, ptr %36, align 8, !tbaa !18
  %37 = getelementptr inbounds i8, ptr %2, i64 32
  %38 = load i32, ptr %37, align 8, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %27, i64 24
  store i32 %38, ptr %39, align 8, !tbaa !20
  %40 = icmp ult i32 %4, 8
  %41 = lshr i32 %4, 2
  %spec.select = select i1 %40, i32 2, i32 %41
  %42 = getelementptr inbounds i8, ptr %27, i64 12
  store i32 %spec.select, ptr %42, align 4, !tbaa !21
  %43 = zext nneg i32 %4 to i64
  %44 = shl nuw nsw i64 %43, 3
  %45 = tail call noalias ptr @malloc(i64 noundef %44) #5
  store ptr %45, ptr %27, align 8, !tbaa !22
  %46 = tail call noalias ptr @calloc(i64 noundef 4, i64 noundef %43) #6
  %47 = getelementptr inbounds i8, ptr %27, i64 32
  store ptr %46, ptr %47, align 8, !tbaa !23
  %48 = tail call ptr @chromosome_create_clone(ptr noundef nonnull %2) #4
  %49 = getelementptr inbounds i8, ptr %27, i64 48
  store ptr %48, ptr %49, align 8, !tbaa !24
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %50 = tail call ptr @chromosome_create_clone(ptr noundef nonnull %2) #4
  %51 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv
  store ptr %50, ptr %51, align 8, !tbaa !25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = icmp ult i64 %indvars.iv.next, %43
  br i1 %52, label %.lr.ph, label %.lr.ph54, !llvm.loop !26

.lr.ph54:                                         ; preds = %.lr.ph, %.lr.ph54
  %indvars.iv56 = phi i64 [ %indvars.iv.next57, %.lr.ph54 ], [ 1, %.lr.ph ]
  %53 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv56
  %54 = load ptr, ptr %53, align 8, !tbaa !25
  %55 = tail call i32 @chromosome_init_random(ptr noundef %54) #4
  %indvars.iv.next57 = add nuw nsw i64 %indvars.iv56, 1
  %56 = icmp ult i64 %indvars.iv.next57, %43
  br i1 %56, label %.lr.ph54, label %._crit_edge, !llvm.loop !28

._crit_edge:                                      ; preds = %.lr.ph54
  %57 = tail call i32 @gasearch_evaluate(ptr noundef nonnull %27)
  %58 = tail call i32 @gasearch_rank(ptr noundef nonnull %27)
  %59 = load ptr, ptr %47, align 8, !tbaa !23
  %60 = load float, ptr %59, align 4, !tbaa !29
  %61 = getelementptr inbounds i8, ptr %27, i64 56
  store float %60, ptr %61, align 8, !tbaa !30
  br label %62

62:                                               ; preds = %._crit_edge, %25, %20, %16, %12, %8
  %.046 = phi ptr [ %9, %8 ], [ %13, %12 ], [ %17, %16 ], [ %21, %20 ], [ %26, %25 ], [ %27, %._crit_edge ]
  ret ptr %.046
}

declare ptr @liquid_error_config_fl(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

declare ptr @chromosome_create_clone(ptr noundef) local_unnamed_addr #1

declare i32 @chromosome_init_random(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @gasearch_evaluate(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @gasearch_rank(ptr noundef) local_unnamed_addr #0

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 allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 }
attributes #5 = { nounwind allocsize(0) }
attributes #6 = { nounwind allocsize(0,1) }

!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, !7, i64 72}
!6 = !{!"gasearch_s", !7, i64 0, !10, i64 8, !10, i64 12, !11, i64 16, !10, i64 20, !10, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !11, i64 56, !7, i64 64, !7, i64 72, !10, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"chromosome_s", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32}
!14 = !{!6, !10, i64 20}
!15 = !{!6, !10, i64 8}
!16 = !{!6, !11, i64 16}
!17 = !{!6, !7, i64 64}
!18 = !{!6, !10, i64 80}
!19 = !{!13, !10, i64 32}
!20 = !{!6, !10, i64 24}
!21 = !{!6, !10, i64 12}
!22 = !{!6, !7, i64 0}
!23 = !{!6, !7, i64 32}
!24 = !{!6, !7, i64 48}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = !{!11, !11, i64 0}
!30 = !{!6, !11, i64 56}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass