; LLVM IR from stan-dev/math :: lib/sundials_6.1.1/src/nvector/manyvector (nvector_manyvector)

; 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._generic_N_Vector = type { ptr, ptr, ptr }
%struct._generic_N_Vector_Ops = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._N_VectorContent_ManyVector = type { i64, i64, ptr, i32 }

; Function Attrs: nounwind uwtable
define dso_local ptr @N_VNew_ManyVector(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  store i64 %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %12 = load ptr, ptr %6, align 8, !tbaa !9
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %15

14:                                               ; preds = %3
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %298

15:                                               ; preds = %3
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %28, %15
  %17 = load i64, ptr %10, align 8, !tbaa !5
  %18 = load i64, ptr %5, align 8, !tbaa !5
  %19 = icmp slt i64 %17, %18
  br i1 %19, label %20, label %31

20:                                               ; preds = %16
  %21 = load ptr, ptr %6, align 8, !tbaa !9
  %22 = load i64, ptr %10, align 8, !tbaa !5
  %23 = getelementptr inbounds ptr, ptr %21, i64 %22
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %20
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %298

27:                                               ; preds = %20
  br label %28

28:                                               ; preds = %27
  %29 = load i64, ptr %10, align 8, !tbaa !5
  %30 = add nsw i64 %29, 1
  store i64 %30, ptr %10, align 8, !tbaa !5
  br label %16, !llvm.loop !11

31:                                               ; preds = %16
  store ptr null, ptr %8, align 8, !tbaa !9
  %32 = load ptr, ptr %7, align 8, !tbaa !9
  %33 = call ptr @N_VNewEmpty(ptr noundef %32)
  store ptr %33, ptr %8, align 8, !tbaa !9
  %34 = load ptr, ptr %8, align 8, !tbaa !9
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %298

37:                                               ; preds = %31
  %38 = load ptr, ptr %8, align 8, !tbaa !9
  %39 = getelementptr inbounds %struct._generic_N_Vector, ptr %38, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %40, i32 0, i32 0
  store ptr @N_VGetVectorID_ManyVector, ptr %41, align 8, !tbaa !15
  %42 = load ptr, ptr %8, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct._generic_N_Vector, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %44, i32 0, i32 2
  store ptr @N_VCloneEmpty_ManyVector, ptr %45, align 8, !tbaa !17
  %46 = load ptr, ptr %8, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct._generic_N_Vector, ptr %46, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %48, i32 0, i32 1
  store ptr @N_VClone_ManyVector, ptr %49, align 8, !tbaa !18
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct._generic_N_Vector, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %52, i32 0, i32 3
  store ptr @N_VDestroy_ManyVector, ptr %53, align 8, !tbaa !19
  %54 = load ptr, ptr %8, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct._generic_N_Vector, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !13
  %57 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %56, i32 0, i32 4
  store ptr @N_VSpace_ManyVector, ptr %57, align 8, !tbaa !20
  %58 = load ptr, ptr %8, align 8, !tbaa !9
  %59 = getelementptr inbounds %struct._generic_N_Vector, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %60, i32 0, i32 9
  store ptr @N_VGetLength_ManyVector, ptr %61, align 8, !tbaa !21
  %62 = load ptr, ptr %8, align 8, !tbaa !9
  %63 = getelementptr inbounds %struct._generic_N_Vector, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %64, i32 0, i32 10
  store ptr @N_VLinearSum_ManyVector, ptr %65, align 8, !tbaa !22
  %66 = load ptr, ptr %8, align 8, !tbaa !9
  %67 = getelementptr inbounds %struct._generic_N_Vector, ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !13
  %69 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %68, i32 0, i32 11
  store ptr @N_VConst_ManyVector, ptr %69, align 8, !tbaa !23
  %70 = load ptr, ptr %8, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct._generic_N_Vector, ptr %70, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !13
  %73 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %72, i32 0, i32 12
  store ptr @N_VProd_ManyVector, ptr %73, align 8, !tbaa !24
  %74 = load ptr, ptr %8, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct._generic_N_Vector, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  %77 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %76, i32 0, i32 13
  store ptr @N_VDiv_ManyVector, ptr %77, align 8, !tbaa !25
  %78 = load ptr, ptr %8, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct._generic_N_Vector, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %80, i32 0, i32 14
  store ptr @N_VScale_ManyVector, ptr %81, align 8, !tbaa !26
  %82 = load ptr, ptr %8, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct._generic_N_Vector, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %84, i32 0, i32 15
  store ptr @N_VAbs_ManyVector, ptr %85, align 8, !tbaa !27
  %86 = load ptr, ptr %8, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct._generic_N_Vector, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %88, i32 0, i32 16
  store ptr @N_VInv_ManyVector, ptr %89, align 8, !tbaa !28
  %90 = load ptr, ptr %8, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct._generic_N_Vector, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  %93 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %92, i32 0, i32 17
  store ptr @N_VAddConst_ManyVector, ptr %93, align 8, !tbaa !29
  %94 = load ptr, ptr %8, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct._generic_N_Vector, ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !13
  %97 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %96, i32 0, i32 18
  store ptr @N_VDotProdLocal_ManyVector, ptr %97, align 8, !tbaa !30
  %98 = load ptr, ptr %8, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct._generic_N_Vector, ptr %98, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  %101 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %100, i32 0, i32 19
  store ptr @N_VMaxNormLocal_ManyVector, ptr %101, align 8, !tbaa !31
  %102 = load ptr, ptr %8, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct._generic_N_Vector, ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !13
  %105 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %104, i32 0, i32 20
  store ptr @N_VWrmsNorm_ManyVector, ptr %105, align 8, !tbaa !32
  %106 = load ptr, ptr %8, align 8, !tbaa !9
  %107 = getelementptr inbounds %struct._generic_N_Vector, ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %108, i32 0, i32 21
  store ptr @N_VWrmsNormMask_ManyVector, ptr %109, align 8, !tbaa !33
  %110 = load ptr, ptr %8, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct._generic_N_Vector, ptr %110, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8, !tbaa !13
  %113 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %112, i32 0, i32 22
  store ptr @N_VMinLocal_ManyVector, ptr %113, align 8, !tbaa !34
  %114 = load ptr, ptr %8, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct._generic_N_Vector, ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !13
  %117 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %116, i32 0, i32 23
  store ptr @N_VWL2Norm_ManyVector, ptr %117, align 8, !tbaa !35
  %118 = load ptr, ptr %8, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct._generic_N_Vector, ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %119, align 8, !tbaa !13
  %121 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %120, i32 0, i32 24
  store ptr @N_VL1NormLocal_ManyVector, ptr %121, align 8, !tbaa !36
  %122 = load ptr, ptr %8, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct._generic_N_Vector, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  %125 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %124, i32 0, i32 25
  store ptr @N_VCompare_ManyVector, ptr %125, align 8, !tbaa !37
  %126 = load ptr, ptr %8, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct._generic_N_Vector, ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %127, align 8, !tbaa !13
  %129 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %128, i32 0, i32 26
  store ptr @N_VInvTestLocal_ManyVector, ptr %129, align 8, !tbaa !38
  %130 = load ptr, ptr %8, align 8, !tbaa !9
  %131 = getelementptr inbounds %struct._generic_N_Vector, ptr %130, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !13
  %133 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %132, i32 0, i32 27
  store ptr @N_VConstrMaskLocal_ManyVector, ptr %133, align 8, !tbaa !39
  %134 = load ptr, ptr %8, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct._generic_N_Vector, ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !13
  %137 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %136, i32 0, i32 28
  store ptr @N_VMinQuotientLocal_ManyVector, ptr %137, align 8, !tbaa !40
  %138 = load ptr, ptr %8, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct._generic_N_Vector, ptr %138, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8, !tbaa !13
  %141 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %140, i32 0, i32 29
  store ptr @N_VLinearCombination_ManyVector, ptr %141, align 8, !tbaa !41
  %142 = load ptr, ptr %8, align 8, !tbaa !9
  %143 = getelementptr inbounds %struct._generic_N_Vector, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !13
  %145 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %144, i32 0, i32 30
  store ptr @N_VScaleAddMulti_ManyVector, ptr %145, align 8, !tbaa !42
  %146 = load ptr, ptr %8, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct._generic_N_Vector, ptr %146, i32 0, i32 1
  %148 = load ptr, ptr %147, align 8, !tbaa !13
  %149 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %148, i32 0, i32 31
  store ptr @N_VDotProdMulti_ManyVector, ptr %149, align 8, !tbaa !43
  %150 = load ptr, ptr %8, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct._generic_N_Vector, ptr %150, i32 0, i32 1
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  %153 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %152, i32 0, i32 35
  store ptr @N_VWrmsNormVectorArray_ManyVector, ptr %153, align 8, !tbaa !44
  %154 = load ptr, ptr %8, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct._generic_N_Vector, ptr %154, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !13
  %157 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %156, i32 0, i32 36
  store ptr @N_VWrmsNormMaskVectorArray_ManyVector, ptr %157, align 8, !tbaa !45
  %158 = load ptr, ptr %8, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct._generic_N_Vector, ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !13
  %161 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %160, i32 0, i32 39
  store ptr @N_VDotProdLocal_ManyVector, ptr %161, align 8, !tbaa !46
  %162 = load ptr, ptr %8, align 8, !tbaa !9
  %163 = getelementptr inbounds %struct._generic_N_Vector, ptr %162, i32 0, i32 1
  %164 = load ptr, ptr %163, align 8, !tbaa !13
  %165 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %164, i32 0, i32 40
  store ptr @N_VMaxNormLocal_ManyVector, ptr %165, align 8, !tbaa !47
  %166 = load ptr, ptr %8, align 8, !tbaa !9
  %167 = getelementptr inbounds %struct._generic_N_Vector, ptr %166, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !13
  %169 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %168, i32 0, i32 41
  store ptr @N_VMinLocal_ManyVector, ptr %169, align 8, !tbaa !48
  %170 = load ptr, ptr %8, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct._generic_N_Vector, ptr %170, i32 0, i32 1
  %172 = load ptr, ptr %171, align 8, !tbaa !13
  %173 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %172, i32 0, i32 42
  store ptr @N_VL1NormLocal_ManyVector, ptr %173, align 8, !tbaa !49
  %174 = load ptr, ptr %8, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct._generic_N_Vector, ptr %174, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !13
  %177 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %176, i32 0, i32 43
  store ptr @N_VInvTestLocal_ManyVector, ptr %177, align 8, !tbaa !50
  %178 = load ptr, ptr %8, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct._generic_N_Vector, ptr %178, i32 0, i32 1
  %180 = load ptr, ptr %179, align 8, !tbaa !13
  %181 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %180, i32 0, i32 44
  store ptr @N_VConstrMaskLocal_ManyVector, ptr %181, align 8, !tbaa !51
  %182 = load ptr, ptr %8, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct._generic_N_Vector, ptr %182, i32 0, i32 1
  %184 = load ptr, ptr %183, align 8, !tbaa !13
  %185 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %184, i32 0, i32 45
  store ptr @N_VMinQuotientLocal_ManyVector, ptr %185, align 8, !tbaa !52
  %186 = load ptr, ptr %8, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct._generic_N_Vector, ptr %186, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !13
  %189 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %188, i32 0, i32 46
  store ptr @N_VWSqrSumLocal_ManyVector, ptr %189, align 8, !tbaa !53
  %190 = load ptr, ptr %8, align 8, !tbaa !9
  %191 = getelementptr inbounds %struct._generic_N_Vector, ptr %190, i32 0, i32 1
  %192 = load ptr, ptr %191, align 8, !tbaa !13
  %193 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %192, i32 0, i32 47
  store ptr @N_VWSqrSumMaskLocal_ManyVector, ptr %193, align 8, !tbaa !54
  %194 = load ptr, ptr %8, align 8, !tbaa !9
  %195 = getelementptr inbounds %struct._generic_N_Vector, ptr %194, i32 0, i32 1
  %196 = load ptr, ptr %195, align 8, !tbaa !13
  %197 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %196, i32 0, i32 48
  store ptr @N_VDotProdMultiLocal_ManyVector, ptr %197, align 8, !tbaa !55
  %198 = load ptr, ptr %8, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct._generic_N_Vector, ptr %198, i32 0, i32 1
  %200 = load ptr, ptr %199, align 8, !tbaa !13
  %201 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %200, i32 0, i32 50
  store ptr @N_VBufSize_ManyVector, ptr %201, align 8, !tbaa !56
  %202 = load ptr, ptr %8, align 8, !tbaa !9
  %203 = getelementptr inbounds %struct._generic_N_Vector, ptr %202, i32 0, i32 1
  %204 = load ptr, ptr %203, align 8, !tbaa !13
  %205 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %204, i32 0, i32 51
  store ptr @N_VBufPack_ManyVector, ptr %205, align 8, !tbaa !57
  %206 = load ptr, ptr %8, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct._generic_N_Vector, ptr %206, i32 0, i32 1
  %208 = load ptr, ptr %207, align 8, !tbaa !13
  %209 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %208, i32 0, i32 52
  store ptr @N_VBufUnpack_ManyVector, ptr %209, align 8, !tbaa !58
  %210 = load ptr, ptr %8, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct._generic_N_Vector, ptr %210, i32 0, i32 1
  %212 = load ptr, ptr %211, align 8, !tbaa !13
  %213 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %212, i32 0, i32 53
  store ptr @N_VPrint_ManyVector, ptr %213, align 8, !tbaa !59
  %214 = load ptr, ptr %8, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct._generic_N_Vector, ptr %214, i32 0, i32 1
  %216 = load ptr, ptr %215, align 8, !tbaa !13
  %217 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %216, i32 0, i32 54
  store ptr @N_VPrintFile_ManyVector, ptr %217, align 8, !tbaa !60
  store ptr null, ptr %9, align 8, !tbaa !9
  %218 = call noalias ptr @malloc(i64 noundef 32) #5
  store ptr %218, ptr %9, align 8, !tbaa !9
  %219 = load ptr, ptr %9, align 8, !tbaa !9
  %220 = icmp eq ptr %219, null
  br i1 %220, label %221, label %223

221:                                              ; preds = %37
  %222 = load ptr, ptr %8, align 8, !tbaa !9
  call void @N_VDestroy(ptr noundef %222)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %298

223:                                              ; preds = %37
  %224 = load ptr, ptr %9, align 8, !tbaa !9
  %225 = load ptr, ptr %8, align 8, !tbaa !9
  %226 = getelementptr inbounds %struct._generic_N_Vector, ptr %225, i32 0, i32 0
  store ptr %224, ptr %226, align 8, !tbaa !61
  %227 = load i64, ptr %5, align 8, !tbaa !5
  %228 = load ptr, ptr %9, align 8, !tbaa !9
  %229 = getelementptr inbounds %struct._N_VectorContent_ManyVector, ptr %228, i32 0, i32 0
  store i64 %227, ptr %229, align 8, !tbaa !62
  %230 = load ptr, ptr %9, align 8, !tbaa !9
  %231 = getelementptr inbounds %struct._N_VectorContent_ManyVector, ptr %230, i32 0, i32 3
  store i32 0, ptr %231, align 8, !tbaa !65
  %232 = load ptr, ptr %9, align 8, !tbaa !9
  %233 = getelementptr inbounds %struct._N_VectorContent_ManyVector, ptr %232, i32 0, i32 2
  store ptr null, ptr %233, align 8, !tbaa !66
  %234 = load i64, ptr %5, align 8, !tbaa !5
  %235 = mul i64 %234, 8
  %236 = call noalias ptr @malloc(i64 noundef %235) #5
  %237 = load ptr, ptr %9, align 8, !tbaa !9
  %238 = getelementptr inbounds %struct._N_VectorContent_ManyVector, ptr %237, i32 0, i32 2
  store ptr %236, ptr %238, align 8, !tbaa !66
  %239 = load ptr, ptr %9, align 8, !tbaa !9
  %240 = getelementptr inbounds %struct._N_VectorContent_ManyVector, ptr %239, i32 0, i32 2
  %241 = load ptr, ptr %240, align 8, !tbaa !66
  %242 = icmp eq ptr %241, null
  br i1 %242, label %243, label %245

243:                                              ; preds = %223
  %244 = load ptr, ptr %8, align 8, !tbaa !9
  call void @N_VDestroy(ptr noundef %244)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %298

245:                                              ; preds = %223
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %246

246:                                              ; preds = %260, %245
  %247 = load i64, ptr %10, align 8, !tbaa !5
  %248 = load i64, ptr %5, align 8, !tbaa !5
  %249 = icmp slt i64 %247, %248
  br i1 %249, label %250, label %263

250:                                              ; preds = %246
  %251 = load ptr, ptr %6, align 8, !tbaa !9
  %252 = load i64, ptr %10, align 8, !tbaa !5
  %253 = getelementptr inbounds ptr, ptr %251, i64 %252
  %254 = load ptr, ptr %253, align 8, !tbaa !9
  %255 = load ptr, ptr %9, align 8, !tbaa !9
  %256 = getelementptr inbounds %struct._N_VectorContent_ManyVector, ptr %255, i32 0, i32 2
  %257 = load ptr, ptr %256, align 8, !tbaa !66
  %258 = load i64, ptr %10, align 8, !tbaa !5
  %259 = getelementptr inbounds ptr, ptr %257, i64 %258
  store ptr %254, ptr %259, align 8, !tbaa !9
  br label %260

260:                                              ; preds = %250
  %261 = load i64, ptr %10, align 8, !tbaa !5
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %10, align 8, !tbaa !5
  br label %246, !llvm.loop !67

263:                                              ; preds = %246
  %264 = load ptr, ptr %9, align 8, !tbaa !9
  %265 = getelementptr inbounds %struct._N_VectorContent_ManyVector, ptr %264, i32 0, i32 1
  store i64 0, ptr %265, align 8, !tbaa !68
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %266

266:                                              ; preds = %293, %263
  %267 = load i64, ptr %10, align 8, !tbaa !5
  %268 = load i64, ptr %5, align 8, !tbaa !5
  %269 = icmp slt i64 %267, %268
  br i1 %269, label %270, label %296

270:                                              ; preds = %266
  %271 = load ptr, ptr %6, align 8, !tbaa !9
  %272 = load i64, ptr %10, align 8, !tbaa !5
  %273 = getelementptr inbounds ptr, ptr %271, i64 %272
  %274 = load ptr, ptr %273, align 8, !tbaa !9
  %275 = getelementptr inbounds %struct._generic_N_Vector, ptr %274, i32 0, i32 1
  %276 = load ptr, ptr %275, align 8, !tbaa !13
  %277 = getelementptr inbounds %struct._generic_N_Vector_Ops, ptr %276, i32 0, i32 9
  %278 = load ptr, ptr %277, align 8, !tbaa !21
  %279 = icmp ne ptr %278, null
  br i1 %279, label %280, label %290

280:                                              ; preds = %270
  %281 = load ptr, ptr %6, align 8, !tbaa !9
  %282 = load i64, ptr %10, align 8, !tbaa !5
  %283 = getelementptr inbounds ptr, ptr %281, i64 %282
  %284 = load ptr, ptr %283, align 8, !tbaa !9
  %285 = call i64 @N_VGetLength(ptr noundef %284)
  %286 = load ptr, ptr %9, align 8, !tbaa !9
  %287 = getelementptr inbounds %struct._N_VectorContent_ManyVector, ptr %286, i32 0, i32 1
  %288 = load i64, ptr %287, align 8, !tbaa !68
  %289 = add nsw i64 %288, %285
  store i64 %289, ptr %287, align 8, !tbaa !68
  br label %292

290:                                              ; preds = %270
  %291 = load ptr, ptr %8, align 8, !tbaa !9
  call void @N_VDestroy(ptr noundef %291)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %298

292:                                              ; preds = %280
  br label %293

293:                                              ; preds = %292
  %294 = load i64, ptr %10, align 8, !tbaa !5
  %295 = add nsw i64 %294, 1
  store i64 %295, ptr %10, align 8, !tbaa !5
  br label %266, !llvm.loop !69

296:                                              ; preds = %266
  %297 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %297, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %298

298:                                              ; preds = %296, %290, %243, %221, %36, %26, %14
  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
  %299 = load ptr, ptr %4, align 8
  ret ptr %299
}

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

declare ptr @N_VNewEmpty(ptr noundef) #2

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @N_VGetLength_ManyVector(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VLinearSum_ManyVector(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VConst_ManyVector(double noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @N_VScale_ManyVector(double noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @N_VAddConst_ManyVector(ptr noundef, double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VDotProdLocal_ManyVector(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMaxNormLocal_ManyVector(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWrmsNorm_ManyVector(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWrmsNormMask_ManyVector(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMinLocal_ManyVector(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWL2Norm_ManyVector(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VL1NormLocal_ManyVector(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VCompare_ManyVector(double noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMinQuotientLocal_ManyVector(ptr noundef, ptr noundef) #0

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWSqrSumLocal_ManyVector(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWSqrSumMaskLocal_ManyVector(ptr noundef, ptr noundef, ptr noundef) #0

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

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

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

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

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

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

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

declare void @N_VDestroy(ptr noundef) #2

declare i64 @N_VGetLength(ptr noundef) #2

; 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 = { "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 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 }
attributes #5 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 8}
!14 = !{!"_generic_N_Vector", !10, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!16, !10, i64 0}
!16 = !{!"_generic_N_Vector_Ops", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432}
!17 = !{!16, !10, i64 16}
!18 = !{!16, !10, i64 8}
!19 = !{!16, !10, i64 24}
!20 = !{!16, !10, i64 32}
!21 = !{!16, !10, i64 72}
!22 = !{!16, !10, i64 80}
!23 = !{!16, !10, i64 88}
!24 = !{!16, !10, i64 96}
!25 = !{!16, !10, i64 104}
!26 = !{!16, !10, i64 112}
!27 = !{!16, !10, i64 120}
!28 = !{!16, !10, i64 128}
!29 = !{!16, !10, i64 136}
!30 = !{!16, !10, i64 144}
!31 = !{!16, !10, i64 152}
!32 = !{!16, !10, i64 160}
!33 = !{!16, !10, i64 168}
!34 = !{!16, !10, i64 176}
!35 = !{!16, !10, i64 184}
!36 = !{!16, !10, i64 192}
!37 = !{!16, !10, i64 200}
!38 = !{!16, !10, i64 208}
!39 = !{!16, !10, i64 216}
!40 = !{!16, !10, i64 224}
!41 = !{!16, !10, i64 232}
!42 = !{!16, !10, i64 240}
!43 = !{!16, !10, i64 248}
!44 = !{!16, !10, i64 280}
!45 = !{!16, !10, i64 288}
!46 = !{!16, !10, i64 312}
!47 = !{!16, !10, i64 320}
!48 = !{!16, !10, i64 328}
!49 = !{!16, !10, i64 336}
!50 = !{!16, !10, i64 344}
!51 = !{!16, !10, i64 352}
!52 = !{!16, !10, i64 360}
!53 = !{!16, !10, i64 368}
!54 = !{!16, !10, i64 376}
!55 = !{!16, !10, i64 384}
!56 = !{!16, !10, i64 400}
!57 = !{!16, !10, i64 408}
!58 = !{!16, !10, i64 416}
!59 = !{!16, !10, i64 424}
!60 = !{!16, !10, i64 432}
!61 = !{!14, !10, i64 0}
!62 = !{!63, !6, i64 0}
!63 = !{!"_N_VectorContent_ManyVector", !6, i64 0, !6, i64 8, !10, i64 16, !64, i64 24}
!64 = !{!"int", !7, i64 0}
!65 = !{!63, !64, i64 24}
!66 = !{!63, !10, i64 16}
!67 = distinct !{!67, !12}
!68 = !{!63, !6, i64 8}
!69 = distinct !{!69, !12}


; 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 ptr @N_VNew_ManyVector(i64 noundef %0, ptr noundef readonly %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %1, null
  br i1 %4, label %.loopexit, label %.preheader88

.preheader88:                                     ; preds = %3
  %5 = icmp sgt i64 %0, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

6:                                                ; preds = %.lr.ph
  %7 = add nuw nsw i64 %.090, 1
  %exitcond.not = icmp eq i64 %7, %0
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

.lr.ph:                                           ; preds = %.preheader88, %6
  %.090 = phi i64 [ %7, %6 ], [ 0, %.preheader88 ]
  %8 = getelementptr inbounds ptr, ptr %1, i64 %.090
  %9 = load ptr, ptr %8, align 8, !tbaa !7
  %10 = icmp eq ptr %9, null
  br i1 %10, label %.loopexit, label %6

._crit_edge:                                      ; preds = %6, %.preheader88
  %11 = tail call ptr @N_VNewEmpty(ptr noundef %2) #3
  %12 = icmp eq ptr %11, null
  br i1 %12, label %.loopexit, label %13

13:                                               ; preds = %._crit_edge
  %14 = getelementptr inbounds i8, ptr %11, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  store ptr @N_VGetVectorID_ManyVector, ptr %15, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  store ptr @N_VCloneEmpty_ManyVector, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %15, i64 8
  store ptr @N_VClone_ManyVector, ptr %17, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr @N_VDestroy_ManyVector, ptr %18, align 8, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %15, i64 32
  store ptr @N_VSpace_ManyVector, ptr %19, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %15, i64 72
  store ptr @N_VGetLength_ManyVector, ptr %20, align 8, !tbaa !19
  %21 = getelementptr inbounds i8, ptr %15, i64 80
  store ptr @N_VLinearSum_ManyVector, ptr %21, align 8, !tbaa !20
  %22 = getelementptr inbounds i8, ptr %15, i64 88
  store ptr @N_VConst_ManyVector, ptr %22, align 8, !tbaa !21
  %23 = getelementptr inbounds i8, ptr %15, i64 96
  store ptr @N_VProd_ManyVector, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %15, i64 104
  store ptr @N_VDiv_ManyVector, ptr %24, align 8, !tbaa !23
  %25 = getelementptr inbounds i8, ptr %15, i64 112
  store ptr @N_VScale_ManyVector, ptr %25, align 8, !tbaa !24
  %26 = getelementptr inbounds i8, ptr %15, i64 120
  store ptr @N_VAbs_ManyVector, ptr %26, align 8, !tbaa !25
  %27 = getelementptr inbounds i8, ptr %15, i64 128
  store ptr @N_VInv_ManyVector, ptr %27, align 8, !tbaa !26
  %28 = getelementptr inbounds i8, ptr %15, i64 136
  store ptr @N_VAddConst_ManyVector, ptr %28, align 8, !tbaa !27
  %29 = getelementptr inbounds i8, ptr %15, i64 144
  store ptr @N_VDotProdLocal_ManyVector, ptr %29, align 8, !tbaa !28
  %30 = getelementptr inbounds i8, ptr %15, i64 152
  store ptr @N_VMaxNormLocal_ManyVector, ptr %30, align 8, !tbaa !29
  %31 = getelementptr inbounds i8, ptr %15, i64 160
  store ptr @N_VWrmsNorm_ManyVector, ptr %31, align 8, !tbaa !30
  %32 = getelementptr inbounds i8, ptr %15, i64 168
  store ptr @N_VWrmsNormMask_ManyVector, ptr %32, align 8, !tbaa !31
  %33 = getelementptr inbounds i8, ptr %15, i64 176
  store ptr @N_VMinLocal_ManyVector, ptr %33, align 8, !tbaa !32
  %34 = getelementptr inbounds i8, ptr %15, i64 184
  store ptr @N_VWL2Norm_ManyVector, ptr %34, align 8, !tbaa !33
  %35 = getelementptr inbounds i8, ptr %15, i64 192
  store ptr @N_VL1NormLocal_ManyVector, ptr %35, align 8, !tbaa !34
  %36 = getelementptr inbounds i8, ptr %15, i64 200
  store ptr @N_VCompare_ManyVector, ptr %36, align 8, !tbaa !35
  %37 = getelementptr inbounds i8, ptr %15, i64 208
  store ptr @N_VInvTestLocal_ManyVector, ptr %37, align 8, !tbaa !36
  %38 = getelementptr inbounds i8, ptr %15, i64 216
  store ptr @N_VConstrMaskLocal_ManyVector, ptr %38, align 8, !tbaa !37
  %39 = getelementptr inbounds i8, ptr %15, i64 224
  store ptr @N_VMinQuotientLocal_ManyVector, ptr %39, align 8, !tbaa !38
  %40 = getelementptr inbounds i8, ptr %15, i64 232
  store ptr @N_VLinearCombination_ManyVector, ptr %40, align 8, !tbaa !39
  %41 = getelementptr inbounds i8, ptr %15, i64 240
  store ptr @N_VScaleAddMulti_ManyVector, ptr %41, align 8, !tbaa !40
  %42 = getelementptr inbounds i8, ptr %15, i64 248
  store ptr @N_VDotProdMulti_ManyVector, ptr %42, align 8, !tbaa !41
  %43 = getelementptr inbounds i8, ptr %15, i64 280
  store ptr @N_VWrmsNormVectorArray_ManyVector, ptr %43, align 8, !tbaa !42
  %44 = getelementptr inbounds i8, ptr %15, i64 288
  store ptr @N_VWrmsNormMaskVectorArray_ManyVector, ptr %44, align 8, !tbaa !43
  %45 = getelementptr inbounds i8, ptr %15, i64 312
  store ptr @N_VDotProdLocal_ManyVector, ptr %45, align 8, !tbaa !44
  %46 = getelementptr inbounds i8, ptr %15, i64 320
  store ptr @N_VMaxNormLocal_ManyVector, ptr %46, align 8, !tbaa !45
  %47 = getelementptr inbounds i8, ptr %15, i64 328
  store ptr @N_VMinLocal_ManyVector, ptr %47, align 8, !tbaa !46
  %48 = getelementptr inbounds i8, ptr %15, i64 336
  store ptr @N_VL1NormLocal_ManyVector, ptr %48, align 8, !tbaa !47
  %49 = getelementptr inbounds i8, ptr %15, i64 344
  store ptr @N_VInvTestLocal_ManyVector, ptr %49, align 8, !tbaa !48
  %50 = getelementptr inbounds i8, ptr %15, i64 352
  store ptr @N_VConstrMaskLocal_ManyVector, ptr %50, align 8, !tbaa !49
  %51 = getelementptr inbounds i8, ptr %15, i64 360
  store ptr @N_VMinQuotientLocal_ManyVector, ptr %51, align 8, !tbaa !50
  %52 = getelementptr inbounds i8, ptr %15, i64 368
  store ptr @N_VWSqrSumLocal_ManyVector, ptr %52, align 8, !tbaa !51
  %53 = getelementptr inbounds i8, ptr %15, i64 376
  store ptr @N_VWSqrSumMaskLocal_ManyVector, ptr %53, align 8, !tbaa !52
  %54 = getelementptr inbounds i8, ptr %15, i64 384
  store ptr @N_VDotProdMultiLocal_ManyVector, ptr %54, align 8, !tbaa !53
  %55 = getelementptr inbounds i8, ptr %15, i64 400
  store ptr @N_VBufSize_ManyVector, ptr %55, align 8, !tbaa !54
  %56 = getelementptr inbounds i8, ptr %15, i64 408
  store ptr @N_VBufPack_ManyVector, ptr %56, align 8, !tbaa !55
  %57 = getelementptr inbounds i8, ptr %15, i64 416
  store ptr @N_VBufUnpack_ManyVector, ptr %57, align 8, !tbaa !56
  %58 = getelementptr inbounds i8, ptr %15, i64 424
  store ptr @N_VPrint_ManyVector, ptr %58, align 8, !tbaa !57
  %59 = getelementptr inbounds i8, ptr %15, i64 432
  store ptr @N_VPrintFile_ManyVector, ptr %59, align 8, !tbaa !58
  %60 = tail call noalias dereferenceable_or_null(32) ptr @malloc(i64 noundef 32) #4
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %13
  tail call void @N_VDestroy(ptr noundef nonnull %11) #3
  br label %.loopexit

63:                                               ; preds = %13
  store ptr %60, ptr %11, align 8, !tbaa !59
  store i64 %0, ptr %60, align 8, !tbaa !60
  %64 = getelementptr inbounds i8, ptr %60, i64 24
  store i32 0, ptr %64, align 8, !tbaa !64
  %65 = getelementptr inbounds i8, ptr %60, i64 16
  %66 = shl i64 %0, 3
  %67 = tail call noalias ptr @malloc(i64 noundef %66) #4
  store ptr %67, ptr %65, align 8, !tbaa !65
  %68 = icmp eq ptr %67, null
  br i1 %68, label %71, label %.preheader

.preheader:                                       ; preds = %63
  br i1 %5, label %.lr.ph92.preheader, label %._crit_edge93.thread

.lr.ph92.preheader:                               ; preds = %.preheader
  %xtraiter = and i64 %0, 3
  %69 = icmp ult i64 %0, 4
  br i1 %69, label %._crit_edge93.unr-lcssa, label %.lr.ph92.preheader.new

.lr.ph92.preheader.new:                           ; preds = %.lr.ph92.preheader
  %unroll_iter = and i64 %0, 9223372036854775804
  br label %.lr.ph92

._crit_edge93.thread:                             ; preds = %.preheader
  %70 = getelementptr inbounds i8, ptr %60, i64 8
  store i64 0, ptr %70, align 8, !tbaa !66
  br label %.loopexit

71:                                               ; preds = %63
  tail call void @N_VDestroy(ptr noundef nonnull %11) #3
  br label %.loopexit

.lr.ph92:                                         ; preds = %.lr.ph92, %.lr.ph92.preheader.new
  %.191 = phi i64 [ 0, %.lr.ph92.preheader.new ], [ %91, %.lr.ph92 ]
  %niter = phi i64 [ 0, %.lr.ph92.preheader.new ], [ %niter.next.3, %.lr.ph92 ]
  %72 = getelementptr inbounds ptr, ptr %1, i64 %.191
  %73 = load ptr, ptr %72, align 8, !tbaa !7
  %74 = load ptr, ptr %65, align 8, !tbaa !65
  %75 = getelementptr inbounds ptr, ptr %74, i64 %.191
  store ptr %73, ptr %75, align 8, !tbaa !7
  %76 = or disjoint i64 %.191, 1
  %77 = getelementptr inbounds ptr, ptr %1, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !7
  %79 = load ptr, ptr %65, align 8, !tbaa !65
  %80 = getelementptr inbounds ptr, ptr %79, i64 %76
  store ptr %78, ptr %80, align 8, !tbaa !7
  %81 = or disjoint i64 %.191, 2
  %82 = getelementptr inbounds ptr, ptr %1, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !7
  %84 = load ptr, ptr %65, align 8, !tbaa !65
  %85 = getelementptr inbounds ptr, ptr %84, i64 %81
  store ptr %83, ptr %85, align 8, !tbaa !7
  %86 = or disjoint i64 %.191, 3
  %87 = getelementptr inbounds ptr, ptr %1, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !7
  %89 = load ptr, ptr %65, align 8, !tbaa !65
  %90 = getelementptr inbounds ptr, ptr %89, i64 %86
  store ptr %88, ptr %90, align 8, !tbaa !7
  %91 = add nuw nsw i64 %.191, 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_edge93.unr-lcssa, label %.lr.ph92, !llvm.loop !67

._crit_edge93.unr-lcssa:                          ; preds = %.lr.ph92, %.lr.ph92.preheader
  %.191.unr = phi i64 [ 0, %.lr.ph92.preheader ], [ %91, %.lr.ph92 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge93, label %.lr.ph92.epil

.lr.ph92.epil:                                    ; preds = %._crit_edge93.unr-lcssa, %.lr.ph92.epil
  %.191.epil = phi i64 [ %96, %.lr.ph92.epil ], [ %.191.unr, %._crit_edge93.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph92.epil ], [ 0, %._crit_edge93.unr-lcssa ]
  %92 = getelementptr inbounds ptr, ptr %1, i64 %.191.epil
  %93 = load ptr, ptr %92, align 8, !tbaa !7
  %94 = load ptr, ptr %65, align 8, !tbaa !65
  %95 = getelementptr inbounds ptr, ptr %94, i64 %.191.epil
  store ptr %93, ptr %95, align 8, !tbaa !7
  %96 = add nuw nsw i64 %.191.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_edge93, label %.lr.ph92.epil, !llvm.loop !68

._crit_edge93:                                    ; preds = %.lr.ph92.epil, %._crit_edge93.unr-lcssa
  %97 = getelementptr inbounds i8, ptr %60, i64 8
  store i64 0, ptr %97, align 8, !tbaa !66
  br i1 %5, label %.lr.ph96, label %.loopexit

.lr.ph96:                                         ; preds = %._crit_edge93, %104
  %.294 = phi i64 [ %108, %104 ], [ 0, %._crit_edge93 ]
  %98 = getelementptr inbounds ptr, ptr %1, i64 %.294
  %99 = load ptr, ptr %98, align 8, !tbaa !7
  %100 = getelementptr inbounds i8, ptr %99, i64 8
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds i8, ptr %101, i64 72
  %103 = load ptr, ptr %102, align 8, !tbaa !19
  %.not = icmp eq ptr %103, null
  br i1 %.not, label %109, label %104

104:                                              ; preds = %.lr.ph96
  %105 = tail call i64 @N_VGetLength(ptr noundef nonnull %99) #3
  %106 = load i64, ptr %97, align 8, !tbaa !66
  %107 = add nsw i64 %106, %105
  store i64 %107, ptr %97, align 8, !tbaa !66
  %108 = add nuw nsw i64 %.294, 1
  %exitcond99.not = icmp eq i64 %108, %0
  br i1 %exitcond99.not, label %.loopexit, label %.lr.ph96, !llvm.loop !70

109:                                              ; preds = %.lr.ph96
  tail call void @N_VDestroy(ptr noundef nonnull %11) #3
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %104, %._crit_edge93.thread, %._crit_edge93, %._crit_edge, %3, %109, %71, %62
  %.083 = phi ptr [ null, %62 ], [ null, %71 ], [ null, %109 ], [ null, %3 ], [ null, %._crit_edge ], [ %11, %._crit_edge93 ], [ %11, %._crit_edge93.thread ], [ %11, %104 ], [ null, %.lr.ph ]
  ret ptr %.083
}

declare ptr @N_VNewEmpty(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @N_VGetLength_ManyVector(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VLinearSum_ManyVector(double noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VConst_ManyVector(double noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @N_VScale_ManyVector(double noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @N_VAddConst_ManyVector(ptr noundef, double noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VDotProdLocal_ManyVector(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMaxNormLocal_ManyVector(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWrmsNorm_ManyVector(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWrmsNormMask_ManyVector(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMinLocal_ManyVector(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWL2Norm_ManyVector(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VL1NormLocal_ManyVector(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @N_VCompare_ManyVector(double noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @N_VMinQuotientLocal_ManyVector(ptr noundef, ptr noundef) #0

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWSqrSumLocal_ManyVector(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local double @N_VWSqrSumMaskLocal_ManyVector(ptr noundef, ptr noundef, ptr noundef) #0

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @N_VPrintFile_ManyVector(ptr noundef, ptr noundef) #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 #2

declare void @N_VDestroy(ptr noundef) local_unnamed_addr #1

declare i64 @N_VGetLength(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 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 = { nounwind }
attributes #4 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 8}
!12 = !{!"_generic_N_Vector", !8, i64 0, !8, i64 8, !8, i64 16}
!13 = !{!14, !8, i64 0}
!14 = !{!"_generic_N_Vector_Ops", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !8, i64 144, !8, i64 152, !8, i64 160, !8, i64 168, !8, i64 176, !8, i64 184, !8, i64 192, !8, i64 200, !8, i64 208, !8, i64 216, !8, i64 224, !8, i64 232, !8, i64 240, !8, i64 248, !8, i64 256, !8, i64 264, !8, i64 272, !8, i64 280, !8, i64 288, !8, i64 296, !8, i64 304, !8, i64 312, !8, i64 320, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360, !8, i64 368, !8, i64 376, !8, i64 384, !8, i64 392, !8, i64 400, !8, i64 408, !8, i64 416, !8, i64 424, !8, i64 432}
!15 = !{!14, !8, i64 16}
!16 = !{!14, !8, i64 8}
!17 = !{!14, !8, i64 24}
!18 = !{!14, !8, i64 32}
!19 = !{!14, !8, i64 72}
!20 = !{!14, !8, i64 80}
!21 = !{!14, !8, i64 88}
!22 = !{!14, !8, i64 96}
!23 = !{!14, !8, i64 104}
!24 = !{!14, !8, i64 112}
!25 = !{!14, !8, i64 120}
!26 = !{!14, !8, i64 128}
!27 = !{!14, !8, i64 136}
!28 = !{!14, !8, i64 144}
!29 = !{!14, !8, i64 152}
!30 = !{!14, !8, i64 160}
!31 = !{!14, !8, i64 168}
!32 = !{!14, !8, i64 176}
!33 = !{!14, !8, i64 184}
!34 = !{!14, !8, i64 192}
!35 = !{!14, !8, i64 200}
!36 = !{!14, !8, i64 208}
!37 = !{!14, !8, i64 216}
!38 = !{!14, !8, i64 224}
!39 = !{!14, !8, i64 232}
!40 = !{!14, !8, i64 240}
!41 = !{!14, !8, i64 248}
!42 = !{!14, !8, i64 280}
!43 = !{!14, !8, i64 288}
!44 = !{!14, !8, i64 312}
!45 = !{!14, !8, i64 320}
!46 = !{!14, !8, i64 328}
!47 = !{!14, !8, i64 336}
!48 = !{!14, !8, i64 344}
!49 = !{!14, !8, i64 352}
!50 = !{!14, !8, i64 360}
!51 = !{!14, !8, i64 368}
!52 = !{!14, !8, i64 376}
!53 = !{!14, !8, i64 384}
!54 = !{!14, !8, i64 400}
!55 = !{!14, !8, i64 408}
!56 = !{!14, !8, i64 416}
!57 = !{!14, !8, i64 424}
!58 = !{!14, !8, i64 432}
!59 = !{!12, !8, i64 0}
!60 = !{!61, !62, i64 0}
!61 = !{!"_N_VectorContent_ManyVector", !62, i64 0, !62, i64 8, !8, i64 16, !63, i64 24}
!62 = !{!"long", !9, i64 0}
!63 = !{!"int", !9, i64 0}
!64 = !{!61, !63, i64 24}
!65 = !{!61, !8, i64 16}
!66 = !{!61, !62, i64 8}
!67 = distinct !{!67, !6}
!68 = distinct !{!68, !69}
!69 = !{!"llvm.loop.unroll.disable"}
!70 = distinct !{!70, !6}


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