; LLVM IR from aspuru-guzik-group/qtorch :: nlopt-2.4.2/api (f77api)

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

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

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

declare i32 @nlopt_minimize_constrained(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, i32 noundef, double noundef) #2

; Function Attrs: nounwind uwtable
declare hidden double @f77_func_wrap_old(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

; 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 @NLOPTC(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20) #3 {
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca %struct.f77_func_data, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  store ptr %0, ptr %22, align 8, !tbaa !5
  store ptr %1, ptr %23, align 8, !tbaa !5
  store ptr %2, ptr %24, align 8, !tbaa !5
  store ptr %3, ptr %25, align 8, !tbaa !5
  store ptr %4, ptr %26, align 8, !tbaa !5
  store ptr %5, ptr %27, align 8, !tbaa !5
  store ptr %6, ptr %28, align 8, !tbaa !5
  store ptr %7, ptr %29, align 8, !tbaa !5
  store ptr %8, ptr %30, align 8, !tbaa !5
  store ptr %9, ptr %31, align 8, !tbaa !5
  store ptr %10, ptr %32, align 8, !tbaa !5
  store ptr %11, ptr %33, align 8, !tbaa !5
  store ptr %12, ptr %34, align 8, !tbaa !5
  store ptr %13, ptr %35, align 8, !tbaa !5
  store ptr %14, ptr %36, align 8, !tbaa !5
  store ptr %15, ptr %37, align 8, !tbaa !5
  store ptr %16, ptr %38, align 8, !tbaa !5
  store ptr %17, ptr %39, align 8, !tbaa !5
  store ptr %18, ptr %40, align 8, !tbaa !5
  store ptr %19, ptr %41, align 8, !tbaa !5
  store ptr %20, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #5
  %47 = load ptr, ptr %25, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.f77_func_data, ptr %43, i32 0, i32 0
  store ptr %47, ptr %48, align 8, !tbaa !9
  %49 = load ptr, ptr %26, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.f77_func_data, ptr %43, i32 0, i32 2
  store ptr %49, ptr %50, align 8, !tbaa !11
  %51 = load ptr, ptr %27, align 8, !tbaa !5
  %52 = load i32, ptr %51, align 4, !tbaa !12
  %53 = icmp slt i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %21
  %55 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -2, ptr %55, align 4, !tbaa !12
  store i32 1, ptr %46, align 4
  br label %140

56:                                               ; preds = %21
  %57 = load ptr, ptr %27, align 8, !tbaa !5
  %58 = load i32, ptr %57, align 4, !tbaa !12
  %59 = sext i32 %58 to i64
  %60 = mul i64 24, %59
  %61 = call noalias ptr @malloc(i64 noundef %60) #6
  store ptr %61, ptr %44, align 8, !tbaa !5
  %62 = load ptr, ptr %27, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !12
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %56
  %66 = load ptr, ptr %44, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %70, label %68

68:                                               ; preds = %65
  %69 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -3, ptr %69, align 4, !tbaa !12
  store i32 1, ptr %46, align 4
  br label %140

70:                                               ; preds = %65, %56
  store i32 0, ptr %45, align 4, !tbaa !12
  br label %71

71:                                               ; preds = %98, %70
  %72 = load i32, ptr %45, align 4, !tbaa !12
  %73 = load ptr, ptr %27, align 8, !tbaa !5
  %74 = load i32, ptr %73, align 4, !tbaa !12
  %75 = icmp slt i32 %72, %74
  br i1 %75, label %76, label %101

76:                                               ; preds = %71
  %77 = load ptr, ptr %28, align 8, !tbaa !5
  %78 = load ptr, ptr %44, align 8, !tbaa !5
  %79 = load i32, ptr %45, align 4, !tbaa !12
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds %struct.f77_func_data, ptr %78, i64 %80
  %82 = getelementptr inbounds %struct.f77_func_data, ptr %81, i32 0, i32 0
  store ptr %77, ptr %82, align 8, !tbaa !9
  %83 = load ptr, ptr %29, align 8, !tbaa !5
  %84 = load i32, ptr %45, align 4, !tbaa !12
  %85 = sext i32 %84 to i64
  %86 = load ptr, ptr %30, align 8, !tbaa !5
  %87 = load ptr, ptr %29, align 8, !tbaa !5
  %88 = ptrtoint ptr %86 to i64
  %89 = ptrtoint ptr %87 to i64
  %90 = sub i64 %88, %89
  %91 = mul nsw i64 %85, %90
  %92 = getelementptr inbounds i8, ptr %83, i64 %91
  %93 = load ptr, ptr %44, align 8, !tbaa !5
  %94 = load i32, ptr %45, align 4, !tbaa !12
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %struct.f77_func_data, ptr %93, i64 %95
  %97 = getelementptr inbounds %struct.f77_func_data, ptr %96, i32 0, i32 2
  store ptr %92, ptr %97, align 8, !tbaa !11
  br label %98

98:                                               ; preds = %76
  %99 = load i32, ptr %45, align 4, !tbaa !12
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %45, align 4, !tbaa !12
  br label %71, !llvm.loop !14

101:                                              ; preds = %71
  %102 = load ptr, ptr %23, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !12
  %104 = load ptr, ptr %24, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !12
  %106 = load ptr, ptr %27, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 4, !tbaa !12
  %108 = load ptr, ptr %44, align 8, !tbaa !5
  %109 = load ptr, ptr %31, align 8, !tbaa !5
  %110 = load ptr, ptr %32, align 8, !tbaa !5
  %111 = load ptr, ptr %33, align 8, !tbaa !5
  %112 = load ptr, ptr %34, align 8, !tbaa !5
  %113 = load ptr, ptr %35, align 8, !tbaa !5
  %114 = load double, ptr %113, align 8, !tbaa !16
  %115 = load ptr, ptr %36, align 8, !tbaa !5
  %116 = load double, ptr %115, align 8, !tbaa !16
  %117 = load ptr, ptr %37, align 8, !tbaa !5
  %118 = load double, ptr %117, align 8, !tbaa !16
  %119 = load ptr, ptr %38, align 8, !tbaa !5
  %120 = load double, ptr %119, align 8, !tbaa !16
  %121 = load ptr, ptr %40, align 8, !tbaa !5
  %122 = load i32, ptr %121, align 4, !tbaa !12
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %126

124:                                              ; preds = %101
  %125 = load ptr, ptr %39, align 8, !tbaa !5
  br label %127

126:                                              ; preds = %101
  br label %127

127:                                              ; preds = %126, %124
  %128 = phi ptr [ %125, %124 ], [ null, %126 ]
  %129 = load ptr, ptr %41, align 8, !tbaa !5
  %130 = load i32, ptr %129, align 4, !tbaa !12
  %131 = load ptr, ptr %42, align 8, !tbaa !5
  %132 = load double, ptr %131, align 8, !tbaa !16
  %133 = call i32 @nlopt_minimize_constrained(i32 noundef %103, i32 noundef %105, ptr noundef @f77_func_wrap_old, ptr noundef %43, i32 noundef %107, ptr noundef @f77_func_wrap_old, ptr noundef %108, i64 noundef 24, ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, double noundef %114, double noundef %116, double noundef %118, double noundef %120, ptr noundef %128, i32 noundef %130, double noundef %132)
  %134 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %133, ptr %134, align 4, !tbaa !12
  %135 = load ptr, ptr %44, align 8, !tbaa !5
  %136 = icmp ne ptr %135, null
  br i1 %136, label %137, label %139

137:                                              ; preds = %127
  %138 = load ptr, ptr %44, align 8, !tbaa !5
  call void @free(ptr noundef %138) #5
  br label %139

139:                                              ; preds = %137, %127
  store i32 0, ptr %46, align 4
  br label %140

140:                                              ; preds = %139, %68, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #5
  %141 = load i32, ptr %46, align 4
  switch i32 %141, label %143 [
    i32 0, label %142
    i32 1, label %142
  ]

142:                                              ; preds = %140, %140
  ret void

143:                                              ; preds = %140
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

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


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

%struct.f77_func_data = type { ptr, ptr, ptr }

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

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

declare i32 @nlopt_minimize_constrained(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, i32 noundef, double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden double @f77_func_wrap_old(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress 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 @NLOPTC(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr nocapture noundef readonly %13, ptr nocapture noundef readonly %14, ptr nocapture noundef readonly %15, ptr nocapture noundef readonly %16, ptr noundef %17, ptr nocapture noundef readonly %18, ptr nocapture noundef readonly %19, ptr nocapture noundef readonly %20) local_unnamed_addr #3 {
  %22 = alloca %struct.f77_func_data, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #5
  store ptr %3, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  store ptr %4, ptr %23, align 8, !tbaa !10
  %24 = load i32, ptr %5, align 4, !tbaa !11
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %21
  store i32 -2, ptr %0, align 4, !tbaa !11
  br label %71

27:                                               ; preds = %21
  %28 = zext nneg i32 %24 to i64
  %29 = mul nuw nsw i64 %28, 24
  %30 = tail call noalias ptr @malloc(i64 noundef %29) #6
  %31 = icmp eq i32 %24, 0
  %32 = icmp ne ptr %30, null
  %or.cond = or i1 %31, %32
  br i1 %or.cond, label %.preheader, label %37

.preheader:                                       ; preds = %27
  br i1 %31, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %33 = ptrtoint ptr %8 to i64
  %34 = ptrtoint ptr %7 to i64
  %35 = sub i64 %33, %34
  %xtraiter = and i64 %28, 3
  %36 = icmp ult i32 %24, 4
  br i1 %36, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %28, 2147483644
  br label %38

37:                                               ; preds = %27
  store i32 -3, ptr %0, align 4, !tbaa !11
  br label %71

38:                                               ; preds = %38, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %38 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %38 ]
  %39 = getelementptr inbounds %struct.f77_func_data, ptr %30, i64 %indvars.iv
  store ptr %6, ptr %39, align 8, !tbaa !5
  %40 = mul nsw i64 %35, %indvars.iv
  %41 = getelementptr inbounds i8, ptr %7, i64 %40
  %42 = getelementptr inbounds i8, ptr %39, i64 16
  store ptr %41, ptr %42, align 8, !tbaa !10
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %43 = getelementptr inbounds %struct.f77_func_data, ptr %30, i64 %indvars.iv.next
  store ptr %6, ptr %43, align 8, !tbaa !5
  %44 = mul nsw i64 %35, %indvars.iv.next
  %45 = getelementptr inbounds i8, ptr %7, i64 %44
  %46 = getelementptr inbounds i8, ptr %43, i64 16
  store ptr %45, ptr %46, align 8, !tbaa !10
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %47 = getelementptr inbounds %struct.f77_func_data, ptr %30, i64 %indvars.iv.next.1
  store ptr %6, ptr %47, align 8, !tbaa !5
  %48 = mul nsw i64 %35, %indvars.iv.next.1
  %49 = getelementptr inbounds i8, ptr %7, i64 %48
  %50 = getelementptr inbounds i8, ptr %47, i64 16
  store ptr %49, ptr %50, align 8, !tbaa !10
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %51 = getelementptr inbounds %struct.f77_func_data, ptr %30, i64 %indvars.iv.next.2
  store ptr %6, ptr %51, align 8, !tbaa !5
  %52 = mul nsw i64 %35, %indvars.iv.next.2
  %53 = getelementptr inbounds i8, ptr %7, i64 %52
  %54 = getelementptr inbounds i8, ptr %51, i64 16
  store ptr %53, ptr %54, align 8, !tbaa !10
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %38, !llvm.loop !13

._crit_edge.loopexit.unr-lcssa:                   ; preds = %38, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %38 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %55 = getelementptr inbounds %struct.f77_func_data, ptr %30, i64 %indvars.iv.epil
  store ptr %6, ptr %55, align 8, !tbaa !5
  %56 = mul nsw i64 %35, %indvars.iv.epil
  %57 = getelementptr inbounds i8, ptr %7, i64 %56
  %58 = getelementptr inbounds i8, ptr %55, i64 16
  store ptr %57, ptr %58, align 8, !tbaa !10
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !15

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %.preheader
  %59 = load i32, ptr %1, align 4, !tbaa !11
  %60 = load i32, ptr %2, align 4, !tbaa !11
  %61 = load double, ptr %13, align 8, !tbaa !17
  %62 = load double, ptr %14, align 8, !tbaa !17
  %63 = load double, ptr %15, align 8, !tbaa !17
  %64 = load double, ptr %16, align 8, !tbaa !17
  %65 = load i32, ptr %18, align 4, !tbaa !11
  %.not = icmp eq i32 %65, 0
  %66 = select i1 %.not, ptr null, ptr %17
  %67 = load i32, ptr %19, align 4, !tbaa !11
  %68 = load double, ptr %20, align 8, !tbaa !17
  %69 = call i32 @nlopt_minimize_constrained(i32 noundef %59, i32 noundef %60, ptr noundef nonnull @f77_func_wrap_old, ptr noundef nonnull %22, i32 noundef %24, ptr noundef nonnull @f77_func_wrap_old, ptr noundef %30, i64 noundef 24, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, double noundef %61, double noundef %62, double noundef %63, double noundef %64, ptr noundef %66, i32 noundef %67, double noundef %68) #5
  store i32 %69, ptr %0, align 4, !tbaa !11
  br i1 %32, label %70, label %71

70:                                               ; preds = %._crit_edge
  call void @free(ptr noundef nonnull %30) #5
  br label %71

71:                                               ; preds = %._crit_edge, %70, %37, %26
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #5
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 16}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass