; LLVM IR from simbody/simbody :: SimTKmath/Optimizers/src/c-cmaes (cmaes)

; 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.cmaes_t = type { ptr, %struct.cmaes_readpara_t, %struct.cmaes_random_t, double, ptr, ptr, ptr, ptr, ptr, i16, i16, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, [330 x i8], i16, i16, double, %struct.cmaes_timings_t, double, double, i16, i64, i64, i64, i64 }
%struct.cmaes_readpara_t = type { ptr, i16, i32, i32, ptr, ptr, i32, ptr, ptr, double, double, double, %struct.anon, double, double, double, double, i32, i32, double, double, ptr, double, double, double, double, double, %struct.anon.0, double, ptr, [99 x i8], ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.anon = type { i32, double }
%struct.anon.0 = type { i32, double, double }
%struct.cmaes_random_t = type { i64, i64, i64, ptr, i16, double }
%struct.cmaes_timings_t = type { double, double, double, double, i64, i64, i64, i64, i16, i16, double, double }

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

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

; Function Attrs: nounwind uwtable
define dso_local void @cmaes_exit(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.cmaes_t, ptr %5, i32 0, i32 1
  %7 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %6, i32 0, i32 2
  %8 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %8, ptr %4, align 4, !tbaa !20
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.cmaes_t, ptr %9, i32 0, i32 0
  store ptr null, ptr %10, align 8, !tbaa !21
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.cmaes_t, ptr %11, i32 0, i32 25
  store double -1.000000e+00, ptr %12, align 8, !tbaa !22
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.cmaes_t, ptr %13, i32 0, i32 15
  %15 = load ptr, ptr %14, align 8, !tbaa !23
  call void @free(ptr noundef %15) #3
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.cmaes_t, ptr %16, i32 0, i32 16
  %18 = load ptr, ptr %17, align 8, !tbaa !24
  call void @free(ptr noundef %18) #3
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.cmaes_t, ptr %19, i32 0, i32 20
  %21 = load ptr, ptr %20, align 8, !tbaa !25
  call void @free(ptr noundef %21) #3
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.cmaes_t, ptr %22, i32 0, i32 19
  %24 = load ptr, ptr %23, align 8, !tbaa !26
  call void @free(ptr noundef %24) #3
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.cmaes_t, ptr %25, i32 0, i32 4
  %27 = load ptr, ptr %26, align 8, !tbaa !27
  %28 = getelementptr inbounds double, ptr %27, i32 -1
  store ptr %28, ptr %26, align 8, !tbaa !27
  call void @free(ptr noundef %28) #3
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.cmaes_t, ptr %29, i32 0, i32 17
  %31 = load ptr, ptr %30, align 8, !tbaa !28
  %32 = getelementptr inbounds double, ptr %31, i32 -1
  store ptr %32, ptr %30, align 8, !tbaa !28
  call void @free(ptr noundef %32) #3
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.cmaes_t, ptr %33, i32 0, i32 5
  %35 = load ptr, ptr %34, align 8, !tbaa !29
  %36 = getelementptr inbounds double, ptr %35, i32 -1
  store ptr %36, ptr %34, align 8, !tbaa !29
  call void @free(ptr noundef %36) #3
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.cmaes_t, ptr %37, i32 0, i32 18
  %39 = load ptr, ptr %38, align 8, !tbaa !30
  %40 = getelementptr inbounds double, ptr %39, i32 -1
  store ptr %40, ptr %38, align 8, !tbaa !30
  call void @free(ptr noundef %40) #3
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.cmaes_t, ptr %41, i32 0, i32 14
  %43 = load ptr, ptr %42, align 8, !tbaa !31
  call void @free(ptr noundef %43) #3
  store i32 0, ptr %3, align 4, !tbaa !20
  br label %44

44:                                               ; preds = %63, %1
  %45 = load i32, ptr %3, align 4, !tbaa !20
  %46 = load i32, ptr %4, align 4, !tbaa !20
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %48, label %66

48:                                               ; preds = %44
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.cmaes_t, ptr %49, i32 0, i32 12
  %51 = load ptr, ptr %50, align 8, !tbaa !32
  %52 = load i32, ptr %3, align 4, !tbaa !20
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %51, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  call void @free(ptr noundef %55) #3
  %56 = load ptr, ptr %2, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.cmaes_t, ptr %56, i32 0, i32 13
  %58 = load ptr, ptr %57, align 8, !tbaa !33
  %59 = load i32, ptr %3, align 4, !tbaa !20
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %58, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  call void @free(ptr noundef %62) #3
  br label %63

63:                                               ; preds = %48
  %64 = load i32, ptr %3, align 4, !tbaa !20
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %3, align 4, !tbaa !20
  br label %44, !llvm.loop !34

66:                                               ; preds = %44
  store i32 0, ptr %3, align 4, !tbaa !20
  br label %67

67:                                               ; preds = %83, %66
  %68 = load i32, ptr %3, align 4, !tbaa !20
  %69 = load ptr, ptr %2, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.cmaes_t, ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %70, i32 0, i32 17
  %72 = load i32, ptr %71, align 8, !tbaa !36
  %73 = icmp slt i32 %68, %72
  br i1 %73, label %74, label %86

74:                                               ; preds = %67
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.cmaes_t, ptr %75, i32 0, i32 6
  %77 = load ptr, ptr %76, align 8, !tbaa !37
  %78 = load i32, ptr %3, align 4, !tbaa !20
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds ptr, ptr %77, i64 %79
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i32 -1
  store ptr %82, ptr %80, align 8, !tbaa !5
  call void @free(ptr noundef %82) #3
  br label %83

83:                                               ; preds = %74
  %84 = load i32, ptr %3, align 4, !tbaa !20
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %3, align 4, !tbaa !20
  br label %67, !llvm.loop !38

86:                                               ; preds = %67
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.cmaes_t, ptr %87, i32 0, i32 6
  %89 = load ptr, ptr %88, align 8, !tbaa !37
  call void @free(ptr noundef %89) #3
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.cmaes_t, ptr %90, i32 0, i32 12
  %92 = load ptr, ptr %91, align 8, !tbaa !32
  call void @free(ptr noundef %92) #3
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.cmaes_t, ptr %93, i32 0, i32 13
  %95 = load ptr, ptr %94, align 8, !tbaa !33
  call void @free(ptr noundef %95) #3
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.cmaes_t, ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %97, align 8, !tbaa !39
  call void @free(ptr noundef %98) #3
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.cmaes_t, ptr %99, i32 0, i32 22
  %101 = load ptr, ptr %100, align 8, !tbaa !40
  call void @free(ptr noundef %101) #3
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.cmaes_t, ptr %102, i32 0, i32 21
  %104 = load ptr, ptr %103, align 8, !tbaa !41
  %105 = getelementptr inbounds double, ptr %104, i32 -1
  store ptr %105, ptr %103, align 8, !tbaa !41
  call void @free(ptr noundef %105) #3
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.cmaes_t, ptr %106, i32 0, i32 8
  %108 = load ptr, ptr %107, align 8, !tbaa !42
  %109 = getelementptr inbounds double, ptr %108, i32 -1
  store ptr %109, ptr %107, align 8, !tbaa !42
  call void @free(ptr noundef %109) #3
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.cmaes_t, ptr %110, i32 0, i32 2
  call void @cmaes_random_exit(ptr noundef %111)
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.cmaes_t, ptr %112, i32 0, i32 1
  call void @cmaes_readpara_exit(ptr noundef %113)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret void
}

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @cmaes_random_exit(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @cmaes_readpara_exit(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !13, i64 20}
!10 = !{!"", !6, i64 0, !11, i64 8, !17, i64 408, !14, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !12, i64 504, !12, i64 506, !14, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !14, i64 608, !14, i64 616, !14, i64 624, !14, i64 632, !14, i64 640, !14, i64 648, !14, i64 656, !7, i64 664, !12, i64 994, !12, i64 996, !14, i64 1000, !19, i64 1008, !14, i64 1096, !14, i64 1104, !12, i64 1112, !18, i64 1120, !18, i64 1128, !18, i64 1136, !18, i64 1144}
!11 = !{!"", !6, i64 0, !12, i64 8, !13, i64 12, !13, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !6, i64 48, !6, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !15, i64 88, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !13, i64 136, !13, i64 140, !14, i64 144, !14, i64 152, !6, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !16, i64 208, !14, i64 232, !6, i64 240, !7, i64 248, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !13, i64 384, !13, i64 388, !13, i64 392}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"", !13, i64 0, !14, i64 8}
!16 = !{!"", !13, i64 0, !14, i64 8, !14, i64 16}
!17 = !{!"", !18, i64 0, !18, i64 8, !18, i64 16, !6, i64 24, !12, i64 32, !14, i64 40}
!18 = !{!"long", !7, i64 0}
!19 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !18, i64 32, !18, i64 40, !18, i64 48, !18, i64 56, !12, i64 64, !12, i64 66, !14, i64 72, !14, i64 80}
!20 = !{!13, !13, i64 0}
!21 = !{!10, !6, i64 0}
!22 = !{!10, !14, i64 624}
!23 = !{!10, !6, i64 544}
!24 = !{!10, !6, i64 552}
!25 = !{!10, !6, i64 584}
!26 = !{!10, !6, i64 576}
!27 = !{!10, !6, i64 464}
!28 = !{!10, !6, i64 560}
!29 = !{!10, !6, i64 472}
!30 = !{!10, !6, i64 568}
!31 = !{!10, !6, i64 536}
!32 = !{!10, !6, i64 520}
!33 = !{!10, !6, i64 528}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!10, !13, i64 144}
!37 = !{!10, !6, i64 480}
!38 = distinct !{!38, !35}
!39 = !{!10, !6, i64 488}
!40 = !{!10, !6, i64 600}
!41 = !{!10, !6, i64 592}
!42 = !{!10, !6, i64 496}


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

; Function Attrs: nounwind uwtable
define dso_local void @cmaes_exit(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 20
  %3 = load i32, ptr %2, align 4, !tbaa !5
  store ptr null, ptr %0, align 8, !tbaa !19
  %4 = getelementptr inbounds i8, ptr %0, i64 624
  store double -1.000000e+00, ptr %4, align 8, !tbaa !20
  %5 = getelementptr inbounds i8, ptr %0, i64 544
  %6 = load ptr, ptr %5, align 8, !tbaa !21
  tail call void @free(ptr noundef %6) #2
  %7 = getelementptr inbounds i8, ptr %0, i64 552
  %8 = load ptr, ptr %7, align 8, !tbaa !22
  tail call void @free(ptr noundef %8) #2
  %9 = getelementptr inbounds i8, ptr %0, i64 584
  %10 = load ptr, ptr %9, align 8, !tbaa !23
  tail call void @free(ptr noundef %10) #2
  %11 = getelementptr inbounds i8, ptr %0, i64 576
  %12 = load ptr, ptr %11, align 8, !tbaa !24
  tail call void @free(ptr noundef %12) #2
  %13 = getelementptr inbounds i8, ptr %0, i64 464
  %14 = load ptr, ptr %13, align 8, !tbaa !25
  %15 = getelementptr inbounds i8, ptr %14, i64 -8
  store ptr %15, ptr %13, align 8, !tbaa !25
  tail call void @free(ptr noundef nonnull %15) #2
  %16 = getelementptr inbounds i8, ptr %0, i64 560
  %17 = load ptr, ptr %16, align 8, !tbaa !26
  %18 = getelementptr inbounds i8, ptr %17, i64 -8
  store ptr %18, ptr %16, align 8, !tbaa !26
  tail call void @free(ptr noundef nonnull %18) #2
  %19 = getelementptr inbounds i8, ptr %0, i64 472
  %20 = load ptr, ptr %19, align 8, !tbaa !27
  %21 = getelementptr inbounds i8, ptr %20, i64 -8
  store ptr %21, ptr %19, align 8, !tbaa !27
  tail call void @free(ptr noundef nonnull %21) #2
  %22 = getelementptr inbounds i8, ptr %0, i64 568
  %23 = load ptr, ptr %22, align 8, !tbaa !28
  %24 = getelementptr inbounds i8, ptr %23, i64 -8
  store ptr %24, ptr %22, align 8, !tbaa !28
  tail call void @free(ptr noundef nonnull %24) #2
  %25 = getelementptr inbounds i8, ptr %0, i64 536
  %26 = load ptr, ptr %25, align 8, !tbaa !29
  tail call void @free(ptr noundef %26) #2
  %27 = icmp sgt i32 %3, 0
  br i1 %27, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %1
  %28 = getelementptr inbounds i8, ptr %0, i64 520
  %29 = getelementptr inbounds i8, ptr %0, i64 528
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %34

.preheader:                                       ; preds = %34, %1
  %30 = getelementptr inbounds i8, ptr %0, i64 144
  %31 = load i32, ptr %30, align 8, !tbaa !30
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph34, label %._crit_edge

.lr.ph34:                                         ; preds = %.preheader
  %33 = getelementptr inbounds i8, ptr %0, i64 480
  br label %41

34:                                               ; preds = %.lr.ph, %34
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %34 ]
  %35 = load ptr, ptr %28, align 8, !tbaa !31
  %36 = getelementptr inbounds ptr, ptr %35, i64 %indvars.iv
  %37 = load ptr, ptr %36, align 8, !tbaa !32
  tail call void @free(ptr noundef %37) #2
  %38 = load ptr, ptr %29, align 8, !tbaa !33
  %39 = getelementptr inbounds ptr, ptr %38, i64 %indvars.iv
  %40 = load ptr, ptr %39, align 8, !tbaa !32
  tail call void @free(ptr noundef %40) #2
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %34, !llvm.loop !34

41:                                               ; preds = %.lr.ph34, %41
  %indvars.iv36 = phi i64 [ 0, %.lr.ph34 ], [ %indvars.iv.next37, %41 ]
  %42 = load ptr, ptr %33, align 8, !tbaa !36
  %43 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv36
  %44 = load ptr, ptr %43, align 8, !tbaa !32
  %45 = getelementptr inbounds i8, ptr %44, i64 -8
  store ptr %45, ptr %43, align 8, !tbaa !32
  tail call void @free(ptr noundef nonnull %45) #2
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %46 = load i32, ptr %30, align 8, !tbaa !30
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.next37, %47
  br i1 %48, label %41, label %._crit_edge, !llvm.loop !37

._crit_edge:                                      ; preds = %41, %.preheader
  %49 = getelementptr inbounds i8, ptr %0, i64 8
  %50 = getelementptr inbounds i8, ptr %0, i64 480
  %51 = load ptr, ptr %50, align 8, !tbaa !36
  tail call void @free(ptr noundef %51) #2
  %52 = getelementptr inbounds i8, ptr %0, i64 520
  %53 = load ptr, ptr %52, align 8, !tbaa !31
  tail call void @free(ptr noundef %53) #2
  %54 = getelementptr inbounds i8, ptr %0, i64 528
  %55 = load ptr, ptr %54, align 8, !tbaa !33
  tail call void @free(ptr noundef %55) #2
  %56 = getelementptr inbounds i8, ptr %0, i64 488
  %57 = load ptr, ptr %56, align 8, !tbaa !38
  tail call void @free(ptr noundef %57) #2
  %58 = getelementptr inbounds i8, ptr %0, i64 600
  %59 = load ptr, ptr %58, align 8, !tbaa !39
  tail call void @free(ptr noundef %59) #2
  %60 = getelementptr inbounds i8, ptr %0, i64 592
  %61 = load ptr, ptr %60, align 8, !tbaa !40
  %62 = getelementptr inbounds i8, ptr %61, i64 -8
  store ptr %62, ptr %60, align 8, !tbaa !40
  tail call void @free(ptr noundef nonnull %62) #2
  %63 = getelementptr inbounds i8, ptr %0, i64 496
  %64 = load ptr, ptr %63, align 8, !tbaa !41
  %65 = getelementptr inbounds i8, ptr %64, i64 -8
  store ptr %65, ptr %63, align 8, !tbaa !41
  tail call void @free(ptr noundef nonnull %65) #2
  %66 = getelementptr inbounds i8, ptr %0, i64 408
  tail call void @cmaes_random_exit(ptr noundef nonnull %66)
  tail call void @cmaes_readpara_exit(ptr noundef nonnull %49)
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @cmaes_readpara_exit(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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #2 = { 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, !12, i64 20}
!6 = !{!"", !7, i64 0, !10, i64 8, !16, i64 408, !13, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !11, i64 504, !11, i64 506, !13, i64 512, !7, i64 520, !7, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !13, i64 608, !13, i64 616, !13, i64 624, !13, i64 632, !13, i64 640, !13, i64 648, !13, i64 656, !8, i64 664, !11, i64 994, !11, i64 996, !13, i64 1000, !18, i64 1008, !13, i64 1096, !13, i64 1104, !11, i64 1112, !17, i64 1120, !17, i64 1128, !17, i64 1136, !17, i64 1144}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !7, i64 0, !11, i64 8, !12, i64 12, !12, i64 16, !7, i64 24, !7, i64 32, !12, i64 40, !7, i64 48, !7, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !14, i64 88, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !12, i64 136, !12, i64 140, !13, i64 144, !13, i64 152, !7, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !15, i64 208, !13, i64 232, !7, i64 240, !8, i64 248, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !12, i64 384, !12, i64 388, !12, i64 392}
!11 = !{!"short", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!"", !12, i64 0, !13, i64 8}
!15 = !{!"", !12, i64 0, !13, i64 8, !13, i64 16}
!16 = !{!"", !17, i64 0, !17, i64 8, !17, i64 16, !7, i64 24, !11, i64 32, !13, i64 40}
!17 = !{!"long", !8, i64 0}
!18 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !11, i64 64, !11, i64 66, !13, i64 72, !13, i64 80}
!19 = !{!6, !7, i64 0}
!20 = !{!6, !13, i64 624}
!21 = !{!6, !7, i64 544}
!22 = !{!6, !7, i64 552}
!23 = !{!6, !7, i64 584}
!24 = !{!6, !7, i64 576}
!25 = !{!6, !7, i64 464}
!26 = !{!6, !7, i64 560}
!27 = !{!6, !7, i64 472}
!28 = !{!6, !7, i64 568}
!29 = !{!6, !7, i64 536}
!30 = !{!6, !12, i64 144}
!31 = !{!6, !7, i64 520}
!32 = !{!7, !7, i64 0}
!33 = !{!6, !7, i64 528}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!6, !7, i64 480}
!37 = distinct !{!37, !35}
!38 = !{!6, !7, i64 488}
!39 = !{!6, !7, i64 600}
!40 = !{!6, !7, i64 592}
!41 = !{!6, !7, i64 496}


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