; LLVM IR from jgaeddert/liquid-dsp :: sandbox (chromosome_test)

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

@__const.main.bits_per_trait = external hidden unnamed_addr constant [4 x i32], align 16
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [4 x i32], align 16
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.bits_per_trait, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %7 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
  %8 = call ptr @chromosome_create(ptr noundef %7, i32 noundef 4)
  store ptr %8, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %9 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
  %10 = call ptr @chromosome_create(ptr noundef %9, i32 noundef 4)
  store ptr %10, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %11 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
  %12 = call ptr @chromosome_create(ptr noundef %11, i32 noundef 4)
  store ptr %12, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.chromosome_s, ptr %13, i32 0, i32 3
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds i64, ptr %15, i64 0
  store i64 0, ptr %16, align 8, !tbaa !12
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.chromosome_s, ptr %17, i32 0, i32 3
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds i64, ptr %19, i64 1
  store i64 255, ptr %20, align 8, !tbaa !12
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.chromosome_s, ptr %21, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds i64, ptr %23, i64 2
  store i64 0, ptr %24, align 8, !tbaa !12
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.chromosome_s, ptr %25, i32 0, i32 3
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds i64, ptr %27, i64 3
  store i64 15, ptr %28, align 8, !tbaa !12
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.chromosome_s, ptr %29, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds i64, ptr %31, i64 0
  store i64 5, ptr %32, align 8, !tbaa !12
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.chromosome_s, ptr %33, i32 0, i32 3
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds i64, ptr %35, i64 1
  store i64 85, ptr %36, align 8, !tbaa !12
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.chromosome_s, ptr %37, i32 0, i32 3
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds i64, ptr %39, i64 2
  store i64 85, ptr %40, align 8, !tbaa !12
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.chromosome_s, ptr %41, i32 0, i32 3
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds i64, ptr %43, i64 3
  store i64 5, ptr %44, align 8, !tbaa !12
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call i32 @chromosome_print(ptr noundef %46)
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = call i32 @chromosome_print(ptr noundef %49)
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call i32 @chromosome_crossover(ptr noundef %53, ptr noundef %54, ptr noundef %55, i32 noundef 0)
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = call i32 @chromosome_print(ptr noundef %57)
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = call i32 @chromosome_crossover(ptr noundef %59, ptr noundef %60, ptr noundef %61, i32 noundef 4)
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = call i32 @chromosome_print(ptr noundef %63)
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = call i32 @chromosome_crossover(ptr noundef %65, ptr noundef %66, ptr noundef %67, i32 noundef 6)
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = call i32 @chromosome_print(ptr noundef %69)
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = call i32 @chromosome_crossover(ptr noundef %71, ptr noundef %72, ptr noundef %73, i32 noundef 14)
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = call i32 @chromosome_print(ptr noundef %75)
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = call i32 @chromosome_crossover(ptr noundef %77, ptr noundef %78, ptr noundef %79, i32 noundef 24)
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = call i32 @chromosome_print(ptr noundef %81)
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !14
  br label %84

84:                                               ; preds = %95, %0
  %85 = load i32, ptr %6, align 4, !tbaa !14
  %86 = icmp ult i32 %85, 24
  br i1 %86, label %87, label %98

87:                                               ; preds = %84
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = call i32 @chromosome_reset(ptr noundef %88)
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i32, ptr %6, align 4, !tbaa !14
  %92 = call i32 @chromosome_mutate(ptr noundef %90, i32 noundef %91)
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call i32 @chromosome_print(ptr noundef %93)
  br label %95

95:                                               ; preds = %87
  %96 = load i32, ptr %6, align 4, !tbaa !14
  %97 = add i32 %96, 1
  store i32 %97, ptr %6, align 4, !tbaa !14
  br label %84, !llvm.loop !15

98:                                               ; preds = %84
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = call i32 @chromosome_destroy(ptr noundef %99)
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = call i32 @chromosome_destroy(ptr noundef %101)
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = call i32 @chromosome_destroy(ptr noundef %103)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #4
  ret i32 0
}

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

declare i32 @chromosome_print(ptr noundef) #3

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

declare i32 @chromosome_reset(ptr noundef) #3

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

declare i32 @chromosome_destroy(ptr noundef) #3

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

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 nounwind willreturn memory(argmem: readwrite) }
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 }

!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, !6, i64 24}
!10 = !{!"chromosome_s", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

@__const.main.bits_per_trait = external hidden unnamed_addr constant [4 x i32], align 16
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [4 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.bits_per_trait, i64 16, i1 false)
  %2 = call ptr @chromosome_create(ptr noundef nonnull %1, i32 noundef 4) #5
  %3 = call ptr @chromosome_create(ptr noundef nonnull %1, i32 noundef 4) #5
  %4 = call ptr @chromosome_create(ptr noundef nonnull %1, i32 noundef 4) #5
  %5 = getelementptr inbounds i8, ptr %2, i64 24
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  store i64 0, ptr %6, align 8, !tbaa !11
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 255, ptr %7, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %6, i64 16
  store i64 0, ptr %8, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %6, i64 24
  store i64 15, ptr %9, align 8, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %3, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 5, ptr %11, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  store i64 85, ptr %12, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %11, i64 16
  store i64 85, ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %11, i64 24
  store i64 5, ptr %14, align 8, !tbaa !11
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %16 = call i32 @chromosome_print(ptr noundef %2) #5
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %18 = call i32 @chromosome_print(ptr noundef %3) #5
  %19 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %21 = call i32 @chromosome_crossover(ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef 0) #5
  %22 = call i32 @chromosome_print(ptr noundef %4) #5
  %23 = call i32 @chromosome_crossover(ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef 4) #5
  %24 = call i32 @chromosome_print(ptr noundef %4) #5
  %25 = call i32 @chromosome_crossover(ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef 6) #5
  %26 = call i32 @chromosome_print(ptr noundef %4) #5
  %27 = call i32 @chromosome_crossover(ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef 14) #5
  %28 = call i32 @chromosome_print(ptr noundef %4) #5
  %29 = call i32 @chromosome_crossover(ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef 24) #5
  %30 = call i32 @chromosome_print(ptr noundef %4) #5
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %32 = call i32 @chromosome_reset(ptr noundef %4) #5
  %33 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 0) #5
  %34 = call i32 @chromosome_print(ptr noundef %4) #5
  %35 = call i32 @chromosome_reset(ptr noundef %4) #5
  %36 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 1) #5
  %37 = call i32 @chromosome_print(ptr noundef %4) #5
  %38 = call i32 @chromosome_reset(ptr noundef %4) #5
  %39 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 2) #5
  %40 = call i32 @chromosome_print(ptr noundef %4) #5
  %41 = call i32 @chromosome_reset(ptr noundef %4) #5
  %42 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 3) #5
  %43 = call i32 @chromosome_print(ptr noundef %4) #5
  %44 = call i32 @chromosome_reset(ptr noundef %4) #5
  %45 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 4) #5
  %46 = call i32 @chromosome_print(ptr noundef %4) #5
  %47 = call i32 @chromosome_reset(ptr noundef %4) #5
  %48 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 5) #5
  %49 = call i32 @chromosome_print(ptr noundef %4) #5
  %50 = call i32 @chromosome_reset(ptr noundef %4) #5
  %51 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 6) #5
  %52 = call i32 @chromosome_print(ptr noundef %4) #5
  %53 = call i32 @chromosome_reset(ptr noundef %4) #5
  %54 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 7) #5
  %55 = call i32 @chromosome_print(ptr noundef %4) #5
  %56 = call i32 @chromosome_reset(ptr noundef %4) #5
  %57 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 8) #5
  %58 = call i32 @chromosome_print(ptr noundef %4) #5
  %59 = call i32 @chromosome_reset(ptr noundef %4) #5
  %60 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 9) #5
  %61 = call i32 @chromosome_print(ptr noundef %4) #5
  %62 = call i32 @chromosome_reset(ptr noundef %4) #5
  %63 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 10) #5
  %64 = call i32 @chromosome_print(ptr noundef %4) #5
  %65 = call i32 @chromosome_reset(ptr noundef %4) #5
  %66 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 11) #5
  %67 = call i32 @chromosome_print(ptr noundef %4) #5
  %68 = call i32 @chromosome_reset(ptr noundef %4) #5
  %69 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 12) #5
  %70 = call i32 @chromosome_print(ptr noundef %4) #5
  %71 = call i32 @chromosome_reset(ptr noundef %4) #5
  %72 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 13) #5
  %73 = call i32 @chromosome_print(ptr noundef %4) #5
  %74 = call i32 @chromosome_reset(ptr noundef %4) #5
  %75 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 14) #5
  %76 = call i32 @chromosome_print(ptr noundef %4) #5
  %77 = call i32 @chromosome_reset(ptr noundef %4) #5
  %78 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 15) #5
  %79 = call i32 @chromosome_print(ptr noundef %4) #5
  %80 = call i32 @chromosome_reset(ptr noundef %4) #5
  %81 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 16) #5
  %82 = call i32 @chromosome_print(ptr noundef %4) #5
  %83 = call i32 @chromosome_reset(ptr noundef %4) #5
  %84 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 17) #5
  %85 = call i32 @chromosome_print(ptr noundef %4) #5
  %86 = call i32 @chromosome_reset(ptr noundef %4) #5
  %87 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 18) #5
  %88 = call i32 @chromosome_print(ptr noundef %4) #5
  %89 = call i32 @chromosome_reset(ptr noundef %4) #5
  %90 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 19) #5
  %91 = call i32 @chromosome_print(ptr noundef %4) #5
  %92 = call i32 @chromosome_reset(ptr noundef %4) #5
  %93 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 20) #5
  %94 = call i32 @chromosome_print(ptr noundef %4) #5
  %95 = call i32 @chromosome_reset(ptr noundef %4) #5
  %96 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 21) #5
  %97 = call i32 @chromosome_print(ptr noundef %4) #5
  %98 = call i32 @chromosome_reset(ptr noundef %4) #5
  %99 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 22) #5
  %100 = call i32 @chromosome_print(ptr noundef %4) #5
  %101 = call i32 @chromosome_reset(ptr noundef %4) #5
  %102 = call i32 @chromosome_mutate(ptr noundef %4, i32 noundef 23) #5
  %103 = call i32 @chromosome_print(ptr noundef %4) #5
  %104 = call i32 @chromosome_destroy(ptr noundef %2) #5
  %105 = call i32 @chromosome_destroy(ptr noundef %3) #5
  %106 = call i32 @chromosome_destroy(ptr noundef %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare ptr @chromosome_create(ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @chromosome_print(ptr noundef) local_unnamed_addr #3

declare i32 @chromosome_crossover(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @chromosome_reset(ptr noundef) local_unnamed_addr #3

declare i32 @chromosome_mutate(ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @chromosome_destroy(ptr noundef) local_unnamed_addr #3

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 }

!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, !10, i64 24}
!6 = !{!"chromosome_s", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !7, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}


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