; LLVM IR from josselinonduty/2022-numerical-methods-for-solving-differential-equations :: src/methods (adams_bashforth)

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

; Function Attrs: nounwind uwtable
define dso_local void @solve_adams_bashforth(ptr dead_on_unwind noalias writable sret(%struct.__matrix_t) align 8 %0, x86_fp80 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
  %5 = alloca x86_fp80, align 16
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca x86_fp80, align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store x86_fp80 %1, ptr %5, align 16, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  store ptr %3, ptr %7, align 8, !tbaa !11
  %20 = load i64, ptr %6, align 8, !tbaa !9
  %21 = add nsw i64 %20, 1
  call void @matrix_create(ptr dead_on_unwind writable sret(%struct.__matrix_t) align 8 %0, i64 noundef %21)
  %22 = load ptr, ptr %7, align 8, !tbaa !11
  %23 = call ptr @vector_copy(ptr noundef %22)
  call void @matrix_append(ptr noundef %0, ptr noundef %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %24 = load ptr, ptr %7, align 8, !tbaa !11
  %25 = call ptr @vector_copy(ptr noundef %24)
  store ptr %25, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %26 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %27 = load i64, ptr %6, align 8, !tbaa !9
  %28 = sitofp i64 %27 to x86_fp80
  %29 = fdiv x86_fp80 %26, %28
  store x86_fp80 %29, ptr %13, align 16, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !11
  %31 = call ptr @van_der_pol(x86_fp80 noundef 0xK00000000000000000000, ptr noundef %30)
  store ptr %31, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !13
  br label %32

32:                                               ; preds = %55, %4
  %33 = load i32, ptr %14, align 4, !tbaa !13
  %34 = sext i32 %33 to i64
  %35 = icmp ult i64 %34, 2
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %58

37:                                               ; preds = %32
  %38 = load ptr, ptr %8, align 8, !tbaa !11
  %39 = load i32, ptr %14, align 4, !tbaa !13
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds x86_fp80, ptr %38, i64 %40
  %42 = load x86_fp80, ptr %41, align 16, !tbaa !5
  %43 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %44 = fdiv x86_fp80 %43, 0xK40008000000000000000
  %45 = load ptr, ptr %11, align 8, !tbaa !11
  %46 = load i32, ptr %14, align 4, !tbaa !13
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds x86_fp80, ptr %45, i64 %47
  %49 = load x86_fp80, ptr %48, align 16, !tbaa !5
  %50 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %44, x86_fp80 %49, x86_fp80 %42)
  %51 = load ptr, ptr %11, align 8, !tbaa !11
  %52 = load i32, ptr %14, align 4, !tbaa !13
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds x86_fp80, ptr %51, i64 %53
  store x86_fp80 %50, ptr %54, align 16, !tbaa !5
  br label %55

55:                                               ; preds = %37
  %56 = load i32, ptr %14, align 4, !tbaa !13
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %14, align 4, !tbaa !13
  br label %32, !llvm.loop !15

58:                                               ; preds = %36
  %59 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %60 = fdiv x86_fp80 %59, 0xK40008000000000000000
  %61 = load ptr, ptr %11, align 8, !tbaa !11
  %62 = call ptr @van_der_pol(x86_fp80 noundef %60, ptr noundef %61)
  store ptr %62, ptr %12, align 8, !tbaa !11
  %63 = load ptr, ptr %8, align 8, !tbaa !11
  store ptr %63, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !13
  br label %64

64:                                               ; preds = %82, %58
  %65 = load i32, ptr %15, align 4, !tbaa !13
  %66 = sext i32 %65 to i64
  %67 = icmp ult i64 %66, 2
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %85

69:                                               ; preds = %64
  %70 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %71 = load ptr, ptr %12, align 8, !tbaa !11
  %72 = load i32, ptr %15, align 4, !tbaa !13
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds x86_fp80, ptr %71, i64 %73
  %75 = load x86_fp80, ptr %74, align 16, !tbaa !5
  %76 = load ptr, ptr %9, align 8, !tbaa !11
  %77 = load i32, ptr %15, align 4, !tbaa !13
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds x86_fp80, ptr %76, i64 %78
  %80 = load x86_fp80, ptr %79, align 16, !tbaa !5
  %81 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %70, x86_fp80 %75, x86_fp80 %80)
  store x86_fp80 %81, ptr %79, align 16, !tbaa !5
  br label %82

82:                                               ; preds = %69
  %83 = load i32, ptr %15, align 4, !tbaa !13
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %15, align 4, !tbaa !13
  br label %64, !llvm.loop !17

85:                                               ; preds = %68
  %86 = load ptr, ptr %9, align 8, !tbaa !11
  %87 = call ptr @vector_copy(ptr noundef %86)
  call void @matrix_append(ptr noundef %0, ptr noundef %87)
  call void @vector_free(ptr noundef %11)
  call void @vector_free(ptr noundef %12)
  %88 = load ptr, ptr %7, align 8, !tbaa !11
  %89 = call ptr @van_der_pol(x86_fp80 noundef 0xK00000000000000000000, ptr noundef %88)
  store ptr %89, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store i64 1, ptr %16, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %135, %85
  %91 = load i64, ptr %16, align 8, !tbaa !9
  %92 = load i64, ptr %6, align 8, !tbaa !9
  %93 = icmp slt i64 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %138

95:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %96 = load i64, ptr %16, align 8, !tbaa !9
  %97 = sitofp i64 %96 to x86_fp80
  %98 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %99 = fmul x86_fp80 %97, %98
  %100 = fptosi x86_fp80 %99 to i64
  store i64 %100, ptr %18, align 8, !tbaa !9
  %101 = load ptr, ptr %11, align 8, !tbaa !11
  store ptr %101, ptr %10, align 8, !tbaa !11
  %102 = load i64, ptr %18, align 8, !tbaa !9
  %103 = sitofp i64 %102 to x86_fp80
  %104 = load ptr, ptr %8, align 8, !tbaa !11
  %105 = call ptr @van_der_pol(x86_fp80 noundef %103, ptr noundef %104)
  store ptr %105, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %106

106:                                              ; preds = %128, %95
  %107 = load i64, ptr %19, align 8, !tbaa !9
  %108 = icmp ult i64 %107, 2
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %131

110:                                              ; preds = %106
  %111 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %112 = fdiv x86_fp80 %111, 0xK40008000000000000000
  %113 = load ptr, ptr %11, align 8, !tbaa !11
  %114 = load i64, ptr %19, align 8, !tbaa !9
  %115 = getelementptr inbounds x86_fp80, ptr %113, i64 %114
  %116 = load x86_fp80, ptr %115, align 16, !tbaa !5
  %117 = load ptr, ptr %10, align 8, !tbaa !11
  %118 = load i64, ptr %19, align 8, !tbaa !9
  %119 = getelementptr inbounds x86_fp80, ptr %117, i64 %118
  %120 = load x86_fp80, ptr %119, align 16, !tbaa !5
  %121 = fneg x86_fp80 %120
  %122 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 0xK4000C000000000000000, x86_fp80 %116, x86_fp80 %121)
  %123 = load ptr, ptr %9, align 8, !tbaa !11
  %124 = load i64, ptr %19, align 8, !tbaa !9
  %125 = getelementptr inbounds x86_fp80, ptr %123, i64 %124
  %126 = load x86_fp80, ptr %125, align 16, !tbaa !5
  %127 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %112, x86_fp80 %122, x86_fp80 %126)
  store x86_fp80 %127, ptr %125, align 16, !tbaa !5
  br label %128

128:                                              ; preds = %110
  %129 = load i64, ptr %19, align 8, !tbaa !9
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %19, align 8, !tbaa !9
  br label %106, !llvm.loop !18

131:                                              ; preds = %109
  %132 = load ptr, ptr %9, align 8, !tbaa !11
  store ptr %132, ptr %8, align 8, !tbaa !11
  %133 = load ptr, ptr %9, align 8, !tbaa !11
  %134 = call ptr @vector_copy(ptr noundef %133)
  call void @matrix_append(ptr noundef %0, ptr noundef %134)
  call void @vector_free(ptr noundef %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %135

135:                                              ; preds = %131
  %136 = load i64, ptr %16, align 8, !tbaa !9
  %137 = add nsw i64 %136, 1
  store i64 %137, ptr %16, align 8, !tbaa !9
  br label %90, !llvm.loop !19

138:                                              ; preds = %94
  call void @vector_free(ptr noundef %8)
  call void @vector_free(ptr noundef %10)
  call void @vector_free(ptr noundef %11)
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  ret void
}

declare void @matrix_create(ptr dead_on_unwind writable sret(%struct.__matrix_t) align 8, i64 noundef) #1

declare void @matrix_append(ptr noundef, ptr noundef) #1

declare ptr @vector_copy(ptr noundef) #1

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

declare ptr @van_der_pol(x86_fp80 noundef, ptr noundef) #1

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

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

declare void @vector_free(ptr noundef) #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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


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

; Function Attrs: nounwind uwtable
define dso_local void @solve_adams_bashforth(ptr dead_on_unwind noalias writable sret(%struct.__matrix_t) align 8 %0, x86_fp80 noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = add nsw i64 %2, 1
  tail call void @matrix_create(ptr dead_on_unwind writable sret(%struct.__matrix_t) align 8 %0, i64 noundef %9) #4
  %10 = tail call ptr @vector_copy(ptr noundef %3) #4
  tail call void @matrix_append(ptr noundef %0, ptr noundef %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %11 = tail call ptr @vector_copy(ptr noundef %3) #4
  store ptr %11, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %12 = sitofp i64 %2 to x86_fp80
  %13 = fdiv x86_fp80 %1, %12
  %14 = tail call ptr @van_der_pol(x86_fp80 noundef 0xK00000000000000000000, ptr noundef %3) #4
  store ptr %14, ptr %7, align 8, !tbaa !5
  %15 = fmul x86_fp80 %13, 0xK3FFE8000000000000000
  %16 = load x86_fp80, ptr %11, align 16, !tbaa !9
  %17 = load x86_fp80, ptr %14, align 16, !tbaa !9
  %18 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %15, x86_fp80 %17, x86_fp80 %16)
  store x86_fp80 %18, ptr %14, align 16, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %11, i64 16
  %20 = load x86_fp80, ptr %19, align 16, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %14, i64 16
  %22 = load x86_fp80, ptr %21, align 16, !tbaa !9
  %23 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %15, x86_fp80 %22, x86_fp80 %20)
  store x86_fp80 %23, ptr %21, align 16, !tbaa !9
  %24 = tail call ptr @van_der_pol(x86_fp80 noundef %15, ptr noundef nonnull %14) #4
  store ptr %24, ptr %8, align 8, !tbaa !5
  %25 = load x86_fp80, ptr %24, align 16, !tbaa !9
  %26 = load x86_fp80, ptr %11, align 16, !tbaa !9
  %27 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %13, x86_fp80 %25, x86_fp80 %26)
  store x86_fp80 %27, ptr %11, align 16, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %24, i64 16
  %29 = load x86_fp80, ptr %28, align 16, !tbaa !9
  %30 = load x86_fp80, ptr %19, align 16, !tbaa !9
  %31 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %13, x86_fp80 %29, x86_fp80 %30)
  store x86_fp80 %31, ptr %19, align 16, !tbaa !9
  %32 = tail call ptr @vector_copy(ptr noundef nonnull %11) #4
  tail call void @matrix_append(ptr noundef %0, ptr noundef %32) #4
  call void @vector_free(ptr noundef nonnull %7) #4
  call void @vector_free(ptr noundef nonnull %8) #4
  %33 = call ptr @van_der_pol(x86_fp80 noundef 0xK00000000000000000000, ptr noundef %3) #4
  store ptr %33, ptr %7, align 8, !tbaa !5
  %34 = icmp sgt i64 %2, 1
  br i1 %34, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %4
  call void @vector_free(ptr noundef nonnull %5) #4
  call void @vector_free(ptr noundef nonnull %6) #4
  call void @vector_free(ptr noundef nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret void

.lr.ph:                                           ; preds = %4, %.lr.ph
  %.03643 = phi i64 [ %57, %.lr.ph ], [ 1, %4 ]
  %35 = uitofp nneg i64 %.03643 to x86_fp80
  %36 = fmul x86_fp80 %13, %35
  %37 = fptosi x86_fp80 %36 to i64
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %38, ptr %6, align 8, !tbaa !5
  %39 = sitofp i64 %37 to x86_fp80
  %40 = call ptr @van_der_pol(x86_fp80 noundef %39, ptr noundef nonnull %11) #4
  store ptr %40, ptr %7, align 8, !tbaa !5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load x86_fp80, ptr %40, align 16, !tbaa !9
  %43 = load x86_fp80, ptr %41, align 16, !tbaa !9
  %44 = fneg x86_fp80 %43
  %45 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %42, x86_fp80 0xK4000C000000000000000, x86_fp80 %44)
  %46 = load x86_fp80, ptr %11, align 16, !tbaa !9
  %47 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %15, x86_fp80 %45, x86_fp80 %46)
  store x86_fp80 %47, ptr %11, align 16, !tbaa !9
  %48 = getelementptr inbounds i8, ptr %40, i64 16
  %49 = load x86_fp80, ptr %48, align 16, !tbaa !9
  %50 = getelementptr inbounds i8, ptr %41, i64 16
  %51 = load x86_fp80, ptr %50, align 16, !tbaa !9
  %52 = fneg x86_fp80 %51
  %53 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %49, x86_fp80 0xK4000C000000000000000, x86_fp80 %52)
  %54 = load x86_fp80, ptr %19, align 16, !tbaa !9
  %55 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %15, x86_fp80 %53, x86_fp80 %54)
  store x86_fp80 %55, ptr %19, align 16, !tbaa !9
  store ptr %11, ptr %5, align 8, !tbaa !5
  %56 = call ptr @vector_copy(ptr noundef nonnull %11) #4
  call void @matrix_append(ptr noundef %0, ptr noundef %56) #4
  call void @vector_free(ptr noundef nonnull %6) #4
  %57 = add nuw nsw i64 %.03643, 1
  %exitcond.not = icmp eq i64 %57, %2
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11
}

declare void @matrix_create(ptr dead_on_unwind writable sret(%struct.__matrix_t) align 8, i64 noundef) local_unnamed_addr #1

declare void @matrix_append(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @vector_copy(ptr noundef) local_unnamed_addr #1

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

declare ptr @van_der_pol(x86_fp80 noundef, ptr noundef) local_unnamed_addr #1

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

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

declare void @vector_free(ptr noundef) local_unnamed_addr #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 = { "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 0}
!10 = !{!"long double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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